How to calculate profit margin percentage
Profit margin is the share of each pound of sales you keep as profit. To get the percentage, divide the profit by the selling price and multiply by 100:
Margin = (selling price − cost) ÷ selling price × 100
A product that costs £60 and sells for £100 makes £40 of profit, and £40 ÷ £100 is a 40% margin. Because margin is a share of the price, it can never reach 100% unless the cost is zero, and a sale below cost gives a negative margin.
Gross profit margin formula
Gross margin means the share of revenue left after the cost of sales. Here is how to calculate gross profit margin for the whole business, using the profit and loss:
Gross margin = (revenue − cost of sales) ÷ revenue × 100
Cost of sales is what it cost to make or buy what you sold: stock, materials, subcontractors and direct labour. Rent, office wages, insurance and software are overheads and sit below the gross profit line. Gross profit is the amount in pounds; gross margin is that amount as a percentage of revenue. £100,000 of gross profit on £250,000 of sales is a 40% gross margin.
Net profit margin and operating margin
Take the overheads off gross profit and you have operating profit; take off interest and tax as well and you have net profit. Net profit margin is what is left of each pound of sales after every cost. Here is how to calculate net profit margin, and operating margin: divide that profit by revenue.
- Operating profit margin formula: operating profit ÷ revenue. £30,000 on £250,000 is 12%.
- Net profit margin formula: net profit ÷ revenue. £22,400 on £250,000 is 8.96%.
Gross vs net profit margin, then: gross margin counts only the cost of sales, so it shows how well you price and buy; net margin counts every cost, so it shows what the business actually keeps.
UK accounts show profit both before and after tax, so when you quote a net profit margin, say which one you mean. A sole trader’s accounts usually show profit before tax, because income tax is paid personally.
How to calculate markup
Markup means the amount you add to the cost to reach the selling price, shown as a percentage of the cost. The markup formula is:
Markup = (selling price − cost) ÷ cost × 100
To price from a markup, multiply the cost by one plus the markup. A 20% markup on a £50 cost is £50 × 1.2 = £60; a 70% markup is £50 × 1.7 = £85. Wholesalers and trades often price this way, as a markup on cost, then quote the margin to compare with the rest of the business.
A selling price from a target margin
If you know the margin you want, divide the cost by one minus that margin:
Price = cost ÷ (1 − margin)
A 40% margin on a £60 cost is £60 ÷ 0.6 = £100. The common mistake is to add 40% to the cost instead: that gives £84, which is a 40% markup but only a 28.57% margin.
Profit margin formula in Excel
With the cost in A2 and the selling price in B2:
- Margin: =(B2-A2)/B2, formatted as a percentage
- Markup: =(B2-A2)/A2, formatted as a percentage
- Price from a margin in C2: =A2/(1-C2)
- Price from a markup in C2: =A2*(1+C2)
The same formulas work in Google Sheets. Enter percentages as 40% or 0.4, not 40.
Profit margin and VAT
If you are VAT registered, work your margin on prices before VAT. The VAT you charge on a sale is collected for HMRC, and you reclaim the VAT on your costs, so neither is part of your profit. Tick Selling price includes VAT and the calculator divides your price by 1.2 at the standard rate, or 1.05 at the reduced rate, before working the margin. If you are not VAT registered, you charge no VAT on sales, and any VAT you pay on costs is simply part of the cost. Our VAT calculator adds or removes VAT on its own.
The VAT margin scheme is something else
HMRC’s margin schemes are a way of charging VAT on second-hand goods, works of art, antiques and collectors’ items. Instead of VAT on the full selling price, you pay VAT at 16.67%, one-sixth, on the difference between what you paid and what you sold for: buy at £1,500, sell at £2,000, and the VAT is £83.33. You cannot use a margin scheme for anything you were charged VAT on when you bought it. It is a VAT rule, not a measure of profit, and this calculator does not apply it.
What is a good profit margin?
There is no single answer, and we would rather not invent one. Margins differ widely between trades, and between businesses in the same trade. A better test is whether your gross margin pays for your overheads, finance costs and tax and leaves a profit you are happy with. Track your own margin month by month, compare it with your previous years, and ask your trade body or accountant for figures from businesses like yours. A high margin is not too much if customers still buy; a falling one is worth a look whatever the level.
VAT figures checked against GOV.UK on 9 October 2026: VAT rates and VAT margin schemes. This calculator is a guide to the arithmetic, not financial or tax advice.