Short answer
Markup divides gross profit by cost ((Price − Cost) / Cost), while gross margin divides gross profit by selling price ((Price − Cost) / Price). A 25% markup equals a 20% margin.
Scope and assumptions
Covers pure arithmetic relationships between cost and selling price; does not prescribe accounting cost categories, tax treatment, or commercial pricing advice.
Short answer: Markup measures profit as a share of cost (
(Price − Cost) / Cost × 100), whereas gross margin measures profit as a share of selling price ((Price − Cost) / Price × 100). On an item costing 80 and selling for 100, the20profit is a 25% markup but a 20% gross margin.
The same profit produces two different percentages
Confusing markup and margin is one of the costliest pricing mistakes in retail and freelancing because margin is always smaller than markup whenever profit is positive:
- Markup:
(100 − 80) / 80 × 100 = 20 / 80 × 100 = 25%. - Gross margin:
(100 − 80) / 100 × 100 = 20 / 100 × 100 = 20%.
To verify markup in the Percentage calculator, use share mode with 20 as a share of 80. To verify gross margin, enter 20 as a share of 100.
Markup-to-margin quick conversion table
Use these exact conversion identities: Margin = Markup / (1 + Markup) and Markup = Margin / (1 − Margin) (with both written as decimals). For an 80 unit cost:
| Target markup (on cost) | Equivalent gross margin (on price) | Selling price for cost = 80 | Gross profit |
|---|---|---|---|
| 10.0% | 9.09% | 88.00 | 8.00 |
| 25.0% | 20.00% | 100.00 | 20.00 |
| 33.33% | 25.00% | 106.67 | 26.67 |
| 50.0% | 33.33% | 120.00 | 40.00 |
| 100.0% | 50.00% | 160.00 | 80.00 |
Pricing backward from a target margin
When a business target says "we need a 25% gross margin on an 80-dollar item," multiplying 80 × 1.25 = 100 falls short because 100 only yields a 20% margin. Instead, divide cost by (1 − target margin):
- Required selling price:
80 / (1 − 0.25) = 80 / 0.75 = 106.6667. - Verification: Profit is
26.6667, and26.6667 / 106.6667 = 25.0%gross margin (equivalent to a33.33%markup on cost).
If you later discount that item, remember that discounts reduce the selling price directly—see discount percentage math to check how a markdown compresses gross margin.
Boundaries and accounting inputs
- Zero denominators: Markup is undefined when cost is
0; gross margin is undefined when selling price (revenue) is0. - Margin ceiling: For positive costs, gross margin can never reach or exceed
100%, whereas markup has no upper limit (a300%markup equals a75%margin). - Selling below cost: Produces negative profit, negative markup, and negative margin.
- Cost definition scope: These formulas check arithmetic only; they do not decide whether freight, payment fees, returns, overhead, or sales tax belong in your cost figure. Keep your cost basis consistent when comparing two products.
Frequently asked questions
Why can't gross margin ever exceed 100% if my cost is positive?
Gross margin is (Price − Cost) / Price. Since subtracting a positive cost leaves less than the full selling price in the numerator, the ratio is strictly below 1 (100%).
If I double my cost (100% markup), what is my gross margin?
Doubling cost (80 → 160) yields 80 profit out of 160 revenue, which is a 50% gross margin.
Can I add a 25% markup to hit a 25% margin target?
No. A 25% markup yields only a 20% gross margin. To hit a 25% gross margin, you need a 33.33% markup (Cost / 0.75).