Markup vs Margin Calculator

Get margin, markup and selling price from your unit cost

$
What one unit costs you (product, shipping in, packaging).
$
%
%
To see total gross profit.
Gross margin—
Markup—
Selling price—
Gross profit per unit—
Price multiplier (price ÷ cost)—
Total gross profit—
🎰 15 Global Lotteries + 12 Smart Number Pickers
Powerball · Mega Millions · EuroMillions · UK Lotto — Zodiac, Birthday, Dream, AI & more

Markup vs margin: the difference

  • Markup = (price − cost) ÷ cost. It answers "how much did I add on top of what I paid?"
  • Gross margin = (price − cost) ÷ price. It answers "what share of each sales dollar is gross profit?"

Example: you buy a product for $40 and sell it for $60. Gross profit is $20, so markup is 20 ÷ 40 = 50% while margin is 20 ÷ 60 = 33.33%. Mixing the two up is one of the most common pricing mistakes in small retail and e-commerce.

Price from a target margin

Price = cost ÷ (1 − target margin). To earn a 40% margin on a $40 item: 40 ÷ 0.60 = $66.67. Simply adding 40% to cost ($56) would give you only a 28.6% margin.

Quick conversion table

  • 25% markup = 20% margin
  • 50% markup = 33.3% margin
  • 100% markup ("keystone", 2× cost) = 50% margin
  • Margin to markup: markup = margin ÷ (1 − margin)

What to include in "cost"

Use your landed cost per unit: the purchase price plus inbound freight, duties and packaging. Marketplace and payment-processing fees can be added to cost if you want a margin after those fees. Operating expenses such as rent and wages are not part of gross margin; they come out of gross profit afterward.

Sales tax is not revenue

In the US, sales tax is usually added on top of the shelf price at checkout and passed to the state. Calculate markup and margin on the pre-tax price.

Related tools

For a full P&L view use the gross profit margin calculator and the net profit margin calculator; to find how many units cover fixed costs, try the break-even calculator.

Frequently Asked Questions

Is a 50% markup the same as a 50% margin?
No. A 50% markup on a $40 item gives a $60 price and a 33.3% margin. A 50% margin requires a 100% markup ($80 price).
How do I calculate selling price from margin?
Divide cost by (1 − margin). For a $40 cost and 40% margin: $40 ÷ 0.60 = $66.67.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5 = 33.3% margin.
What is keystone pricing?
Doubling the wholesale cost, which is a 100% markup and a 50% gross margin.
Can margin be more than 100%?
No. Margin is profit as a share of the price, so it can approach but never reach 100%. Markup has no upper limit.

Bookmarks