Net Profit = Net Sales Revenue - COGS - Advertising - Fees - Shipping - Returns - Fulfillment - Other Operating Costs
Gross margin explains product economics. Contribution margin shows what remains after variable order costs. Net margin shows final profit from each sales dollar. Ecommerce ROI compares net profit with total costs, while ROAS compares attributed revenue with ad spend only.
Ecommerce profitability is the ability of an online store to retain profit after the costs required to buy or make products, acquire customers, process payments, deliver orders and operate the business. Revenue is only the starting point. A store can grow sales quickly and still lose money when discounts, customer acquisition cost, shipping subsidies, returns or overhead rise faster than gross profit.
The most useful analysis separates product economics from marketing efficiency and final company profit. That means reviewing gross profit, gross margin, contribution margin, net profit margin, ecommerce ROI and return on ad spend together instead of relying on a single percentage.
What Ecommerce Profitability Means
When someone asks whether ecommerce is profitable, the answer depends on the store's unit economics, operating model and growth stage. A high-margin digital product, a private-label brand, a marketplace reseller and a bulky low-margin product can all generate the same revenue with very different profit.
A practical profitability review starts with net sales revenue, not gross order value. Net sales normally reflects the amount retained after discounts, refunds and returns according to the reporting method used. Sales tax collected on behalf of a government is also different from operating revenue. Keep the treatment consistent with your accounting records.
Next, separate costs by what they explain:
- COGS explains the direct cost of inventory sold.
- Variable selling and fulfillment costs explain the profit left from an additional order.
- Advertising cost explains paid acquisition efficiency.
- Fixed operating expenses explain whether the store produces final net profit.
This layered view prevents a common mistake: calling a product profitable because its selling price exceeds product cost while ignoring payment fees, shipping, returns, fulfillment, customer support and advertising.
Ecommerce Profit Formulas
The formulas below answer different questions. Use revenue and costs from the same period and avoid counting one expense in multiple categories.
The calculator uses a practical planning model. It subtracts COGS, ad spend, platform and payment fees, plus shipping, returns and fulfillment from revenue. It then divides net profit by total entered costs for ROI. This is useful for comparing periods or scenarios when the cost categories are entered consistently.
How to Calculate Gross Profit and Gross Margin
The gross profit equation is simple:
Gross Profit = Net Sales Revenue - Cost of Goods Sold
If a store has $45,000 in net sales and $13,500 in COGS, gross profit is $31,500. Gross profit is a dollar amount. Gross margin converts that profit into a percentage of sales:
Gross Margin = ($31,500 / $45,000) x 100 = 70%
To calculate gross margin accurately, COGS must match the products actually sold during the period. For inventory businesses, product purchases are not always identical to COGS because unsold inventory remains an asset. The IRS describes COGS through beginning inventory, purchases and other production costs, less ending inventory. Your exact accounting treatment may differ by country and business structure, so the calculator is a planning tool rather than a tax return calculation.
Gross profit vs gross margin
Gross profit shows how many dollars remain after COGS. Gross margin shows how efficiently sales create gross profit. A product can produce more gross profit dollars because it sells at high volume while having a lower margin percentage than another product. Both views matter for pricing, assortment and inventory decisions.
Use net sales for cleaner margin analysis
Discounts, refunds and returns reduce the economic value of sales. Shopify's profit reports, for example, base gross margin on net sales that account for discounts and refunds. If your revenue input represents gross order value before those reductions, your calculated margin may look stronger than the amount ultimately retained.
Contribution Margin for Ecommerce
Contribution margin shows what remains after variable costs that rise with sales. It is often more useful than gross margin for setting a break-even ROAS because it can include payment processing, marketplace commissions, pick-and-pack fees, shipping subsidies, packaging, returns and other order-level costs.
Contribution Margin = Net Sales Revenue - COGS - Other Variable Order Costs
Contribution Margin Ratio = Contribution Margin / Net Sales Revenue
Suppose a $100 order has $30 of product cost, $3 of payment fees, $8 of fulfillment and shipping subsidy, and $4 of expected return or support cost. Contribution margin before advertising is $55, or 55%. That $55 must cover advertising and fixed overhead before the order creates net profit.
Do not automatically classify every platform subscription or salary as a variable cost. Contribution margin is most useful when only costs that change with an additional sale are included. Fixed expenses are deducted later when calculating net profit.
How to Calculate Ecommerce Net Profit and Net Profit Margin
Net profit is what remains after the store's included costs. In a complete accounting statement, those costs may include payroll, rent, software, professional services, insurance, interest, depreciation and taxes. The SolveIndex calculator includes the five cost groups available in its form, so use the other-cost field carefully or treat the result as an operating estimate before omitted overhead.
Net Profit = Net Sales Revenue - Total Included Costs
Net Profit Margin = (Net Profit / Net Sales Revenue) x 100
A net profit calculator and a gross margin calculator can produce very different answers because they measure different layers. Gross margin may be healthy while net margin is weak if customer acquisition and fulfillment are expensive. Conversely, improving repeat purchases can lift net margin without changing product gross margin.
How to Calculate Ecommerce ROI
Ecommerce ROI compares net profit with the costs used to generate that profit:
Ecommerce ROI = (Net Profit / Total Costs) x 100
If total costs are $26,800 and net profit is $18,200, ROI is approximately 67.9%. This means the store generated about $0.68 of net profit for every $1 of entered cost during the period.
ROI is useful for scenario comparison, but the denominator must stay consistent. If one period includes owner salary, software and warehouse rent while another includes only product and ad cost, the percentages are not comparable. Define the purpose of the analysis before deciding which costs belong in total investment.
Monthly vs annual ecommerce ROI
The formula works with monthly, quarterly or annual figures, but every input must use the same period. Monthly ROI should not be multiplied by 12 and treated as an exact annual return because revenue, costs, seasonality and reinvestment do not necessarily repeat evenly.
ROAS and Break-even ROAS
Return on ad spend isolates paid advertising efficiency:
ROAS = Revenue Attributed to Advertising / Advertising Spend
Google Ads describes ROAS through conversion value divided by cost. If $9,000 in ad spend is associated with $45,000 of revenue, ROAS is 5.0x, or 500%. ROAS does not subtract COGS or operating expenses, so it is not the same as profit or ROI.
Break-even ROAS formula
A simplified product-level formula is:
Break-even ROAS = 1 / Gross Margin Decimal
At a 70% gross margin, simplified break-even ROAS is 1 / 0.70 = 1.43x. That covers COGS but not necessarily payment fees, shipping subsidies, fulfillment or returns. For a more realistic advertising threshold, use contribution margin before advertising:
Contribution Break-even ROAS = 1 / Contribution Margin Ratio
If contribution margin before advertising is 55%, break-even ROAS is about 1.82x. Fixed overhead and desired profit require an even higher operating target.
Use attributed revenue consistently
The calculator divides total entered revenue by ad spend. That is appropriate only when the revenue belongs to the same advertising scope. If the store also receives organic, email, referral or marketplace sales, total-store revenue can overstate campaign ROAS. Use the revenue attributed under a documented model, or treat the calculator's ROAS as a blended store-level ratio.
Worked Ecommerce Profitability Example
Consider an online skincare store with the following monthly figures:
| Input | Amount |
|---|---|
| Net sales revenue | $45,000 |
| COGS | $13,500 |
| Advertising | $9,000 |
| Platform and payment fees | $1,800 |
| Shipping, returns and fulfillment | $2,500 |
- Gross profit: $45,000 - $13,500 = $31,500
- Gross margin: $31,500 / $45,000 = 70%
- Total entered costs: $26,800
- Net profit: $45,000 - $26,800 = $18,200
- Net profit margin: $18,200 / $45,000 = 40.4%
- Ecommerce ROI: $18,200 / $26,800 = 67.9%
- ROAS: $45,000 / $9,000 = 5.0x
The example is profitable under the entered cost model, but a final accounting result could be lower after payroll, rent, software, taxes or other overhead. The key lesson is that every metric tells a different part of the story.
How to Use the Ecommerce Profit Calculator
- Choose one reporting period. Monthly is convenient for operating reviews, but quarterly or annual data also works.
- Enter net sales revenue. Use revenue after discounts and refunds when possible, and exclude amounts that are not business revenue under your accounting treatment.
- Enter COGS. Match inventory cost to the products sold during the period.
- Enter advertising spend. Combine the paid channels included in the revenue scope.
- Enter platform and payment fees. Include marketplace commissions, transaction charges, subscriptions and paid apps that belong to the period.
- Enter shipping, returns and fulfillment. Include the costs not already counted in COGS or fees.
- Review missing overhead. Decide whether payroll, rent, software or other expenses should be added to the other-cost field for the purpose of the analysis.
Use one consistent currency. The dollar symbols are display labels and do not perform exchange-rate conversion.
Which Ecommerce Costs Should You Include?
Cost of goods sold
COGS normally includes the direct cost of inventory sold or direct manufacturing inputs. Depending on the accounting method, it may include purchase cost, raw materials, direct production labor, inbound freight and supplies that become part of the product. Unsold inventory should not automatically be expensed as COGS for the period.
Platform, marketplace and payment fees
Include payment processing charges, marketplace commissions, ecommerce platform subscriptions and paid apps when they belong to the period. Separate variable transaction fees from fixed subscriptions when contribution margin analysis is required.
Ecommerce shipping costs, fulfillment and returns
Shipping analysis should include carrier charges paid by the business, packaging, pick-and-pack, warehouse or third-party fulfillment, return labels, inspection, refurbishment, damaged inventory and non-recoverable product cost. Customer-paid shipping reduces the subsidy but does not eliminate fulfillment cost.
Advertising and customer acquisition cost
Customer acquisition cost for ecommerce is broader than media spend when acquisition requires agency fees, creative production, affiliate commissions, discounts or sales tools. For channel ROAS, keep ad spend narrow. For customer or store profitability, use the broader cost required to acquire customers.
Fixed and one-time costs
Payroll, rent, insurance, accounting, software and management overhead affect net profit. Website design, development, branding, equipment and setup may be one-time investments. A monthly analysis can allocate those costs over a useful planning period instead of charging the full amount to one month, but the method should be disclosed.
How to Interpret Ecommerce Profitability Results
A positive result is not automatically good, and a negative result is not automatically permanent. Interpret the output against the store's stage, cash requirements and alternatives.
- High gross margin but low net margin: acquisition, fulfillment or overhead is consuming product profit.
- Strong ROAS but weak ROI: advertising produces sales, but product and operating costs leave little net profit.
- Low ROAS but acceptable profit: repeat purchases, high contribution margin or organic demand may support the business despite weak first-order advertising efficiency.
- Positive margin but negative cash flow: inventory purchases, payment delays, debt service or growth working capital may be absorbing cash.
- Improving revenue with declining margin: discounts, channel mix, supplier cost or return rate may be reducing the value of growth.
There is no universal good ecommerce profit margin. Compare the store with its own historical performance, budget, category economics and required return rather than copying a broad benchmark without matching cost definitions.
Review Profitability by Product, Channel and Customer
Store-wide profit can hide large differences. Build the same calculation for smaller segments:
- Product or SKU: selling price, discounts, COGS, return rate, shipping profile and support burden.
- Collection or category: product mix, inventory turnover and shared promotions.
- Marketing channel: attributed revenue, ad cost, contribution profit and new-customer quality.
- New vs returning customers: acquisition cost, repeat rate, order frequency and margin.
- Country or fulfillment region: currency, taxes, carrier rates, duties, delivery failures and returns.
A product margin calculator can identify strong unit economics, but product-level margin should not be mistaken for final store profit. Allocate shared costs carefully and keep a separate view of direct contribution and fully loaded profitability.
How to Improve Ecommerce Profitability
Improve gross margin
Review supplier pricing, manufacturing yield, packaging, freight, product mix and pricing. Reduce blanket discounts and measure whether promotions create enough incremental contribution to justify the margin given up.
Increase average order value
Bundles, quantity offers, relevant upsells and free-shipping thresholds can spread acquisition and fulfillment costs across more revenue. Test the effect on returns and discount cost rather than focusing on order value alone.
Improve conversion before increasing traffic
Better product information, faster pages, clear delivery estimates, trust signals and a simpler checkout can create more orders from existing traffic. Incremental conversion improvement can reduce blended acquisition cost, but monitor fraud, cancellations and low-quality customers.
Reduce returns and fulfillment leakage
Improve sizing, descriptions, product quality, packaging and delivery accuracy. Track return reason and cost by SKU. A return is not just lost revenue - it can create reverse shipping, handling, damaged inventory and customer-support cost.
Increase repeat-purchase contribution
Email, SMS, subscriptions, replenishment reminders and loyalty programs can spread acquisition cost over more orders. Use contribution after discounts and retention costs, not revenue alone, when calculating lifetime value.
Control fixed operating costs
Audit subscriptions, apps, warehouse commitments, contractors and manual workflows. Cost reduction should not damage customer experience or growth capacity, so compare savings with the operational risk created.
Common Ecommerce Profit Calculation Mistakes
- Using gross sales before refunds and discounts as retained revenue.
- Treating inventory purchases as identical to COGS without adjusting for unsold inventory.
- Counting product packaging, freight or fees in more than one field.
- Calling ROAS profit even though ROAS ignores COGS and operating expenses.
- Using total-store revenue with one channel's ad spend.
- Mixing monthly revenue with annual subscriptions or one-time setup costs.
- Ignoring payment processing, shipping subsidies, fulfillment, returns and chargebacks.
- Comparing products with different cost definitions.
- Using an average store margin that hides unprofitable SKUs or countries.
- Assuming positive accounting profit guarantees positive cash flow.
Ecommerce ROI vs ROAS vs Profit Margin
| Metric | Formula basis | Main question |
|---|---|---|
| Gross margin | Gross profit / revenue | How much product profit remains after COGS? |
| Contribution margin | Revenue minus variable costs | How much remains to cover ads, fixed cost and profit? |
| Net profit margin | Net profit / revenue | How much of each sales dollar becomes final profit? |
| Ecommerce ROI | Net profit / total costs | How efficiently did entered costs create profit? |
| ROAS | Attributed revenue / ad spend | How much revenue did advertising produce per dollar? |
Use the Marketing ROI Calculator for campaign leads, customers and gross-margin analysis, the Google Ads ROI Calculator for ad-specific metrics, and the Shopify ROI Calculator when plan, app and payment-rate inputs need separate treatment.
Ecommerce Profitability FAQs
Sources and Methodology
This guide uses the calculator's actual inputs and formulas. Definitions and cost-treatment notes were cross-checked against the following primary or platform sources:
- IRS Publication 334 - Tax Guide for Small Business, including inventory and cost of goods sold guidance.
- Google Ads Help - Conversion value per cost, for the revenue-value-to-ad-cost ROAS relationship.
- Shopify Help Center - Profit reports, for net-sales and gross-margin reporting context.
Accounting, tax and inventory rules vary by jurisdiction and business. Use this guide for planning and education, then reconcile material decisions with your accounting records and qualified advisers.