Margin and markup both measure profit, but they divide by different bases. Use this calculator to turn cost and price into both percentages, set a target margin or markup to find price, or recover cost from a priced item. Optional quantity, discount, and fixed-cost fields help you see totals and break-even units. All money math uses integer minor units for the currency you pick. Nothing is uploaded.
Profit margin = (price − cost) ÷ price × 100. The denominator is selling price.
Markup = (price − cost) ÷ cost × 100. The denominator is cost.
Price from margin = cost ÷ (1 − margin ÷ 100). Margin must stay below 100%.
Price from markup = cost × (1 + markup ÷ 100).
Cost from margin = price × (1 − margin ÷ 100).
Money is stored as integer minor units (for example cents) using each currency’s ISO fraction digits from Intl, then rounded only when converting back for display.
margin=(P−C)/P×100; markup=(P−C)/C×100; P=C/(1−m/100); P=C×(1+k/100)
A product costs 40 and sells for 50 in your chosen currency.
Profit is 10. Margin is 10 ÷ 50 × 100 = 20%. Markup is 10 ÷ 40 × 100 = 25%.
To hit a 20% margin on a 40 cost, price = 40 ÷ (1 − 0.20) = 50. The same 25% markup also yields 50.
If you sell 3 units, revenue is 150, total cost 120, and total profit 30. A 10% discount on the 50 price leaves 45 and a new margin of about 11.11%.
Both use the same profit amount. Margin divides by price; markup divides by cost. A 20% margin equals a 25% markup when cost is 40 and price is 50.
Price from margin divides by (1 − margin/100). At 100% that denominator is zero, and above 100% the price would not make sense for a normal sale.
No. It only chooses the Intl symbol and minor-unit scale (for example cents versus whole VND). Enter amounts already in that currency.
Break-even units = fixed costs ÷ profit per unit, when profit per unit is positive. It is an estimate for planning, not accounting advice.
Yes. Calculations run in your browser and are not stored on a server.
This tool provides estimates only and is not financial, medical, or legal advice.
Symbol and rounding only. No conversion between currencies.
Enter cost and selling price to see margin and markup together.
margin = (price − cost) ÷ price × 100; markup = (price − cost) ÷ cost × 100
Profit margin
Margin divides profit by price. Markup divides the same profit by cost. Both appear so you can compare them directly.
Margin
20%
Profit as a share of selling price.
Markup
25%
Profit as a share of cost.
| Cost | $40.00 |
|---|---|
| Selling price | $50.00 |
| Profit | $10.00 |
margin = (50 − 40) ÷ 50 × 100; markup = (50 − 40) ÷ 40 × 100