How to calculate true profit on Shopify
Shopify shows sales, not profit. Here is the full formula for true Shopify profit: every cost, in order, with a worked example.
Shopify’s analytics tell you what you sold. They do not tell you what you kept. To find true profit you have to subtract every cost an order carries, including the ones Shopify never sees.
Step 1: Start from net sales
Begin with gross sales (product prices), then subtract discounts and refunds. The result is net sales, sometimes called revenue. Taxes you collect for the government are not your money, so leave them out.
Step 2: Subtract the costs of each order
| Cost | Where it comes from |
|---|---|
| Product costs (COGS) | What you paid for the units you sold |
| Shipping | The labels or fulfilment you paid for, not what the customer paid |
| Payment fees | Your gateway’s percentage plus fixed fee |
| Variable costs | Packaging, handling, inserts |
What remains is contribution profit: what each order contributes before marketing and overheads.
Step 3: Subtract marketing and operating costs
Subtract ad spend for the period, then operating costs such as apps, software, salaries and rent. The result is net profit.
A worked example
| Amount | |
|---|---|
| Net sales | $12,455 |
| − Product costs | $4,120 |
| − Shipping | $1,180 |
| − Payment fees | $395 |
| = Contribution profit | $6,760 |
| − Advertising | $1,050 |
| − Operating costs | $898 |
| = Net profit | $4,812 (38.6% margin) |
The mistakes that inflate profit
- Missing product costs. A product without a cost looks 100% profitable. Check coverage: what share of units sold actually have a cost?
- Old costs applied to new orders, or new costs rewritten onto old orders. Costs need effective dates.
- Ignoring refunds and returns. A refunded order still cost you shipping and fees.
- Using what the customer paid for shipping instead of what you paid.
Doing it automatically
Spreadsheets break as soon as costs change. Optifin applies every cost to every order, keeps effective-dated product costs, and shows coverage on every number, so a missing cost is never silently counted as $0. Try the profit margin calculator for a single order.