New Trades Pack 40 AI prompts + 5 templates £9.50 launch price, then £19XERO £7.00/moTRADIFY Lite £34.00/user/moMONEYPENNY AI RECEPTIONIST From £49.00/moCHATGPT Free plan £0.00New Trades Pack 40 AI prompts + 5 templates £9.50 launch price, then £1981 tools on the shelfFREE 64 calculators and templates
The AI TillBrowseFind tools
Browse
The AI Till

AI tools for UK trades and small businesses, checked.

Subscribe free Issue #5 One robots.txt line to opt out of AI training

Home › Free tools › Markup and margin calculator

Profit margin, markup and gross profit calculator

Convert between markup and margin, and see the selling price and profit on any cost. Useful when a supplier talks margin and your quotes use markup.

Use it as a profit margin calculator or a markup calculator: enter your cost and either the markup you add or the margin you want, and it shows the selling price and profit before VAT. The gross profit formula, profit percentage and net profit percentage formula are below.

Work out markup, margin and selling price

Watch The Gaffer explain itMarkup isn't margin: the pricing mistake that costs you (UK). 37 seconds, captions on screen. Tap play, then turn the sound on.
Read the transcript

Ey up, I'm The Gaffer. Markup and margin aren't the same thing. Markup is profit over cost. Margin is profit over the selling price. Say a part costs you £180. Add a 30% markup and you charge £234. That's £54 profit, but your margin is only 23%, not 30%. Mix them up and you lose money. Check yours free at theaitill.com

The AI Till markup and margin calculator at its default inputs, with "Work out" set to "Selling price from cost": cost £100.00, markup 25%, selling price (ex VAT) £125.00, profit £25.00 and margin 20%, with the note "A 25% markup is a 20% margin."
Our markup and margin calculator at its default inputs: £100 cost, 25% markup, £125.00 selling price, 20% margin. Screenshot taken 14 November 2026.

Start with the "Work out" box. It has two options:

  • "Selling price from cost" (the default). Put your cost in the "Cost (£, ex VAT)" box, then either the markup you want to add in the "Markup (%)" box or, in the "Or target margin (%)" box, the margin you want to make. A target margin above 0 takes over from the markup: the calculator writes the markup that margin needs into the Markup box and locks it, with the hint "Set by your target margin. Put the target margin back to 0 to type your own markup." The result row then reads "Markup used". The result gives the selling price before VAT, the profit in pounds and the margin.
  • "Margin from cost and selling price". Put your cost in the cost box and your price in the "Selling price (£)" box, and it shows the profit, the margin and the markup. If your price includes VAT, tick "Selling price includes VAT at 20%": the calculator takes the VAT off first (it divides by 1.2), shows the VAT as its own line and works the margin out on the price without VAT.

To check a loss, use "Margin from cost and selling price" and enter a selling price below the cost. The profit and margin show as negative figures, with the note "This price is below cost: a loss of" and the amount. A negative number in any box is refused with a message such as "Cost can't be negative: enter 0 or more." and no result until you fix it.

Two things to know about VAT and the 99.9% limit. The calculator doesn't add VAT to a selling price, so if you are VAT registered and charge the standard rate, multiply the selling price by 1.2 for the price the customer pays (see where VAT fits). It can take 20% VAT off a price: in "Margin from cost and selling price", tick "Selling price includes VAT at 20%". It handles the 20% rate only, so for the 5% rate divide by 1.05 yourself. And a margin can never reach 100%, because that would mean the item cost nothing. If you type a target margin above 99.9%, the calculator changes it to 99.9% and shows a message. Type 120, for example, and it says: "Target margin capped at 99.9%: a margin of 100% or more would mean the item cost nothing, so your 120% has been changed to 99.9%."

By James Gonzo, The AI Till. Checked 14 November 2026: HMRC's gross profit and net profit ratios in its Enquiry Manual, the VAT fraction in VAT Notice 700, VAT rates and the VAT price sums on GOV.UK, and the Price Marking Order 2004 on legislation.gov.uk. Every example on this page was run through the calculator above. This is general information, not tax or accounting advice.

The formulas

  • Markup % = profit ÷ cost × 100
  • Margin % = profit ÷ selling price × 100
  • Margin into markup: markup = margin ÷ (100 minus margin) × 100. So a 20% margin needs a 25% markup, and a 50% margin needs a 100% markup.
  • Markup into margin: margin = markup ÷ (100 plus markup) × 100. So a 50% markup gives a 33.33% margin.
  • Selling price from a target margin: selling price = cost ÷ (1 minus the margin as a decimal). A £100 cost at a 40% margin is £100 ÷ 0.6 = £166.67.
  • The most you can pay for a target margin: cost = selling price × (1 minus the margin as a decimal). If something must sell for £50 before VAT and you want a 40% margin, you can pay up to £50 × 0.6 = £30 for it.

Put the markup into the quote and VAT calculator to price a job.

Margin vs markup: conversion table

The same profit gives two different percentages: markup measures it against your cost, margin against your selling price. Margin is always the lower number, which is why mixing them up loses money. Read across:

Markup on cost Margin on the selling price Price on a £100 cost
10% 9.09% £110
20% 16.67% £120
25% 20% £125
33.33% 25% £133.33
50% 33.33% £150
66.67% 40% £166.67
100% 50% £200
150% 60% £250
200% 66.67% £300

Pricing for a 10%, 20% or 30% margin

If you know the margin you want, divide the cost by what is left of 1 after taking the margin off. Here is the shortcut for the margins people ask about most, with the price on a £100 cost before VAT:

Margin you want Divide the cost by Markup that gives Price on a £100 cost
10% 0.9 11.11% £111.11
20% 0.8 25% £125
25% 0.75 33.33% £133.33
30% 0.7 42.86% £142.86
40% 0.6 66.67% £166.67
50% 0.5 100% £200

Every row was checked in the calculator by putting £100 in the cost box and the margin in the target margin box.

Worked examples

All figures are made-up examples, before VAT.

Cost Markup Selling price Profit Margin
£80 25% £100 £20 20%
£150 50% £225 £75 33.33%
£200 42.86% £285.71 £85.71 30%
£40 100% £80 £40 50%

The third row starts from a target: if you want a 30% margin on a £200 cost, the markup is 30 ÷ 70 × 100 = 42.86%, so you charge £285.71 before VAT.

Worked examples for UK trades and shops

All figures are made up, before VAT, to show the method. Put your own into the profit margin calculator above.

  • Electrician, parts on a job. A part costs you £180. You add a 30% markup and charge £234. Your profit is £54 and your margin is £54 ÷ £234 = 23.08%, not 30%.
  • Kitchen fitter, the whole job. Materials cost £800 and you charge £960 for them (20% markup, a 16.67% margin). You pay a helper £450 for the labour and charge the customer £750 for it. The job sells for £1,710, costs £1,250 and leaves £460: a margin of 26.9% on the whole job. One margin for the whole job tells you whether the job was worth doing, not just whether the parts were priced right.
  • Shop, a product line. You buy a product for £6 and want a 50% margin. Selling price = £6 ÷ 0.5 = £12 before VAT. A 50% markup would have given only £9 and a 33.33% margin.
  • Shop, working back from the shelf price. A product has to sell for £60 including 20% VAT to match the shop down the road. Take the VAT out first: £60 ÷ 1.2 = £50. For a 40% margin you can pay your supplier up to £50 × 0.6 = £30 before VAT. To check it, choose "Margin from cost and selling price", enter £30 and £60, and tick "Selling price includes VAT at 20%": the margin shows as 40%.

Where VAT fits

Work out markup and margin on prices without VAT. VAT is collected for HMRC, not profit. If you're VAT registered and charge the standard 20% rate, a £100 ex-VAT price becomes £120 to the customer, but your margin is still worked out on the £100. If you're not VAT registered, your supplier's VAT is part of your cost, so include it in the cost figure.

GOV.UK gives the three rates: "The standard VAT rate is 20%", the reduced rate is 5% (for example children's car seats and home energy) and the zero rate is 0% (for example most food and children's clothes) (GOV.UK VAT rates). Which one you charge depends on what you sell.

GOV.UK VAT rates: the standard VAT rate is 20%; table of VAT rates for goods and services, standard rate 20% most goods and services, reduced rate 5% for example children's car seats and home energy, zero rate 0% for example most food and children's clothes
GOV.UK, VAT rates. Screenshot taken 14 November 2026.

GOV.UK's own sums for adding and taking off VAT (GOV.UK, charge, reclaim and record VAT):

  • Adding 20% VAT: multiply the price without VAT by 1.2. GOV.UK's example is a £60 chair: 60 × 1.2 = £72.
  • Taking 20% VAT off: divide the price including VAT by 1.2. GOV.UK's example is a £180 table: 180 ÷ 1.2 = £150, so the VAT is £30.
  • At the 5% reduced rate: multiply by 1.05 to add it, or divide by 1.05 to take it off. GOV.UK's example is a £483 stairlift: 483 ÷ 1.05 = £460, so the VAT is £23.
GOV.UK, Charge, reclaim and record VAT, how to calculate prices with and without VAT: to work out a price that includes the standard rate of VAT multiply the price excluding VAT by 1.2, for example a £60 chair is £72 including VAT
GOV.UK, Charge, reclaim and record VAT: how to calculate prices with and without VAT. Screenshot taken 14 November 2026.

The VAT trap

Most mistakes come from working out a margin on a price that includes VAT. HMRC's VAT guide explains why the VAT in a VAT-inclusive price isn't 20% of it. Its example: "if you sell something for £2.40 and the VAT rate is 20%, then the amount of VAT is 40 pence. But, 40 pence is not 20% of £2.40. It is one-sixth of £2.40." The fraction is the "rate of tax divided by (100 + rate of tax)", so at 20% it is 20/120, "which is the same as one-sixth", and at 5% it is one twenty-first (VAT Notice 700, paragraph 7.3.1, last updated 25 June 2026).

HMRC VAT Notice 700 paragraph 7.3.1 VAT fractions: if you sell something for £2.40 and the VAT rate is 20%, the VAT is 40 pence, which is one-sixth of £2.40, not 20%; the VAT fraction is rate of tax divided by 100 plus rate of tax; table showing 5% one twenty-first and 20% one-sixth
HMRC, VAT guide (VAT Notice 700), paragraph 7.3.1 VAT fractions. Screenshot taken 14 November 2026.

Say you are VAT registered, you buy an item for £6 before VAT and sell it for £15 including VAT. The £15 includes £2.50 of VAT (£15 ÷ 6), so your price is really £12.50. Profit is £6.50 and the margin is 52%. Work it out on the £15 and you would think you make £9 at a 60% margin. To check it in the calculator, choose "Margin from cost and selling price", enter £6 and £15, and tick "Selling price includes VAT at 20%": it takes £2.50 of VAT off first and shows a 52% margin.

If you are not VAT registered, it works the other way: you can't reclaim your supplier's VAT, so it is part of your cost. The same item costs you £7.20 (£6 plus £1.20 VAT), and selling it at £15 leaves £7.80, a 52% margin. Put £7.20 in the cost box, not £6.

Shop prices to the public include VAT

If you sell goods to the public, the price on the label is the VAT-inclusive one. Under the Price Marking Order 2004, a trader who indicates that a product is for sale to a consumer must indicate its selling price (article 4), and "selling price" means "the final price to be paid for a unit of a product, or a given quantity of a product, including VAT and all other taxes" (article 1). So set your margin on the price without VAT, then add the VAT to get the price you show.

legislation.gov.uk, The Price Marking Order 2004 article 1: selling price means the final price to be paid for a unit of a product, or a given quantity of a product, including VAT and all other taxes, but excluding the amount of any deposit
legislation.gov.uk, The Price Marking Order 2004, article 1. Screenshot taken 14 November 2026.

Discounts take more off your profit than you think

A discount comes straight off your profit, not off your cost. Take the default example: a £100 cost with a 25% markup sells for £125 and makes £25, a 20% margin. Give 10% off and the price drops to £112.50, so the profit halves to £12.50 and the margin falls to 11.11%. To check a discount, choose "Margin from cost and selling price" and enter the cost and the discounted price: £100 and £112.50 give an 11.11% margin and a 12.5% markup.

Common mistakes

  • Adding the margin percentage to cost. A 30% "margin" added to cost is only a 23.08% margin.
  • Pricing materials with markup but forgetting your time, travel and waste.
  • Using one markup for everything. Small jobs often need a higher rate to cover the visit.
  • Comparing your markup with a supplier's quoted margin as if they were the same number.
  • Working out the margin on a price that includes VAT (see the VAT trap).
  • Treating a discount as if it came off the cost rather than the profit (see discounts).

Next steps: turn the price into a full quote with the quote and VAT calculator, or set a rate that covers your overheads with the day-rate calculator.

Gross margin and net margin

This calculator gives the gross margin on a job or product: the profit after the direct cost of that sale, as a share of the selling price. Net margin is the profit left after your overheads as well, such as the van, insurance, phone, software and accountant, divided by your total sales. A job can show a healthy gross margin and still lose money once overheads are shared out, so check your overheads are covered with the break-even calculator and your day rate.

Gross profit and profit percentage

The calculator above gives the profit and margin on one job or product. The same sums work for a month or a year of trading:

  • Gross profit formula: gross profit = sales minus cost of sales. Cost of sales is what you spent directly on the work you sold: materials, stock, parts and subcontract labour.
  • Gross profit percentage: gross profit ÷ sales × 100. This is the gross margin. HMRC's Enquiry Manual says "Gross profit rate (GPR) is the most commonly used business ratio in HMRC" and "GPR is the profit margin on sales and can be expressed as an equation: GPR = gross profit (sales - cost of good sold) divided by turnover x 100" (HMRC Enquiry Manual EM3082).
  • Net profit percentage formula: net profit ÷ sales × 100, where net profit is what is left after your overheads as well. For a business that isn't a company, HMRC's ratio is "Net Profit x 100 / Turnover" (HMRC Enquiry Manual EM3093).
  • For a limited company, HMRC's version is different: "Net Profit and Directors' Remuneration and Directors' Pension X 100 / Turnover". It adds directors' pay and pension contributions back before dividing, so don't compare a company's plain net profit percentage with this HMRC ratio.
HMRC Enquiry Manual EM3082, Examining accounts, business ratios, gross profit rate: gross profit rate (GPR) is the most commonly used business ratio in HMRC; GPR is the profit margin on sales and can be expressed as an equation, GPR = gross profit (sales minus cost of good sold) divided by turnover x 100
HMRC Enquiry Manual EM3082, gross profit rate. Screenshot taken 14 November 2026.
HMRC Enquiry Manual EM3093, Examining accounts, business ratios, net profitability to turnover: for a non-incorporated business Net Profit x 100 / Turnover; for companies Net Profit and Directors' Remuneration and Directors' Pension x 100 / Turnover
HMRC Enquiry Manual EM3093, net profitability to turnover. Screenshot taken 14 November 2026.

These manual pages are written for HMRC staff who examine accounts. They show how HMRC measures profit; they aren't rules about how you must price.

Worked example: gross profit and net profit for a year

These are made-up example figures for a small trade business, before VAT, to show the method.

Line Example figure How it is worked out
Sales (turnover) £80,000 Everything invoiced in the year, before VAT
Cost of sales £32,000 Materials, parts and subcontract labour for those jobs
Gross profit £48,000 £80,000 minus £32,000
Gross profit percentage 60% £48,000 ÷ £80,000 × 100
Overheads £18,000 Van, insurance, phone, software, accountant
Net profit £30,000 £48,000 minus £18,000
Net profit percentage 37.5% £30,000 ÷ £80,000 × 100

For a sole trader, net profit here is before Income Tax and National Insurance, and the money you take out for yourself (drawings) is not an overhead. The self-employed tax calculator shows what that profit leaves after tax.

Gross profit vs net profit

Gross profit tells you whether your prices cover the direct cost of the work. Net profit tells you whether the business as a whole is making money once the van, insurance and other overheads are paid. A gross profit percentage that falls over time usually means prices have not kept up with material costs. A healthy gross profit with a thin net profit points to overheads, or too few jobs to spread them over: check that with the break-even calculator.

Profit percentage: on cost or on the selling price?

"Profit percentage" can mean two different numbers, so check which one someone means:

  • On the selling price: profit ÷ selling price × 100. This is the margin, and it is what accounts and HMRC's gross profit rate use.
  • On cost: profit ÷ cost × 100. This is the markup, and it is the "percentage profit" taught in school maths.

Example with made-up figures: a job sells for £1,200 before VAT and the materials and subcontract labour cost £700. The gross profit is £500. As a percentage of the price that is £500 ÷ £1,200 = 41.67%; as a percentage of cost it is £500 ÷ £700 = 71.43%. Same job, same £500. The margin vs markup table above converts one into the other, and the calculator at the top of this page works out either.

Is my margin good?

Pages we checked don't give a "good" margin, and it varies a lot by trade. HMRC's own manual is a useful guide to what to compare. On gross profit it asks "How does the GPR compare with other businesses?" and "How does the gross profit rate compare with previous years?", and says "a substantial rise or fall in gross profit rate in any one year may be a risk indicator" (EM3082). On net profit it notes that "In a high turnover retail trade you would expect to see a very low ratio, but a similar figure would be disastrous in a capital intensive business with a slow turnover of goods" (EM3093).

So compare your gross profit percentage with your own past years, and with similar businesses if you can find honest figures. Then check that what is left covers your overheads and what you need to live on, with the break-even calculator.

Profit percentage formulas in Excel or Google Sheets

With sales (or the selling price) in A2 and the cost of sales in B2:

  • Gross profit: =A2-B2
  • Gross profit percentage (margin): =(A2-B2)/A2, then format the cell as a percentage
  • Profit percentage on cost (markup): =(A2-B2)/B2
  • Net profit percentage, with overheads in C2: =(A2-B2-C2)/A2
  • Selling price for a target margin, with the cost in B2 and the margin in D2 as a percentage: =B2/(1-D2)
  • Markup needed for that margin: =D2/(1-D2), formatted as a percentage

If you are VAT registered, use figures before VAT throughout, as explained in where VAT fits.

Questions

What is the gross profit formula?

Gross profit = sales minus cost of sales, where cost of sales is the direct cost of what you sold, such as materials, stock and subcontract labour. £80,000 of sales and £32,000 of cost of sales gives £48,000 of gross profit.

How do I calculate gross profit percentage?

Divide gross profit by sales and multiply by 100. £48,000 of gross profit on £80,000 of sales is 60%. HMRC calls this the gross profit rate. Use figures before VAT if you are VAT registered.

What is the net profit percentage formula?

Net profit ÷ sales × 100, where net profit is what is left after the cost of sales and your overheads. £30,000 of net profit on £80,000 of sales is 37.5%.

How do I work out profit percentage on cost?

Divide the profit by the cost and multiply by 100. A £500 profit on a £700 cost is 71.43%. This is the markup. The same £500 on a £1,200 price is a 41.67% margin, so say which one you mean.

How do I calculate profit margin?

Take the selling price minus the cost to get the profit, then divide the profit by the selling price and multiply by 100. For example, a £150 price on a £100 cost is £50 profit, and £50 ÷ £150 = a 33.33% margin. Use prices before VAT.

What is the difference between gross and net profit margin?

Gross margin only takes off the direct cost of what you sold, such as materials or stock. Net margin also takes off overheads such as the van, insurance and software, so it is lower and shows what the business really keeps.

Do you work out margin before or after VAT?

Before VAT if you are VAT registered, because the VAT belongs to HMRC: at 20%, one sixth of a VAT-inclusive price is VAT. If you are not VAT registered, include the VAT you pay suppliers in your cost, because you can't reclaim it.

Why does it matter?

If you add 20% to cost thinking that's a 20% margin, your real margin is 16.67%. Over a year, that gap adds up.

Should I mark up labour too?

That's a business decision. Many trades build profit into the hourly or day rate instead; the day-rate calculator helps.

How do I calculate a 10% profit margin?

Divide the cost by 0.9. A £100 cost becomes £111.11 before VAT, which is an 11.11% markup and £11.11 of profit.

How do I calculate a 20% profit margin?

Divide the cost by 0.8. A £100 cost becomes £125 before VAT: a 25% markup and £25 of profit.

How do I calculate a 30% profit margin?

Divide the cost by 0.7. A £100 cost becomes £142.86 before VAT, which is a 42.86% markup.

How do I work out markup from margin?

Markup = margin ÷ (100 minus margin) × 100. A 40% margin needs 40 ÷ 60 × 100 = a 66.67% markup.

How do I work out margin from markup?

Margin = markup ÷ (100 plus markup) × 100. A 50% markup gives 50 ÷ 150 × 100 = a 33.33% margin.

Are margin and profit the same thing?

No. Profit is an amount in pounds; margin is that profit as a percentage of the selling price. £25 of profit on a £125 sale is a 20% margin.

What is a good profit margin?

Pages we checked don't give one, and it varies by trade. HMRC's own manual compares a business's gross profit rate with previous years and with other businesses (HMRC EM3082), so track yours over time and check it covers your overheads.

Can a margin be more than 100%?

No. Margin is profit as a share of the selling price, so it stays below 100% whenever something costs more than nothing. Markup can go above 100%: a 200% markup is a 66.67% margin.

How do I take VAT off a price?

At 20%, divide the price including VAT by 1.2; at 5%, divide by 1.05. GOV.UK's example: £180 ÷ 1.2 = £150, so the VAT is £30 (GOV.UK).

How much of a VAT-inclusive price is VAT?

Use the VAT fraction: one-sixth at 20% and one twenty-first at 5%. HMRC's example: £2.40 including 20% VAT contains 40 pence of VAT (VAT Notice 700, 7.3.1).

What is HMRC's gross profit rate?

HMRC calls it "the profit margin on sales": "GPR = gross profit (sales - cost of good sold) divided by turnover x 100" (HMRC EM3082).

How does HMRC work out net profit percentage for a limited company?

It adds directors' pay and pensions back before dividing: "Net Profit and Directors' Remuneration and Directors' Pension X 100 / Turnover". For other businesses it is "Net Profit x 100 / Turnover" (HMRC EM3093).

Do shop prices have to include VAT?

For goods sold to consumers, yes. The Price Marking Order 2004 says the selling price means "the final price to be paid" for a product, "including VAT and all other taxes" (legislation.gov.uk). Work out your margin before VAT, then add it.

Sources

All opened on 14 November 2026.

Free email

Practical AI tips for UK trades and small businesses: what a tool costs, who it suits and how to try it. Free, short, and you can unsubscribe any time. Sign up and you can download our free PDF of 50 ChatGPT prompts for small business straight away.

As well as the above, you'll get a short series of emails over about four weeks with free guides, tools and templates and, near the end, details of products I sell. Unsubscribe any time. See our privacy notice.

Unsubscribe any time. Privacy. Browse past issues.