- Margin is profit as a share of the selling price; markup is profit as a share of the cost.
- The same product always has a higher markup than margin: a $20 item sold for $30 has a 50% markup and a 33% margin.
- Convert with margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin).
- Use markup to set a price from a cost; use margin to judge profit, compare products and set ad targets.
- For ads, the margin that counts includes shipping, payment fees and handling, not just the product cost.
Margin and markup both describe the gap between what a product costs you and what you sell it for. The difference is what you divide that gap by. Margin divides it by the selling price. Markup divides it by the cost. Sell a product that costs $20 for $30 and the $10 gap is a 33% margin but a 50% markup.
Mixing the two up is one of the most common pricing mistakes in a webshop. If you aim for a 50% margin but add 50% to the cost, you end up with a 33% margin, and every target that depends on it, from your break-even ROAS to your discount budget, is off. This guide gives both formulas, a conversion table, a worked example and a rule for when to use which.
What is margin?
Margin tells you how much of every dollar of revenue you keep after the cost of the product. It is always measured against the selling price.
- Selling price
- What the customer pays for the product, without VAT or sales tax.
- Cost
- What the product costs you. For a simple gross margin this is the product cost (COGS); for a margin you use in ad decisions, add shipping, payment fees and handling too.
A candle sells for $40 and costs $16: (40 − 16) ÷ 40 = 24 ÷ 40 = 60%.
Because margin is a share of the price, it can never reach 100%. Even a product that costs you nothing has a margin of exactly 100%, and a product sold below cost has a negative margin.
What is markup?
Markup tells you how much you added on top of the cost to arrive at the price. It is measured against the cost.
The same candle: (40 − 16) ÷ 16 = 24 ÷ 16 = 150%.
Markup has no upper limit. A product that costs $5 and sells for $50 has a markup of 900%. That is why markup percentages often sound impressive and margins sound modest, even when they describe the same product.
Margin vs markup: the difference in one table
| Margin | Markup | |
|---|---|---|
| Divides the profit by | Selling price | Cost |
| Question it answers | How much of each sale do I keep? | How much do I add to the cost? |
| Range | Up to 100% | No upper limit |
| For the same product | Always the lower number | Always the higher number |
| Mostly used for | Profit reports, comparing products, ad targets | Setting prices from a cost |
The profit in dollars is identical. Only the percentage changes, because the base changes. A good habit is to always say which one you mean: "60% margin" or "150% markup", never just "60%".
Converting markup to margin and back
You do not need the price and the cost to switch between the two. One formula each way is enough:
- Markup
- Write it as a decimal: 50% is 0.5.
A 20% markup is a margin of 0.2 ÷ 1.2 = 16.7%.
A 30% margin needs a markup of 0.3 ÷ 0.7 = 42.9%.
| Markup | Margin | Price of a $10 product |
|---|---|---|
| 20% | 16.7% | $12.00 |
| 25% | 20.0% | $12.50 |
| 30% | 23.1% | $13.00 |
| 42.9% | 30.0% | $14.29 |
| 50% | 33.3% | $15.00 |
| 66.7% | 40.0% | $16.67 |
| 100% | 50.0% | $20.00 |
| 150% | 60.0% | $25.00 |
| 200% | 66.7% | $30.00 |
| 300% | 75.0% | $40.00 |
A worked example: pricing a new product
An example store adds a ceramic mug. The supplier charges $6 per mug, and the store wants a 60% gross margin on the product cost.
- Turn the target margin into a markup
Markup = 0.60 ÷ (1 − 0.60) = 0.60 ÷ 0.40 = 1.5, so a 150% markup.
- Apply the markup to the cost
Price = $6 × (1 + 1.5) = $15.
- Check the margin
Margin = ($15 − $6) ÷ $15 = 60%. The target holds.
- Add the other costs per order
The store pays $1.20 in packaging and handling and about $0.75 in payment fees per mug sold alone. Margin after those costs: ($15 − $6 − $1.20 − $0.75) ÷ $15 = 47%.
The last step is the one most price lists skip. The 60% margin on the product cost is what the supplier invoice says. The 47% margin after handling and fees is what the store actually keeps before shipping and advertising. If the store also pays $4 for shipping on a free-shipping order, the margin on a single mug drops to 20%. That is why many stores set a minimum order value for free shipping.
When to use margin and when to use markup
Use markup to set prices
Markup works from the number you know first: the cost. It is quick for building a price list, for wholesale quotes and for checking that a supplier's price increase is passed on. "Cost times 2.5" is a markup rule.
Use margin to judge profit
Margin works from revenue, which is where every report starts. That makes it the right number to compare products, categories and months, to compare yourself with other stores, and to plan discounts. A 20% discount on a product with a 40% margin halves the profit per unit; on a product with a 70% margin it takes less than a third.
Use margin for ad targets
Advertising targets are based on margin, not markup. Your break-even ROAS is 1 divided by your gross margin rate. At a 47% margin it is 2.13; if you used the 150% markup by mistake, you would get a number that has no meaning. Our ROAS guide and the break-even ROAS calculator both start from the margin.
Why it pays to know both
Buyers and suppliers often talk in markup; your accountant and your profit report talk in margin. Knowing both lets you check a supplier quote, set a price and read the effect on your profit without a spreadsheet. The danger is only in mixing them up inside one calculation.
Margin in ROASaurus

ROASaurus reports margin, not markup, because it starts from your orders. On Profit › Overview, the Gross profit tile shows the gross margin under it, and the Net profit tile shows the net margin. Profit › Products shows, for every product and variant, the revenue, COGS, gross profit, shipping and fees, net profit (CM2), net margin and refund rate, and with ad spend connected also the profit after ads (CM3) and POAS.
The product costs behind those margins come from Shopify's cost per item, or from Settings › Costs › Product costs, where you can enter or import a cost per variant with the date it applies from. Shipping rules and payment fees per gateway live under Settings › Costs › Cost settings, so the margin you see is the margin after the costs that come with each order, as in step 4 of the example.