Ecommerce profit margins: calculate, benchmark, improve

A practical guide for Shopify and WooCommerce operators. What each margin actually measures, how to benchmark your own numbers, and the specific leaks that erode margin between the sale and the bank account.

01 — Definitions

The four margins every store should track

“Profit margin” is not one number. Each variant answers a different question, and stores get into trouble when they manage the business on the most flattering one.

MarginFormulaQuestion it answers
Gross margin(Revenue − COGS) ÷ RevenueIs your pricing right versus product cost?
Contribution margin(Revenue − COGS − variable costs) ÷ RevenueDoes this order still make money after fees, shipping, returns and ads?
Net marginNet profit ÷ RevenueWhat the business actually keeps after all operating costs.
Blended marginTotal gross profit ÷ Total revenuePortfolio view — hides the loss-making SKUs, so never use it alone.

02 — Calculation

How to calculate ecommerce profit margin

Work per order, then aggregate. Start from what the customer actually paid, not the list price.

  1. 01Net revenue = gross revenue − discounts − refunds − returned value.
  2. 02Subtract COGS: product cost plus inbound freight and duties.
  3. 03Subtract variable costs: payment and platform fees, packaging, outbound and return shipping.
  4. 04Subtract expected return cost for that product or variant.
  5. 05Subtract acquisition cost allocated to the order for a true first-order margin.

Gross margin % = (Revenue − COGS) / Revenue × 100

Contribution margin % = (Revenue − COGS − Variable costs) / Revenue × 100

Net margin % = Net profit / Revenue × 100

A worked example: a €60 order with €24 COGS has a 60% gross margin. Add €4.50 payment and platform fees, €6 shipping, €1.20 packaging and a 12% return rate costing €7.20 on average, and contribution margin drops to roughly 29% — before a single euro of advertising.

03 — Benchmarking

Benchmark against yourself before the industry

Published category averages vary widely by source, basket size and market, so they make a poor operating target. Four internal comparisons are more useful:

  • ◆Month over month: is blended contribution margin trending up or down?
  • ◆Per SKU: which products sit below your contribution floor?
  • ◆Per channel: does paid traffic still clear first-order margin?
  • ◆Per customer segment: which cohorts cost more to serve than they return?
ProfitLeakGuard score breakdown across profitability dimensions including margins, returns and discounts
Score breakdown — margin performance scored across 11 profitability dimensions.

04 — Margin leaks

Six places margin disappears

Discounting drift

Automatic and stacked discounts push effective price below your cost-plus target. Track discount as a percentage of gross revenue per SKU, not per campaign.

Return and refund cost

A return costs the item margin plus outbound shipping, return shipping, handling and often the resale value. High-return variants can be net negative even at full price.

Shipping and fulfilment

Free-shipping thresholds set below your true blended shipping cost quietly convert your best-converting offer into your biggest margin leak.

Cost creep in COGS

Supplier prices and freight move; product costs in the store often do not. Margins are calculated against stale costs for months.

Payment and platform fees

Gateway, currency conversion and app fees are a fixed percentage tax on every order — material on low-ticket, high-volume catalogues.

Unprofitable acquisition

When customer acquisition cost exceeds first-order contribution margin, more traffic makes the loss larger, not smaller.

Top priority profit leaks ranked by monthly loss with a recommended action for each leak
Priority ranking — leaks ordered by money lost per month, each with a recommended fix.

05 — Improvement

How to improve your ecommerce profit margin

01

Get costs accurate first

Load real COGS, freight and per-order variable costs. Every margin number downstream is only as good as this input.

02

Measure margin per product, not per store

Rank SKUs by contribution margin in currency, not percentage. The tail of negative-margin SKUs is where the money goes.

03

Price against contribution, not gross

Set price floors that cover COGS, fees, shipping and the expected return rate of that specific variant.

04

Cap the discount and shipping leaks

Set discount ceilings per margin band and align free-shipping thresholds with real blended shipping cost.

05

Attack returns at the root cause

Fix sizing, imagery and description issues on the specific variants that drive the return volume.

06

Re-check monthly

Margins erode continuously. Treat margin review as a recurring operating routine, not a one-off audit.

ProfitLeakGuard margin optimization recommendation for a single product with step by step instructions
Per-product margin fixes — the recommendation, the steps and the expected impact.

Do it automatically

ProfitLeakGuard does this margin work for you

Connect Shopify or WooCommerce and it calculates margin per product, order and customer segment, detects the leaks above, ranks them by monthly money lost, and tells you what to do about each one.

  • ◆Free to join the launch list
  • ◆No payment required now or later
  • ◆50% off your first month
  • ◆No obligation to buy

Join the launch

Enter your email and secure your launch discount.

Free to join. No payment required. One email at launch. No obligation to buy.

FAQ

Profit margin questions

What is a good profit margin for an ecommerce store?+

It depends on category and channel. Most online retailers work toward a gross margin high enough to absorb fulfilment, returns, discounts and paid acquisition and still leave a positive net margin. Rather than chasing a single benchmark number, compare your own margin over time and per product — a category-average figure hides the SKUs that are actually losing money.

How do I calculate ecommerce profit margin?+

Gross margin = (revenue − cost of goods sold) ÷ revenue × 100. Contribution margin subtracts variable costs such as payment fees, shipping, packaging, returns and ad spend. Net margin subtracts all operating costs as well. Calculate all three: a healthy gross margin can still hide a negative contribution margin.

Why is my revenue growing but my profit is not?+

Usually because growth is bought with margin: heavier discounting, higher paid acquisition cost, free shipping thresholds and rising return rates. Each of these is invisible in a revenue dashboard because they never appear as a line item you look at.

Does this work for both Shopify and WooCommerce?+

Yes. ProfitLeakGuard connects to Shopify and WooCommerce and reads orders, products, costs, discounts and returns to calculate margin per product, per order and per customer segment.

What does it cost to join the launch list?+

Nothing. Joining is free, no payment is required, and there is no obligation to buy. You get one email when ProfitLeakGuard opens, plus 50% off your first month.

← Back to ProfitLeakGuard