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
- 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.
- 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.
- 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.
- 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.
- 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?
- Every cost line, not just price minus cost — COGS, shipping, gateway fee, ad cost, expected return loss and other fees each get their own line, so the gap between the gross margin you quote and the net margin you keep is fully explained.
- Gateway presets with a custom option — Stripe, PayPal Checkout and Shopify Payments at their published US card rates, plus a custom rate for any other processor. The fixed fee matters most on low-price items, and presets keep it from being forgotten.
- Return math that reflects reality — a return costs the refund, the shipping you ate, the fee nobody returns and handling, minus COGS only when the product is actually resold. Two toggles capture the two cases most margin calculators get wrong.
- Target-margin price solver — enter the margin you need (20% is a common healthy floor) and the calculator solves for the price that delivers it at your cost structure, so pricing decisions start from the required number instead of a guess.
- Gross vs net margin, side by side — the defaults show 75.5% gross against 39.6% net. That 36-point gap is the entire story of ecommerce pricing, and seeing it on your own numbers is what stops underpricing.
- Exportable for pricing reviews — download the breakdown as CSV or print it to PDF for a product launch or a pricing meeting. Your costs and prices never leave your browser.
Common Use Cases
- Pricing a new product before launch: A $49 product with $12 COGS, $5.50 shipping, Stripe fees, $8 ad cost and 5% returns keeps $19.42 per order at a 39.6% margin — comfortably above a 20% floor. The launch question is answered before the listing goes live: the price works, and the margin has room for an introductory discount of up to about $10 before it approaches the floor.
- Discovering that a bestseller is barely profitable: The same product on PayPal Checkout instead of Stripe, with a 20% fashion return rate and $4 handling, keeps far less: gateway $2.20, return loss 20% × ($49 + $5.50 + $2.20 + $4.00 − $12.00) = $9.74, net $49 − $12 − $5.50 − $2.20 − $8 − $9.74 = $11.56, a 23.6% margin. Still positive — but a single ad-cost increase erases it, which is the warning the gross margin never gave.
- Deciding whether to raise prices or cut ad spend: At a 15% target margin the solver prices the default cost structure at about $33.32 — already below the $49 price, so price is not the problem. If ad cost rises from $8 to $15, net falls to $12.42 (25.3%) and the solver's 20% price rises to about $45.36 — still below $49, so the business absorbs the ad increase without repricing. The solver turns 'should we raise prices?' into arithmetic.
- Comparing two products for the same ad budget: Product A ($49, $12 COGS, 5% returns) nets $19.42 per order; product B ($29, $9 COGS, $3.50 shipping, 10% returns, $6 ad cost, Stripe) nets $29 − $9 − $3.50 − $1.14 − $6 − 10% × ($29 + $3.50 + $1.14 + $3.00 − $9.00) = $29 − $9 − $3.50 − $1.14 − $6 − $2.76 = $6.59, a 22.7% margin. Same ad budget buys more profit per order on product A — the calculator makes the assortment decision instead of revenue rankings.
Ecommerce Profit Margin Calculator vs Alternatives
- tools.dailyutilitylab.com's ecommerce profit margin calculator: The closest existing tool: the same six-line formula (price, COGS, shipping, gateway, ads, returns) with presets and a target-price tile. What it does not offer is gateway presets beyond a single rate, return-handling toggles (COGS recovered, fee refunded), or CSV/print export — the additions that make the return line auditable instead of assumed.
- themargincalculator.com's ecommerce margin calculator: A clean category-target guide (35%+ apparel, 30%+ home goods, 40%+ beauty, 25%+ electronics) with the same true-net-margin framing. It is a guide with a calculator attached; this page is a calculator with the guide built in, including the target-price solver that turns a category target into a price.
- gotinker.dev's Shopify profit calculator: A straightforward Shopify-focused margin tool with COGS, shipping, ad cost and processing rate. It stops at the headline margin and does not model returns — the line that separates a 39.6% margin from a 23.6% one in fashion — which is where this page earns its keep.
- Your accounting software or a spreadsheet: The authoritative record of what you actually kept last quarter, and the place to verify any number here. A spreadsheet answers last quarter; this calculator answers next quarter's pricing question — what happens to margin if returns rise, ad costs move, or the gateway changes — in one slider move.
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.