Net profit is what is left of your sales after you subtract every real cost of making them: refunds, the cost of the products, shipping, payment fees, advertising and the fixed costs of running the business. It is the only number that tells you whether your store is making money, and it is the one most store owners never see in a single place.
Most stores look at revenue in Shopify and ROAS in Ads Manager and assume that tells them how they're doing. Neither does. Revenue counts money that will be refunded and money that never belonged to you, like sales tax or VAT. ROAS compares ad spend to revenue, not to profit, so it ignores whether each sale leaves anything after product and shipping. Both numbers can go up while the money in the bank goes down.
The net profit formula
Your real net profit starts from what customers paid and subtracts, line by line, every real cash outflow linked to those sales. It is not an estimate: done right, it reconciles with what reaches your bank account over time.
Net sales = Gross sales − Refunds − Taxes collected (VAT / sales tax) Net profit = Net sales − COGS − Shipping − Payment fees − Ad spend − Fixed costs Net margin (%) = Net profit ÷ Net sales × 100
Each line deserves a short explanation, because each one is a place where profit quietly leaks.
Gross sales and taxes
Gross sales are what customers paid at checkout. If your prices include VAT, or you collect sales tax, that portion is not yours: you hold it for the tax authority. Remove it before you calculate margin, otherwise every percentage you compute is inflated by the tax rate.
Refunds and cancellations
A sale that is later refunded is not revenue. Subtract refunds and cancellations, and attach them to the original order rather than to the day the refund is processed, or your daily and monthly margins will swing for reasons that have nothing to do with performance.
COGS (cost of goods sold)
COGS is what each unit you sold cost you: the supplier price plus anything needed to get it to your warehouse, such as inbound freight and import duties. Use the cost per variant, not an average across the catalogue, because a store's margin is usually carried by a few products and diluted by others.
Shipping, fulfilment and payment fees
Shipping is what you actually paid the carrier or your 3PL, not what the customer paid at checkout. If you offer free shipping, all of it is your cost. Payment fees are charged on every transaction by Shopify Payments, Stripe, PayPal or your local gateway, usually a percentage plus a fixed amount per order. On small orders the fixed part matters more than people expect.
Ad spend
Use what Meta, TikTok and Google actually charged you for the period, not what they report as attributed revenue. Spend is a hard number; attributed revenue is an estimate. That difference is the reason dashboard ROAS and real profit drift apart.
Fixed costs
Apps, the Shopify plan, software, tools, salaries or freelancers. They don't change with each order, so many stores leave them out of the daily view. Leave them out of contribution margin if you like, but include them in net profit: a store that covers its variable costs but not its fixed ones is still losing money.
If you don't subtract every cost in the same place, you're not measuring profit — you're decorating revenue.
A worked example: one month of a Shopify store
Imagine a store that ships 1,000 orders in a month. Prices in this example exclude sales tax to keep the arithmetic simple. Its numbers look like this:
| Line | Amount | Running total |
|---|---|---|
| Gross sales (1,000 orders) | $50,000 | $50,000 |
| − Refunds and cancellations | $2,500 | $47,500 (net sales) |
| − COGS of the orders kept | $15,000 | $32,500 |
| − Shipping paid to carriers | $4,500 | $28,000 |
| − Payment fees (2.9% of $50,000 + $0.30 × 1,000) | $1,750 | $26,250 |
| − Ad spend (Meta + TikTok) | $14,000 | $12,250 |
| − Fixed costs (apps $600 + team and tools $3,000) | $3,600 | $8,650 (net profit) |
Payment fees = 0.029 × 50,000 + 0.30 × 1,000 = 1,450 + 300 = $1,750 Blended ROAS = 50,000 ÷ 14,000 = 3.57x Net profit = 47,500 − 15,000 − 4,500 − 1,750 − 14,000 − 3,600 = $8,650 Net margin = 8,650 ÷ 47,500 = 18.2%
A 3.57x ROAS sounds excellent. The store actually keeps $8,650 of the $50,000 it sold, or 18.2% of net sales. That is a healthy business, but a very different picture from the one the ads dashboard paints. And notice how sensitive it is: if refunds doubled to $5,000 and ad spend rose by $4,000 without extra sales, net profit would fall to 8,650 − 2,500 − 4,000 = $2,150, a drop of three quarters, while revenue barely moved.
Net profit vs gross profit vs contribution margin
These three get mixed up constantly, and the difference matters for decisions.
- Gross profit = Net sales − COGS. In the example: 47,500 − 15,000 = $32,500. It tells you whether your pricing covers your products.
- Contribution margin = Net sales − all variable costs (COGS, shipping, fees, ads). In the example: $12,250. It tells you whether each extra order adds money.
- Net profit = Contribution margin − fixed costs. In the example: $8,650. It tells you whether the business as a whole makes money.
Use contribution margin to decide whether to scale a product or a campaign, and net profit to decide whether the business model works. Looking only at gross profit is how stores with 65% gross margins end up losing money once ads and shipping are counted.
The mistakes that make net profit look better than it is
- Calculating margin on revenue that still includes VAT or sales tax.
- Using a single average product cost instead of the cost of each variant actually sold.
- Counting the shipping the customer paid instead of what the carrier charged you.
- Forgetting payment fees, especially the fixed fee per order on low-ticket products.
- Using platform-attributed revenue instead of real orders when judging ad profitability.
- Subtracting refunds in the month they're processed instead of against the sale they reverse.
- Leaving out apps and subscriptions because they 'aren't really per order'.
Why calculate it every day
Margin moves with every product change, shipping country and campaign. A new creative can bring cheaper clicks on a lower-margin product; a carrier can raise rates for one destination; a supplier can change a price. Checking net profit once a month, in a spreadsheet you reconcile by hand, is too late to cut what loses money and scale what earns it. Seen daily, margin becomes a lever rather than a report.
Daily doesn't mean every number is final that day. Refunds arrive later and some carrier invoices lag. The point is to have a running estimate, updated as the real costs come in, that is close enough to steer by.
How to set it up
- Enter the cost of every variant (supplier price plus inbound freight and duties).
- Record real shipping costs per order or per destination, not a flat guess.
- Set the payment fee rates of each gateway you use.
- Pull actual ad spend from each platform, per day.
- List your fixed monthly costs and spread them across the days of the month.
- Attach every refund and cancellation to its original order.
You can do all of this in a spreadsheet if you're disciplined about updating it. ProfitFly does it automatically: it connects Shopify with Meta and TikTok and gives you your real net profit per day, product and country, without touching a spreadsheet.
Frequently asked questions
What is a good net profit margin for an ecommerce store?
There is no universal number: it depends on your category, price point and how much you rely on paid ads. What matters is that it is positive after fixed costs and stable or rising as you scale. Track your own trend rather than chasing a benchmark.
Should I include VAT or sales tax in revenue?
No. Tax collected from customers belongs to the tax authority. Calculate margins on net sales excluding tax, or every percentage will be inflated.
Is ROAS a good proxy for profit?
No. ROAS compares ad spend to revenue and ignores product, shipping and fee costs. Two campaigns with the same ROAS can have opposite profit if they sell products with different margins.
What is the difference between net profit and contribution margin?
Contribution margin is net sales minus variable costs, including ads. Net profit also subtracts fixed costs such as apps and salaries.