Margin Calculator
Solve margin and markup from cost and price, in either direction. Markup stays on this page.
Smart Tips
• Margin and markup use the same profit and different denominators. 37.5% margin is 60% markup on a $50 cost and an $80 price.
• Switch the mode to start from cost and markup, or from price and margin. You do not need another page.
• A price below cost is a negative margin and a negative markup. That is allowed when both amounts stay above zero.
• A margin of 100% would require a cost of zero. The page rejects it instead of dividing by zero.
The Formula
Same profit, divided by cost
Also cost × (1 + markup)
Also price ÷ (1 + markup)
Shown when you enter both amounts
A $50 cost and an $80 price produce $30 of profit, a 37.5% margin, and a 60% markup. No price list is stored. The two ratios are the definitions used on this page.
Key Insights
One page for both
Markup is a mode in the first menu. It is not a second address.
Price is the margin base
A larger price makes the margin percent smaller than the markup percent, for the same profit.
Cost is the markup base
Doubling a $50 cost with a 100% markup is a $100 price, which is only a 50% margin.
Zero cost has no markup
Markup divides by cost. A zero cost is rejected.
The same $50 cost and $80 price
| Measure | Result |
|---|---|
| Profit | $30 |
| Margin | 30 ÷ 80 = 37.5% |
| Markup | 30 ÷ 50 = 60% |
| Price from a 60% markup | 50 × 1.60 = $80 |
| Cost from a 37.5% margin | 80 × (1 − 0.375) = $50 |
Frequently Asked Questions
Note:This is an estimate of the arithmetic, not pricing advice. It ignores shipping, tax, discounts, and overhead. A selling price at or below zero, a margin of 100% or more, and a markup of −100% or worse are rejected because the ratio is no longer defined.