Margin Calculator
Determine profit margin, markup, and selling price from any combination of revenue, cost, or markup percentage.
Enter your values above to see the results.
Tips & Notes
- ✓Use the formula Price = Cost / (1 - Margin) when targeting a specific margin — do not use Price = Cost x (1 + Margin), which gives markup, not margin.
- ✓Quick margin check: if profit is one-third of price, margin is 33.3%; if profit is half the price, margin is 50%.
- ✓Always verify pricing in both markup and margin terms — a 50% markup produces 33.3% margin, not 50%; using the wrong figure leads to consistent underpricing.
- ✓When your cost increases, recalculate price immediately to maintain target margin — pricing based on old cost data erodes margin invisibly.
- ✓Service businesses with negligible direct cost can achieve 90%+ gross margins — but ensure operating expenses are fully captured in overhead allocation before declaring high margins.
- ✓Margin on a product mix is the weighted average of individual product margins — high-margin product mix shifts improve overall profitability without changing any individual price.
Common Mistakes
- ✗Using markup percentage when margin percentage is intended — a target of 30% margin achieved through 30% markup actually produces only 23.1% margin.
- ✗Not recalculating price when cost changes — a 10% supplier price increase with no price adjustment reduces a 40% margin to approximately 33% margin.
- ✗Calculating margin on cost instead of revenue — margin is always (price - cost) / price, not (price - cost) / cost which is markup.
- ✗Treating gross margin as net margin — gross margin does not include operating expenses, interest, or taxes; net margin is typically 10-30% of gross margin.
- ✗Setting prices based on competitor comparison without knowing your own cost structure — matching a competitor price that produces 40% margin for them may produce 15% for you.
- ✗Ignoring variable costs that scale with sales volume — shipping, payment processing (typically 2-3% of revenue), and returns all reduce effective margin below the calculated rate.
Margin Calculator Overview
A margin calculator solves for the missing variable in the pricing relationship between cost, price, markup, and margin. Given any two of these variables, it calculates the remaining values and displays the complete picture — profit margin, markup percentage, dollar profit, and selling price — together in one view.
This makes it easy to verify pricing decisions, reverse-engineer competitor pricing, or confirm that a desired margin is being achieved at any cost level.
What each field means:
- Mode — choose which two values you know: revenue and cost (to find margin and markup), or cost and markup (to find selling price and margin)
- Revenue — the selling price; what the customer pays
- Cost — the cost of the product or service being sold; the base for markup calculation
- Markup % — the percentage added to cost to arrive at selling price; used when you know cost and markup but need price and margin
What your results mean:
- Profit Margin — profit as a percentage of selling price; (revenue - cost) / revenue
- Markup — profit as a percentage of cost; (revenue - cost) / cost
- Profit — the dollar amount earned above cost
- Selling Price — the price to charge when solving from cost and markup
Example — Revenue $85, Cost $55 (margin and markup mode):
Revenue: $85.00 Cost: $55.00 Profit: $30.00 Profit margin: $30 / $85 = 35.3% Markup: $30 / $55 = 54.5% Interpretation: this product is priced at a 54.5% markup on cost and generates a 35.3% margin on every sale.
EX: Same profit expressed as markup and margin Cost $40, price $60: profit $20 Markup: $20 / $40 = 50% Margin: $20 / $60 = 33.3% Cost $40, price $80: profit $40 Markup: $40 / $40 = 100% Margin: $40 / $80 = 50% Doubling the price from $60 to $80 doubles the markup from 50% to 100% but only increases margin from 33.3% to 50%.
Margin and markup for common price-to-cost ratios:
| Cost | Price | Profit Margin | Markup |
|---|---|---|---|
| $50 | $65 | 23.1% | 30% |
| $50 | $75 | 33.3% | 50% |
| $50 | $100 | 50.0% | 100% |
| $50 | $150 | 66.7% | 200% |
Selling price needed to achieve target margin at various costs:
| Cost | 25% margin | 40% margin | 50% margin |
|---|---|---|---|
| $30 | $40.00 | $50.00 | $60.00 |
| $75 | $100.00 | $125.00 | $150.00 |
| $200 | $266.67 | $333.33 | $400.00 |
The selling price formula for a target margin is: Price = Cost / (1 - Margin). This formula solves the circular reference in margin calculation — since margin is expressed as a percentage of the selling price, which is what you are trying to find. For a 40% margin on a $75 cost: Price = $75 / (1 - 0.40) = $75 / 0.60 = $125. The equivalent markup is 66.7%. Many businesses use the simpler markup formula (Price = Cost x (1 + Markup)) but then describe results in margin terms, which requires the conversion formulas to avoid systematic pricing errors.