Markup Calculator
Markup is the percentage added on top of the cost to reach a selling price. This calculator works in all three directions: markup from a cost and price, the price that gives a target markup, and the price that gives a target margin — so a pricing decision made in one language can be checked in the other.
All arithmetic is exact to the cent and runs in your browser.
What the item costs you.
What the customer pays, before tax.
Selling price
100.00
Cost: 80.00 · Profit: 20.00.
Markup / margin
25% / 20%
Markup is measured on the cost; margin on the selling price. They are never the same number on a profitable sale.
How it is worked out
- Profit = revenue − cost = 100.00 − 80.00 = 20.00.
- Margin = profit ÷ revenue × 100 = 20.00 ÷ 100.00 × 100 = 20%. Margin always uses the selling price as its base.
- Markup = profit ÷ cost × 100 = 20.00 ÷ 80.00 × 100 = 25%. Markup always uses the cost as its base, which is why it is larger than the margin on the same sale.
Embed this calculator on your website →
Please note: Estimates for planning only — not financial, tax, or legal advice. Check important figures with a qualified professional. Terms of Service
The formula
markup % = (price − cost) ÷ cost × 100
price from markup = cost × (1 + markup ÷ 100)
price from margin = cost ÷ (1 − margin ÷ 100)
- cost, price — what the item costs you and what the customer pays, tax excluded.
- the link between them — margin = markup ÷ (100 + markup) × 100, so each can be converted to the other exactly.
Worked example: cost 80 with a 25% markup → 80 × 1.25 = 100.00, and the margin on that price is 20 ÷ 100 = 20%.
How it works
Price from markup: price = cost × (1 + markup ÷ 100). A 100% markup exactly doubles the price.
Price from margin: price = cost ÷ (1 − margin ÷ 100). That division is why margin targets climb steeply: a 50% margin already needs the price to be double the cost, and a 100% margin has no finite price at all — the calculator says so rather than inventing one.
The conversion to remember: markup and margin are linked — margin = markup ÷ (100 + markup) × 100. So 25% markup is a 20% margin, and a 100% markup is a 50% margin. Mixing the two up in a price list quietly gives away profit.
Examples
- Cost 80 with 25% markup → price 100.00, and the margin on that price is 20%.
- Cost 60 with a 40% margin target → price 100.00, which is a markup of 66.666667%.
- Cost 100 with a −25% margin (selling below cost) → price 80.00.
Frequently asked questions
Is a 50% markup the same as a 50% margin?
No — this is the classic pricing mistake. A 50% markup on a cost of 100 gives a price of 150, and the profit of 50 is only 33.33% of that price: a 33.33% margin. For a true 50% margin the price must be 200.
Why can't I set a 100% margin?
A 100% margin would mean the price is all profit and the cost is recovered from nothing. The formula divides by (1 − margin), which becomes zero at 100% — there is no finite price, so the calculator rejects it.
What markup should I use?
There is no universal right markup — it follows from the margin your business needs, your costs beyond the item itself (rent, staff, delivery, returns), and what the market will pay. Work out the margin you need first, then convert it to a markup with this calculator.
How do I get a selling price from a cost and a markup?
Multiply the cost by 1 plus the markup as a decimal: a cost of 80 with a 25% markup gives 80 × 1.25 = 100. The calculator runs the same step in reverse too — enter a price and a cost and it reports the markup that connects them.
I know the margin I want. What markup gives me that?
Markup and margin are linked: markup = margin ÷ (1 − margin). A 20% margin needs a 25% markup (0.20 ÷ 0.80), and a 25% margin needs a 33.3% markup. The numbers are never equal except at zero, which is why mixing them up quietly under-prices a product.
Related calculators
Profit Margin Calculator
LiveFind gross or net margin from revenue and cost, with the formula and difference from markup explained.
Discount Calculator
LiveCalculate sale prices, stacked discounts, savings, and optional tax-inclusive totals.
Sales Tax and VAT Calculator
LiveAdd or remove sales tax or VAT and separate net, tax, and gross amounts.

