Profit

Margin vs markup: formulas, examples and the difference

Margin divides profit by the selling price, markup divides it by the cost. Formulas, a conversion table and when to use each one in a webshop.

·6 min read·By the ROASaurus team

Key takeaways
  • 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.

Margin=(selling price − cost) ÷ 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.

Markup=(selling price − cost) ÷ 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

MarginMarkup
Divides the profit bySelling priceCost
Question it answersHow much of each sale do I keep?How much do I add to the cost?
RangeUp to 100%No upper limit
For the same productAlways the lower numberAlways the higher number
Mostly used forProfit reports, comparing products, ad targetsSetting prices from a cost
Both start from the same profit per unit; only the base of the percentage differs.

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:

Margin=markup ÷ (1 + markup)
Markup
Write it as a decimal: 50% is 0.5.

A 20% markup is a margin of 0.2 ÷ 1.2 = 16.7%.

Markup=margin ÷ (1 − margin)

A 30% margin needs a markup of 0.3 ÷ 0.7 = 42.9%.

MarkupMarginPrice 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
Doubling the cost (a 100% markup) gives a 50% margin. A 30% margin and a 30% markup are not the same price.

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.

  1. Turn the target margin into a markup

    Markup = 0.60 ÷ (1 − 0.60) = 0.60 ÷ 0.40 = 1.5, so a 150% markup.

  2. Apply the markup to the cost

    Price = $6 × (1 + 1.5) = $15.

  3. Check the margin

    Margin = ($15 − $6) ÷ $15 = 60%. The target holds.

  4. 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.

Example mug: the same $15 sale seen as markup and as margin
Markup on costMargin on price
Product cost only
150%
60%
After handling and fees
89%
47%
After shipping it free
26%
20%
Example data. Every extra cost pulls both numbers down, but margin is the one that tells you what share of the sale you keep.

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

The ROASaurus Mac app showing Profit › Products: the POAS of every product with its trend, by product or by variant. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Profit › Products: the POAS of every product with its trend, by product or by variant. Fictional demo store, simulated data.
Profit › Products in the public demo (ROASaurus Demo Store, a fictional store): net margin per product after product cost, shipping, fees and refunds.

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.

Next step

Sources

  1. Shopify Help Center: Profit reports

In ROASaurus

Keep reading

AdvertisingROAS meaning: formula, types and what a good ROAS isROAS means return on ad spend: revenue divided by ad spend. Learn the formula, platform vs blended ROAS, what a good ROAS is and why Ads Manager differs.ProfitAttribution or profit: which number should run the business?Why ROAS and multi-touch attribution can mislead a store, a worked example where 4x ROAS leaves little profit, and the profit metrics to run on instead.ProfitBlack Friday discount and coupon ideas, checked on marginTen Black Friday discount and coupon code ideas, what each one costs in margin, how to combine codes on Shopify and how to see which codes made money.

FAQ

Questions, answered

More answers in the FAQ and the help center.

What is the difference between margin and markup?

Both use the same profit per unit: selling price minus cost. Margin divides it by the selling price, markup divides it by the cost. A $20 product sold for $30 has a 33% margin and a 50% markup.

What is 20% markup as a margin?

A 20% markup is a 16.7% margin. Use margin = markup ÷ (1 + markup): 0.2 ÷ 1.2 = 0.167.

What is the difference between a 30% margin and a 30% markup?

On a $10 cost, a 30% markup gives a $13 price and keeps 23% of it. A 30% margin needs a $14.29 price, which is a 42.9% markup.

Should I use markup or margin?

Use markup to set a price from a cost. Use margin to judge profit, compare products and set ad targets such as break-even ROAS, which is 1 divided by your gross margin rate.

Can margin be higher than markup?

No. For a product sold above cost, the markup is always higher than the margin, because the cost is always smaller than the selling price.

Can margin be more than 100%?

No. Margin is a share of the selling price, so it tops out at 100% when the cost is zero. Markup has no upper limit.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.