Ecommerce profit calculator
Calculate your ecommerce profit and margins
Enter sales and costs for the same period to estimate net revenue, gross profit, gross margin and contribution margin — then see where deeper analysis can help.
Enter gross sales and COGS
Results update as you fill in the fields. Optional costs refine contribution margin.
What the numbers mean
Net revenue
Gross sales minus discounts — the revenue base StoreOpps uses in operational reports.
Gross profit
Net revenue minus product cost (COGS). Matches StoreOpps gross profit when costs are known.
Gross margin
Gross profit as a percentage of net revenue.
Contribution profit
Gross profit minus optional variable costs you enter (fees, shipping, marketing, etc.). Calculator-only — not shown in StoreOpps reports today.
Contribution margin
Contribution profit as a percentage of net revenue.
How this is calculated
Gross profit and gross margin follow the same net-revenue convention as StoreOpps operational reports. Contribution metrics add optional variable costs you enter in this tool only.
- Net revenue
- Gross sales − discounts
- Gross profit
- Net revenue − COGS
- Gross margin
- Gross profit ÷ net revenue × 100
- Contribution profit
- Gross profit − payment fees − shipping & fulfillment − marketing − other variable costs
- Contribution margin
- Contribution profit ÷ net revenue × 100
- Total variable costs
- COGS + payment fees + shipping & fulfillment + marketing + other variable costs
Why aggregate profit is not the whole story
Two stores can show similar margins while facing very different problems inside the operation.
Weak-margin bestsellers
High-volume SKUs below average margin can drag down store economics even when the headline margin looks acceptable.
Discount dependency
Promotions may lift sales while reducing what you keep — visible only when you analyze discount patterns by product.
Inventory tying up capital
Slow-moving stock and stockout risk affect cash flow and merchandising — requires operational product and inventory data.
Fulfillment and payment costs
Aggregate margins hide whether fees and shipping subsidies concentrate on specific products or channels.
Your margin tells you how much. StoreOpps helps investigate where.
This calculator summarizes economics for one period.
An aggregate margin cannot tell you which products, discounts or inventory positions are driving the result. StoreOpps connects storefront signals and operational CSV data to surface specific opportunities you can prioritize.
Related: ecommerce profit analysis · ecommerce audit · example report
Frequently asked questions
- What is ecommerce profit?
- In this context, it is what remains from net revenue after product costs and, optionally, other variable costs you include. StoreOpps operational reports focus on gross profit and gross margin from net revenue and COGS.
- How do I calculate ecommerce gross margin?
- Subtract discounts from gross sales to get net revenue, subtract COGS from net revenue to get gross profit, then divide gross profit by net revenue. This calculator applies that formula automatically.
- What is the difference between gross margin and contribution margin?
- Gross margin uses only product cost (COGS). Contribution margin also subtracts optional variable costs you enter — payment fees, shipping, marketing and similar — from gross profit.
- Should discounts be included in ecommerce profit calculations?
- Yes. Enter gross sales and discounts separately. Net revenue is gross sales minus discounts — the same convention StoreOpps uses when analyzing order data.
- What should I include in COGS?
- The direct cost of products sold in the period — unit product cost multiplied by units sold. In StoreOpps, this comes from product or cost CSV fields, not from shipping or payment fees.
- Does this calculator store my financial data?
- No. All calculations run in your browser. Values are not sent to StoreOpps servers or analytics.
- Can StoreOpps show which products are affecting margin?
- Yes, when you connect operational CSV data. StoreOpps can identify products with weak margin, discount dependency, inventory issues and other patterns that aggregate calculators cannot show.
- Is this calculator free?
- Yes. No account or email is required to use the calculator or see results.
Analyze your store for free
Start with a public storefront diagnosis, then connect operational data when you want product-level margin and inventory analysis.
Analyze my store for freeOr explore ecommerce profit analysis