Home / E-commerce & business / Profit Margin & Markup Calculator

Profit Margin & Markup Calculator

Enter cost and price to get margin and markup - or set a target margin and get the price to charge.

$
$

%
We will show the price you need to hit this margin.
Gross margin
-
Markup-
Profit per unit-
Price for target margin-
Markup for target margin-

Margin vs. markup

They use the same two numbers but divide by different things, which is why they are so often confused.

Margin = (Price - Cost) / Price
Markup = (Price - Cost) / Cost
Price for target margin = Cost / (1 - Target margin)

A product that costs $40 and sells for $100 has a 60% margin but a 150% markup. Pricing with "50% markup" when you meant "50% margin" leaves you with a 33% margin instead.

MarkupEquals margin
25%20%
50%33.3%
100%50%
150%60%
300%75%

Worked example: pricing a new product

A candle costs $8 to make, $1.50 to package and $0.90 in payment fees on average - $10.40 in total. The shop wants a 65% gross margin to leave room for ads and overheads.

Typical gross margins by business type

Business typeTypical gross margin
Grocery and convenience20% - 30%
Consumer electronics retail20% - 35%
General e-commerce35% - 50%
Apparel (own brand)50% - 65%
Cosmetics and supplements60% - 80%
Software and digital products75% - 90%

These are broad ranges and vary by brand, channel and scale - use them to sanity-check your pricing, not as targets.

Gross margin vs. net margin

Gross margin only subtracts the direct cost of the product. Net margin subtracts everything: ads, salaries, rent, software, interest and tax. A product with a 60% gross margin can easily produce a 10% net margin once acquisition and overheads are paid. That is why your gross margin decides how much you can spend on ads - see the ROAS calculator for the break-even ROAS your margin implies.

Discounts eat margin faster than you think

A 20% discount on a product with a 50% margin does not cut profit by 20% - it cuts it by 40%. On a $100 product costing $50, profit falls from $50 to $30. To make the same total profit you need about 67% more sales. Run the numbers before running the sale.

Frequently asked questions

Can margin be over 100%?

No. Margin is a share of the price, so it can approach but never reach 100%. Markup can be any size.

What should I include in cost?

For gross margin, include the direct cost of the unit: product, packaging, shipping to you, and payment fees. Rent and salaries belong in net margin.

How do I convert markup to margin?

Margin = Markup / (1 + Markup). A 100% markup is a 50% margin; a 50% markup is a 33.3% margin.

Should I price with margin or markup?

Most retailers think in markup on cost because it is easy to apply, but plan and report in margin, because ad budgets, break-even ROAS and profit all depend on margin.

Embed this calculator on your site

Free for blogs, newsletters and client sites. Paste this HTML where you want the calculator - it resizes itself and works on any device. Please keep the credit line.

Get new calculators first

One short email when we add a tool or guide. No spam, unsubscribe any time.

Related tools

Paid adsROAS CalculatorReturn on ad spend plus your break-even ROAS from margin.Paid adsBreak-Even CPA CalculatorThe most you can pay for a customer before an ad campaign loses money.E-commerce & businessCustomer Lifetime Value (LTV) CalculatorLTV, LTV:CAC ratio and payback for e-commerce and subscriptions.

Related guides

GuideWhat is a good ROAS?What counts as a good ROAS depends on your margin. Break-even ROAS by margin, typical ROAS by channel, and how to set a target ROAS that leaves profit.GuideBreak-even ROAS formulaThe break-even ROAS formula is 1 / gross margin. How to calculate gross margin correctly, worked examples, and how to turn break-even ROAS into CPA and bids.