Calculate ecommerce net profit margin by subtracting COGS, operating expenses, interest, and taxes from revenue, then dividing the remainder by revenue. A calculator that stops at product costs won’t show your store’s take-home business profit.
Shipping, advertising, payroll, and software can turn strong sales into thin earnings. Start with consistent inputs so your result reflects the cost of running the store.
Key Takeaways
- Use revenue after discounts and refunds, and exclude sales tax collected for remittance.
- Include fulfillment, processing, advertising, overhead, interest, and applicable income taxes.
- Compare margins using the same cost definitions and reporting periods. Gross margin and contribution margin don’t establish net profitability.
Calculate Ecommerce Net Profit Margin
The complete formula is:
Net profit margin (%) = [(Revenue – COGS – Operating expenses – Interest – Taxes) / Revenue] x 100
Net profit is the dollar amount remaining. Net margin expresses that amount as a percentage of revenue.
Gross margin stops at product costs
Gross profit margin (often shortened to gross margin) equals (Revenue - COGS) / Revenue x 100. It shows how much product revenue remains after the associated cost of goods sold.
Under a merchandise-only COGS definition, it excludes customer acquisition cost (CAC), outbound shipping, platform fees, and overhead. Our gross margin calculator explains how discounts change that starting figure.
Contribution and net margin answer different questions
Contribution margin subtracts variable selling costs, such as fulfillment, payment fees, and acquisition spending. It shows what’s available to cover fixed expenses.
Operating profit margin subtracts operating expenses but not interest or taxes. Net profit margin also deducts fixed overhead, interest, and taxes. Therefore, a profitable order doesn’t automatically mean a profitable business.
Include the Full Operating Expense Stack
Cost classifications vary between businesses. Some include fulfillment within COGS; others report it separately. Your net result stays correct when each expense appears once.
Capture fulfillment, payment, and marketplace charges
Include packaging, shipping costs, postage, pick-and-pack, storage, return handling, commissions, and payment processing fees.
Payment processing fees vary by provider and plan. Stripe’s domestic card pricing is 2.9% plus $0.30. Shopify Payments’ Basic US standard-card rate uses the same structure. That costs $3.20 on a $100 transaction.
PayPal and Venmo pricing lists 3.49% plus $0.49, or $3.98 on $100. These aren’t universal rates across every payment method or plan.
Amazon platform fees commonly include a 15% referral fee, but Amazon’s selling fee schedule varies by category and price tier. Amazon FBA adds fulfillment costs and storage charges. Don’t automatically add standalone card processing to Amazon orders.
Add people, platforms, and overhead
Include advertising, agency charges, creative production, affiliate payouts, Shopify subscriptions, apps, email software, payroll, employer taxes, contractors, rent, utilities, insurance, and accounting. If your store uses subscription models, include recurring billing and customer support expenses.
Also include depreciation and other expenses recognized in your accounts. Interest and applicable income taxes belong below operating profit.
Inventory purchases aren’t automatically the month’s COGS. Use the cost of inventory sold. Likewise, loan principal repayments and owner withdrawals aren’t operating expenses. Equipment purchases may require depreciation rather than an immediate full expense.
Use the Calculator Inputs From Real Records
Choose one reporting period and currency before entering amounts. Monthly revenue needs monthly expenses, including an appropriate allocation of annual subscriptions.
- Enter net revenue from your sales records after discounts, refunds, and credits. Include customer-paid shipping, but exclude collected sales tax.
- Add COGS associated with those sales. Include landed costs according to your accounting policy, without repeating inbound freight elsewhere.
- Enter operating expenses from processor statements, advertising invoices, fulfillment bills, subscription charges, and payroll records.
- Add interest and applicable income taxes. Keep actual results separate from forecasts or estimated reserves.
For Shopify, use sales reports for revenue, Shopify Payments transaction records for processing charges, and billing records for subscriptions and apps. Advertising and payroll expenses usually require separate records.
For Amazon, use settlement and transaction reports for sales, refunds, referral fees, and FBA charges. Reconcile those amounts with inventory and accounting records.
A payout is already net of deductions, so it isn’t a substitute for revenue. Our Shopify payout reconciliation workflow separates sales, fees, refunds, and bank deposits.
Worked Examples: How Expenses Change the Result
Two calculations show why a calculator’s cost coverage matters more than its headline percentage.
A $100 sale can look more profitable than it is
Metorik’s example starts with a $100 sale and $40 COGS. That produces a 60% gross margin.
Subtract $8 shipping, $15 advertising, and $3.20 payment processing. The remaining profit is $33.80, or 33.8% of revenue.
However, that percentage only covers the listed costs. Any additional payroll, subscriptions, rent, interest, or taxes reduce the final net margin.
A calculator’s result is net of the expenses entered. Missing overhead doesn’t disappear because the output says “net profit.”
A complete monthly calculation reaches net profit
Wayflyer’s worked margin example uses $20,000 revenue and separates operating expenses, interest, and taxes.
Here is the full calculation.
| Input or result | Amount |
|---|---|
| Revenue | $20,000 |
| COGS | $5,000 |
| Operating expenses | $8,000 |
| Operating profit | $7,000 |
| Interest | $500 |
| Taxes | $1,400 |
| Net profit | $5,100 |
The operating expenses comprise $1,500 rent, $500 utilities, $2,000 marketing, and $4,000 payroll.
Gross margin is 75%. After operating expenses, operating margin falls to 35%. After interest and taxes, net margin becomes 25.5%.
Total costs are $14,900, including COGS. Costs other than COGS total $9,900; entering $13,400 there would instead produce an 8% net margin.
Interpret the Margin Before Changing Spending
Read net profit dollars alongside the percentage. A positive result means revenue exceeded included costs. A negative result means the business lost money during that period.
Use benchmarks as context, not a verdict
Industry benchmarks often cite roughly 10% as a rough average profit margin reference, but it isn’t reliable for every category.
As a working rule, above 20% is healthy, 10% to 20% is workable but tight, and below 10% is fragile. Reinvestment, business maturity, and seasonality affect that interpretation.
Category matters too. Electronics often face stronger price competition, while beauty and supplements can have more merchandise margin available. Apparel returns can consume substantial profit.
NYU Stern’s industry margin data separates gross, operating, and net margins. Its January 2026 analysis covers public-company sectors, so it isn’t a direct benchmark for every independent Shopify store.
Translate margin into realistic advertising limits
The simplified break-even ROAS formula is 1 / gross margin as a decimal. At 50% gross margin, that’s 2:1.
ROAS compares attributed revenue with ad spend, not total business profitability. The break-even calculation only covers COGS and advertising. Deduct other non-ad variable costs first to calculate a useful contribution-based threshold. Our break-even ROAS guide explains that adjustment.
Cross-channel attribution overlap can inflate platform-reported ROAS. A blanket 30% to 100% correction isn’t dependable; compare platform-reported ROAS with deduplicated order revenue, then reconcile the platform’s ad spend with actual ad spend records.
Compare Months Without Distorting Profitability
A single month’s margin can reflect delayed invoices, promotions, or returns. Consistent periods make the trend more useful. For subscription models, match recurring revenue, refunds, and related costs to the same reporting period.
Combine profit dollars instead of averaging percentages
For quarterly or annual ecommerce net profit margin, add profit across the periods, then divide by combined revenue.
Don’t average monthly percentages. Otherwise, a low-revenue month gets the same weight as your busiest month.
You also don’t annualize a margin by multiplying it by 12. The ratio remains profit divided by revenue. Multiplying monthly profit dollars by 12 creates a projection, but seasonal stores need a fuller forecast.
Account for returns without counting refunds twice
A 20% return rate with $15 processing cost creates $3 of processing expense per original order. That’s 3 to 5 percentage points against $60 to $100 net revenue per original order.
Inventory losses, exchanges, and nonrefundable fees can add further costs.
If revenue already excludes refunds, don’t subtract refunded revenue again as an expense. Record return postage, handling, and inventory recovery separately. Compare sales periods after similar return windows.
Frequently Asked Questions
How do I calculate net profit per sale?
Subtract order-specific costs and allocated overhead, interest, and applicable taxes from retained order revenue. For a blended figure, divide monthly net profit by monthly orders.
Use a consistent allocation method. Per-order net profit changes when volume changes because fixed expenses spread across different order counts.
What’s the difference between markup and margin?
The markup vs margin distinction comes down to the denominator: markup divides profit by cost, while margin divides profit by revenue. An item costing $80 and selling for $100 has $20 profit, a 25% markup, and a 20% margin.
Those percentages describe gross profit when the $80 includes only product cost.
Is shipping a cost or revenue?
Customer-paid shipping is revenue, while carrier and fulfillment charges are expenses. Record both consistently.
Free shipping removes the customer charge, but your delivery expense remains. Don’t subtract both the full carrier cost and the same shipping subsidy.
Is a 70% profit margin too high?
A 70% gross margin can be legitimate, but it still needs to fund selling costs and overhead. A claimed 70% net margin deserves a review of included expenses.
When revenue is zero, report profit or loss in dollars. The percentage is undefined.
Make Net Margin Reflect the Whole Business
A useful ecommerce net profit margin calculation includes the full cost of operating your store. Revenue and product costs alone can’t establish what the business earns.
Use consistent records, subtract each expense once, and compare profit dollars alongside percentages. Then your calculator can support pricing and spending decisions without confusing merchandise profit with net earnings.


