Profit
How to calculate your Shopify store’s real net profit
Revenue is easy to see in Shopify. Net profit is not. Here is the full formula, every cost that belongs in it, and the mistakes that make stores look more profitable than they are.
NexRetain Team · · 7 min read
Shopify shows you sales the moment they happen. What it can’t show you on its own is how much of that money you keep. Product costs, shipping, payment fees, ad spend, apps and staff all come out before anything reaches your bank account, and they live in different places. This guide walks through the calculation step by step.
The net profit formula
Net profit = Net sales − COGS − Shipping costs − Transaction fees − Ad spend − Operating expenses
Each line needs a precise definition, otherwise two people working from the same store will get two different answers.
1. Start from net sales, not gross sales
Gross sales is the value of items sold before anything is taken off. Net sales removes discounts and returns. Decide up front how you treat taxes (usually excluded, because you collect them on behalf of the government), shipping charged to customers, tips and gift cards. Whatever you decide, apply it consistently every period.
2. Subtract cost of goods sold (COGS)
COGS is what you paid for the products you sold: the unit cost, plus inbound freight, duties and packaging if you want a true landed cost. Common gaps:
- Variants with no cost entered, which silently count as 100% margin.
- Bundles, where the cost is the sum of the products inside.
- Different costs in different countries, for example when you stock locally in more than one market.
- Costs that changed over time, where old orders should keep the cost that applied when they were sold.
3. Subtract shipping and fulfilment
Use what you actually pay carriers and your 3PL, not what customers paid you at checkout. Costs often vary by zone, weight or number of items, and returns carry a second shipping cost that is easy to forget.
4. Subtract transaction fees
Every payment gateway takes a percentage and often a fixed amount per order. If you use a third-party gateway, Shopify may also charge its own additional fee depending on your plan. Check whether the gateway refunds its fee when you refund an order, because many don’t.
5. Subtract ad spend
Pull daily spend from every platform you advertise on, such as Meta, Google and TikTok, and convert it to your store currency on the day it was spent. Monthly totals hide the days when a campaign burned money.
6. Subtract operating expenses
Apps, software subscriptions, salaries, rent and agency fees. Spread monthly costs across the days of the month so a daily profit chart doesn’t show one huge loss on the 1st.
Why spreadsheets break
The formula is simple. Keeping every input correct is not. Costs change, refunds arrive weeks later, ad platforms revise their numbers for days afterwards, and currencies move. A profit tool such as NexRetain reads your orders as they happen, applies every cost automatically and recalculates history when a cost changes, so the number stays right without the monthly export.