Skip to content
Tejo Tools
Menu
Finance toolsProcessed on your device

Margin calculator

Margin and markup from a cost and a price, or the price from either one. Everything is calculated on your device.

Calculate
Result

Your result will appear here.

What it does

The margin calculator works with a cost and a selling price:

The result updates as you type.

How to use it

  1. Pick From price, From margin or From markup.
  2. Type the cost.
  3. Type the selling price, the margin or the markup, whichever the form shows.
  4. Select Copy result to put the figures on your clipboard.

The calculator remembers your choice and numbers on this device, so they’re there the next time you open the page.

How it’s calculated

With the cost c and the selling price P:

Margin = (P − c) ÷ P × 100

Markup = (P − c) ÷ c × 100

For a cost of 60 and a price of 100, Margin = (100 − 60) ÷ 100 × 100 = 40% and Markup = (100 − 60) ÷ 60 × 100 = 66.67%. From a margin m or a markup k in percent, the selling price is:

Price = c ÷ (1 − m ÷ 100)

Price = c × (1 + k ÷ 100)

The price is worked out exactly and rounded half up to whole cents once; the margin and markup shown are then worked out from that price. Percentages are rounded to 2 decimals, half away from zero, so a loss rounds the same way as the same profit.

Good to know

Privacy

Everything is calculated in your browser, on your device. Nothing you type is uploaded. Only your choice and numbers are kept, in this browser’s storage, so the page can show them again.

Frequently asked questions

What's the difference between margin and markup?

Both compare the profit with a price, but against different figures. Margin is the profit as a share of the selling price; markup is the profit as a share of the cost. Something that costs 60 and sells for 100 makes 40.00 profit: a 40% margin (40 of 100) and a 66.67% markup (40 of 60). Margin is never larger than the markup, and it stays below 100%.

How do I turn a margin into a markup, or a markup into a margin?

With both as fractions, markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup). A 40% margin is 0.4 ÷ 0.6, a 66.67% markup; a 25% markup is 0.25 ÷ 1.25, a 20% margin. You can also pick From margin or From markup here: the result shows the selling price and the other percentage.

What happens when the selling price is below the cost?

The sale makes a loss, and the calculator shows it as a negative profit, margin and markup. A cost of 60 and a price of 55 give a profit of −5.00, a margin of −9.09% and a markup of −8.33%.

Why can't the margin be 100%?

A 100% margin would mean the cost is 0% of the price, so no price is large enough. The Margin field takes 0% to 99.99%. Markup has no such limit, and goes up to 10,000% here.