Margin is profit divided by the selling price. Markup is profit divided by cost. The same sale gives two different percentages: a product that costs $12 and sells for $18 has a 50% markup but only a 33.3% margin. Marketplace fees, card fees and ad spend are charged as a share of the price, so margin is the number that tells you whether a product pays. Markup is only a quick way to get from a cost to a price.
The two formulas
- Margin = (price − cost) ÷ price
- Markup = (price − cost) ÷ cost
Both use the same profit. Only the denominator changes, and because the price is always larger than the cost, a markup percentage is always bigger than the margin percentage for the same sale.
Worked example: cost $12, price $18, profit $6.
- Markup: 6 ÷ 12 = 50%
- Margin: 6 ÷ 18 = 33.3%
Conversion table
You can convert between them without recalculating the price:
- Margin = markup ÷ (1 + markup)
- Markup = margin ÷ (1 − margin)
| Markup on cost | Margin on price | Price if cost is $12 |
|---|---|---|
| 25% | 20.0% | $15.00 |
| 50% | 33.3% | $18.00 |
| 100% | 50.0% | $24.00 |
| 150% | 60.0% | $30.00 |
| Target margin | Markup you need | Price if cost is $12 |
|---|---|---|
| 20% | 25.0% | $15.00 |
| 30% | 42.9% | $17.14 |
| 40% | 66.7% | $20.00 |
| 50% | 100.0% | $24.00 |
The pricing formula from a target margin is simply price = cost ÷ (1 − margin). For a 30% margin on a $12 cost: 12 ÷ 0.70 = $17.14.
Why sellers get this wrong
The classic mistake is saying "I want 50% profit" and adding 50% to the cost. That gives a 33.3% margin, not 50%. Compare it with a supplier or an agency quoting "40% margin" and you are comparing different things.
The second mistake is more expensive: using a markup on the product cost while the platform takes its cut from the selling price.
Worked example: a 50% markup that loses money on Amazon
Assume a product with a landed cost of $12 (product, freight and duty, see how to calculate landed cost). For this example we assume a 15% referral fee and a $3.50 fulfilment fee. Your real fees depend on category and size, so check the current figures in Amazon referral fees by category and Amazon FBA fulfillment fees.
You apply a 50% markup and list at $18:
| Line | Amount |
|---|---|
| Selling price | $18.00 |
| Landed cost | −$12.00 |
| Referral fee (15% of $18) | −$2.70 |
| Fulfilment fee (assumed) | −$3.50 |
| Profit | −$0.20 |
The product looks like it earns 50% on cost but loses 20 cents on every unit, before a single dollar of advertising.
Now price it from a target instead. You want a 20% margin after fees. Fixed costs are $12 + $3.50 = $15.50, and the percentage costs are 15% referral + 20% profit = 35% of the price. So:
price = $15.50 ÷ (1 − 0.15 − 0.20) = $15.50 ÷ 0.65 = $23.85
Check it: referral fee 15% × $23.85 = $3.58. Profit = 23.85 − 12.00 − 3.50 − 3.58 = $4.77. Margin = 4.77 ÷ 23.85 = 20.0%.
For a price that has to cover costs charged as a share of the price, use this general formula:
price = (cost + fixed fees) ÷ (1 − percentage fees − target margin)
Adding ad spend
Advertising is also a share of the price, so it belongs on the percentage side. If you plan to spend 10% of revenue on ads (a TACoS of 10%, see ACoS vs TACoS), the same product needs: $15.50 ÷ (1 − 0.15 − 0.10 − 0.20) = $15.50 ÷ 0.55 = $28.18 to still keep a 20% margin. If the market will not pay $28, the honest answer is that the product does not support that ad budget, and you should know that before you order stock. For the ad side of the same maths, see break-even ROAS.
Which number to use when
- Use margin to judge a product, compare channels, set a break-even ROAS and decide whether a product is worth ordering.
- Use markup for a quick cost-to-price step with a wholesaler or when a supplier or retailer talks in markup, then convert it to margin before you decide.
- Always state the base. "40% profit" is meaningless until you say whether it is on cost or on price.
If you are choosing between several prices, how to price a product covers five methods, and Ecomtoro helps you check demand and margin on a product idea before you commit to an order.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A $12 product sold for $18 has a 33.3% margin and a 50% markup.
Is margin or markup higher?
For the same sale, markup is always the higher percentage, because it divides the same profit by a smaller number (cost instead of price). A margin can never reach 100%, while a markup can be any size.
How do I convert a markup to a margin?
Divide the markup by one plus the markup. A 100% markup becomes 100 ÷ 200 = 50% margin. To go the other way, divide the margin by one minus the margin: 40% margin becomes 0.40 ÷ 0.60 = 66.7% markup.
Which should I use for Amazon, Shopify or TikTok Shop pricing?
Use margin. Referral fees, card fees, creator commissions and ad costs are all taken as a share of the selling price, so a target margin lets you solve for a price that covers them. A flat markup on cost ignores those percentage fees and can leave you at a loss, as in the example above.
What is a good profit margin for an online product?
It depends on the product and on how much you spend on ads, so there is no single answer. Work backwards: add every cost including advertising, then check what margin is left at the price customers will actually pay. If the margin is thin before ads, the product has little room to test.



