Margin and markup use the same unit profit but different denominators.
Margin = (price − cost) ÷ priceMarkup = (price − cost) ÷ cost
A product costing $60 and selling for $100 has $40 profit. Its markup is 66.67%, while its gross margin is 40%.
Use the Profit Margin Calculator and Markup Calculator with the same cost and price to verify the difference.
The denominator changes the percentage
| Measure | Numerator | Denominator | Main use |
|---|---|---|---|
| Gross profit | Price minus product cost | None | Currency amount remaining after product cost |
| Gross margin | Price minus product cost | Selling price | Share of revenue remaining |
| Markup | Price minus product cost | Product cost | Increase applied to cost to reach price |
Margin and markup are not two labels for the same percentage. They share the same gross-profit numerator but compare it with different bases.
Convert between margin and markup
Use decimal rates in these formulas:
Margin rate = markup rate ÷ (1 + markup rate)
Markup rate = margin rate ÷ (1 - margin rate)
For a 50% markup:
0.50 ÷ 1.50 = 33.33% margin
For a 40% margin:
0.40 ÷ 0.60 = 66.67% markup
| Markup | Equivalent margin |
|---|---|
| 20% | 16.67% |
| 25% | 20% |
| 50% | 33.33% |
| 66.67% | 40% |
| 100% | 50% |
| 200% | 66.67% |
Why the distinction matters
Applying a desired 40% margin as a 40% markup would price the item at $84, producing only a 28.57% margin. That error can make pricing rules and break-even advertising targets materially wrong.
The incorrect price is $60 × 1.40 = $84.
Actual margin is ($84 - $60) ÷ $84 = 28.57%.
To set a price for a 40% target margin:
Price = cost ÷ (1 - target margin rate)
$60 ÷ (1 - 0.40) = $100
The equivalent markup is 66.67%, not 40%.
Cost scope changes the result
Product gross margin usually deducts cost of goods sold. A pricing decision may also need payment fees, packaging, fulfillment, shipping subsidy, returns and other variable costs.
Suppose the $60 product also creates $8 fulfillment and payment cost. At a $100 price:
| Scope | Cost | Amount remaining | Margin on price |
|---|---|---|---|
| Product cost only | $60 | $40 | 40% |
| Product plus variable fulfillment | $68 | $32 | 32% |
Both percentages are correct if labeled. The 32% contribution margin is the more relevant input when advertising must recover both cost layers.
Connect margin with advertising break-even
The simplified Break-even ROAS Calculator uses the margin available before advertising.
At 40% margin, break-even ROAS is 1 ÷ 0.40 = 2.5×.
At 32% contribution margin, break-even ROAS is 1 ÷ 0.32 = 3.125×.
Using markup in that formula would produce a false threshold because markup uses cost as its denominator rather than revenue.
Price and discount scenario
| Scenario | Price | Cost | Gross profit | Margin | Markup |
|---|---|---|---|---|---|
| Base | $100 | $60 | $40 | 40% | 66.67% |
| 10% discount | $90 | $60 | $30 | 33.33% | 50% |
| Cost rises $5 | $100 | $65 | $35 | 35% | 53.85% |
| Price and cost rise | $110 | $65 | $45 | 40.91% | 69.23% |
The table shows why a 10% price discount reduces margin by more than ten percentage points from the original 40% to 33.33%.
Margin does not cover fixed costs by itself
Gross margin and contribution margin describe what remains before the fixed costs assigned outside the unit calculation. A 40% margin can coexist with an operating loss when sales volume is too low or fixed costs are too high.
Translate unit contribution into required volume with the break-even analysis guide. If the business needs a target profit rather than zero operating income, add that target to fixed costs before dividing by unit contribution.
For a pricing decision, test both the unit margin and the number of units the market would need to buy. A higher calculated margin does not guarantee higher total contribution when the price change reduces demand.
Decision sequence
- Define the cost layer used in pricing.
- Choose whether the target is margin on revenue or markup on cost.
- Convert the target with the correct formula.
- Test discounts, fees and cost changes.
- Reconcile the unit result with period contribution and fixed costs.
- Record which costs are excluded.
Common mistakes
- Entering a target margin as a markup percentage.
- Treating gross margin and contribution margin as identical.
- Dividing by cost when reporting margin.
- Dividing by price when reporting markup.
- Ignoring discounts, returns and variable fulfillment costs.
- Using markup to estimate break-even ROAS.
Use markup when building price from cost. Use margin when assessing how much revenue remains after cost. Always state which costs are included.
Sources
- Shopify: gross margin and gross profit; Shopify; accessed Jul 13, 2026
- OpenStax: contribution margin and cost definitions; OpenStax; accessed Jul 13, 2026
This guide is educational and does not provide financial, accounting, tax or legal advice.