Curb&Code

Markup vs margin calculator. Convert one to the other, and see why they differ.

Type a markup to get the margin it gives you, or a margin to get the markup you need. Below the calculator: a chart of common values and a plain explanation of why the two get mixed up on estimates.

Free, no signup. Updated December 1, 2026.

Markup to margin

Gross margin
20.00%

The math

  • Margin = markup ÷ (100 + markup) × 100 = 25 ÷ (100 + 25) × 100 = 20.00%
  • Example: a cost of $100.00 marked up 25% sells for $125.00, and $25.00 of that is 20.00% of the price.

Margin to markup

Markup on cost
25.00%

The math

  • Markup = margin ÷ (100 - margin) × 100 = 20 ÷ (100 - 20) × 100 = 25.00%
  • Example: to keep 20% of a $100.00 price, the cost is $80.00, so you mark that cost up 25.00%.

Runs in your browser. Nothing you type is saved or sent to us.

Why contractors mix them up. Same profit, different base.

An estimate starts from cost and adds a percentage on top. That percentage is markup: profit divided by cost. A profit and loss report starts from revenue and shows what is left. That share is margin: profit divided by price.

Both are percents of the same dollars of profit, so they sound interchangeable. They aren't. Margin is always the smaller number when there is a profit, and the gap grows as the percent grows: 10% markup is a 9.1% margin, but 100% markup is a 50% margin.

The costly version

You want a 20% margin, so you add 20% to cost. On $1,000,000 of cost you bill $1,200,000 and keep $200,000: a 16.7% margin.

The right markup for a 20% margin is 25%. Billing $1,250,000 on the same cost keeps $250,000. The mix-up cost $50,000 of gross profit.

Markup and margin chart. Common values.

Markup to margin
Markup on costGross margin
10%9.09%
15%13.04%
20%16.67%
25%20.00%
30%23.08%
35%25.93%
40%28.57%
50%33.33%
60%37.50%
75%42.86%
100%50.00%
Margin to markup
Gross marginMarkup on cost
10%11.11%
15%17.65%
20%25.00%
25%33.33%
30%42.86%
35%53.85%
40%66.67%
50%100.00%

Rounded to two decimals. Margin = markup ÷ (100 + markup) × 100; markup = margin ÷ (100 - margin) × 100.

How to use the markup vs margin calculator. 4 steps.

  1. 01

    Pick the direction

    Left side: you know the markup and want the margin. Right side: you know the margin you want and need the markup.

  2. 02

    Type the percent

    Enter it as a plain number, like 25 for 25%. The other number updates as you type, with the formula under it.

  3. 03

    Check the chart

    The tables below list common markups and margins side by side, so you can check a number without the calculator.

  4. 04

    Price the job

    Need the dollar price? The gross margin calculator takes your cost and target margin and gives the price to charge.

Markup and margin questions. Plain answers.

What is the difference between markup and margin?
Both are profit as a percent, on a different base. Markup is profit divided by cost. Margin is profit divided by price. A $100 cost sold for $125 has $25 of profit: a 25% markup ($25 ÷ $100) and a 20% margin ($25 ÷ $125).
How do I convert markup to margin?
Margin = markup ÷ (100 + markup) × 100. A 25% markup is 25 ÷ 125 × 100 = 20% margin. A 50% markup is a 33.3% margin, and a 100% markup is a 50% margin.
How do I convert margin to markup?
Markup = margin ÷ (100 - margin) × 100. A 20% margin needs a 20 ÷ 80 × 100 = 25% markup. A 30% margin needs a 42.86% markup, and a 50% margin needs a 100% markup.
Is a 20% markup the same as a 20% margin?
No. A 20% markup gives a 16.67% margin. To get a 20% margin you need a 25% markup. Markup and margin are only the same number at 0%.
Can markup be more than 100%?
Yes. A 150% markup means the price is 2.5 times the cost, which is a 60% margin. Margin can never go past 100%. It is exactly 100% only if the work cost nothing, and then markup has no meaning.
Which one should I use in my estimates?
Use whichever your team already uses, but label it every time. If your target is a margin, convert it to the markup you put on cost with this calculator, so the price comes out where you meant it to.
Is what I type saved?
No. The calculator runs in your browser and nothing you type is stored or sent to us.

More free tools for contractors.

  • Gross margin calculator

    Price and cost to gross profit, margin and markup. Or a target margin to the price to charge.

  • Labor burden calculator

    Wage, payroll taxes, workers' comp, benefits, paid time off and unbillable hours to a burdened cost per billable hour.

  • Purchase order generator

    Fill in a PO with agreed prices and terms, download a PDF or CSV. Blank templates too.

  • Change order generator

    Price a change with overhead, profit and days, see the revised contract sum, download a PDF.

Margin you priced can still leak at the supplier invoice. Send us a batch of supplier invoices with your POs and price agreements, and the supplier invoice variance report shows each overcharge on its own page.

See all free contractor calculators.