Accounting & Financial Statement Analysis Profitability & Return Ratios US GAAP income statement (ASC 606, ASC 330)

Gross Profit Margin Calculator

Enter net revenue and cost of goods sold and this calculator returns gross profit in dollars, gross margin as a percentage of sales, and the equivalent markup on cost — the three numbers people constantly confuse. It also solves the pricing question behind the ratio: what price increase, or what cost ceiling, gets you to a target margin. Gross margin is the first profitability line an analyst, a lender or a buyer reads, because it measures whether the product itself makes money.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Net revenue (sales)Sales after returns, allowances and trade discounts — the top line of your income statement, not gross billings.1250000 $
Cost of goods soldDirect materials, direct labor, inbound freight and manufacturing overhead absorbed into the units you sold.750000 $
Target gross marginThe margin you are trying to reach; the calculator returns the price increase and the COGS ceiling that deliver it.45 %
Prior period revenueSame-length prior period, so the comparison is like for like. Set to 0 to skip the comparison.1100000 $
Prior period COGSCost of goods sold for that same prior period, on the same costing method.682000 $

It returns

  • Gross profit margin — Gross profit as a percentage of net revenue — the cents of every sales dollar left after product cost.
  • Gross profit
  • Equivalent markup on cost — The same profit expressed against cost instead of price. Never smaller than the margin, because cost is the smaller denominator.
  • Change vs prior period — Percentage points of margin gained or lost against the prior period you entered.
  • Price increase needed for target margin
  • Maximum COGS at target margin

The formula

Gross margin=RCR×100%
Markup=RCC×100%
u=m1m
Rreq=C1t

In plain text: Gross margin % = (Revenue − COGS) ÷ Revenue × 100

  • RNet revenue — sales after returns, allowances and trade discounts ($)
  • CCost of goods sold — direct materials, direct labor, inbound freight and absorbed manufacturing overhead ($)
  • R − CGross profit ($)

Gross margin divides by price; markup divides by cost. The same dollar of profit therefore produces two different percentages, and quoting one while meaning the other is the single most expensive arithmetic error in small-business pricing.

Updated Category Profitability & Return Ratios Verified against published test cases Reading time 12 min

What gross profit margin measures

Gross profit margin tells you how many cents of every sales dollar survive the cost of making or buying the thing you sold. Everything else a business spends — salaries for people who do not touch the product, rent, software, marketing, interest, tax — has to come out of that remainder. If the gross margin is too thin, no amount of overhead discipline can save the model.

That is why a credit officer, an equity analyst or an acquirer reads it first. Operating and net margin blend product economics with spending decisions; gross margin isolates the product. A 40%-margin business that overspends on sales can be fixed by cutting spend. A 12%-margin business that needs 20% to cover overhead has a pricing or sourcing problem, and cost-cutting below the gross line will not reach it.

The ratio also standardizes size. Gross profit of $500,000 means nothing alone; $500,000 on $1.25 million of revenue is 40%, and 40% compares directly against last quarter, against a competitor ten times your size, and against a lender covenant.

One caution is built into the definition: gross margin is only as clean as your COGS boundary. Two companies in one industry can report materially different margins purely because one charges warehouse labor and inbound freight to cost of sales and the other buries them in operating expenses. Neither is wrong under US GAAP, which does not prescribe a gross-profit line item. Read the accounting policy note before you compare.

The formula, and why the denominator decides everything

Gross profit is a subtraction: revenue minus cost of goods sold. The margin is that difference divided by revenue. Markup is the same difference divided by cost. Both are legitimate, both are widely used, and the gap between them grows fast.

At a 50% margin the markup is 100%. At a 60% margin the markup is 150%. At an 80% margin the markup is 400%. The algebra is u = m ÷ (1 − m), and its inverse is m = u ÷ (1 + u). If a supplier tells you they work on a 30% markup and you assume 30% margin, you have mispriced by nearly seven points of margin. Our markup vs margin calculator converts between the two in either direction, and the selling price from margin calculator goes straight from cost to list price.

The denominator also explains why a price change moves margin harder than an equal cost change. Cut price 10% and you shrink the numerator and the denominator; cut cost 10% and only the numerator improves. On a product at 40% margin, a 10% price cut drops margin to 33.3%, while a 10% cost cut lifts it to 46%. The sensitivity grid under the results shows the whole surface.

Working the target backwards uses the same identity. If you need margin t, then cost must be (1 − t) of revenue, so the revenue that supports your existing cost base is C ÷ (1 − t). At $750,000 of COGS and a 45% target, revenue has to reach $1,363,636 — a 9.09% price increase on $1.25 million of sales, assuming volume holds.

Worked example: $1,250,000 of revenue against $750,000 of COGS

A specialty food manufacturer closes the year with $1,250,000 in net revenue after $38,000 of returns and trade allowances. Cost of goods sold, on full absorption costing, is $750,000. Last year the same business did $1,100,000 of revenue on $682,000 of COGS. Management wants a 45% gross margin.

  1. Gross profit. $1,250,000 − $750,000 = $500,000.
  2. Gross margin. $500,000 ÷ $1,250,000 = 0.40 = 40.00%. Forty cents of every sales dollar is available for overhead, interest, tax and profit.
  3. Markup on cost. $500,000 ÷ $750,000 = 0.6667 = 66.67%. The same $500,000, different base.
  4. Prior-year margin. ($1,100,000 − $682,000) ÷ $1,100,000 = $418,000 ÷ $1,100,000 = 38.00%.
  5. Change. 40.00% − 38.00% = +2.00 percentage points. Say percentage points, not percent: the margin did not rise 2%, it rose two points, which is a 5.3% relative improvement.
  6. COGS ceiling for the 45% target. $1,250,000 × (1 − 0.45) = $687,500. Costs must fall $62,500, or 8.3%, at current prices.
  7. Or raise price instead. Revenue required = $750,000 ÷ 0.55 = $1,363,636. Against $1,250,000 that is a 9.09% price increase.

Those last two answers are worth the same margin but are very different projects: one is a sourcing negotiation, the other a customer conversation with volume risk attached. Check the dollars against overhead too. At $420,000 of operating expenses, this year's $500,000 of gross profit leaves $80,000 of operating income; last year's 38% margin on the same revenue would have produced $475,000, leaving $55,000. Two points of gross margin moved operating income by 45%. That leverage is why the ratio gets watched monthly.

How to read your gross margin

There is no universal good number, because gross margin is set by business model far more than by management skill. Judge yours three ways instead.

Against your own overhead. This is the only absolute test. Divide your annual operating expenses by your gross margin as a decimal and you get the revenue you must produce to break even. At $420,000 of overhead and a 40% margin, break-even revenue is $1,050,000. At 25% it is $1,680,000. Work that number out before you argue about whether your margin is good, and use the break-even sales revenue calculator to formalize it.

Against your own trend. Margin direction is more diagnostic than margin level. A margin sliding half a point a quarter usually means one of four things: input costs rising faster than your price list, discounting to hold volume, mix shifting toward cheaper products, or a costing error such as understated inventory shrinkage. Each has a different fix, and the ratio alone will not tell you which — decompose by product line.

Against peers using the same COGS boundary. Public filings give you real comparables. Practitioners quote rough anchors — grocery retail in the twenties, restaurant food and beverage in the mid-sixties, enterprise software above seventy — but treat those as orientation only and confirm against filings for two or three named competitors.

Two red flags matter in any industry. A gross margin below your overhead ratio means the business cannot break even at any volume without a structural change. And a margin rising while inventory grows faster than sales often means cost is being capitalized into inventory rather than expensed — read the inventory turnover ratio alongside it.

Gross margin to markup on cost conversion

Two ways of quoting the same profit. Read across: a 40% gross margin is a 66.7% markup, which is the same as multiplying cost by 1.667.
Gross marginMarkup on costMultiply cost byCOGS as % of price
20%25.0%1.25080.0%
25%33.3%1.33375.0%
30%42.9%1.42970.0%
33⅓%50.0%1.50066⅔%
40%66.7%1.66760.0%
45%81.8%1.81855.0%
50%100.0%2.00050.0%
55%122.2%2.22245.0%
60%150.0%2.50040.0%
70%233.3%3.33330.0%
80%400.0%5.00020.0%

Every figure is the exact evaluation of u = m ÷ (1 − m), independent of industry.

Volume you must win back after a price cut

Extra unit volume needed to hold total gross profit after a discount, with unit cost unchanged. Low-margin businesses cannot buy volume with price.
Starting gross marginVolume needed after a 5% price cutVolume needed after a 10% price cutNew margin after the 10% cut
20%+33.3%+100.0%11.1%
30%+20.0%+50.0%22.2%
40%+14.3%+33.3%33.3%
50%+11.1%+25.0%44.4%
60%+9.1%+20.0%55.6%
70%+7.7%+16.7%66.7%

The volume columns are m ÷ (m − d) − 1, where m is the starting margin and d is the price cut in points of the original price. The last column is the margin that survives a 10% cut with unit cost unchanged: (0.90 − (1 − m)) ÷ 0.90.

Mistakes that make a gross margin wrong

  • Quoting markup as margin. A 30% markup is a 23.1% margin. Businesses that price on markup and report on margin routinely find a seven-point hole in their forecast.
  • Using gross revenue instead of net. Returns, allowances, rebates and trade discounts all reduce the denominator. Marketplace sellers must also settle whether platform fees are contra-revenue or COGS.
  • Leaving direct labor out of COGS. If the people who build, assemble, cook or install are paid from payroll expense rather than cost of sales, gross margin is flattered and comparisons with competitors break.
  • Ignoring inbound freight and duty. Landed cost, not invoice cost, is the correct COGS input. Freight-in belongs in inventory cost under ASC 330; freight-out to the customer is a selling expense.
  • Forgetting shrinkage, spoilage and scrap. Physical inventory losses are real product cost. Businesses that only relieve inventory for units sold overstate margin until the annual count corrects it violently.
  • Averaging margins across products. A blended 40% can hide one line at 5% and another at 70%. Mix shift then looks like a margin problem when it is really a portfolio problem.

What the accounting rules actually require

US GAAP does not mandate a gross-profit subtotal. SEC registrants filing under Regulation S-X, Rule 5-03, must present costs of tangible goods sold separately from other costs and expenses, which effectively produces a gross-profit line for product companies. Revenue is measured under ASC 606, which is why rebates and variable consideration reduce the top line instead of appearing as expenses. Inventory cost — and therefore COGS — follows ASC 330: cost of purchase, cost of conversion, and other costs of bringing inventory to its present location and condition. The IFRS equivalents are IFRS 15, IAS 2 and IAS 1. None of these standards sets a minimum acceptable margin; they define what belongs in the numerator and denominator.

Gross margin against the other profitability ratios

Gross margin is the top rung of a ladder. Subtract selling, general and administrative expenses and you reach operating margin, which the operating profit margin calculator handles; subtract interest and tax and you reach net margin in the net profit margin calculator. Because each rung has the same denominator, the ladder reads as a common-size income statement: 100% revenue, 60% COGS, 40% gross, and so on down.

Gross margin is not contribution margin, and confusing the two wrecks break-even analysis. Gross margin subtracts all product cost, including fixed factory overhead absorbed into units; contribution margin subtracts only variable cost, so it runs higher and is the right input for accepting a marginal order. Use the contribution margin calculator for that, then the break-even point in units calculator.

Analysts comparing capital-intensive firms often move up the statement instead of down, using the EBITDA margin calculator to strip out depreciation policy differences — a non-GAAP measure that SEC Regulation G requires you to reconcile to GAAP if you publish it. If you are building COGS from a stock ledger rather than reading it off a statement, start with the cost of goods sold calculator.

Key terms

Net revenue
Gross sales less returns, allowances, rebates and trade discounts. Under ASC 606 variable consideration is estimated and deducted here, not shown as an expense.
Cost of goods sold
The cost of the inventory actually sold in the period: purchase cost, conversion cost, inbound freight and duty, and absorbed manufacturing overhead.
Gross profit
Net revenue minus cost of goods sold, in dollars. Sometimes called gross margin in dollars, which is a common source of confusion.
Markup on cost
Profit divided by cost rather than by price. Retail and construction quote in markup; accountants report in margin.
Percentage point
The unit for a change in a percentage. Moving from 38% to 40% is two percentage points, or a 5.3% relative increase.
Landed cost
The full cost of getting a unit into your warehouse — freight, insurance, duty and handling included. The correct basis for COGS.

Frequently asked questions

Is gross margin the same as gross profit?

No. Gross profit is a dollar amount — revenue minus cost of goods sold. Gross margin is that amount expressed as a percentage of revenue. Confusingly, many people say “gross margin” when they mean gross profit dollars, so ask which one a colleague is quoting. This calculator returns both, so you can hand over the pair and remove the ambiguity.

What is the difference between gross margin and markup?

The denominator. Margin divides profit by the selling price; markup divides the same profit by the cost. A product costing $100 and selling for $150 has a 50% markup and a 33.3% margin. Convert with markup = margin ÷ (1 − margin). The two only agree at zero, and the gap widens as profitability rises — an 80% margin is a 400% markup.

What counts as cost of goods sold?

Everything needed to bring the units you sold to a saleable condition: direct materials, direct labor, inbound freight and duty, and manufacturing overhead absorbed into the product. Selling costs, outbound shipping to customers, general administration, R&D and interest are excluded. ASC 330 governs which costs attach to inventory. Where you draw the line matters less than drawing it consistently and disclosing it.

What is a good gross profit margin?

The only universal test is whether your gross margin covers your overhead. Divide annual operating expenses by the margin as a decimal to get break-even revenue; if that number is beyond your reach, the margin is too low regardless of industry norms. Beyond that, business model dominates. The rough anchors practitioners quote — grocery retail in the twenties, restaurants in the mid-sixties on food and beverage, software above seventy — are orientation only. Compare against named competitors' filings, not against a cross-industry average.

Why did my gross margin fall when revenue grew?

Usually mix or discounting. If growth came from a cheaper product line, the blended margin falls even though nothing got worse. If growth came from promotional pricing, you bought volume with margin. Other candidates: input-cost inflation you have not repriced, freight surcharges, or overtime in production. Break the margin out by product line and by channel before you conclude the business is deteriorating.

How do I set a price from a target margin?

Divide cost by one minus the target margin. For a 45% margin on a $55 unit cost, the price is $55 ÷ 0.55 = $100. Do not multiply cost by 1.45 — that gives $79.75, a margin of just 31%, and is the classic error. The calculator does this for a whole company at once: enter your COGS and target, and read the required revenue and the implied price increase.

Should service businesses use gross margin at all?

Yes, if they charge delivery labor to cost of services. Agencies, consultancies and managed-service providers that put billable staff cost in COGS get a meaningful margin that reveals utilisation and rate discipline. Firms that report every payroll dollar as operating expense show a 100% gross margin, which tells you nothing. Pick the presentation that makes the ratio useful and keep it stable.

Does gross margin change when I switch from FIFO to LIFO?

Yes, in periods of changing prices. LIFO charges the most recent, usually higher, costs to COGS, which lowers gross profit and margin relative to FIFO; the difference accumulates in the LIFO reserve. Because the ratio moves for a purely accounting reason, never compare a LIFO company against a FIFO company on gross margin without adjusting. Compare each against its own history instead.

References

  • ASC 606, Revenue from Contracts with Customers — Financial Accounting Standards Board
  • ASC 330, Inventory — Financial Accounting Standards Board
  • Regulation S-X, Rule 5-03 — Statements of comprehensive income (17 CFR 210.5-03) — U.S. Securities and Exchange Commission
  • Financial Statement Analysis, 11th ed. — McGraw-Hill (Subramanyam)
  • The Analysis and Use of Financial Statements, 3rd ed. — Wiley (White, Sondhi & Fried)