Markup & Margin Calculator

Set retail prices from cost. Enter any two of cost / markup % / margin % / selling price — get the other two plus profit. Browser-only.

What is this for?

You buy something for $40 and sell it for $60. Is that a 50% markup or a 33% margin? Both — they're describing the same trade from different sides. Markup is the increase expressed as a percentage of cost ($20 extra on $40 cost = 50% markup). Margin is the profit expressed as a percentage of revenue ($20 profit on $60 sale = 33.3% margin). They are not interchangeable, and confusing them is one of the most common mistakes in small-business pricing — a 30% markup is only a 23% margin, which means budgets built on "we'll keep 30%" fall short by a quarter.

This tool keeps cost, markup, margin and selling price in sync. Type in any field and the others recalculate, so you can do the price-setting math three ways: pick a markup (typical for trade-in / wholesale-to-retail flows), pick a margin (typical for SaaS / services where the target is revenue-side), or pick a final selling price and see what margin it implies.

The formulas

Useful conversion table

MarkupMarginMultiplier
20%16.7%×1.20
25%20%×1.25
33.3%25%×1.33
50%33.3%×1.50
66.7%40%×1.67
100%50%×2.00
150%60%×2.50
200%66.7%×3.00
300%75%×4.00

Common gotchas

Pairs with