ToolNest logoToolNest.

Free Ecommerce Profit Margin Calculator

Last updated: October 23, 2026

Quick answer: Price minus product cost is gross margin, and it is not the number that decides whether a store stays in business. Payment fees, shipping, ad cost and returns each take a cut, and the most common pricing mistake is forgetting one of them. This free ecommerce profit margin calculator subtracts every line: COGS, outbound shipping, gateway fee, ad cost per order, expected return loss and other fees, with gateway presets (Stripe, PayPal, Shopify Payments, custom) and return-handling toggles (is COGS recovered, is the gateway fee refunded). On the defaults ($49 price, $12 COGS, $5.50 shipping, 2.9% + $0.30 gateway, $8 ad cost, 5% returns), you keep $19.42 per order — a 39.6% true net margin against a 75.5% gross margin, and the price that would hit a 20% net margin is just $35.63. Everything runs in your browser; your costs and prices stay private.

The return-loss model: each returned order costs the refunded price plus the shipping you already paid plus handling, minus COGS if the product is restocked and resold, plus the gateway fee if (as most processors do) it is kept — multiplied by your return rate to give the expected loss per order. On the defaults: gateway fee $1.72, return loss per returned order $47.22, expected loss $2.36 per order, net $19.42, net margin 39.6%. Apparel and footwear return rates run 15–30%, which is where this line stops being a rounding error and starts deciding the price. Worked check: $49 − $12 − $5.50 − $1.72 − $8.00 − $2.36 = $19.42. Enter 0 for shipping if the customer pays it; enter 0 for ad cost if the order is organic.

✓ Free forever  ·  ✓ No signup  ·  ✓ Tool inputs stay in your browser — never sent to our servers.

How to Use the Ecommerce Profit Margin Calculator

  1. Enter your selling price and COGS (landed unit cost: product plus inbound freight). If your price is already an order total rather than a unit price, enter the order total and the order's total COGS — the calculator works per order either way.
  2. Enter the outbound shipping you pay, or 0 if the customer pays their own shipping. Pick your payment gateway preset — Stripe, PayPal Checkout, Shopify Payments — or choose Custom and enter your processor's exact rate, because the fixed fee is the hidden killer on cheap items.
  3. Enter your ad cost per order (what one bought order costs in ads) and your return rate. Apparel-tight stores sit near 5%; fashion runs 15–30%. If you do not know your return rate, start with your category's typical range and refine it from your last quarter of orders.
  4. Set the two return toggles honestly. Untick COGS recovered for perishable, used or non-resellable stock — the returned product is then a full loss. Leave the gateway-fee-refund box unticked unless your processor actually returns its fee, because most do not.
  5. Read net profit per order and true net margin, then the target-margin price: the price that would deliver your target margin at the same cost structure. If that price is above what the market bears, the lever is cost (COGS, shipping, ad cost) or return rate — not wishful rounding.

Why Use Our Ecommerce Profit Margin Calculator?

Common Use Cases

Ecommerce Profit Margin Calculator vs Alternatives

Bottom line: gross margin flatters, net margin decides. Price to the net margin your category needs, model returns honestly, and let the target-price solver — not habit — set the number on the listing.

Frequently Asked Questions

What is the difference between gross margin and true net margin?
Gross margin is (price − COGS) ÷ price: on the defaults, ($49 − $12) ÷ $49 = 75.5%. True net margin subtracts everything else too — shipping, gateway fees, ad cost, expected return loss and other fees — then divides by price: $19.42 ÷ $49 = 39.6%. Gross margin answers what the product is worth; net margin answers what the business keeps. Pricing on gross margin alone is the most common reason a store with healthy-looking products runs out of cash.
How is the expected return loss calculated?
As return rate × cost of one return, where one return costs the refunded price + shipping already paid + handling − COGS if restocked and resold + the gateway fee if kept (the usual case). On the defaults: 5% × ($49 + $5.50 + $1.72 + $3.00 − $12.00) = 5% × $47.22 = $2.36 per order. For fashion at a 25% return rate, the same line becomes $11.81 per order — which is why return rate, not price, is often the lever that matters.
Why does the gateway's fixed fee matter so much on cheap items?
Because it does not scale with price: $0.30 is 0.6% of a $49 order but 3% of a $10 order and 6% of a $5 order. Two stores with the same percentage rate can have very different effective rates purely from ticket size, which is why the calculator shows the gateway fee as its own dollar line instead of folding it into a percentage.
What net margin should an ecommerce store target?
20% or more is healthy for most categories, 10–20% is workable, and under 10% leaves almost no room for overhead, refunds spikes or ad-cost inflation. Category targets differ: apparel and footwear need 35%+ because returns eat margin fast, home goods and hard goods typically target 30%+, beauty and consumables 40%+, electronics and accessories 25%+. The target-margin input defaults to 20% — raise it to your category's target and let the solver price to it.
Should marketplace fees go in 'other fees per order'?
Yes — that line exists for platform slices, subscription allocations and packaging: Amazon referral fees, Etsy listing and transaction fees, Shopify app costs spread per order, and packaging materials. The cleaner approach is to put the per-order platform fee there and keep the gateway line purely for card processing, so each deduction stays auditable.
Why is the target-margin price lower than my current price on the defaults?
Because the defaults already beat the target: at $49 with a 39.6% net margin, you only need $35.63 to hit 20%. The solver is most useful in reverse — when your current price delivers less than your target margin, it tells you exactly how much to raise the price (or cut costs) to get there, instead of guessing at a round number.