Skip to content
SellSail
Fees and profit

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

Calculator next to a laptop

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 subtractUse it for
Gross marginProduct cost onlyComparing products and suppliers
Net marginEvery cost: product, delivery, fees, VAT, refunds, toolsKnowing what you really earn

For marketplace sellers, net margin is the number that matters.

How do you calculate profit margin step by step?

  1. Start with the selling price. If you're VAT-registered, use the price excluding VAT.
  2. Subtract the product cost, including the supplier's delivery charge.
  3. Subtract marketplace commission, usually a percentage of the full price the buyer pays.
  4. Subtract payment fees, if charged separately.
  5. Subtract an allowance for returns and other costs.
  6. 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 marginWhat 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.

Frequently asked questions

What is the formula for profit margin?
Profit margin = (selling price − total cost) ÷ selling price × 100. Use the selling price excluding VAT if you're VAT-registered.
What is a good profit margin for an online shop?
It depends on the product and channel. Many marketplace sellers aim for a net margin of 10–20% after all fees, with a minimum profit in pounds on cheaper items.
What's the difference between gross and net margin?
Gross margin only subtracts the cost of the product. Net margin subtracts everything else as well: commission, payment fees, delivery, packaging, refunds and tools.
How do I calculate the price for a target margin?
Divide your cost by (1 − target margin − percentage fees). For a £10 cost, 15% commission and a 20% target margin: 10 ÷ 0.65 = £15.38.
All articles

Keep reading

Set sail with SellSail

Start your 14-day free trial. No card needed, cancel any time.