AllCalculators

Margin vs Markup: The Pricing Mistake That Costs Sellers Money

By Arshi Khan, Founder of Just4Marketing · October 6, 2026 · 6 min read

Why adding 40% to your cost doesn't give you a 40% margin, how marketplace fees make it worse, and the one formula that prices a product correctly.

Ask ten small sellers what margin they make and you'll often get a markup figure instead. The two sound alike and both are percentages, but they measure profit against different numbers — and confusing them is one of the most common reasons a product that looks profitable on paper quietly loses money.

Two percentages, two different bases

Same product, same profit, two very different-sounding numbers. Margin is always the smaller one, because the selling price is always bigger than the cost.

Markup on costEquals margin of
25%20.0%
50%33.3%
66.7%40.0%
100%50.0%

The mistake: adding your margin to your cost

Say you want a 40% margin on an item that costs $30. The instinct is to add 40%: $30 × 1.4 = $42. But as we just saw, $42 only gives a 28.6% margin. To actually keep 40% of the selling price, the price has to be $30 ÷ (1 − 0.40) = $50 — which is a 66.7% markup.

The rule is simple once you see it: to hit a target margin, divide cost by (1 − margin); don't multiply cost by (1 + margin).

Fees make the gap wider

Online sellers have a second problem. Marketplace and payment fees are usually a percentage of the selling price, so every time you raise the price to protect your margin, the fees rise too. The correct formula takes them off the top alongside your margin:

Selling price = (product cost + shipping + fixed fees) ÷ (1 − target margin − percentage fees)

With $15 of product cost, $5 of shipping and packaging, a $0.30 fixed payment fee, 15% in percentage fees, and a 25% target margin, the price is $20.30 ÷ 0.60 = $33.83. If you'd added 25% to your $20.30 of costs instead, you'd have priced at $25.38 — and after fees you'd keep only about 5%.

When each number is useful

The selling price calculator works out the price for a target margin with your fees included, and the profit margin calculator converts between margin and markup for a single product or a whole business.

Run the numbers for your situation

About the author

Founder of Just4Marketing, with 5+ years in digital marketing and analytics. Arshi builds and checks the calculators on AllCalculators.