Pricing guide for Shopify sellers
Markup vs margin: the difference, the formulas and a conversion table
Markup is profit as a percentage of the cost; margin is profit as a percentage of the selling price. The same $3.06 of profit on a $6.12 product is a 50% markup but only a 33.3% margin, because the $9.18 price it is measured against is bigger than the cost.
Free for up to 10 products · 14-day trial on paid plans
Updated
- Selling price
- $9.18
- Profit per item
- $3.06
Type a markup or a margin; the other follows.
Markup = (price − cost) ÷ cost, and margin = (price − cost) ÷ price. To convert, margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin): a 50% markup is a 33.3% margin, and a 50% margin is a 100% markup. On a $6.12 cost, a 50% markup gives a $9.18 price, while a 50% margin gives $6.12 ÷ (1 − 0.5) = $12.24.
What is the difference between markup and margin?
Markup and margin describe the same profit against two different bases: markup divides it by what the product costs you, margin divides it by what the customer pays. Because the price is always larger than the cost when you make a profit, the margin is always the smaller of the two numbers.
Markup: profit on cost
markup = (price − cost) ÷ cost
price = cost × (1 + markup)
Answers “how much do I add on top of what I paid?”. It can be any size: 50%, 100%, 300%.
Margin: profit on price
margin = (price − cost) ÷ price
price = cost ÷ (1 − margin)
Answers “how much of every sale do I keep?”. It stays below 100%, whatever the product costs.
| Markup | Margin | |
|---|---|---|
| Profit divided by | Cost | Selling price |
| Range | 0% and up, no ceiling | 0% up to, never reaching, 100% |
| Convert to the other | margin = markup ÷ (1 + markup) | markup = margin ÷ (1 − margin) |
| $6.12 cost, $13.99 price | $7.87 ÷ $6.12 = 128.6% | $7.87 ÷ $13.99 = 56.3% |
| Where you meet it | Supplier and wholesale talk, “keystone” (100%) pricing, quick price math | Shopify’s profit and margin, profit reports, accounts |
Markup to margin conversion table (10% to 90%)
Read each row two ways: the left half treats the percentage as a markup and shows the margin it gives, the right half treats it as a target margin and shows the markup you need. Prices are for a product that costs $6.12.
| Percentage | As a markup: margin | Price at that markup | As a margin: markup | Price at that margin |
|---|---|---|---|---|
| 10% | 9.1% | $6.73 | 11.1% | $6.80 |
| 20% | 16.7% | $7.34 | 25% | $7.65 |
| 25% | 20% | $7.65 | 33.3% | $8.16 |
| 30% | 23.1% | $7.96 | 42.9% | $8.74 |
| 40% | 28.6% | $8.57 | 66.7% | $10.20 |
| 50% | 33.3% | $9.18 | 100% | $12.24 |
| 60% | 37.5% | $9.79 | 150% | $15.30 |
| 70% | 41.2% | $10.40 | 233.3% | $20.40 |
| 75% | 42.9% | $10.71 | 300% | $24.48 |
| 80% | 44.4% | $11.02 | 400% | $30.60 |
| 90% | 47.4% | $11.63 | 900% | $61.20 |
Markups above 100% are common for products you make yourself, and they still map to margins below 100%: a 100% markup is a 50% margin, 150% is 60%, 200% is 66.7% and 300% is 75%. Going the other way, each extra point of margin costs more markup the higher you go: from 80% to 90% margin the markup jumps from 400% to 900%.
Your own numbers
The free margin calculator converts markup and margin both ways, finds the price for a target margin and shows what is left after payment fees.
Why is a 50% markup only a 33.3% margin?
A 50% markup is a 33.3% margin because the same profit is divided by a bigger number: the cost for markup, the higher selling price for margin. Here is the arithmetic on a Brownie box that costs $6.12 to make.
Start from a 50% markup
- Price: $6.12 × (1 + 0.50) = $9.18
- Profit: $9.18 − $6.12 = $3.06
- Markup: $3.06 ÷ $6.12 = 50%
- Margin: $3.06 ÷ $9.18 = 33.3%
The check by formula: 0.50 ÷ (1 + 0.50) = 0.333.
Start from a 50% margin
- Price: $6.12 ÷ (1 − 0.50) = $12.24
- Profit: $12.24 − $6.12 = $6.12
- Margin: $6.12 ÷ $12.24 = 50%
- Markup: $6.12 ÷ $6.12 = 100%
The check by formula: 0.50 ÷ (1 − 0.50) = 1.00.
A real price: 55% margin with a .99 ending
The $6.12 is the box’s full cost: dark chocolate 200 g at $14/kg ($2.80), butter 150 g at $9/kg ($1.35), sugar 180 g at $1.50/kg ($0.27), 3 eggs at $0.30 ($0.90) and a gift box ($0.80). For a 55% margin, $6.12 ÷ (1 − 0.55) = $13.60. Rounded up to the next price ending in .99 it is $13.99: a profit of $7.87, a margin of $7.87 ÷ $13.99 = 56.3% and a markup of $7.87 ÷ $6.12 = 128.6%.
When dark chocolate goes up to $16/kg, the cost becomes $6.52, and $6.52 ÷ 0.45 ≈ $14.49 rounds up to $14.99: a margin of $8.47 ÷ $14.99 = 56.5%. The target margin held because the price followed the cost. If you are not sure your cost is complete, start with how to calculate COGS; for keeping margin or markup across a whole catalog when costs move, see how to update Shopify prices when costs change.
ending(margin(cost, 55%), 0.99)
Common markup and margin mistakes that cost you money
Most pricing errors with markup and margin come from dividing by the wrong number or from leaving something out of the cost. Each row below is the same $6.12 product.
| Mistake | What happens | Instead |
|---|---|---|
| Multiplying the cost by (1 + target margin) | Aiming for 55%, $6.12 × 1.55 = $9.49: a 35.5% margin, 19.5 points short | Divide: $6.12 ÷ (1 − 0.55) = $13.60 |
| Treating a discount as a small margin cut | 20% off $13.99 is $11.19: the margin drops from 56.3% to 45.3% and the profit from $7.87 to $5.07, 35.6% less | Check the margin at the discounted price before the sale |
| Counting margin on a price that includes VAT | $16.79 with 20% VAT is $13.99 net: (16.79 − 6.12) ÷ 16.79 looks like 63.5%, the real margin is 56.3% | Take VAT or sales tax out of the price first |
| Leaving packaging out of the cost | Without the $0.80 gift box the cost reads $5.32, and $13.99 seems to earn 62.0% instead of 56.3% | Cost every unit with its packaging, labor and waste |
| Asking for a margin of 100% or more | $6.12 ÷ (1 − 1) has no answer: no price keeps all of the sale | Above 90% margin, think in markup: 900% and up |
The cost side of these mistakes is the harder one to see. A recipe that leaves out a ribbon, the box or the time spent wrapping makes every margin look better than it is; see what to put in Shopify’s Cost per item.
Markup or margin: which should you use for pricing?
Either one gives the same price once you convert it correctly, so the choice is about which number you and your reports speak in. Many sellers set prices with whichever is easier for them and track results as margin.
Use markup when
- You price from a supplier’s cost by a simple multiplier, such as keystone (×2)
- You want quick mental math: cost × 2.5 is a 150% markup
- Your margin target is very high (above 80–90%), where margin numbers get hard to compare
Use margin when
- You want to know how much of each sale is yours to cover fees, ads and rent
- You compare products, or your price with Shopify’s profit and margin
- You set a minimum: “no product below 40%” reads the same on any cost
One thing neither number does is cover your other costs on its own. The margin here is gross margin, before payment fees, shipping you pay and advertising. If those take 15% of every sale, a 56.3% gross margin leaves about 41% of the price to run the business, so set the target margin with them in mind.
How do Costory price rules use markup and margin?
Costory is a Shopify app that calculates each product’s cost and sets its price with a rule, and Markup and Margin are two of its four presets, next to Cost plus and Tiered margin. You pick the preset and the percentage; Costory turns it into a formula and shows the margin of the result.
| Preset | Formula | Price | With .99 ending | Margin |
|---|---|---|---|---|
| Markup 50% | markup(cost, 50%) | $9.18 | $9.99 | 38.7% |
| Markup 100% | markup(cost, 100%) | $12.24 | $12.99 | 52.9% |
| Margin 55% | margin(cost, 55%) | $13.60 | $13.99 | 56.3% |
Costs it starts from
The cost comes from the product’s recipe (ingredients, packaging, labor, overhead) and is written to Shopify’s Cost per item; a product without a recipe keeps the Cost per item you entered.
Margin guards
Rounding goes up, so it adds margin. A minimum margin can raise a price or block the change, and by default a price below cost is not applied. The Margin preset accepts 0% up to, not including, 100%.
When costs change
A new ingredient price recalculates every product that uses it. From Starter, new prices wait as proposals with the margin before and after, or go out on their own in automatic mode, with a rollback in History.
On the Free plan you get one price rule, applied by hand on the product page, for up to 10 products with recipes. Starter ($12.99/mo) adds unlimited rules, proposals and automatic mode; paid plans start with a 14-day trial. More on rounding, tiers and formulas in margin-based pricing for Shopify, and every plan on the pricing page.
Or check one price first in the margin calculator.
Questions about markup and margin
Is a 100% markup the same as a 50% margin?
Yes. Doubling the cost is a 100% markup and a 50% margin at once: a product that costs $6.12 and sells for $12.24 makes $6.12 of profit, which is 100% of the cost and 50% of the price. Retailers call this doubling “keystone” pricing.
Can a margin be more than 100%?
No. Margin is profit divided by price, and the profit can never be larger than the price, so a margin stays below 100% even for a product that costs almost nothing. Markup has no ceiling: a $6.12 product sold for $24.48 has a 300% markup and a 75% margin.
How do I convert markup to margin in Excel or Google Sheets?
With the markup in cell A2 as a percentage, the margin is =A2/(1+A2); with a margin in A2, the markup is =A2/(1-A2). Format the result cell as a percentage. A 50% markup returns 33.3%, and a 55% margin returns 122.2%.
How much does a discount reduce my margin?
More than the discount suggests. A $13.99 product that costs $6.12 has a 56.3% margin. At 20% off it sells for $11.19, the profit falls from $7.87 to $5.07 and the margin to 45.3%: the discount took 20% of the price but 35.6% of the profit.
Is gross margin the same as profit margin?
Not quite. The margin on this page is gross margin: price minus the cost of the product itself (materials, packaging, labor per unit). Net profit margin also subtracts payment fees, shipping you pay, ads, apps and rent, so it is lower. Set prices from gross margin, then check that it covers those costs.
Why does Shopify show a margin and not a markup?
Shopify shows Profit and Margin under a variant’s price once its Cost per item is filled in, and no markup field. Margin is a share of the sale, so it compares directly across products of any cost. If you price by markup, convert it with margin = markup ÷ (1 + markup) to compare it with what the admin shows.
Can I set prices by markup in one product and by margin in another with Costory?
Yes. Each price rule picks its own preset, Markup or Margin among others, and covers all products or a scope of collections, tags or product types. Every variant follows exactly one rule, and Costory shows the margin of the resulting price whichever preset produced it.
Related
Margin calculator
Free margin and markup calculator: margin, markup and profit from cost and price, or the price for a target margin or markup, after payment fees.
Open the calculator →Margin-based pricing
Price rules that set Shopify prices from cost by markup, margin, cost plus or tiers, with rounding and margin guards.
Learn more →Repricing when costs change
How much to raise a price when its cost rises, keep margin or keep markup, price endings, and the ways to change prices in bulk in Shopify.
Read the guide →Price by margin without the spreadsheet.
Free for up to 10 products. Paid plans start with a 14-day trial.
Install free on Shopify