EshopPick
Ecommerce Profit Margin Formula: Gross, Contribution and Net Margin
Ecommerce economics · updated 2026-08-04
Ecommerce Profit Margin Formula: Gross, Contribution and Net Margin
Ecommerce economics
By EshopPick Editorial Team · Reviewed 2026-08-04

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.

Quick answer

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

MarginFormulaCosts usually included
Gross margin(Revenue − COGS) ÷ revenue × 100Product cost or cost of goods sold
Contribution margin(Revenue − variable costs) ÷ revenue × 100COGS, fulfillment, fees, returns and acquisition when defined
Operating marginOperating profit ÷ revenue × 100Contribution profit plus operating overhead
Net profit marginNet profit ÷ revenue × 100All 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

LeverWhat to measure
Price or offer structureRealized price, conversion rate and contribution per order
Bundles and cross-sellsAOV, items per order, fulfillment cost and contribution per visit
Shipping and fulfillmentDelivery cost, conversion impact and return rate
Acquisition efficiencyCAC, contribution after marketing and payback timing
Refund and return controlNet revenue, variable cost and cohort quality

Use the free tools

References 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.

Next step with GrowthGPT

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.

Open GrowthGPT