How to calculate profit margin
Updated · 2 min read
Quick answer
Profit margin = (selling price − cost) ÷ selling price × 100. If you buy a product for £60 and sell it for £100, your profit is £40 and your margin is 40 ÷ 100 = 40%. Markup uses cost instead of price as the bottom number, so the same sale is a 66.7% markup.
The profit margin formula
Margin tells you how much of every sale you keep after paying for what you sold. It's always worked out from the selling price:
- Profit = selling price − cost
- Margin = profit ÷ selling price
- Multiply by 100 to get a percentage.
Example: a candle costs you $8 to make and sells for $20. Profit is $12. Margin is 12 ÷ 20 = 0.6, so 60%. For every $1 a customer pays, you keep 60 cents before other costs.
Gross margin vs net margin
- Gross margin only subtracts the direct cost of the product (materials, stock, manufacturing). It's the number most people mean by "margin".
- Net margin subtracts everything: rent, wages, ads, platform fees and tax. It shows what the business really keeps.
A shop can have a healthy 50% gross margin and still lose money if fees and overheads eat more than half of each sale. Marketplaces make this easy to miss: check the real payout with the Etsy fee calculator or Amazon FBA calculator before you price.
Margin vs markup
Both use the same profit, but divide by different numbers. That's why they're so often confused.
| Cost | Price | Profit | Margin (÷ price) | Markup (÷ cost) |
|---|---|---|---|---|
| 50 | 100 | 50 | 50% | 100% |
| 60 | 100 | 40 | 40% | 66.7% |
| 75 | 100 | 25 | 25% | 33.3% |
| 80 | 100 | 20 | 20% | 25% |
Markup is always the bigger number. A "50% markup" is only a 33.3% margin, so pricing with markup when you meant margin quietly shrinks your profit.
To switch between them:
- Markup = margin ÷ (1 − margin). A 40% margin is 0.4 ÷ 0.6 = 66.7% markup.
- Margin = markup ÷ (1 + markup). A 25% markup is 0.25 ÷ 1.25 = 20% margin.
How to price for a target margin
Turn the formula around: price = cost ÷ (1 − target margin).
Example: a T-shirt costs £12 and you want a 60% margin. Price = 12 ÷ (1 − 0.6) = 12 ÷ 0.4 = £30. Check it: profit £18, and 18 ÷ 30 = 60%.
A common mistake is adding 60% to the cost (12 × 1.6 = £19.20). That's a 60% markup, which is only a 37.5% margin.
Don't forget VAT, GST or sales tax
Work out margin on the price before tax. If you're VAT-registered and charge £120 including 20% VAT, your real selling price is £100. Strip the tax first with the VAT calculator or GST calculator, then calculate margin.
What's a good profit margin?
It depends on the trade. Grocery and fuel run on thin gross margins, while software, digital downloads and handmade goods can run much higher. Rather than chase an industry average, make sure your gross margin covers your overheads with room left over, and track it every month.
Questions people ask
What is the formula for profit margin?
Profit margin = (selling price − cost) ÷ selling price × 100. Selling for 100 something that cost 60 gives a 40% margin.
Is margin or markup higher?
Markup is always higher for the same sale, because it divides profit by the smaller number (cost). A 50% margin is a 100% markup.
How do I find the selling price from a margin?
Divide the cost by (1 − margin). For a 30% margin on a cost of 70: 70 ÷ 0.7 = 100.
Should I include VAT or sales tax in the margin?
No. Use the price before tax, because the tax belongs to the government, not your business.