In short
- Margin = (price − cost) ÷ price. $30 − $17 = $13, and $13 ÷ $30 = 43.3%.
- Markup = (price − cost) ÷ cost. The same sale is a 76.5% markup.
- Price for a margin = cost ÷ (1 − margin). A 60% margin on $17 needs $42.50.
- Break-even ROAS = 1 ÷ margin. At 43.3%, ads must bring 2.31× their cost in sales.
How to use the profit margin calculator
- Choose what to find: the margin of a price, the price a margin needs, or the price a markup gives.
- Enter the product cost and, if you want the margin a sale really leaves, the other costs of one sale: shipping, packaging, payment fees. Leave them at 0 for the gross margin.
- Read the bars. They split the price into its costs and what you keep; the line below says what that leaves for ads.
- Copy the link to keep the result or send it to someone.
How to calculate profit margin
($30 − $17) ÷ $30 = 43.3%.
That is the T-shirt example above: it sells at $30, costs $11 to buy and $6 to ship and pack. Each sale leaves $13 - 43.3% of the price. Use the price without sales tax or VAT: that money is not yours.
Gross margin and the margin per sale
The same product has two margins, and both are useful:
- Gross margin counts the product cost only: ($30 − $11) ÷ $30 = 63.3%. Suppliers, price lists and accountants speak in gross margin.
- The margin per sale also counts what every order costs you - shipping, packaging, payment fees: 43.3%. This is the one that pays for ads.
Rent, apps, your plan and your own time come after both. The Shopify profit calculator takes a whole month and shows the net profit after all of them.
Margin vs markup
Same profit, two bases. $13 on $17 of costs is a 76.5% markup; on a $30 price it is a 43.3% margin.
Markup is always the bigger number, so mixing them up makes a price look better than it is. To turn one into the other:
| Margin | Markup | Price of a $10 cost |
|---|---|---|
| 20% | 25% | $12.50 |
| 30% | 42.9% | $14.29 |
| 40% | 66.7% | $16.67 |
| 50% | 100% | $20.00 |
| 60% | 150% | $25.00 |
| 70% | 233.3% | $33.33 |
| 80% | 400% | $50.00 |
Markup = margin ÷ (100 − margin); margin = markup ÷ (100 + markup). "Keystone" pricing - double the cost - is a 100% markup and a 50% margin.
How to price a product for the margin you want
$17 ÷ (1 − 0.6) = $42.50 for a 60% margin.
The common mistake is to add the margin to the cost: $17 × 1.6 = $27.20, which is only a 37.5% margin. Choose "Find the price" in the calculator, then round to a price your customers expect.
How a discount eats your margin
A discount comes off the price, but all of it comes out of your profit. The table shows how many more sales a discount needs to leave the same profit as before:
| Your margin | 10% off | 20% off | 30% off |
|---|---|---|---|
| 30% | +50% | +200% | no profit left |
| 40% | +33% | +100% | +300% |
| 50% | +25% | +67% | +150% |
| 60% | +20% | +50% | +100% |
At a 40% margin, 20% off halves the profit per sale, so it takes twice the sales. Before a sale, check that it can really bring that many more orders - the Black Friday guide compares it with what a typical store sells on the day.
Profit margin and ads
The profit per sale is the most one order can cost in ads before the sale loses money. As a return on ad spend, that line is 1 ÷ margin:
| Margin per sale | Break-even ROAS | ROAS to keep 10% |
|---|---|---|
| 20% | 5.00× | 10.00× |
| 30% | 3.33× | 5.00× |
| 40% | 2.50× | 3.33× |
| 50% | 2.00× | 2.50× |
| 60% | 1.67× | 2.00× |
The T-shirt at 43.3% breaks even at 2.31×. To keep 10% of the price - $3.00 a sale - its ads must cost at most $10.00 per order, a ROAS of 3.00×. A thin margin makes every ad channel look expensive; advertise the products with the most room. The ROAS calculator checks a campaign, and the guide to a good ROAS explains the lines.
Customers who come back are worth more than one sale: the customer lifetime value calculator shows how much you can pay to win one.
What this calculator does not tell you
- Monthly costs. Apps, your plan and salaries do not belong to one sale. The Shopify profit calculator adds them.
- Returns. If one order in ten comes back, add the cost of returns to "Other costs per sale".
- The right price. A margin says what a price leaves, not what customers will pay. Compare your price with the stores that sell the same thing.
By Bart Ziem, Adeagle · Formulas: the standard definitions of margin, markup and return on ad spend · Examples, not promises: your result depends on your products and prices