Free local calculator

Ecommerce Contribution Margin Calculator

Turn gross product sales into contribution profit through a visible waterfall of discounts, refunds, shipping revenue, COGS, fulfillment, payment fees, variable platform costs, paid media, and other variable costs.

Direct answer

Contribution profit is the revenue left after the variable costs required to generate and fulfill the orders in scope. Contribution margin rate is contribution profit divided by net revenue. There is no universal cost boundary, so name every included component and keep tax, currency, date, refunds, and order scope consistent.

Written by: Metric Hive editorial team Product review: Metric Hive data contracts team Reviewed: July 18, 2026
Calculator

Build the revenue and variable-cost waterfall

Use one reporting period and one currency. Enter positive amounts for discounts, refunds, and costs; the calculator subtracts them. The calculator code processes inputs in your browser and does not submit or store them.

Net revenue88,000.00Gross sales − discounts − refunds + shipping charged
Pre-media contribution38,700.00Net revenue − non-media variable costs
Contribution profit22,700.00Pre-media contribution − paid media
Contribution margin rate25.8%Contribution profit ÷ net revenue
Contribution profit per order12.61Contribution profit ÷ eligible orders
Simplified break-even ROAS2.27×Net revenue ÷ pre-media contribution
Waterfall formulas

What the calculator is doing

Net revenuegross product sales − discounts − refunds + shipping charged

Tax and duties are assumed to be excluded. If your business treats shipping revenue differently, change the model and label it.

Pre-media contributionnet revenue − COGS − fulfillment − payment fees − platform fees − other variable costs

This isolates the amount available for paid media and contribution profit under the selected cost boundary.

Contribution profitpre-media contribution − paid-media spend

This is not accounting net income. Fixed payroll, rent, software, overhead, financing, and tax are excluded unless entered as variable costs.

Contribution margin ratecontribution profit ÷ net revenue

Aggregate the compatible amounts first and then divide. Do not average daily, channel, SKU, or order-level margin rates.

Simplified break-even ROASnet revenue ÷ pre-media contribution

This estimates the blended revenue-to-ad-spend ratio at which contribution after media reaches zero if the entered economics remain unchanged. It is not a platform attribution target.

Assumptions checklist

Define these before sharing the result

  1. Period and cohort.Choose order date, payment date, fulfillment date, or another basis. Decide whether late refunds are returned to the original order cohort or shown on the refund date.
  2. Revenue components.State whether gross product sales excludes tax, duties, tips, gift cards, and shipping, and whether refunds include non-item goodwill adjustments.
  3. Cost boundary.List COGS, landed cost, pick-and-pack, outbound shipping, return handling, payment fees, marketplace fees, and variable support costs separately.
  4. Paid-media scope.Use complete spend for the same brands, stores, countries, dates, and currency. Platform-attributed revenue is not the numerator in this calculator.
  5. Currency policy.Group by original currency or convert all revenue and cost bases under one documented exchange-rate source and rate date.
  6. Completeness.Label missing or estimated costs. A positive contribution margin calculated with missing COGS or fulfillment cost is not publishable evidence.
Interpret the result

What this calculator can and cannot tell you

Can: expose the waterfallShows exactly which entered revenue and variable-cost components move contribution profit.
Can: test scenariosLets you change refunds, costs, and paid media to inspect sensitivity under fixed assumptions.
Can: create a policy draftProvides formulas that can become a governed metric definition after source and grain validation.
Cannot: verify source completenessThe calculator does not know whether Shopify, payment, fulfillment, or ad-spend inputs are missing.
Cannot: allocate causal creditSubtracting paid media does not prove which channel or campaign caused an order.
Cannot: replace accountingThe result excludes fixed expenses and is not GAAP, tax, cash-flow, or financial-statement advice.

Primary sources: verify the commerce inputs

The formulas above are a modeling convention. Check current provider definitions before mapping Shopify sales, reversals, payments, refunds, or order exports into the inputs.

Build the governed version

From a scenario to an order-level model

Readiness-gated profit modeling

Confirm the inputs before treating contribution profit as ready

Metric Hive has backend contracts for cost rules and order-line and order-level profit, but Commerce Intelligence is not broadly customer-launch ready. Real account outputs require source coverage, cost completeness, materialized rows, validation, provenance, and safe currency handling. Some accounts may require a guided pilot or readiness review.