
Ecommerce Profit Margin Formula: Gross, Contribution and Net Margin
Learn the ecommerce profit margin formulas, see a complete order-level example and separate gross margin from contribution and net profit.
Profit margin is profit divided by revenue × 100. For ecommerce, state whether you mean gross, contribution, operating or net margin, because each subtracts a different set of costs and supports a different decision.
The formula depends on which profit you mean
| Margin | Formula | Costs usually included |
|---|---|---|
| Gross margin | (Revenue − COGS) ÷ revenue × 100 | Product cost or cost of goods sold |
| Contribution margin | (Revenue − variable costs) ÷ revenue × 100 | COGS, fulfillment, fees, returns and acquisition when defined |
| Operating margin | Operating profit ÷ revenue × 100 | Contribution profit plus operating overhead |
| Net profit margin | Net profit ÷ revenue × 100 | All expenses included in the chosen accounting view |
A complete ecommerce order example
Suppose an order sells for $60. COGS is $18, fulfillment is $7, payment fees are $2.10, and acquisition cost is $12. The contribution per order is $20.90, or 34.83% of revenue. At 500 orders, contribution profit is $10,450.
If fixed costs for the same period are $5,000, net profit is $5,450 and net profit margin is 18.17%. The difference between 34.83% contribution margin and 18.17% net margin is the fixed-cost burden—not a math error.
Why ROAS alone cannot tell you the margin
ROAS compares attributed revenue with ad spend. It does not subtract COGS, fulfillment, payment fees, refunds or fixed costs. A campaign can report an attractive ROAS and still generate negative contribution profit when the offer is low margin.
Use break-even ROAS or contribution margin alongside ROAS. If contribution margin before ads is 40%, the break-even ROAS is 2.5× before a target profit buffer.
- Define whether the selling price is before or after discounts and returns.
- Keep payment and marketplace fees editable because plan and market terms vary.
- Separate one-time fixed costs from per-order variable costs.
- Check cash timing separately; a profitable model can still create a cash-flow gap.
Margin levers worth testing
| Lever | What to measure |
|---|---|
| Price or offer structure | Realized price, conversion rate and contribution per order |
| Bundles and cross-sells | AOV, items per order, fulfillment cost and contribution per visit |
| Shipping and fulfillment | Delivery cost, conversion impact and return rate |
| Acquisition efficiency | CAC, contribution after marketing and payback timing |
| Refund and return control | Net revenue, variable cost and cohort quality |
Use the free tools
Ecommerce Profit
Estimate ecommerce revenue, variable costs, net profit, profit margin, ROI and break-even orders from your own product and marketing inputs. Free with editable assumptions.
Open toolContribution Margin
Calculate contribution margin per order, margin percentage, profit after fixed costs and break-even orders after COGS, fulfillment, fees and ad spend.
Open toolBreak-Even Units
Find the ecommerce units and revenue needed to cover fixed costs, then model a target profit, daily sales target and profit at planned volume.
Open toolROAS Calculator
Calculate ROAS, contribution profit, ACOS and break-even ROAS from your ad spend, revenue and variable costs. Free with no signup.
Open toolReferences and methodology
We use primary documentation where available and treat calculators as planning aids, not guarantees. Check the linked source when a platform changes its rules.
- Shopify: What is a good profit margin?
Explains gross, operating and net margin in an ecommerce context.
- Shopify: What is a breakeven point?
First-party explanation of fixed costs, variable costs and contribution margin.
- U.S. Small Business Administration: Break-even point
Government reference for contribution margin and break-even formulas.
Turn this answer into a repeatable growth workflow.
Use the free result as your starting point, then move the next campaign, creative or growth decision into GrowthGPT when the work becomes repetitive.