How profit margin is calculated — and why it is not markup

Margin and markup describe the same profit from two different angles, and treating them as interchangeable is one of the most expensive arithmetic mistakes a business can make. Markup measures profit against what the item cost you. Margin measures the same profit against what the customer paid. Because the denominator differs, one transaction produces two very different percentages — and the margin is always the smaller of the two.

Margin also comes in layers. Gross margin counts only the direct cost of producing what you sold. Operating margin subtracts rent, salaries and everything else it takes to keep the business running. Net margin subtracts interest and tax as well, and it is the only one that describes what you actually kept. A comfortable gross margin can sit on top of a net margin of almost nothing.

Margin% = (Revenue - Cost) / Revenue x 100 Markup% = (Revenue - Cost) / Cost x 100
Revenue
the price actually charged, after discounts and before tax
Cost
cost of goods sold — the direct cost of what was sold
Gross margin
the formula applied after direct costs only
Operating margin
applied after direct costs and all operating expenses
Net margin
applied after operating expenses, interest and tax

Worked example

An item that costs 2,000 to make and sells for 3,000. The profit is 1,000 whichever way you look at it — but the two percentages describing that profit are nowhere near each other.

InputValue
Unit cost2,000
Selling price3,000
Gross profit1,000
Markup on cost50%
Margin on price33.33%
Price needed for a true 50% margin4,000

A 50% markup is only a 33.33% margin. Anyone pricing to a 50% target and reading the answer as margin is overstating profitability by a third. To genuinely earn a 50% margin on a 2,000 cost you have to charge 4,000 — a 100% markup. And this is still only the gross figure: if running the business costs another 500 per unit, profit falls to 500 and the net margin to 16.67%.

How to use this calculator

  1. Enter revenue as the price actually received, after discounts and excluding tax you collect on someone else's behalf.
  2. Enter cost of goods sold — the direct cost of producing or buying what you sold, not your total business costs.
  3. Read the margin percentage, then check whether the target you had in mind was a margin or a markup.
  4. Add operating expenses to see operating margin, then interest and tax to reach net margin.
  5. Compare margin across products rather than absolute profit — the highest-revenue line is often the weakest one.

Frequently asked questions

What is the difference between margin and markup?
Both measure the same profit, against different bases. Markup divides profit by cost; margin divides profit by the selling price. Since the selling price is always larger than the cost, the margin percentage is always smaller. Quoting one and interpreting it as the other systematically overstates how profitable a sale is.
How do I convert a target margin into a markup?
Markup = margin / (1 - margin), with both as decimals. A 40% target margin needs a markup of 0.4 / 0.6, or about 66.7%. Working the other way, price = cost / (1 - target margin), which is usually the more practical form when you are setting a price.
Which margin should I actually track?
Track all three, for different questions. Gross margin tells you whether the product itself works. Operating margin tells you whether the business around it works. Net margin tells you what reached the owner. A falling gross margin is a product or supplier problem; a falling operating margin with steady gross margin is an overhead problem.
What counts as a good profit margin?
It varies enormously by industry, and cross-industry comparison is close to meaningless. Grocery retail survives on very thin net margins with high turnover; software can run high margins on low volume. The useful comparison is against your own margin last quarter and against direct competitors, not against a general benchmark.
Why does a small discount hurt margin so much?
Because a discount comes entirely out of profit, not out of cost. On a 3,000 item costing 2,000, a 10% discount removes 300 from the 1,000 gross profit — a 30% cut in profit for a 10% cut in price. The thinner the margin, the more violent this effect becomes.
Should sales tax or GST be included in revenue?
No. Tax you collect from a customer and remit onward was never your income, and including it inflates revenue while leaving cost unchanged, which makes the margin look better than it is. Use the net-of-tax figure on both sides of the calculation.

Related calculators

This calculator is an educational tool. Results are estimates based on the inputs you provide and do not constitute financial advice. Verify figures with your bank, broker or a qualified advisor before acting on them.