How it works: the formulas
Markup is profit as a share of cost. Margin is profit as a share of the sell price. Same dollars of profit, different divisor, so the margin % is always smaller than the markup %.
Gross profit = Sell price - Cost Markup = Gross profit / Cost Margin = Gross profit / Sell price Sell price from markup = Cost x (1 + Markup) Sell price from margin = Cost / (1 - Margin) Margin from markup = Markup / (1 + Markup) Markup from margin = Margin / (1 - Margin)
Percentages go into the formulas as decimals (20% = 0.20). The calculator rounds money to the cent and percentages to two decimals.
- Margin must be under 100%. At 100% the divisor (1 - Margin) is zero, so there's no price that works.
- Markup has no upper limit. A 100% markup doubles the cost and gives a 50% margin.
- Cost of $0: markup can't be worked out (it would divide by zero). Margin is 100% of whatever you charge.
The markup vs margin guide goes deeper: why the mix-up costs subs money, a printable conversion table and habits that keep a bid straight.
Worked example (fictional)
A made-up example with round numbers, not a pricing recommendation. A small shop's costs on a change order come to $1,250, and the owner wants a 20% margin.
| Step | Math | Result |
|---|---|---|
| Sell price for a 20% margin | $1,250 / (1 - 0.20) | $1,562.50 |
| Gross profit | $1,562.50 - $1,250 | $312.50 |
| Markup that gets you there | $312.50 / $1,250 | 25.00% |
| Check: margin | $312.50 / $1,562.50 | 20.00% |
| The mistake: 20% markup instead | $1,250 x 1.20 = $1,500; profit $250 / $1,500 | 16.67% margin |
Pricing the 20% as a markup leaves $62.50 on the table on this one change order. Put $1,250, "Margin %" and 20 into the calculator and you'll see the same numbers.
Questions
- What margin or markup should I use?
- This page doesn't recommend one. The right number depends on your overhead, risk, the market and the job. Work out what your overhead and profit goal need, then use the calculator to turn that into a price.
- Does the cost include overhead?
- Whatever you put in "Your cost" is what the markup or margin is applied to. Some shops add overhead into cost first, then apply a profit margin; others cover overhead and profit with one markup. Either works as long as you do it the same way every time.
- Why is margin always lower than markup?
- Both use the same profit dollars, but margin divides by the bigger number (the sell price). A 25% markup is a 20% margin; a 50% markup is a 33.33% margin.
- Can I enter a sell price and see what margin it gives?
- Yes. Choose "Sell price ($)" under "I know the" and type the price. If the price is below cost, the result turns orange and the profit shows as negative.
- Is anything I type saved or sent?
- No. The math runs in your browser and nothing is sent or stored. Like every page on this site, the visit itself is counted with cookieless Cloudflare Web Analytics.