Contribution Margin vs Gross Margin for Ecommerce
Written by
Gross margin subtracts cost of goods sold from revenue. Contribution margin subtracts all costs your company classifies as variable. For an ecommerce store, those additional variable costs can include fulfillment, merchant-paid shipping, payment processing, returns, discounts, commissions, and variable acquisition spend.
That makes gross margin the cleaner measure for product pricing and sourcing. Contribution margin is usually the better operating guardrail for campaigns, offers, channels, and break-even decisions.
Gross margin vs contribution margin at a glance
| Gross margin | Contribution margin | |
|---|---|---|
| Formula | Revenue - COGS | Revenue - all defined variable costs |
| Percentage | Gross profit / revenue × 100 | Contribution margin / revenue × 100 |
| Costs included | Product and production costs | COGS plus fulfillment, fees, returns, and other variable costs |
| Primary question | Is the product priced above its direct cost? | What does each sale contribute to fixed costs and profit? |
| Common decisions | Pricing, sourcing, assortment | Acquisition, discounts, channel mix, break-even |
| Relationship | Usually higher | Usually lower |
Use the contribution margin calculator to enter an ecommerce cost stack, or the profit margin calculator to compare gross, operating, and net margin.
Gross margin formula
Gross profit is revenue minus cost of goods sold:
Gross profit = Revenue - COGS
Gross margin = Gross profit / Revenue × 100
COGS usually includes the landed cost of acquiring or producing the products sold. The precise accounting policy can include materials, manufacturing labor, inbound freight, duties, and packaging. Gross margin deliberately stops before most selling and operating costs.
That consistency makes gross margin useful for assessing pricing power, supplier changes, product mix, and product-level economics. It does not tell you what remains after acquiring, processing, fulfilling, and potentially returning the order.
Contribution margin formula
Contribution margin extends the analysis to every variable cost in the company’s chosen definition:
Contribution margin = Revenue - Total variable costs
Contribution margin ratio = Contribution margin / Revenue × 100
A variable cost changes with sales or order volume. Some businesses calculate more than one contribution level: for example, contribution margin one before paid marketing and contribution margin two after variable acquisition spend. The labels matter less than documenting the definition and using it consistently.
For formulas, per-order analysis, and CAC guidance, read the complete contribution margin guide.
Ecommerce cost classification
| Cost | Gross margin | Contribution margin | Qualification |
|---|---|---|---|
| Product or manufacturing cost | Included | Included | Core COGS |
| Inbound freight and duties | Usually included | Included | Follow the company’s landed-cost policy |
| Pick-and-pack fee | Usually excluded | Included | Per-order fees are variable |
| Outbound shipping | Usually excluded | Often included | Treatment varies if the customer pays shipping |
| Payment processing | Excluded | Included | Transaction-linked portion |
| Returns and refunds | Reflected in net revenue; follow the returns and COGS policy | Included or netted from revenue | Never count twice |
| Discounts | Reflected in net revenue | Reflected in net revenue or included | Use one consistent treatment |
| Performance marketing | Excluded | Policy-dependent | Include when treated as variable acquisition cost |
| Salaries, rent, software retainers | Excluded | Excluded | Usually fixed operating costs |
Outbound shipping and marketing are the most common sources of disagreement. One company may treat paid media as a period expense; another may treat performance spend as variable because it scales directly with customer acquisition. Both views can support decisions when the metric is named clearly and reconciled with financial reporting.
Worked ecommerce example
Assume a store has $100,000 in monthly net revenue and the following costs:
| Cost | Amount |
|---|---|
| COGS | $30,000 |
| Shipping and fulfillment | $8,000 |
| Payment processing | $3,000 |
| Variable marketing | $20,000 |
| Returns and other variable costs | $4,000 |
Gross profit is $100,000 - $30,000 = $70,000. Gross margin is 70%.
Total variable costs are $65,000. Contribution margin is $100,000 - $65,000 = $35,000, and contribution margin ratio is 35%.
The 70% gross margin suggests strong product-level pricing. The 35% contribution margin shows that half of gross profit is consumed before fixed operating costs. If managers scale ads based only on gross margin or revenue, they can miss the effect of acquisition, fulfillment, processing, and returns.
When to use gross margin
Pricing and sourcing
Gross margin isolates the relationship between selling price and product cost. Use it to compare suppliers, model price changes, and identify products whose direct economics are too weak before other costs.
Product assortment
Compare gross profit dollars and percentages across SKUs. A high percentage on a low-volume item may create less gross profit than a lower-percentage bestseller, so use both.
Financial reporting
Gross profit is a standard financial-statement subtotal. It is easier to reconcile across accounting periods than a custom contribution definition.
When to use contribution margin
Paid acquisition
Revenue and ROAS do not include the order’s cost stack. Contribution margin shows whether a campaign creates cash to repay fixed costs after variable acquisition and order costs.
Promotions and discounts
A promotion can increase conversion while reducing contribution per order. Model the discount, expected volume, product cost, fulfillment, fees, and acquisition changes together before launch.
Channel decisions
Marketplaces, wholesale, retail, and direct ecommerce have different fees and fulfillment costs. Contribution margin creates a comparable view when each channel’s variable costs are assigned consistently.
Break-even planning
Contribution margin per unit determines how many units are required to cover fixed costs. Use Amp’s break-even calculator to turn margin into a volume target.
Why gross margin can rise while contribution margin falls
The metrics can move in opposite directions. A store may negotiate lower COGS and improve gross margin while spending more on acquisition, offering deeper discounts, or absorbing higher shipping and return costs. Gross margin rises, but contribution margin falls.
The opposite can also occur. A product-mix shift may reduce blended gross margin while improving contribution through lower fulfillment costs, fewer returns, or more efficient acquisition.
Track a bridge from gross profit to contribution margin so operators can see where the gap changes:
- Gross profit
- Less fulfillment and shipping
- Less payment and marketplace fees
- Less returns and discounts not already netted
- Less variable acquisition cost
- Equals contribution margin
Which metric should ecommerce teams optimize?
Do not choose one metric for every decision. Protect gross margin so products have sound direct economics. Optimize contribution margin when allocating growth spend and evaluating commercial actions. Reconcile both with net profit and cash flow so fixed costs and working capital remain visible.
A practical dashboard includes gross margin, contribution margin dollars, contribution margin ratio, total contribution by channel, and contribution by new versus returning customer. Compare the result with Amp’s ecommerce contribution margin benchmarks and keep the cost definition beside the report.
Lifetimely by Amp connects Shopify orders with product costs, shipping, transaction fees, marketing, and customer cohorts, helping teams move from revenue reporting to repeatable profit analysis.
Frequently asked questions
Is contribution margin the same as gross margin?
No. Gross margin subtracts COGS from revenue. Contribution margin subtracts all costs defined as variable, so it is normally lower.
Is marketing included in contribution margin?
It depends on the company’s policy and purpose. Many ecommerce operators include performance marketing that scales with acquisition, while keeping fixed brand spend and retainers below contribution margin. Document the choice and use it consistently.
Can contribution margin be negative when gross margin is positive?
Yes. A product can sell above COGS but still have fulfillment, fees, returns, discounts, and acquisition costs that exceed the gross profit.
Is contribution margin the same as net profit?
No. Contribution margin does not subtract fixed operating costs, interest, or taxes. Net profit accounts for all expenses under the company’s reporting policy.
Calculate your current result with the free contribution margin calculator and review the definitive contribution margin formula guide.

AMP Team
AMP builds tools for Shopify brands to uncover profit opportunities and drive measurable growth.