Free ForeverNo SignupTrue ProfitabilityUpdated 2026

E-commerce Profit Margin Calculator

Calculate your true net profit margin after COGS, fulfilment, returns, payment fees, and marketing.

E-commerce profitability is more complex than gross margin suggests. Your true net margin = Revenue โˆ’ COGS โˆ’ Shipping โˆ’ Returns โˆ’ Payment fees โˆ’ Ad spend โˆ’ Overhead. Many stores appear profitable on gross margin but lose money once all variable costs are included.

Total gross revenue before any deductions

$

Product cost including manufacturing/wholesale

$

Total outbound shipping and 3PL fulfilment costs

$

Return shipping + restocking + refund value

$

Stripe/PayPal fees (typically 2.9% + $0.30 per transaction)

$

Paid traffic: Meta, Google, TikTok, etc.

$

Platform fees, tools, staff, storage, admin

$

The Formula

Net Profit = Revenue โˆ’ COGS โˆ’ Shipping โˆ’ Returns โˆ’ Fees โˆ’ Ads โˆ’ Overhead

In plain English

Net margin = (revenue โˆ’ COGS โˆ’ shipping โˆ’ returns โˆ’ fees โˆ’ ads โˆ’ overhead) / revenue ร— 100.

Worked Example

$100K revenue โˆ’ $40K COGS โˆ’ $12K shipping โˆ’ $5K returns โˆ’ $3K fees โˆ’ $15K ads โˆ’ $8K overhead = $17K net profit (17% margin).

The E-commerce Profitability Stack

Most e-commerce failures aren't revenue problems โ€” they're margin problems. Founders focus on top-line GMV while variable costs quietly erode profitability. The three biggest margin killers: rising CAC (ad costs), free shipping eaten into by returns, and payment fees compounding at scale.

A 30% gross margin business needs to hold all other variable costs (shipping, returns, fees, ads) to under 20% of revenue to achieve a 10% net margin. This is harder than it sounds when ad costs range from 15โ€“30% for most DTC brands.

E-commerce Margin Benchmarks (2026)

MetricPoorAverageGoodStatus

Gross margin

< 30%30โ€“50%50%+

Contribution margin

< 15%15โ€“30%30%+

Net margin

< 3%5โ€“12%12%+

Ad spend % of revenue

> 30%15โ€“25%< 15%

Source: Shopify Commerce Trends 2025 ยท Profitwell E-commerce Unit Economics Report

Common Mistakes

โš ๏ธ

Reporting gross margin as profitability

A 60% gross margin sounds great until you add shipping (12%), returns (5%), payment fees (3%), and ads (20%) โ€” leaving only 20% contribution margin. Always report the full cost stack.

โš ๏ธ

Not including return costs in per-unit economics

If 15% of items are returned, your effective COGS includes not just cost of the returned items but also return shipping and restocking. High-return categories (fashion, electronics) must factor this in from day one.

โš ๏ธ

Growing ad spend before fixing unit economics

Scaling unprofitable unit economics just accelerates cash burn. Prove profitability at small scale first, then scale ad spend. A 3% net margin at $10K revenue becomes a 3% net margin at $1M revenue โ€” not profitable, just bigger.

Frequently Asked Questions

Related Calculators