How it worksPricingLog InSign Up Free
Free tool

Markup Calculator

Built for ecommerce, not a schoolbook percentage problem. Markup, gross margin, price from a target margin, sale economics, and the maximum discount that still hits your numbers. Every result shows the arithmetic.

Your numbers

What the item cost you, and what you sell it for. Everything below updates as you type.

$
$
Or set the price from a target
%
= $80.00 regular price

price = cost / (1 - margin / 100) = 40.00 / (1 - 50 / 100)

Markup100.0%markup% = (price - cost) / cost × 100 = (80.00 - 40.00) / 40.00 × 100 = 100.0%
Gross margin50.0%margin% = (price - cost) / price × 100 = (80.00 - 40.00) / 80.00 × 100 = 50.0%
Profit per item$40.00profit = price - cost = 80.00 - 40.00 = $40.00

Sale economics

Set a discount off the regular price and see what is left once it ships.

% off
Sale price$64.00sale price = price × (1 - discount / 100) = 80.00 × (1 - 20 / 100) = $64.00
Post-discount profit$24.00sale profit = sale price - cost = $64.00 - 40.00 = $24.00
Post-discount margin37.5%sale margin% = sale profit / sale price × 100 = $24.00 / $64.00 × 100 = 37.5%

Maximum safe discount

Set the lowest margin you are willing to sell at, and this works out the biggest discount you can run off the regular price without going under it.

% margin floor
Maximum safe discount16.7%max discount% = (price - floor price) / price × 100 = (80.00 - $66.67) / 80.00 × 100 = 16.7%
Floor price$66.67floor price = cost / (1 - target / 100) = 40.00 / (1 - 40 / 100) = $66.67
Discount amount$13.33= price - floor price = 80.00 - $66.67 = $13.33

Markup and margin are not the same number

Markup measures profit against what you paid. Margin measures profit against what the customer paid. They use the same profit figure and land on different percentages because they divide by different things, and mixing them up is the most common pricing mistake in ecommerce.

Markup

markup% = (price - cost) / cost x 100

Cost $40, price $80: (80 - 40) / 40 x 100 = 100% markup.

Gross margin

margin% = (price - cost) / price x 100

Same product: (80 - 40) / 80 x 100 = 50% margin. Same $40 of profit, a different percentage, because the denominator changed.

Setting a price from a target margin

To hit a specific margin rather than a specific markup, solve the margin formula for price: price = cost / (1 - target margin / 100). Using the markup formula here by mistake (price = cost x (1 + margin / 100)) will always underprice the item, because it treats a margin percentage as if it were a markup percentage.

Maximum discount, without missing your margin

Pick the lowest margin you are willing to accept on a sale, then work out the floor price that still meets it with the same formula above. The maximum safe discount is the gap between your regular price and that floor price, shown as a percentage of the regular price. Discount past it and the sale is losing you margin faster than the extra volume can make up for.

Questions

Is a 50% markup the same as a 50% margin?

No. Markup divides profit by cost; margin divides profit by price. A product costing $40 sold at $60 carries a 50% markup ($20 profit over a $40 cost) but only a 33.3% margin ($20 profit over a $60 price). The two only match at 0%.

How do I price a product to hit a target margin?

price = cost / (1 - target margin / 100). Do not use price = cost x (1 + margin / 100); that formula is for markup, not margin, and it will overprice or underprice the item depending on which way you get it wrong.

How much can I discount without losing money on a sale?

Work out the lowest price that still meets the margin you are willing to accept (the floor price), then the maximum discount is the gap between your regular price and that floor, as a percentage of the regular price. The calculator above does this for any margin floor you set.

More free tools: compare email platform pricing or test a subject line, or see every free tool.

Pricing right is half the job. Getting the follow-up email out is the other half.

OnVoard sends the cart reminder, the back-in-stock alert and the review request from the same place you run your store.