Quick business math: margin, markup, and selling price.
The Margin / Markup Calculator helps you price products by converting between cost, selling price, profit margin, and markup.
It’s useful for retail pricing, e‑commerce, invoicing, and ensuring your selling price matches your target margin.
Margin = profit ÷ selling price. Markup = profit ÷ cost.
Example: cost 60, sell 100 → profit 40 → margin 40%, markup 66.67%.
Markup is based on cost, margin is based on selling price. If cost is 100 with a 50% markup, selling price is 150. Profit is 50, so margin is 50 ÷ 150 = 33.33%.
Use: markup% = margin% ÷ (100 − margin%) × 100.
Example: 30% margin → 30 ÷ 70 × 100 ≈ 42.86% markup.
Yes. If selling price is below cost, profit is negative, so margin and markup become negative. This can happen with clearance sales or loss leaders.
That’s up to your pricing model. For a realistic margin, your cost should include whatever you consider “true cost” (COGS, packaging, platform fees, shipping subsidies, etc.).
Selling price = cost ÷ (1 − margin/100).
If margin is 100%, the denominator becomes 0, which would imply an infinite price-so it’s not valid.
Usually, margin/markup are calculated on the pre‑tax price (the tax is collected and passed through). If your displayed price is tax‑inclusive, you can remove tax first using the Sales Tax / VAT calculator.
When margin is high, the (1 − margin) term is small, so selling price becomes very sensitive. A 1–2% change in desired margin can move price noticeably.