Practical business tools
Margin and markup calculator
Calculate the difference, margin and markup from cost and selling price, with clear formulas, a worked example and local-only inputs.
Compare margin and markup
Start with the fictional example, or enter your own figures.
Enter £0–£1 billion, with up to two decimal places. A result below zero is shown as a loss against the cost you entered.
Your calculation
£100.00 − £80.00
Difference ÷ selling price × 100
Difference ÷ cost × 100
The £20 difference is 20% of the £100 selling price, but 25% of the £80 cost. Other business costs are not deducted.
Use the calculator to express the difference between a selling price and a cost in two ways. Margin compares that difference with the selling price. Markup compares it with the cost. The starting figures are an invented example, not a recommended price or a benchmark.
Set up your comparison
Enter a cost and selling price for the same unit. A unit might be one product, one hour or one complete job, provided both figures describe the same thing. Do not compare the price of a whole box with the cost of one item inside it.
Decide which costs you are including before you calculate. If you enter only a purchase price, the difference does not yet allow for packaging, payment fees, delivery, overheads or any other omitted cost. The calculator does not decide how those items should be treated in your accounts.
Keep the VAT basis consistent. Do not mix an inclusive selling price with an exclusive cost and treat the result as a meaningful margin. Which amounts belong in a business calculation depends on the transaction and the business’s VAT position; this tool makes no automatic tax adjustment.
Change either input to update the result, or select Calculate. Use Reset example to return to £80 cost and £100 selling price. It replaces your current figures.
Read the three results
| Result | Calculation | Fictional £80 cost / £100 sale |
|---|---|---|
| Difference | Selling price − cost | £20.00 |
| Margin | Difference ÷ selling price × 100 | 20.00% |
| Markup | Difference ÷ cost × 100 | 25.00% |
The £20 is the same in both percentage calculations. Only the denominator changes. Neither result says that £20 is available as net profit: the calculator knows only the two amounts you entered.
Consider another fictional transaction with a £60 cost and £90 selling price. Its £30 difference is 33.33% of the selling price and 50% of the cost. Applying a 50% markup therefore does not create a 50% margin. Percentages are shown to two decimal places; calculations use the entered amounts before display rounding.
For a fuller explanation, including reversing a target percentage into a price, read margin versus markup.
Understand zeroes and losses
A zero selling price has no usable margin denominator, so the tool reports Not defined for margin. A zero cost similarly makes markup undefined. It does not display an infinite percentage. When both inputs are zero, the cash difference is zero and both percentages are undefined.
A selling price below the entered cost produces a negative difference. For example, £80 cost and £60 sale give −£20, a −33.33% margin and a −25% markup. The result is retained, with a written explanation, rather than being silently turned into zero.
Blank entries, negative cost or price, more than two decimal places and amounts above £1 billion need correction. A blank is not treated as zero. If an entry is invalid, the previous figures are cleared so they cannot be mistaken for an answer to the new input.
Keep a useful record
Select Print result to use your browser’s print dialogue, which may also offer saving as a PDF. Printed output includes the inputs, results and explanation. No account is needed. The page itself does not save the figures, send them to a server, add them to the address, or use browser storage. Browser features such as restoring a tab may behave separately; see privacy information.
A price comparison does not establish when money will arrive. If timing is your next question, use the cash-flow worksheet and the cash flow versus profit guide.
Follow the evidence
Sources and further reading
- nibusinessinfo: Calculate your profit margins Checked 3 November 2026