Profit Margin Calculator
Compute margin and markup — or the price a target margin requires.
How the calculator works
Profit is revenue minus cost. Margin divides that profit by revenue — the share of every sales dollar that remains — while markup divides it by cost — the multiplier applied on top of what you paid. The two are not interchangeable: a 40% margin equals a 66.7% markup, and quoting one when you mean the other is a classic pricing error that can silently halve profitability. The price mode inverts the margin formula: selling price = cost ÷ (1 − target margin), so a $60 product at a 40% target margin must sell for $100. All three figures appear together so the relationship stays visible.
Formula
Markup = (Revenue − Cost) ÷ Cost × 100
Price for margin = Cost ÷ (1 − margin)
Where:
- Cost — what one unit costs you (goods, materials, direct labor)
- Revenue — the selling price of one unit
- margin — target margin as a decimal (40% = 0.40)
Example
A product costs $60 and sells for $100: profit is $40 per unit, margin is 40 ÷ 100 = 40%, and markup is 40 ÷ 60 ≈ 66.7% — the same deal described two ways. Working backwards, a $60 cost with a 50% target margin demands a price of 60 ÷ 0.50 = $120; settling for $90 would deliver only a 33.3% margin. A competitor selling at $85 operates on a 29.4% margin — viable or not depending entirely on their cost structure.