Gross Profit & Gross Margin Calculator

Find gross profit and gross margin from revenue and cost of goods sold, and compare with your industry.

Calculator

$
$

Example Result

Your result will appear here

The calculated result will appear here after you press Calculate.

Estimates for planning only; not financial, tax or investment advice. See our Disclaimer.

About the Gross Profit Margin Calculator

Gross profit is what is left of your sales after paying for the goods you sold: revenue minus cost of goods sold (COGS). Gross profit margin is the same figure as a percentage of revenue — the share of every sales dollar that remains to pay rent, salaries, marketing and, finally, profit. Enter net revenue and COGS for the same period and this calculator shows the gross profit in dollars, the gross margin percentage, and COGS as a share of revenue. Use it to price a product, compare product lines or months, check whether rising supplier costs are eating into your margin, or benchmark against your industry. Gross margin is the first profitability line on an income statement: operating and net margins can never be higher than it.

How to Use the Gross Profit Margin Calculator

  1. 1

    Enter net revenue for the period (sales minus returns, allowances and discounts, without sales tax).

  2. 2

    Enter cost of goods sold for the same period: the direct cost of the goods actually sold.

  3. 3

    Press Calculate to see gross profit, gross margin and COGS as a share of revenue.

Gross Profit Margin Calculator Examples

By O.E. — Partner, chairman of the board and CEO of a metal products manufacturer for 21 years; the company exports to 45 countries.

Drafted with AI assistance; calculations checked against primary sources and tested with the site's own code. About FlowUtil

Last reviewed

How Gross Profit and Gross Margin Are Calculated

Gross profit = net revenue − cost of goods sold (COGS). Gross profit margin = gross profit ÷ net revenue × 100, and COGS as a share of revenue = COGS ÷ net revenue × 100. Gross margin and COGS % always add up to 100%.

Net revenue is sales for the period after returns, allowances and discounts — the IRS's "net receipts". Leave out sales tax or VAT collected for the government.

COGS is the direct cost of the goods actually sold in the period, not everything you bought: beginning inventory + purchases + direct labor + materials and supplies + other direct costs − ending inventory (the method of IRS Schedule C, Part III). A service business uses the direct cost of delivering the service.

SymbolMeaning
RevenueNet sales for the period (after returns and discounts, without sales tax)
COGSCost of the goods sold in the same period
Gross profitRevenue − COGS, in dollars
Gross marginGross profit ÷ Revenue × 100
COGS %COGS ÷ Revenue × 100 = 100% − gross margin

What Goes in COGS

Usually in COGSNot in COGS (operating expenses)
Purchase cost of goods for resale, inbound freightRent of offices and shops, office utilities
Raw materials and manufacturing suppliesMarketing, advertising, sales commissions*
Direct labor in manufacturingAdministrative salaries, accounting, software subscriptions
Factory overhead (manufacturers)Interest and income tax
Payment processing on each sale*Depreciation of office equipment

* Treatment varies; use the same rule every period so margins are comparable.

Margins From Real Price and Cost Figures

  1. 1An online shop's year: net sales $250,000, cost of the products shipped $162,500.

    Gross profit = 250,000 − 162,500 = 87,500; margin = 87,500 ÷ 250,000

    Gross Profit = $87,500 · Gross Margin = 35.00% · COGS = 65.00% of revenue

    Out of every $100 of sales, $35 is left for overheads and profit. Sensitivity: raising prices 5% (revenue $262,500) lifts the margin to 38.10%; a 5% rise in supplier costs (COGS $170,625) cuts it to 31.75% — about 3 percentage points either way.

  2. 2Pricing one product: it costs $30 to buy and land; target gross margin 40%.

    Price = cost ÷ (1 − margin) = 30 ÷ 0.60 = 50; check: revenue 50, COGS 30

    Gross Profit = $20.00 · Gross Margin = 40.00%

    Adding 40% to cost instead (a 40% markup) gives a $42 price and only a 28.57% margin.

  3. 3A negative gross margin: a manufacturer sold $48,000 of product; materials and direct labor for those units cost $52,000.

    48,000 − 52,000 = −4,000; −4,000 ÷ 48,000

    Gross Profit = −$4,000.00 · Gross Margin = −8.33% · COGS = 108.33% of revenue

    Every unit loses money before rent or salaries; selling more makes it worse. The fix is price, product mix or unit cost, not volume.

Margin vs Markup

Both compare the same profit over a different base: margin divides by the selling price, markup divides by the cost. Markup = margin ÷ (1 − margin); margin = markup ÷ (1 + markup). Margin can never reach 100%; markup has no upper limit.

Gross marginEquivalent markup on costPrice for a $30 cost
20%25.00%$37.50
25%33.33%$40.00
33.33%50.00%$45.00
40%66.67%$50.00
50%100.00%$60.00
60%150.00%$75.00

Which Revenue and Cost Figures to Use

  • One period for bothRevenue and COGS must cover the same month, quarter or year.
  • COGS, not purchasesStock still on the shelf at the end of the period is not part of COGS.
  • Net revenueSubtract refunds, returns and discounts; exclude sales tax or VAT.
  • A public companyUse Revenue (or Net sales) and Cost of revenue / Cost of sales from the income statement in its annual report (Form 10-K in the US). Banks and some service firms report no cost-of-sales line.
  • A single productEnter the selling price as revenue and the landed unit cost (purchase price + inbound shipping + duties) as COGS.

What a Given Margin Tells You

A higher gross margin is not automatically better: a grocer with a 26% margin and fast-moving stock can be more profitable than a boutique with 60% margin and slow sales. Look at gross profit in dollars, and at operating margin, too.

Track the trend: a margin that slips from 35% to 32% over a year usually means costs rose faster than prices, or the product mix shifted toward cheaper lines.

Gross → operating → net: subtract operating expenses to get operating profit, then interest and tax to get net profit. Gross margin sets the upper limit for both.

Industry Benchmarks (US, January 2026)

Gross margins differ hugely by industry, so compare with your own sector rather than with a single "good" number. US averages by sector from Aswath Damodaran's NYU Stern data set:

Sector (US)Gross margin
Drugs (Pharmaceutical)71.73%
Software (System & Application)71.72%
Apparel56.88%
Retail (General)33.18%
Restaurant / Dining32.24%
Retail (Grocery and Food)26.31%
Auto & Truck10.41%
Total US market37.76%

Source: Damodaran, Margins by Sector (US), data as of January 2026.

What Gross Margin Leaves Out

  • InputsRevenue must be greater than 0; COGS can be 0 or more. If COGS exceeds revenue the margin is negative.
  • COGS already worked outThe calculator does not split COGS into components or handle inventory accounting.
  • Inventory methodFIFO, average cost or (in the US) LIFO change COGS when costs are rising; compare periods that use the same method.
  • Before overheadsResults are before operating expenses, interest and tax. Not accounting or tax advice.

Errors That Distort Margin

  • Dividing by costGross profit ÷ cost is markup, not margin.
  • Overheads in COGSRent, ads and admin salaries in COGS understate gross margin and hide overhead problems.
  • All purchases as COGSUse the cost of the goods actually sold, adjusted for inventory.
  • Sales tax in revenueSales tax and VAT are collected for the government, not earned.
  • Wrong benchmarkA 30% margin is weak for software and strong for groceries.

Sources

  1. IRS — Publication 334, Tax Guide for Small Business — chapter 6 "How To Figure Cost of Goods Sold", chapter 7 "Figuring Gross Profit"
  2. U.S. SEC — Beginners' Guide to Financial Statements — gross profit = net revenues − costs of sales
  3. Aswath Damodaran, NYU Stern — Margins by Sector (US) — data as of January 2026

Frequently Asked Questions

What is the gross profit margin formula?

Gross profit margin = (Revenue − COGS) ÷ Revenue × 100. $250,000 revenue and $162,500 COGS give a 35% margin.

How do I calculate gross profit?

Subtract cost of goods sold from net revenue: $250,000 − $162,500 = $87,500. The calculator shows gross profit in dollars next to the margin.

What is the difference between gross profit and gross margin?

Gross profit is a dollar amount; gross margin is that amount as a percentage of revenue. Gross margin lets you compare businesses or periods of different size.

What is a good gross profit margin?

It depends on the industry. US averages in January 2026 ranged from about 10% for auto makers and 26% for grocery retail to about 72% for software and pharmaceuticals; the whole market averaged 37.8% (Damodaran, NYU Stern).

What is included in COGS?

The direct cost of the goods sold: purchase cost or raw materials, inbound freight, direct manufacturing labor and factory overhead, adjusted for the change in inventory. Rent, marketing and office salaries are operating expenses, not COGS.

What is the difference between margin and markup?

Margin divides profit by price, markup divides it by cost. A $30 item sold for $50 has a 40% margin and a 66.67% markup.

How do I price for a target margin?

Price = Cost ÷ (1 − target margin). For a 40% margin on a $30 cost: 30 ÷ 0.60 = $50.

Can gross margin be negative?

Yes, when COGS is higher than revenue — every sale loses money before any overhead is paid.

How is gross margin different from net margin?

Gross margin subtracts only COGS. Net margin also subtracts operating expenses, interest and taxes, so it is always lower.