Margin Calculation vs Markup: Formula and Differences
- Gross margin
- %
- Result
- Markup
- %
- Result
- Cost
- 80 currency units
- You entered
This calculator converts between gross profit margin and markup using your cost and selling price. Enter either two values to see the profit, margin, and markup; the key difference is that margin uses the selling price as its base, while markup uses cost.
Formula
Gross profit = selling price − cost. Gross margin = (gross profit ÷ selling price) × 100. Markup = (gross profit ÷ cost) × 100.
- Cost (c): the amount treated as the product’s cost, in the same currency units as the selling price.
- Selling price (s): the amount charged for the item, in the same currency units as cost.
- Gross profit (p): selling price minus cost, in currency units.
- Gross margin (m): gross profit as a percentage of selling price.
- Markup (u): gross profit as a percentage of cost.
These formulas assume cost is greater than zero. If selling price is below cost, both percentages are negative, indicating a gross loss. The calculator uses the entered cost and selling price as given; it does not decide which costs belong in your accounting definition of cost.
Worked Example
Using the calculator’s default values, cost is 80 currency units and selling price is 100 currency units.
- Gross profit = 100 − 80 = 20 currency units.
- Gross margin = (20 ÷ 100) × 100 = 20.00%.
- Markup = (20 ÷ 80) × 100 = 25.00%.
The same transaction therefore has a 20.00% gross margin and a 25.00% markup. Those percentages differ because their denominators differ: margin divides profit by the selling price, while markup divides profit by cost.
Why Margin and Markup Differ
Both measures describe the relationship between gross profit and another amount, but they answer different questions. Margin asks, “What share of the selling price remains as gross profit?” Markup asks, “How much was added to cost, as a percentage of cost?”
For example, if an item costs $80 and sells for $100, the $20 gross profit is one fifth of the selling price, so the margin is 20%. The same $20 is one quarter of the cost, so markup is 25%. The dollar amounts do not change; only the comparison base changes. The example works the same in any currency, provided cost and price use the same currency and units.
For a positive cost and a selling price above cost, markup will be higher than margin. The two percentages become equal only when profit is zero, in which case both are 0%. Confusing the terms can lead to prices that are too low or to financial reports that do not match the measure being requested.
Convert Between Margin and Markup
You can calculate either percentage from the other, as long as both use the standard gross-profit definitions and the margin is below 100%:
- Markup from margin: markup = margin ÷ (1 − margin), when margin is written as a decimal. For a 20% margin: 0.20 ÷ 0.80 = 0.25, or 25% markup.
- Margin from markup: margin = markup ÷ (1 + markup), when markup is written as a decimal. For a 25% markup: 0.25 ÷ 1.25 = 0.20, or 20% margin.
If the input is expressed as a whole percentage, convert it to a decimal first: 20% becomes 0.20. A common error is to use 20 directly in the conversion formula, which produces a nonsensical result. These conversions do not supply a selling price by themselves; you also need a cost or another relevant amount.
When to Use Each Measure
Use gross margin when evaluating gross profit as a portion of revenue, comparing the share of sales left after the chosen cost measure, or communicating profitability as a percentage of selling price. Businesses and reports may use different definitions of cost or margin, so check what expenses are included before comparing figures.
Use markup when setting or discussing the amount added to a known cost. For instance, applying a 25% markup to an $80 cost means adding $20, giving a $100 selling price. It does not mean a 25% margin. To target a particular margin, calculate the price using that margin rather than simply adding the same percentage to cost.
Neither measure alone tells you whether a business is profitable overall. Gross profit generally does not account for every operating expense, financing cost, or other item in a complete income statement. A positive gross margin can coexist with an overall loss if other costs exceed gross profit.
Common Calculation Mistakes and Limits
- Using the wrong denominator: divide by selling price for margin and by cost for markup.
- Mixing definitions of cost: a product’s purchase cost, production cost, or a broader cost figure may be used in different contexts. State what is included.
- Mixing units or currencies: compare amounts on the same basis before subtracting or dividing. For example, do not divide a price per case by a cost per item without converting the quantities.
- Rounding too early: keep more precision in intermediate calculations, then round the final percentage to a suitable number of decimal places.
- Assuming markup equals margin: equal dollar profit does not make the percentages equal because their bases differ.
The calculator treats all of the entered cost as the relevant cost and all of the selling price as revenue for this calculation. It does not adjust for discounts, returns, taxes, shipping, or overhead. Include such amounts only if they belong in the definition you intend to use, and make that choice consistently.
Frequently Asked Questions
Is a 25% markup the same as a 25% margin?
No. A 25% markup means profit is 25% of cost. It corresponds to a 20% margin, assuming cost is positive and price equals cost plus that markup.
How do I calculate selling price from cost and markup?
Multiply cost by 1 plus the markup expressed as a decimal. For an $80 cost and 25% markup, the price is $80 × 1.25 = $100.
How do I price an item for a target margin?
Divide cost by 1 minus the target margin expressed as a decimal. For an $80 cost and a 20% target margin, price is $80 ÷ 0.80 = $100.
Can gross margin be negative?
Yes. If selling price is below the cost used in the calculation, gross profit is negative and gross margin is negative too. A negative result indicates a loss relative to that cost measure.
Can markup be calculated when cost is zero?
No. Markup divides gross profit by cost, so it is undefined when cost is zero. Margin can still be calculated if selling price is nonzero, but the result may not be meaningful without a clearly defined cost basis.
Related
Formula used
in c | Cost | currency units | 80 | 0 in s | Selling price | currency units | 100 | 0 out p | Gross profit | currency units | s - c | 2 out m | Gross margin | % | (s - c) / s * 100 | 2 out u | Markup | % | (s - c) / c * 100 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.