About this tool
Markup & Margin Calculator is a free, in-browser tool that untangles the two numbers people constantly confuse: markup and margin. Enter a cost and any one of a selling price, a target margin % or a target markup %, and it solves for the rest — locally, with nothing uploaded.
Markup and margin measure profit against different bases. Markup % is profit ÷ cost × 100; margin % is profit ÷ price × 100. From cost and price, profit = price − cost and both percentages follow. From a target margin, price = cost ÷ (1 − margin/100) and markup = margin ÷ (100 − margin) × 100. From a target markup, price = cost × (1 + markup/100) and margin = markup ÷ (100 + markup) × 100. A 50% markup is only a 33.3% margin — the tool makes the difference explicit.
Use it to set retail prices, hit a required margin, or back out the margin a supplier's markup implies. Switch modes to work from whichever number you actually have.
Frequently asked questions
What is the difference between markup and margin?
Both describe profit, but against different bases. Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price. Because price is larger than cost, margin is always the smaller number — a 50% markup equals a 33.3% margin.
How do I convert a markup to a margin?
Margin % = markup ÷ (100 + markup) × 100, and markup % = margin ÷ (100 − margin) × 100. Choose the matching mode and the tool does the conversion for you, also returning the selling price and profit per unit.
Why can't margin be 100% or more?
Margin is profit ÷ price, so reaching 100% would mean the cost is zero, and above 100% is impossible for a real product. In from-margin mode the tool rejects a margin of 100% or higher because the implied price would be infinite or negative.
Are my figures kept private?
Yes. Costs, prices and percentages are computed in your browser and never leave your device; the tool runs offline.
More tools