Profit margin calculator

Gross margin is profit divided by selling price. Markup is profit divided by cost. An item that costs £60 and sells for £100 has a 40% margin but a 66.7% markup. This calculator works out both, or finds the price you need to charge to hit a target margin.

Profit margin calculator
Work out
Gross margin
40.0%
Profit per sale
£40.00
Markup on cost
66.7%

How to use this calculator

  1. Choose a mode: cost and selling price, or cost and target margin.
  2. Enter your cost, and either the selling price or the margin you want.
  3. Read the profit, gross margin and markup, or the price to charge.

How do you calculate profit margin?

Profit margin is profit divided by the selling price, shown as a percentage. Profit is the selling price minus the cost.

  • Profit = selling price minus cost.
  • Gross margin % = profit / selling price x 100.
  • Markup % = profit / cost x 100.
  • Price for a target margin = cost / (1 minus margin). For a 25% margin, divide cost by 0.75.

In this calculator, cost means the direct cost of the item or job, such as stock, materials or subcontractor labour. That gives gross margin. Net margin also takes off overheads like rent and wages.

What is the difference between margin and markup?

Margin measures profit as a share of the selling price, while markup measures profit as a share of the cost. The same profit always gives a smaller margin than markup.

MarginEquals markup ofPrice on a £100 cost
10%11.1%£111.11
20%25%£125
25%33.3%£133.33
33.3%50%£150
40%66.7%£166.67
50%100%£200

Mixing the two up is a common pricing error. If you want a 30% margin but add 30% to cost, your real margin is only about 23%.

Worked example: cost £60

Illustration only. A product costs you £60.

1

Selling at £100

Profit is £40. Gross margin is £40 / £100 = 40%. Markup is £40 / £60 = 66.7%.

2

Targeting a 25% margin

Price = £60 / 0.75 = £80. Profit is £20, which is 25% of £80.

3

Adding 25% to cost instead

£60 x 1.25 = £75. Profit is £15, a margin of only 20%.

What does the result tell you, and what does it not?

The result tells you how much of each sale is left after the direct cost. It does not tell you whether the business as a whole is profitable.

  • It does not include overheads, so a healthy gross margin can still mean a loss overall.
  • It does not include VAT. Use prices before VAT if you are VAT registered. The VAT calculator can strip VAT out.
  • Good margins vary a lot by sector, so compare with your own past figures and your sector, not a general rule.
Good to know

To see how many sales you need to cover your overheads, use the break-even calculator.

How can you improve your profit margin?

You improve your margin by raising prices, cutting direct costs, or selling more of your higher margin products. Small changes can make a big difference because they apply to every sale.

  • Review prices regularly, especially when supplier costs rise.
  • Negotiate with suppliers or buy in larger quantities, if you have the cash and storage.
  • Cut waste, returns and rework that add to the cost of each sale.
  • Check which products or customers bring the best margin, and focus effort there.
  • Stop discounting by habit. A 10% discount on a 40% margin item cuts profit on that sale by a quarter.

Price changes can affect demand, so test them carefully and watch sales volumes as well as margin.

Common questions

How do I calculate profit margin?

Take the selling price minus the cost to get profit, then divide profit by the selling price and multiply by 100.

How do I calculate a 30% margin?

Divide the cost by 0.7. For a £70 cost, the price is £100, which leaves £30 profit, a 30% margin.

Is margin the same as markup?

No. Margin is profit divided by price, markup is profit divided by cost. A 50% markup is only a 33.3% margin.

What is the difference between gross and net margin?

Gross margin only takes off direct costs, such as stock or materials. Net margin also takes off overheads, interest and tax.

What is a good profit margin?

It depends on your sector. Businesses with low overheads can run on thinner margins than those with high fixed costs. Compare against your own costs and sector figures.

Should I include VAT when working out margin?

If you are VAT registered, no. Use prices and costs before VAT, because the VAT is not your money.

Free to use. The maths runs in your browser and nothing you type is stored or sent. Results are estimates for illustration only. They are not a quote, an offer or financial, tax or legal advice. Check important figures with an accountant or adviser. Updated November 2026.