Gross profit margin for online shops: how to work it out, and what every discount costs it
What's left of each sale once you've paid for the goods in it. It's the number every discount, free gift and generous returns policy quietly spends.
- 052Gross Profit Margin
- A financial metric indicating the percentage of revenue that exceeds the cost of goods sold, showing how efficiently a company produces its goods.

- Worked out as
- Revenue minus cost of goods, divided by revenue, multiplied by a hundred
- Not the same as
- Markup, which divides the same profit by cost instead of price
- Where Shopify shows it
- Gross profit reports, for products with a cost per item filled in
- Worn down by
- Discounts, returns and supplier price rises
What counts as cost of goods in an online shop
Let's face it: the formula's the easy bit. The argument is over what goes into the cost of goods, and two shops selling the same product can report different margins because they drew the line in different places.
- The product itself, from your supplier or your own production
- Freight and import duty to get it into your warehouse
- Packaging that ships with every order, if you count it here
- Often kept below the line: postage to the customer, payment fees, the ads and the agency
Where the line sits is your accountant's call, not ours, and none of this is financial advice. Just keep the line in the same place every month. Move it and the trend means nothing.
Why every discount comes straight out of gross profit
Here's the hard truth: your supplier didn't give you a discount. When you take money off the price, the cost of the goods stays exactly where it was. So the whole discount comes out of your profit.
That's how a sale can lift revenue and shrink profit in the same week. The order count goes up, the profit per order comes down, and the email that sent the code reports the revenue as a win. Email reports count revenue, not margin.
Using product margins to decide what your emails sell
Margin by product is the spreadsheet your email team should have and usually doesn't. Shopify will build it for you, as long as every product has a cost per item filled in. Once it exists, a few decisions make themselves.
| Where it shows up | What margin changes |
|---|---|
| The cross sell flow | Recommend what you make the most on, alongside the bestsellers |
| The welcome offer | Whether the code is earning its keep or handing margin to people already sold |
| A quiet month | A bundle of a high margin hero and slow stock, instead of a sitewide code |
| Free gifts | Something that costs you little and feels generous, with the sum done first |
We've written up whether your welcome flow needs a discount and the alternatives to discounting in a quiet month. Both come back to this number, and so does the cross sell flow.
Related terms
FAQs

What's the difference between gross margin and markup?
Markup divides your profit by what the item cost you. Margin divides the same profit by what the customer paid. On anything sold at a profit, the price is higher than the cost, so margin always comes out as the smaller number. Mix them up and you'll think you're more comfortable than you are.
Is gross profit margin the same as net profit margin?
No. Gross margin only takes off the cost of the goods. Net margin takes off everything else as well: salaries, software, rent, the agency, interest and tax. A shop can have a healthy gross margin and still lose money, if its overheads grow faster than its sales.
What gross margin should an ecommerce brand aim for?
There isn't a number that travels between categories. A supplement brand and a furniture brand live very different lives. The useful questions are whether your margin pays for what it costs to win a customer, and whether it's rising or falling against last year, measured the same way.
Rather we explained it on your own account?
Bring your Klaviyo account to a growth consultation. We'll walk through what this means for your numbers, in plain English, and what we'd fix first.


Half an hour with Theo, our founder.
We're all about relationships built on trust, mutual respect and a shared vision for success. If that sounds like your vibe, let's make some waves together 🌊



