BusCalcTools

Profit Margin Calculator for Ecommerce

Last reviewed:

Calculate ecommerce profit margin after platform fees, shipping, and ad spend. Built for Amazon, Etsy, eBay, and Shopify sellers.

Profit margin equals profit divided by revenue. Gross margin uses cost of goods sold; net margin subtracts all costs and tax. A healthy small-business net margin is ten percent.

Ecommerce profit margins run 5-15% net for physical-product sellers and 8-20% net for digital. Ad spend, payment processing (2.9%+$0.30 on Stripe), shipping, returns, and platform fees compress that quickly. A real margin calculator separates per-order contribution margin from fully-loaded net margin โ€” the distinction that determines profitability.

The fastest way to bankrupt an ecommerce brand is to optimise revenue while ignoring contribution margin. Top-line growth funded by a 5x ROAS on a 35% gross-margin product is a slow leak โ€” every order makes the loss bigger because variable costs eat the margin before fixed costs are even covered.

To read ecommerce P&L through a Revenue/COGS/OpEx margin tool, group your costs into the lines that actually move:

Per-order variable costs: - COGS (landed cost including supplier, freight, duties, packaging) - Payment processing (Stripe 2.9%+$0.30; PayPal 3.49%+$0.49; Shopify Payments lower) - Fulfilment (pick, pack, ship โ€” typically $4-12 per order via 3PLs like ShipBob) - Shipping (usually subsidised or absorbed) - Customer acquisition cost (ad spend รท new customers)

Contribution margin = price minus all of the above. If this is negative, no volume of orders saves the business.

Period costs (fixed-ish): - Software stack (Shopify, Klaviyo, Postscript, returns tools โ€” typically 3-7% of revenue at scale) - Salaries - Returns and refunds (apparel: 20-30%, electronics: 8-15%, beauty: 5-10%)

Net-margin benchmarks by category (Shopify and McKinsey data): - Beauty / cosmetics: 10-15% - Apparel: 5-12% - Electronics: 3-8% - Home goods: 8-14% - Supplements: 12-20%

The single biggest leverage point in DTC ecommerce isn't ad spend โ€” it's repeat purchase rate. A brand with 30% second-order rate at 90 days is worth 2-3x a brand at 10% second-order, because CAC amortises across a longer LTV. You can see this in the margins by re-running OpEx with a lower per-order acquisition cost as repeat rate rises. For DTC benchmarks, the Shopify State of Commerce report and the U.S. Census Bureau's quarterly e-commerce sales release are useful references.

Worked example

DTC ecommerce example โ€” per-order vs fully-loaded.

A supplements brand does $750,000 in revenue. COGS captures per-order variable costs โ€” landed product, payment processing at 2.9%+$0.30, and 3PL fulfilment โ€” at $300,000. Operating expenses hold ad spend, the Shopify/Klaviyo software stack, salaries, and refunds at $375,000. Tax is left out to focus on unit economics.

  • Gross margin: (750,000 โˆ’ 300,000) รท 750,000 = 60%, a strong per-order contribution.
  • Operating profit: 450,000 โˆ’ 375,000 = $75,000, an operating margin of 10%.

That 10% sits at the low end of the 12-20% supplements benchmark, and the story is in the OpEx line: a 60% contribution margin is healthy, but ad spend and software are eating most of it. The lever here isn't deeper COGS cuts โ€” it's lifting repeat-purchase rate so acquisition cost amortises across more orders.

See the formula
See parent calculator at /profit-margin-calculator for the full formula reference.

Frequently Asked Questions

How do I capture platform fees, shipping, and ad spend in just three cost inputs?
Put per-order variable costs โ€” landed COGS, payment processing (Stripe 2.9%+$0.30), fulfilment, and shipping โ€” into the COGS field. Put period costs like ad spend, your software stack, and salaries into Operating Expenses. That split lets gross margin approximate per-order contribution and net margin show the fully-loaded result, which is the distinction that decides profitability.
Does customer acquisition cost go in COGS or Operating Expenses?
Total ad spend belongs in Operating Expenses, because it's a period cost spread across the whole catalogue rather than a per-unit input. If you want a true per-order contribution view, you can instead load the per-order CAC (ad spend รท new customers) into COGS. Pick one approach and stay consistent so your margins don't double-count acquisition.
What net margin should an ecommerce store expect?
Physical-product sellers typically run 5-15% net and digital 8-20%. By category (Shopify and McKinsey data): beauty 10-15%, apparel 5-12%, electronics 3-8%, home goods 8-14%, supplements 12-20%. Returns drag heavily in some categories โ€” apparel returns of 20-30% can erase a thin margin โ€” so benchmark against your specific niche, not the blended average.
Why does my gross margin look fine but my net margin disappear?
Because ad spend, software, and returns live below the gross line. A product with healthy 50% gross can still net near zero once a low ROAS, a 3-7%-of-revenue software stack, and 20%+ apparel returns hit Operating Expenses. Load those into OpEx and the calculator will show exactly where the contribution margin leaks away before reaching the bottom line.

Related calculators

Methodology & sources

Rates last verified: May 2026

Read the full methodology โ†’

Tax rate defaults reflect each region's headline corporate tax rate. Override the rate if your effective rate differs (e.g. UK small profits rate, US state tax additions).

Rates are reviewed annually or when a region changes its headline rate. If you spot one that's out of date, email [email protected].

For information only. This calculator does not constitute financial, accounting, or tax advice. Consult a qualified professional before making business decisions.

Try these scenarios

Pre-filled examples โ€” click any chip to load the inputs and result.

How to calculate profit margin

  1. Pick your regionToggle USA, UK, or South Africa to load the right currency symbol and pre-fill the corporate tax rate.
  2. Enter total revenueType your sales or revenue for the period in the Revenue field.
  3. Enter cost of goods sold (COGS)Add the direct costs to produce or buy what you sold.
  4. Add operating expenses (optional)Add rent, salaries, marketing, and overhead to unlock the operating margin result.
  5. Read your margin tierGross, operating, and net margin display with color-coded interpretation โ€” green is healthy, amber is caution, red needs action.

Found this calculator useful?

Save it to a Pinterest board for later, or share with your team.

Save to Pinterest
JB

Written by

James Blanckenberg

Founder, BusCalcTools

Founder of BusCalcTools and FinnCalc. Builds practical financial calculators for small business owners and freelancers across the US, UK, and South Africa.

Editorial review by: James Blanckenberg, Founder & Editor

More about James โ†’

One short email a month

New calculators, pricing tactics, and small-business numbers worth knowing. No spam, unsubscribe in one click.