Margin Calculator
Margin calculator 2: fill in any two boxes
No steps to choose. Type into any two boxes and the calculator solves the other three. The two boxes it is using are marked as you type.
Fill in the fields above and the answer appears here.
Gross profit calculator
Resale price against the cost of the goods. Returns gross profit in pounds along with the percentages.
Fill in the fields above and the answer appears here.
Profit margin calculator
The everyday pairing. Cost in, selling price in, margin out.
Fill in the fields above and the answer appears here.
Net profit margin calculator
Net profit is what survives after every cost, including overheads, interest and tax.
Fill in the fields above and the answer appears here.
Operating margin calculator
Gross profit minus the running costs of the business: rent, wages, software, insurance.
Fill in the fields above and the answer appears here.
Operating profit margin calculator
Already know your operating profit? This turns it into a percentage of revenue.
Fill in the fields above and the answer appears here.
Markup calculator
Enter the cost, then either the price you charge or the percentage you add to cost.
Fill in the fields above and the answer appears here.
Selling price from a target margin
You know the cost and the margin you have to hit. This gives the price to charge.
Fill in the fields above and the answer appears here.
Margin on a VAT inclusive price
Shelf prices in UK retail include VAT. This removes the tax first, then works out the real margin.
Fill in the fields above and the answer appears here.
Break-even calculator
How many units you have to sell before the fixed costs are covered.
Fill in the fields above and the answer appears here.
Margin to markup conversion chart
Read across whenever a supplier quotes one percentage and your buyer quotes the other.
| Margin | Equivalent markup | Price on a £100 cost |
|---|---|---|
| 5% | 5.26% | £105.26 |
| 10% | 11.11% | £111.11 |
| 15% | 17.65% | £117.65 |
| 20% | 25.00% | £125.00 |
| 25% | 33.33% | £133.33 |
| 30% | 42.86% | £142.86 |
| 33.33% | 50.00% | £150.00 |
| 35% | 53.85% | £153.85 |
| 40% | 66.67% | £166.67 |
| 45% | 81.82% | £181.82 |
| 50% | 100.00% | £200.00 |
| 55% | 122.22% | £222.22 |
| 60% | 150.00% | £250.00 |
| 65% | 185.71% | £285.71 |
| 70% | 233.33% | £333.33 |
| 75% | 300.00% | £400.00 |
| 80% | 400.00% | £500.00 |
The reverse lookup and a printable version sit on the margin to markup chart page.
Features of the Margin Calculator UK toolset
Most margin calculators online do one sum. Cost in, price in, percentage out, and you are left to trust it. This page does eleven sums and shows you the arithmetic behind each one.
- Two routes to the same answerOne version asks what you want before it asks for numbers. The other just watches which boxes you fill. Use whichever suits the way you think.
- Any two inputs solve the restCost, revenue, profit, margin and markup form one system of equations. Hold two and the others follow, including pairs like profit and markup that most tools will not touch.
- Impossible combinations disappearYou cannot get margin from margin, or pounds from two percentages. Those options vanish from step two rather than throwing an error after you have typed.
- UK VAT handled properlyTick one box and the tax comes out of the price before anything is divided. Standard, reduced and zero rates all work.
- Three views of every resultA sentence in plain English, a bar showing how much of the price is cost, and the formula with your own figures written into it.
- Four margins, not oneGross, operating and net, plus contribution and break-even. The next question you ask is answered on the same page.
- Steppers that speed upHold an arrow and it moves by one, then five, then ten. Handy when you are feeling out a price band rather than checking a single figure.
- Copy the whole thingOne button lifts your inputs, the results and the working as plain text. Paste it into a quote or an email.
- 24 currenciesThe symbol appears inside the input where you expect it, and your choice is still there next visit.
- Nothing leaves your browserNo account, no upload, no server call. Once the page has loaded you can turn the connection off and keep working.
What makes it better than the usual margin calculator
It shows its working. A bare percentage cannot be checked, so a mistyped cost turns into a mispriced product and nobody notices until the quarter closes. Here the fraction appears with your figures inside it, and a wrong input announces itself before it reaches a price list.
Then there is VAT. Almost every calculator you will find assumes tax-exclusive figures without saying so, and UK shelf prices include the tax. Feed a gross price into a tax-blind tool and your margin comes back about twelve points too generous. We build that correction in rather than leaving it to you to remember at half past four on a Friday.
The third thing is scope. Pricing questions never stop at gross margin. They run into rent, into wages, into how many units have to go out of the door before the month pays for itself. Those calculators are on this page, taking the same inputs, so the follow-up question does not send you back to a search box.
How does this margin calculator work?
It solves a small system of equations. Cost, revenue, profit, margin and markup are five names for three independent quantities, so knowing any two pins down the rest. That is the whole trick, and it is why there is no calculate button to press.
- You pick a target, or you skip that
In the guided calculator, step one decides which figure lands in the green band. The free-form calculator has no step one. It watches the boxes instead.
- It works out what you are allowed to enter
Once a target exists, any pair that cannot produce it drops off the list. Margin and markup together convert to each other happily but will never produce pounds, so that pair disappears whenever you ask for an amount.
- It reads your two figures as you type
Every keystroke recalculates. In the free-form version the two boxes you touched most recently are the ones being used, and both get a green flag so you can see which pair is driving the answer.
- VAT comes off first, if you asked
With the box ticked, the price is divided by one plus the rate before anything else happens. A £120 shelf price at 20% becomes £100 of revenue and £20 that was never yours.
- It solves, then rebuilds from the answer
Rather than filling gaps one at a time, it derives cost and revenue first and recomputes profit, margin and markup from those. Your inputs might have been rounded. The five outputs still agree with each other.
- It writes the arithmetic back out
Your numbers go into the formulas so you can follow the route from input to percentage without taking the code on trust.
All of this runs in JavaScript on your own machine. No server round trip, so answers appear as fast as you can type and your cost prices stay yours.
What is a margin, in plain terms?
Margin is the slice of a sale you keep. Sell a jacket for £70 that cost you £42 and you keep £28, which is 40% of what the customer handed over. That 40% is the margin, and it is the figure every tool on Margin Calculator UK is built around.
The same £28 can be described a second way. Measure it against the £42 you paid rather than the £70 you charged and it comes out at 66.67%. That is markup. One sale, one profit, two percentages, and a great deal of confusion in pricing meetings. Our margin versus markup guide pulls the two apart with worked figures.
One thing to clear up before the calculators. Search for this phrase and you get two unrelated subjects: profit margin in accounting, and margin requirement in leveraged trading, where a broker lends against your account. Nothing here concerns the second one. No SPAN, no exposure margin, no maintenance calls. Every tool on this page works on cost, price and profit.
How do you read the results panels?
The first calculator asks two questions before it asks for numbers. Step one picks the figure that lands in the green band. Step two picks the pair you already hold, and only workable pairs stay on screen, so you cannot accidentally ask it to find margin from margin.
The grey bands underneath carry the other four figures. They are there because nobody stops at one number. You look up a margin and immediately want to know what markup that implies, and what it leaves you in actual pounds.
The second calculator drops the steps. Type into any two boxes and it fills in the rest, marking the pair it is using. Touch a third box and it switches to your two most recent entries. That behaviour exists because people correct typos far more often than they start again from scratch.
Which formulas do these calculators use?
Four equations drive everything here. None of them is clever and you can check any result on the back of an envelope.
Profit
Profit = Revenue − Cost. Every other figure is built from this one.
Margin
Margin % = (Profit ÷ Revenue) × 100. Revenue goes underneath, which caps margin at 100%.
Markup
Markup % = (Profit ÷ Cost) × 100. Cost goes underneath instead, so markup climbs without any ceiling as the price rises.
Selling price from a target margin
Price = Cost ÷ (1 − margin as a decimal). A £42 cost at a 40% target gives £42 ÷ 0.6 = £70. Add 40% to the cost instead and you get £58.80, a margin of 28.57%, and a range that earns a third less than you planned. Our margin formula page works through every rearrangement, including the awkward ones where all you hold is a profit and a markup.
How does the VAT option change the answer?
Tick the VAT box in the first calculator and it treats your revenue as a shelf price, divides by 1.20 at the standard rate, and works the margin out on what remains. A £120 price against a £70 cost reads as 41.67% with the tax left in. Take the £20 out and the honest figures are £100 of revenue, £30 of profit, and a 30% margin.
Almost twelve percentage points, on a retail line with nothing unusual about it. VAT-registered traders should never price from gross figures for that reason alone. The money you collect at the till is HMRC's, passing through. Our VAT and profit margin guide covers the reduced and zero rates, what changes if you are not registered, and how the flat rate scheme complicates all of it.
Which margin should you be looking at?
Depends how far down the profit and loss account you have got. Four figures matter to most UK businesses, and they answer questions that only look similar.
Gross margin
Revenue minus the cost of goods sold, as a percentage of revenue. It tells you whether the product makes money before any overhead touches it. Our gross margin calculator is the page for this, and the GP calculator gives the same thing in pounds.
Operating margin
Gross profit after rent, wages, software and everything else that keeps the lights on. It tells you whether the business makes money, which is a harder question than whether the product does. Our operating margin calculator has room for the extra line.
Net profit margin
Whatever survives interest and tax. Banks and buyers ask for this one, and our net profit margin calculator produces it from two inputs.
Contribution margin
Price minus variable cost per unit. The break-even calculator uses it to answer a different sort of question: how many units cover your fixed costs before a single penny becomes profit.
A shop can hold a comfortable 45% gross margin and still lose money all year if the operating margin has gone negative. Reading one figure and ignoring the others is how a business grows its turnover and shrinks its bank balance at the same time. Our gross profit and net profit comparison shows where each one lands on a set of accounts.
Where do UK traders usually get margin wrong?
The same handful of errors, over and over, and each one flatters the number rather than deflating it. That is what makes them so persistent.
- Adding the target margin to the cost. Adding 30% produces a 23.08% margin, not 30%. Divide by 0.7 instead, or use the target margin calculator further up.
- Leaving VAT in the selling price. Covered above, and it inflates every line on the range at once.
- Forgetting carriage and card fees. Delivery in, delivery out, and a 1.5% payment fee all belong in the true cost of a sale. On a £4 item they can be a quarter of it.
- Pricing on last year's cost. Suppliers move prices more often than retailers re-check them. A line that opened at 42% can drift to 31% with nobody making a decision.
It helps to know what normal looks like in your trade before you change anything. Our guide to what counts as a good margin gives typical UK ranges by sector, and how to calculate profit margin walks the method through on paper if you would rather not take a screen's word for it.
Questions people ask about margin
How do you work out margin from cost and selling price?
Is a 50% markup the same as a 50% margin?
Can margin ever be more than 100%?
Should I use the price including VAT when I calculate margin?
What is the difference between gross profit and gross margin?
Does this calculator send my figures anywhere?
Why does my accounting software show a different margin?
Calculators and guides on this site
- Profit margin calculatorCost and revenue in, margin out
- Gross margin calculatorRevenue against cost of goods sold
- GP calculatorGross profit in pounds
- Markup calculatorPercentage added to cost
- Net profit margin calculatorAfter every cost
- Operating margin calculatorAfter running costs
- Margin vs MarkupGuide
- How to Calculate Profit MarginGuide
- What Is a Good Profit MarginGuide
- The Margin FormulaGuide
- Gross Profit vs Net ProfitGuide
- VAT and Profit Margin in the UKGuide
- Margin to Markup ChartGuide