Margin Calculator
A margin calculator shows what share of a sale remains after the direct cost: with a £48 unit cost and an £80 ex-VAT price, that is £32 and a 40% gross margin. If the £80 price includes 20% VAT, the tax must be stripped out before the percentage is worked out. This guide covers both versions and explains why margin is not the same as profit after overheads.
Price it once, see every angle
Choose what you know. All figures update as you type and stay in your browser.
Your margin at a glance
- Markup on cost
- 66.7%
- Unit cost
- £60.00
- Net selling price
- £100.00
- VAT in the price
- £0.00
Profit result.
| Line | Amount |
|---|
Cost, profit and price compared
Margin if the selling price changed
The chart shows margin at −20%, −10%, today, +10% and +20% of your selling price. The slider gives a finer what-if.
How margin is worked out
Gross margin is the gap between a net selling price and the direct cost of the item, divided by the net selling price. In symbols: margin = (price − cost) ÷ price. A £48 cost and an £80 price leave £32, so the margin is 32 ÷ 80 = 40%. Markup answers a different question: it divides that same £32 by the £48 cost, giving 66.7%. The two percentages describe the same £32 but use different denominators, which is why a 40% margin is not a 40% markup.
The calculator can also solve backwards. If you know a £48 cost and want a 40% margin, the required price is cost ÷ (1 − margin), or £48 ÷ 0.6 = £80. If you want a 40% markup instead, the price is cost × (1 + markup), also £80 here by coincidence of the chosen numbers. For a VAT-inclusive price, the form removes VAT at the rate shown before doing any division: a £120 gross price at the 20% standard rate becomes £100 net, because 120 ÷ 1.2 = 100.
The model assumes one unit, one direct cost and one selling price. It does not include overheads, carriage, returns, payment fees, waste, labour not included in cost, or Corporation Tax. Gross margin is therefore a pricing indicator, not a statement of take-home profit for the business.
Worked example: a £48 product sold at £80
A Leeds retailer buys a lamp for £48 and sells it at £80 excluding VAT. The calculator shows a £32 gross profit per unit, a 40% margin and a 66.7% markup on cost. The same shop then runs a second scenario where the shelf label says £120 including VAT and the unit cost is £60: after removing £20 of VAT at 20%, the net price is £100, leaving £40 profit and again a 40% margin. The table keeps the two cases side by side.
| Item | Amount | Notes |
|---|---|---|
| Unit cost, first case | £48.00 | Direct purchase cost |
| Net selling price, first case | £80.00 | VAT excluded |
| Gross profit per unit | £32.00 | £80 minus £48 |
| Gross margin | 40.0% | £32 ÷ £80 |
| Markup on cost | 66.7% | £32 ÷ £48 |
| Gross price, second case | £120.00 | Includes VAT at 20% |
| VAT stripped out | £20.00 | £120 ÷ 1.2 = £100 net |
| Margin, second case | 40.0% | (£100 − £60) ÷ £100 |
2026/27 rules and rates
Last checked 27/11/2026. VAT rates used by the tool come from GOV.UK's VAT rates guidance: 20% standard, 5% reduced and 0% zero-rated supplies. The registration threshold recorded in the verified rate file is £90,000. Corporation Tax figures from GOV.UK are 19% for profits up to £50,000 and 25% at or above £250,000, with marginal relief between; these apply to company profits after expenses, not to the gross margin on this page.
Which VAT rate applies to your product is a question of tax law, not arithmetic: many items are standard-rated, some food and energy items are reduced-rated, and certain goods are zero-rated. Exempt supplies are different again and cannot simply be assigned 0% in a VAT return. The calculator uses the rate you select and makes no claim about the correct classification of a particular product.
Tips and common mistakes
- Divide by price for margin, by cost for markup. Swapping the denominator is the most common error in pricing conversations.
- Do not calculate margin from a VAT-inclusive price without stripping tax first; doing so understates the true margin.
- Include all variable direct costs in “cost”, such as packaging and inbound carriage, or the margin will look better than it is.
- A high gross margin does not mean the business is profitable once rent, salaries and interest are paid.
- Check competitor prices and VAT invoice requirements before changing a price list; a target margin is not the same as a market-clearing price.
Comparison scenarios
| Scenario | Gross margin | What changes |
|---|---|---|
| Cost £48, price £80 ex VAT | 40.0% | Baseline case |
| Cost £55, price £80 ex VAT | 31.3% | Higher purchase cost, same shelf price |
| Cost £48, price £92 ex VAT | 47.8% | Price rise lifts profit per unit to £44 |
| Cost £60, £120 price incl. VAT | 40.0% | VAT removed first, leaving £100 net |
Frequently asked questions
What does a margin calculator actually calculate?
It works out gross margin: the difference between net selling price and direct cost, divided by the net price. It can also solve for a selling price or cost when you provide a target margin, and convert a VAT-inclusive price into a net price before doing the maths.
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides profit by the cost. On a £48 cost and £80 price, the £32 gain is a 40% margin but a 66.7% markup. State which one you mean in a pricing conversation, because the same percentage means different money.
Why does the calculator remove VAT before working out margin?
VAT is collected for the tax authority, not retained as revenue by the seller. A £120 price at the 20% standard rate contains £20 of VAT, so the business's net price is £100. Using £120 as the denominator would mix tax with sales revenue and distort the margin.
What VAT rate does this page use?
The verified figures are 20% standard, 5% reduced and 0% zero-rated, from GOV.UK VAT rates guidance last checked 27/11/2026. You choose the rate that matches your supply. The tool does not decide whether your product is standard-rated, reduced-rated, zero-rated or exempt.
Can I work backwards from a target margin?
Yes. Select the solving mode for a selling price or a maximum cost and enter the target percentage. For a 40% margin on a £48 cost, the price is £80; for a fixed price of £80, a 40% margin allows a cost of no more than £48. The result updates as you type.
Is gross margin the same as company profit?
No. It ignores overheads, depreciation, financing and Corporation Tax. A business with a healthy gross margin can still make a loss if fixed costs are too high. The Corporation Tax rates mentioned above apply to taxable company profits, not to sales revenue.
Where can I check the official rates?
Read GOV.UK's VAT rates page for the 20%, 5% and 0% rates, and the GOV.UK Corporation Tax guidance for the 19% and 25% rates and marginal relief. Both were last checked on 27/11/2026. This page is arithmetic guidance, not a tax classification service.
Related calculators
Use the profit margin calculator for a fuller breakdown, the gross margin calculator for the same idea by another name, the markup calculator to switch denominators, and the UK VAT calculator to check tax amounts before you price a product.
Sources and review
Official sources were last reviewed 27 November 2026. VAT percentages and the £90,000 registration threshold come from GOV.UK VAT guidance; Corporation Tax rates and marginal relief come from GOV.UK Corporation Tax guidance, as recorded in the site's verified rate file.