Skip to content
EcomMath

Profitability

How to Calculate True Net Profit Margin in E-commerce

Learn how to calculate true net profit margin, break-even ROAS, and the hidden fees that shrink e-commerce profit, with worked examples and free calculators.

By EcomMath Team · · 8 min read

Net profit margin calculation for an online store
In this article

A store can show strong revenue and a healthy return on ad spend and still lose money on every order. The reason is simple: dashboards report sales, not profit. This guide shows how to calculate your true net profit margin, how to find the break-even ROAS for a product, and which hidden costs most often turn a good-looking campaign into a loss.

Why revenue and ROAS are not profit

Revenue is the money customers pay you. Profit is what is left after you pay for the product, the shipping, the payment processor, the ads, and everything else tied to that order. ROAS (return on ad spend) only compares revenue to ad spend, so it ignores every other cost.

A 3.0x ROAS sounds excellent. If your product, shipping, and fees already use up most of the selling price, a 3.0x ROAS may barely break even. To judge a campaign, you need the margin that remains before ads, and then the margin that remains after them.

The true net profit margin formula

Start with a single order. Add every cost that order creates:

  • Net profit per order = Selling price - (product cost + shipping and fulfillment + payment fees + ad cost per purchase + any other per-order costs)
  • Net profit margin (%) = (Net profit / Selling price) x 100

Here is a worked example for a product that sells for $60.

Line itemPer order
Selling price$60.00
Product cost$18.00
Shipping and fulfillment$7.00
Payment processing (2.9% + $0.30)$2.04
Contribution before ads$32.96
Ad cost per purchase (CPA)$20.00
Net profit$12.96
Net profit margin21.6%

You can check this with the True Profit Calculator. Enter 60 as the selling price, 18 as the product cost, 20 as the ad cost per purchase, and 9.04 as shipping and fulfillment (the $7.00 of shipping plus the $2.04 payment fee). The tool returns a net profit of $12.96 and a margin of 21.60%.

Break-even ROAS: the minimum your ads must return

Break-even ROAS tells you how much revenue each ad dollar must produce before you stop losing money. The formula is:

Break-even ROAS = Selling price / Contribution before ads

Using the example above, the contribution before ads is $32.96, so:

60 / 32.96 = 1.82x

Every ad dollar must bring back at least $1.82 in sales. Your maximum allowable cost per purchase is the same $32.96. Spend more than that to win one order and you lose money on it.

To keep a 20% net margin, the target is higher. Ad spend per order must leave $12 (20% of $60) in profit, so the allowed ad cost is $32.96 - $12.00 = $20.96, and the target ROAS is 60 / 20.96 = 2.86x. In this example, a $20 cost per purchase (a 3.0x ROAS) clears that target.

The Break-Even ROAS Calculator does these steps for you: break-even ROAS, max CPA, and a target ROAS for a 20% profit.

The mistake that makes ROAS look better than it is

Many sellers calculate break-even from product cost alone. With a $60 price and $18 product cost, the margin looks like $42, and the break-even ROAS looks like 60 / 42 = 1.43x. The true figure is 1.82x. If you run campaigns at a 1.5x ROAS, you think you are profitable. In reality the cost per purchase is $40, which is $7.04 more than the $32.96 you can afford, so you lose about $7.04 on every order.

Hidden fees that quietly shrink your margin

Most profit leaks come from costs that never appear in an ad dashboard.

Payment processing and platform fees

Every sale pays a percentage plus a fixed fee. The fixed part hurts most on low-priced items: on a $10 order, a $0.30 fixed fee adds three percentage points to your effective rate. If you use a third-party payment gateway instead of your platform’s own, the platform may add an extra transaction fee on top, and the amount depends on your plan. The Shopify and Gateway Fee Calculator shows the total fee, effective rate, and exact payout for Shopify Payments, Stripe, and PayPal. Always confirm current rates in your own account.

Shipping and dimensional weight

Carriers bill the larger of actual weight and dimensional weight, which is based on package size. A large, light box can cost far more to ship than its weight suggests. Use the Dimensional Weight Calculator to find your billable weight before you set a shipping price, and test smaller packaging if you are being billed for empty space.

Import duties, freight, and taxes

If you source from overseas, the supplier invoice is only part of your cost. Freight, insurance, duties, import taxes, and brokerage all add up before a unit reaches your shelf. The Landed Cost Calculator spreads those costs across your units and shows a landed cost per unit. Use that figure, not the invoice price, as your product cost in every other calculation.

Discounts and promotions

A discount cuts your selling price, but your costs stay the same, so profit falls much faster than the discount percentage. In our example, 20% off drops the price from $60 to $48. Payment fees fall to $1.69, but product cost, shipping, and the $20 ad cost do not move, so net profit drops from $12.96 to about $1.31. That is a 20% discount that removes roughly 90% of your profit. Before you run a sale, use the Target Profit Pricing Calculator to see your break-even price, your maximum safe discount, and how much extra volume you would need to earn the same total profit.

Returns, refunds, and chargebacks

A refunded order usually means you lose the product’s shipping cost and often the processing fee, and you may not be able to resell the item. A modest return rate can erase several percentage points of margin, so build a returns allowance into your per-order costs.

Stockouts and overstock

Running out of a bestseller stops sales and wastes ad momentum. Overbuying locks cash in slow-moving stock. The Inventory Reorder Calculator gives you a reorder point and safety stock from your daily sales and supplier lead time, so you reorder at the right moment.

Conversion problems that raise your ad cost

If many visitors reach your product page and few buy, every order costs more ad spend to win. Weak trust signals, hidden shipping costs, thin descriptions, and missing structured data all push your cost per purchase up. The Product Sales Health Analyzer scans a product page and lists the issues most likely to hurt conversion, with a fix for each one.

Check your unit economics before you scale

Profit on the first order is only part of the picture. Customer acquisition cost (CAC) compares what you pay to win a customer with what that customer is worth over time.

  • CAC = Total ad spend / New customers. With $5,000 spent and 250 new customers, CAC is $20.
  • LTV (this guide uses revenue) = Average order value x Orders per customer. With a $60 order value and 1.5 orders per customer, LTV is $90.
  • LTV:CAC ratio = 90 / 20 = 4.5:1

A ratio of 3:1 or higher is a common benchmark for healthy scaling. For a stricter view, use profit instead of revenue. Using the $32.96 contribution per order gives an LTV of 32.96 x 1.5 = $49.44, and a ratio of 2.47:1. That is a more cautious picture and a better basis for deciding how hard to push spend. The CAC and LTV Ratio Calculator handles both.

A simple order of operations

Follow this sequence for every product you plan to advertise:

  1. Calculate landed cost per unit with the Landed Cost Calculator.
  2. Estimate shipping using billable weight from the Dimensional Weight Calculator.
  3. Add payment fees using the Shopify and Gateway Fee Calculator.
  4. Find your break-even ROAS and maximum CPA with the Break-Even ROAS Calculator.
  5. Set a price that hits your target margin with the Target Profit Pricing Calculator. In our example, a 20% net margin at a $20 cost per purchase needs a price of about $58.75.
  6. Compare your real cost per purchase to your limit, then confirm your margin with the True Profit Calculator.
  7. Check that customer value supports your spend with the CAC and LTV Ratio Calculator.
  8. Keep stock healthy with the Inventory Reorder Calculator.
  9. If your cost per purchase is too high, audit the page with the Product Sales Health Analyzer.

Frequently asked questions

What is a good net profit margin for an online store?

Many healthy e-commerce stores aim for a net margin of roughly 10% to 20% after ad spend. The right target depends on your category, repeat purchase rate, and how much you reinvest in growth.

What is the difference between gross margin and net profit margin?

Gross margin subtracts only product cost from the selling price. Net profit margin also subtracts shipping, fees, ads, and other per-order costs, so it shows what you actually keep.

Should I include rent, software, and salaries?

This guide measures profit per order, which is the right level for pricing and ad decisions. To find the net margin of the whole business, add up the profit from all orders in a period and then subtract fixed overhead such as software, salaries, and rent.

The figures in this guide are examples for planning. Fees, carrier rules, and duties change, so confirm current rates with your providers before making decisions.

Back to all articles