StatGardenREF. DESK
Calculators/Finance/Margin & markup
Finance

Margin & markup calculator

Turns cost and price into margin, markup and profit.

What this calculator does

Margin and markup describe the same gap between cost and price, measured against different bases. Margin divides the profit by the selling price; markup divides it by the cost. A 50% markup is a 33% margin, and confusing the two is one of the most common and expensive errors in small-business pricing.

This calculator reports both from the same pair of numbers, along with profit per unit and total profit at whatever volume you enter. If a supplier quotes you a markup and your accountant asks for a margin, the conversion is right here.

The formula

FormulaMargin % = (Price − Cost)/Price × 100; Markup % = (Price − Cost)/Cost × 100

Both figures start from the same profit: price minus cost. Margin expresses that profit as a share of what the customer pays; markup expresses it as a share of what you paid. Because the price is always larger than the cost, the markup percentage is always the larger of the two.

TermMeaning
CostWhat the unit costs you, including landed freight if applicable.
PriceWhat you sell it for.
MarginProfit ÷ price, as a percentage.
MarkupProfit ÷ cost, as a percentage.

The inputs explained

FieldWhat to enter
Unit cost ($)Your cost per unit. Include freight and any per-unit handling: leaving these out inflates the apparent margin.
Selling price ($)The price you charge, excluding sales tax.
Units soldHow many units you expect to sell. Set to 1 to look at a single unit.

When to use it

Setting a price from a target margin

Adjust the price until the margin lands on your target. Working the other way, adding a markup to cost, will undershoot the margin you had in mind, which is exactly the trap the two terms create.

Translating a supplier’s markup

Distributors often quote in markup, retailers usually think in margin. Enter the cost and the marked-up price to see what margin the arrangement actually leaves you.

Checking whether a discount is affordable

Reduce the price by the discount you are considering and watch the margin. A 20% discount on a 30% margin product cuts the profit by roughly two thirds.

Comparing products on profitability

A high-priced item with a thin margin can be less profitable per sale than a cheap one with a fat margin. The profit per unit column settles it in dollars.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

Margin and markup at different prices

A product costing $40, sold at a range of prices. Notice how far markup and margin diverge as the price rises.

$40 unit cost
Selling priceGross marginMarkupProfit per unit
$5020.0%25.0%$10.00
$6033.3%50.0%$20.00
$8050.0%100.0%$40.00
$10060.0%150.0%$60.00
$13369.9%232.5%$93.00
$20080.0%400.0%$160.00
A price of $80 is a 100% markup but only a 50% margin. Doubling the cost never gives a doubled margin: it gives 50%, and that is the ceiling for a keystone markup.

What different costs do at a fixed $100 price

Holding the price at $100 and selling 500 units, with the cost varying.

$100 selling price, 500 units
Unit costGross marginMarkupProfit per unitTotal profit
$2080.0%400.0%$80.00$40,000.00
$3565.0%185.7%$65.00$32,500.00
$5050.0%100.0%$50.00$25,000.00
$6535.0%53.8%$35.00$17,500.00
$8020.0%25.0%$20.00$10,000.00
$9010.0%11.1%$10.00$5,000.00
Every dollar saved on cost at a fixed price is a dollar straight to profit: which is why supplier negotiation moves the bottom line faster than a price rise of the same size.

Questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. For the same product, markup is always the higher number. A $40 item sold at $100 carries a 60% margin and a 150% markup.

How do I convert markup to margin?

Margin = markup ÷ (1 + markup), with both as decimals. A 50% markup gives 0.5 ÷ 1.5, which is a 33.3% margin. Going the other way, markup = margin ÷ (1 − margin).

Can margin exceed 100%?

No. Margin is a share of the selling price, so it approaches 100% but never reaches it while the cost is above zero. Markup has no upper limit.

Should the cost include overheads?

This calculator works on gross margin, which uses direct unit cost only. Rent, wages and other fixed overheads are covered by the total gross profit: the break-even calculator is the tool for that question.

What is keystone pricing?

Doubling the cost to set the price: a 100% markup, which is a 50% margin. It is a long-standing retail convention rather than a rule, and works only where it covers your overheads.

To find the volume that covers fixed costs, use the break-even calculator. For discounting decisions, see the discount calculator.