Markup and margin calculator

Markup is profit as a share of the cost; margin is profit as a share of the price. Enter any two of cost, price, markup and margin, and this calculator works out the other two and the profit, with the formulas in your numbers. The table below converts markups from 10% to 100% to margins.

Free, no sign-up. Runs in your browser. Updated December 1, 2026.

Your numbers

What it costs you.
What the customer pays, before sales tax.
Profit as a share of the cost.
Profit as a share of the price.

Result

Selling price
—
Cost
—
Markup
—
Margin
—
Profit
—

Nothing you type is sent to Nexfield or anyone else.

Markup to margin table

Markup and the margin it gives
Markup Margin
10% 9.1%
15% 13%
20% 16.7%
25% 20%
30% 23.1%
35% 25.9%
40% 28.6%
50% 33.3%
60% 37.5%
70% 41.2%
75% 42.9%
80% 44.4%
90% 47.4%
100% 50%
Margin and the markup it needs
Margin Markup
10% 11.1%
15% 17.6%
20% 25%
25% 33.3%
30% 42.9%
35% 53.8%
40% 66.7%
45% 81.8%
50% 100%
55% 122.2%
60% 150%
65% 185.7%
70% 233.3%
75% 300%
80% 400%
90% 900%

How to use it

  1. Type any two of the four numbers: cost, price, markup or margin.
  2. Read the other two and the profit in the result; the fields calculated are marked, and typing in one makes it a number you set.
  3. Check the formulas in your numbers under the result, or the table below for any markup from 10% to 100%.

How it works

Markup = (price − cost) ÷ cost; margin = (price − cost) ÷ price

Price from cost and markup = cost × (1 + markup); price from cost and margin = cost ÷ (1 − margin)

Cost from price and markup = price ÷ (1 + markup); cost from price and margin = price × (1 − margin)

Margin from markup = markup ÷ (1 + markup); markup from margin = margin ÷ (1 − margin)

Markup and margin alone do not give a price: one of the two numbers must be the cost or the price.

Report a wrong result

Worked example with made-up numbers

These numbers are invented to show the math. They are not an industry average.

Worked example: the inputs, then the results
Cost$80.00
Markup25%
Selling price$100.00
Margin20%
Profit$20.00

A Nexfield estimate can offer 2 or 3 price options, and an approved estimate becomes a job and an invoice with one click each. Estimates

Questions

What is the difference between markup and margin?

Markup is profit as a share of the cost; margin is profit as a share of the price. A part that costs $80 and sells for $100 has a 25% markup and a 20% margin.

How do I convert markup to margin?

Divide the markup by one plus the markup: a 50% markup is 0.5 ÷ 1.5, a 33.3% margin. The table on this page lists markups from 10% to 100%.

What markup gives a 50% margin?

A 100% markup: doubling the cost makes the profit half of the price.

Can a margin be 100% or more?

A margin of 100% means the cost is $0. From a cost and a margin the price is cost ÷ (1 − margin), so a margin of 100% or more gives no price; markup has no upper limit.

Which two numbers do I need?

Any two, as long as one is the cost or the price. Markup and margin together say the same thing twice, so they cannot give a price.

Is what I type sent anywhere?

No. The calculator runs in your browser, and nothing you type is sent to Nexfield. "Copy link to these numbers" puts them in the link itself, after the # sign.