Keelvia

Published 2026-07-14 · Keelvia blog

How to Calculate Net Profit for a Shopify Store

Net profit = total sales − COGS − transaction fees − shipping costs − ad spend − operating expenses. Shopify shows you the first number and hides the rest, which is why a store doing $20,000 a month can still lose money. This guide walks the exact calculation with a worked example, the margin benchmarks to aim for, and the mistakes that silently overstate your profit.

The full P&L, line by line

Worked example

LineAmount
Total sales (after refunds)$20,000
− COGS (37.5%)−$7,500
= Gross profit$12,500 (62.5%)
− Ad spend−$3,200
= Contribution profit$9,300 (46.5%)
− Fees, shipping, OPEX−$3,400
= Net profit$5,900 (29.5%)

If you'd rather not rebuild this table by hand every week, the free Shopify profit margin calculator runs the same lines in your browser, and the net profit calculator covers the general case.

Three checkpoints matter, not one: gross margin tells you if the product economics work (aim 60%+ for DTC), contribution margin tells you if your marketing is affordable (aim 35–50%), and net margin tells you if the business pays you (10–20% is healthy for most Shopify stores; under 5% means one bad month erases a quarter).

The four mistakes that overstate profit

Benchmarks move by category — returns dominate in apparel, shipping in coffee, sampling in skincare. Profit analytics by industry breaks down where each category actually loses margin.

How often should you check?

Weekly is the practical rhythm: revenue and ad spend move daily, but margins drift weekly. The stores that stay profitable treat the P&L as an operating dashboard, not a year-end report — every pricing change, shipping-rate change, and new hero SKU shows up in contribution margin within days if you're looking.

See your real net profit — free
Keelvia turns your Shopify orders into a live P&L: net profit, COGS, margins, and an AI copilot on your own key. Flat pricing, no order limits.
Install Keelvia free