Margin vs markup: why a 30% markup is not a 30% margin
Use the right denominator, convert between the two percentages, and check a selling price against a target gross margin.
The short answer
Markup divides gross profit by cost. Gross margin divides the same gross profit by selling price. A cost of 100 sold for 130 has a 30% markup but a 23.08% gross margin. To price for a 30% gross margin, divide cost by 0.70, giving approximately 142.86.
Margin and markup workbench
Enter cost and selling price in the same units to compare the two percentage bases.
Your comparison
- Cost
- 80
- Selling price
- 100
- Gross profit
- 20
- Gross margin
- 20%
- Markup
- 25%
Amounts show up to six decimal places; percentages up to four. ≈ means approximately, including a rounded-looking 0% or 100%.
Same profit, different base
Gross profit = selling price − cost. A negative result is a loss on the entered amounts.
100 − 80 = 20
Gross margin = gross profit ÷ selling price × 100. The selling price is the base.
Markup = gross profit ÷ cost × 100. Cost is the base.
Only the costs you enter are included. Taxes, fees and currency conversion are not calculated.
Find a price from a target margin
Enter cost and a target gross margin. The exact price and the margin at its rounded display are shown separately.
Price and rounding check
- Cost
- 80
- Target gross margin
- 20%
- Exact calculated price
- 100
- Displayed selling price
- 100
- Gross margin at displayed price
- 20%
Gross margin at the displayed price matches the target
A rounded price can give a margin below the target even when the rounded margin looks the same. The check uses exact values.
Price display: up to six decimals, rounded half up. Observed margin display: up to four decimals. ≈ means approximate.
From gross margin to price
Divide cost by the fraction left after the target margin. Gross margin uses selling price as its base.
80 ÷ (1 − 20 ÷ 100) = 100
Mathematical gross margin, not a pricing recommendation or net profit. No currency or accounting precision is inferred.
Only the costs you enter are included. Taxes, fees and currency conversion are not calculated.
The profit is the same; the base changes
For a simple sale, let cost be C, selling price be S, and gross profit be S − C. Both percentages use that profit amount. Markup asks how much was added relative to cost. Margin asks what share of sales remains after the included cost.
A 30-unit gross profit on a 100-unit cost is 30 ÷ 100 = 30% markup. The same profit on a 130-unit selling price is 30 ÷ 130 ≈ 23.08% margin. Changing the denominator changes the answer without changing the underlying transaction.
Markup (%) = (S − C) / C × 100
Gross margin (%) = (S − C) / S × 100Work backward from the gross margin you mean
A 30% gross margin means cost must be 70% of selling price. With a cost of 100, divide by 0.70 to obtain 142.857142…. Rounding the quote to 142.86 produces a gross profit of 42.86 and a margin very close to 30%. That is a mathematical example, not a recommended commercial target.
If your goal is a 30% markup instead, multiply cost by 1.30. Both calculations are valid when clearly named. The problem is calling one the other, particularly when a spreadsheet field simply says “profit %” without defining its base.
Selling price for target margin m = cost / (1 − m/100)| Pricing rule | Selling price | Gross profit | Gross margin |
|---|---|---|---|
| 30% markup | 130.00 | 30.00 | 23.08% |
| 30% target gross margin | 142.86 | 42.86 | ≈30.00% |
| 50% markup | 150.00 | 50.00 | 33.33% |
Convert without rebuilding the sale
When percentages are written as decimals, margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin). For example, a 0.50 markup gives 0.50 ÷ 1.50 = 0.333333…, or a 33.33% gross margin. A 0.25 margin needs a 0.25 ÷ 0.75 = 0.333333… markup.
These formulas assume positive cost and a positive selling price. Markup is undefined at zero cost. A 100% target margin with positive cost cannot be reached with a finite selling price. A sale below cost produces a negative gross profit; the percentages should not be relabelled as a discount without stating the base.
Gross margin is not take-home profit
Which costs are included matters. A product-level gross margin may exclude operating overhead, payment fees, finance costs and taxes. Using a labour-and-materials estimate as C does not automatically account for all the costs of running a business.
In PercentEase, choose the “what percent” calculation and divide the profit amount by the relevant base: cost for markup, selling price for margin. Record the cost definition alongside the answer. Use an accountant’s actual classification for financial reporting; a percentage calculator cannot determine that classification for you.
Sources and scope
Generic arithmetic, not accounting, pricing or tax advice. No industry margin benchmark is asserted. Values use unspecified monetary units and exclude currency conversion.
These are hypothetical calculations in generic monetary units. Source links support the methods, not current prices, offers or tax rates.
- Xero: Margin vs markup
Definitions, denominator distinction and pricing formulas. Xero is an accounting-software vendor; no endorsement or product comparison is implied.
Publisher: Kymata Labs LLC. Contact and corrections.