Business money
Margin versus markup: formulas and worked examples
Understand why £80 cost and £100 selling price mean 20% margin but 25% markup, with checked formulas, discounts and zero-value cases.
Margin and markup measure the same difference against different starting amounts. Margin divides by selling price. Markup divides by cost. Confusing them can leave a price lower than you intended.
For an item costing £80 and selling for £100, the difference is £20. That is a 20% margin because £20 is one fifth of £100. It is a 25% markup because £20 is one quarter of £80.
The three calculations
Let P be selling price and C the cost included in your calculation, both for the same item and on a consistent tax basis.
| Result | Formula | £80 cost, £100 price |
|---|---|---|
| Difference | P − C | £20 |
| Margin | (P − C) ÷ P × 100 | 20% |
| Markup | (P − C) ÷ C × 100 | 25% |
The nibusinessinfo explanation of profit margins supports the distinction between gross profit, sales revenue and net profit. Here, the arithmetic is deliberately shown in full so it can be checked independently.
The word cost needs a definition. If you enter only a purchase price, the £20 difference is before any costs you omitted. It does not automatically represent the profit left after delivery, payment fees, staff, premises and tax.
Why a 20% markup does not produce a 20% margin
These are fictional pricing calculations, not recommended prices.
Start with a cost of £80 and add 20% of that cost:
£80 × 1.20 = £96 selling price.
The difference is £16. Its margin is £16 ÷ £96 × 100 = 16.67%, rounded to two decimal places. The markup is 20%, but the margin is smaller because its denominator is larger.
To calculate a price corresponding to a target margin, express the margin as a decimal and rearrange the formula:
Price = cost ÷ (1 − target margin).
For £80 cost and a 20% margin: £80 ÷ 0.80 = £100. This relationship assumes a positive cost and a target margin below 100%, giving a positive selling price with that margin. It says nothing about whether customers will buy at that price.
| Cost | Selling price | Difference | Margin | Markup |
|---|---|---|---|---|
| £80 | £96 | £16 | 16.67% | 20% |
| £80 | £100 | £20 | 20% | 25% |
| £80 | £120 | £40 | 33.33% | 50% |
| £80 | £160 | £80 | 50% | 100% |
A discount changes more than the headline price
Suppose the £100 item is discounted by 10%, while its £80 cost stays unchanged. Its selling price becomes £90 and the difference falls from £20 to £10.
That 10% price reduction has halved the difference available before the other costs in this model. The new margin is £10 ÷ £90 × 100 = 11.11%, and the markup is £10 ÷ £80 × 100 = 12.5%.
This is why a discount should be calculated against the amounts left after the included cost, as well as against sales revenue. The example does not assume that sales volume will increase, or that additional orders would have no extra costs.
Keep the inputs comparable
Before using the margin and markup calculator, write down what each figure represents:
- Use the same quantity: one unit against one unit, or a whole batch against that whole batch.
- Use the actual selling price after the discount you are assessing.
- State which delivery, packaging, commission or other costs you have included.
- Keep tax treatment consistent. Do not mix an inclusive selling price with an exclusive cost without accounting for the difference.
- Do not subtract the same cost twice through both the entered cost and a later expense calculation.
The tool does not determine VAT treatment or recoverability. Resolve that from the transaction and your accounting position before interpreting a result.
What happens at zero or below cost?
| Inputs | What the arithmetic means |
|---|---|
| Cost £80; price £80 | Zero difference, 0% margin and 0% markup |
| Cost £80; price £60 | Difference −£20; margin −33.33%; markup −25% |
| Cost £0; price £100 | Difference £100 and margin 100%; markup is undefined because division by zero is impossible |
| Cost £80; price £0 | Difference −£80 and markup −100%; margin is undefined |
| Both inputs £0 | Zero difference; both percentages are undefined |
A percentage without its denominator is incomplete information. A negative result describes the arithmetic under the entered assumptions; it does not identify every reason the transaction may have been made.
Move from one sale to the business
The fixed and variable costs guidance explains how sales contribute towards costs that do not change with each unit. Use break-even explained to connect a per-unit contribution with a defined period's fixed costs.
If a supplier has raised prices, first recalculate with the new cost. The inflation and business costs guide explains why a national inflation headline cannot supply that product-specific number for you.
Follow the evidence
Sources and further reading
- nibusinessinfo: calculating profit margins Checked 3 November 2026
- nibusinessinfo: fixed and variable costs Checked 3 November 2026