Profit margin formula: how to calculate margin (with examples)
The profit margin formula explained for UK sellers: gross and net margin, how to calculate them, worked examples with marketplace fees and VAT, and what a good margin is.
By the SellSail team · Updated · 8 min read
Key takeaways
- Profit margin = profit ÷ selling price × 100.
- Gross margin uses product cost only; net margin subtracts every cost, including fees, VAT, delivery and refunds.
- On a marketplace, commission comes out of the selling price, so it hits margin directly.
- If you're VAT-registered, calculate margin on the price excluding VAT.
Profit margin tells you how much of each pound of sales you keep as profit. The formula is simple:
Profit margin = (selling price − total cost) ÷ selling price × 100
Sell for £20 with £15 of total cost and your margin is 25%. The hard part isn't the formula; it's counting every cost, which is where most online sellers overstate their margins.
Gross margin vs net margin
| What you subtract | Use it for | |
|---|---|---|
| Gross margin | Product cost only | Comparing products and suppliers |
| Net margin | Every cost: product, delivery, fees, VAT, refunds, tools | Knowing what you really earn |
For marketplace sellers, net margin is the number that matters.
How do you calculate profit margin step by step?
- Start with the selling price. If you're VAT-registered, use the price excluding VAT.
- Subtract the product cost, including the supplier's delivery charge.
- Subtract marketplace commission, usually a percentage of the full price the buyer pays.
- Subtract payment fees, if charged separately.
- Subtract an allowance for returns and other costs.
- Divide what's left by the selling price.
Worked example: a marketplace sale
A VAT-registered seller sells an item for £24.99 including VAT, with free delivery.
| Amount | |
|---|---|
| Price paid by buyer | £24.99 |
| VAT (20% of VAT-inclusive price: 24.99 ÷ 6) | −£4.17 |
| Price excluding VAT | £20.82 |
| Commission (15% of £24.99) | −£3.75 |
| Product cost, delivered | −£13.90 |
| Profit | £3.17 |
| Net margin (3.17 ÷ 20.82) | 15.2% |
Notice that commission is charged on the VAT-inclusive price, so it's larger than 15% of your ex-VAT revenue. That's why margin always looks smaller than sellers expect. Try your own numbers in the OnBuy fee calculator.
What is a good profit margin?
There's no single answer, but for UK marketplace sellers:
| Net margin | What it usually means |
|---|---|
| Under 5% | Fragile: one return or price change wipes it out |
| 5–10% | Workable for fast-moving, low-risk items |
| 10–20% | A healthy target for most marketplace products |
| Over 20% | Strong, often niche or less competitive products |
Use a minimum profit in pounds too. A 15% margin on a £6 item is 90p, which a single refund erases.
How do you price to hit a target margin?
Turn the formula round. When the percentage fees and your target margin all come out of the selling price:
Price = cost ÷ (1 − commission % − payment fee % − target margin %)
For a £10 cost, 15% commission and a 20% target margin: 10 ÷ (1 − 0.15 − 0.20) = £15.38.
Many sellers find it easier to think in profit on cost, then add fees. That's how SellSail prices: each margin band has a profit percentage and a minimum profit, then OnBuy commission and payment fees are added so the price covers them. See how it works.
Why does margin change after you list?
- Your supplier's price changes.
- A competitor undercuts you and you follow.
- Marketplace fees change.
- Returns rise for a product.
That's why margins need watching continuously, not once at listing. Automating price updates from the current supplier cost keeps every listing at the margin you chose.
Summary
Profit margin = profit ÷ selling price. Count every cost, use ex-VAT prices if you're registered, and set a minimum profit in pounds. Then let your prices follow your costs automatically. Related: margin vs markup and how to calculate your break-even price.