Margin and Markup Calculator
Given any two of cost, selling price, margin and markup, find the rest. Converts margin to markup too.
What you enter is calculated only in this browser. It is not sent to a server or stored. Results are for reference and are not financial, tax or legal advice.
For reference only. The words margin and markup are defined differently in different industries and books; check the definitions this site uses.
How to use it
- Choose which values you know (for example cost and price, cost and margin, or margin only).
- Fill in only the fields that combination needs; the other fields are ignored.
- The first result line is "margin / markup"; below it are the cost, price and profit with both percentages.
Formulas
Profit = price - cost. Margin m = profit / price and markup k = profit / cost. From cost and margin: price = cost / (1 - m). From cost and markup: price = cost × (1 + k). From price and margin: cost = price × (1 - m). From price and markup: cost = price / (1 + k). Conversions: k = m / (1 - m) and m = k / (1 + k).
Worked examples
Cost 60 with a 40% margin gives a price of 60 / 0.6 = 100 and a markup of 0.4 / 0.6 = 66.6667%. Cost 80 with a 25% markup gives a price of 100 and a margin of 0.25 / 1.25 = 20%. These are reference calculations from fixed definitions; real prices also involve fees, taxes and discounts that are not included here.
FAQ
What is the difference between margin and markup?
This site defines margin = (price - cost) / price and markup = (price - cost) / cost. The same profit is divided by different amounts, so for a non-negative profit the markup is at least as large as the margin. With cost 75 and price 100 the profit is 25: a 25% margin and a 33.3333...% markup. Books and industries sometimes use these words differently.
What markup equals a 25% margin?
Markup = margin / (1 - margin), so 0.25 / 0.75 = 33.3333...%. In the other direction a 100% markup is a 50% margin. Choose "margin only" or "markup only" to convert without any amounts.
Why is there no option with both margin and markup?
Each of the two percentages determines the other, so giving both says nothing about the cost or the price. To find amounts you need the cost or the price.
Can I enter losses or large values?
If the price is below the cost, profit and both percentages come out negative (cost 100, price 80 gives a -25% margin and a -20% markup). Margin accepts -1000% up to but not including 100%, and markup accepts above -100% up to 100000%. These are limits set by this site; a 100% margin cannot be calculated.
Sources and check date
This calculator uses plain mathematical definitions and does not rely on an outside reference document.
Date we opened the official documents ourselves: 2026-11-11. Rates, limits and rules can change, so read the original again before an important decision.