What Is the Difference Between a Markup and a Margin?
Markup measures profit as a percentage of cost; margin measures it as a percentage of selling price. A 50% markup is only a 33% margin — and confusing the two is one of the most expensive mistakes in ecommerce pricing.
They sound interchangeable, and they are not. If you price with markup but plan with margin — or vice versa — your profit forecasts are quietly wrong on every sale.
Key Takeaways
- Markup = profit ÷ cost; margin = profit ÷ price. Margin is always the smaller percentage.
- A 50% markup is a 33% margin — applying your target margin as a markup under-prices every product.
- Price with markup, analyze with margin — and always convert before judging profitability.
- AI pricing agents track real margin per SKU and recommend changes with profit impact, at catalogue scale.
Markup vs margin: the definitions
Markup
Markup is profit expressed as a percentage of cost: Markup % = (price − cost) ÷ cost × 100.
Margin
Margin is profit expressed as a percentage of the selling price: Margin % = (price − cost) ÷ price × 100.
The same sale, two different percentages
Same product, same numbers, different answers. A product that costs $10 and sells for $15 carries a 50% markup — but only a 33.3% margin. The $5 of profit doesn't change; what changes is the base you divide by. Markup divides by cost, margin divides by price, and price is always the bigger number, so margin is always the smaller percentage.
Why the difference matters to your bottom line
The classic failure: a store owner wants a 40% margin, applies a 40% markup, and comes up short on every order. A 40% markup only yields a 28.6% margin — that's an 11-point gap compounding across every unit sold.
Quick conversion reference:
- 20% markup = 16.7% margin
- 25% markup = 20% margin
- 50% markup = 33.3% margin
- 100% markup = 50% margin (the classic keystone price)
- To hit a target margin, use: Price = Cost ÷ (1 − target margin). For a 40% margin on a $10 cost: $10 ÷ 0.6 = $16.67.
When to use markup and when to use margin
Use markup when setting prices — it's a simple multiplier over your known cost, which is why suppliers and wholesalers quote it. Use margin when analyzing profitability — your P&L, contribution margin, and break-even math are all margin-based, because they describe how much of each revenue dollar you keep.
The mistake isn't using one or the other; it's crossing the streams. Set prices with markup if that's your workflow, but always translate to margin before you judge whether the business is healthy. For how this feeds a full pricing approach, see our ecommerce pricing strategy guide and how markup works in ecommerce.
How to use an AI agent to scale your operation
Keeping markup and margin straight for ten products is a spreadsheet job. For a whole catalogue — with supplier costs drifting, discounts running, and fees stacking up — it's a full-time analyst's job, which is exactly where an AI agent earns its keep. The AI CEO Autopilot tracks true cost and realized margin per product continuously, so you always see actual profitability, not the markup you set six months ago.
Its pricing engine goes further: it recommends price changes with the projected revenue and profit impact of each move, flags products whose margins have silently eroded below target, and simulates a price change before you commit. Scaling an ecommerce business is margin math applied consistently across thousands of decisions — the AI applies it everywhere, every day, and you approve the moves that matter.
Let the AI pricing engine handle it for you
AI CEO turns pricing from guesswork into a profit lever — recommending the right price for every product from live demand, margin, and competitor signals.
- Recommends price changes with the projected revenue and profit impact shown up front.
- Respects the margin floors you set, so it never prices below what's profitable for you.
- Lets you apply the winners in one click and roll the rest out automatically as trust builds.
Frequently Asked Questions
What is the difference between a markup and a margin?
Markup expresses profit as a percentage of cost, margin as a percentage of selling price. A product costing $10 sold at $15 has a 50% markup but a 33.3% margin. Same profit, different base.
How do I convert markup to margin?
Margin % = markup ÷ (100 + markup) × 100. So a 50% markup = 50 ÷ 150 = 33.3% margin. To go the other way: markup % = margin ÷ (100 − margin) × 100.
What markup do I need for a 40% margin?
66.7%. Use Price = Cost ÷ (1 − 0.40), which is equivalent to a 66.7% markup on cost. Applying a 40% markup instead would give you only a 28.6% margin.
Should ecommerce stores price by markup or margin?
Set prices by markup if it fits your workflow, but manage the business by margin — your P&L, ad-spend decisions, and break-even points all depend on margin. The key is converting correctly between the two.
Keep Reading
Put Your Store on Autopilot
AI CEO runs marketing, operations, and finance for your Shopify store — from the same live data, with you in control.