Contribution margin

What is an ecommerce contribution margin calculator?

An ecommerce contribution margin calculator estimates how much money remains after subtracting COGS, shipping, fulfillment, and paid media from revenue. DTC brands, ecommerce finance teams, growth marketers, merchandisers, and founders use it to understand whether sales growth is producing enough contribution to cover payroll, rent, software, overhead, and profit.

Ecommerce contribution margin formula

The calculator subtracts the main variable costs from ecommerce revenue, then divides the remaining contribution dollars by revenue to calculate contribution margin percentage.

Contribution margin = Revenue - COGS - Shipping/fulfillment - Paid media spend
  • Contribution margin % = Contribution margin / Revenue x 100.
  • Use net revenue when refunds, discounts, returns, or taxes materially change the sales base.
  • This is contribution before fixed operating expenses, not EBITDA or net income.

Inputs explained

Contribution margin is most useful when revenue and cost inputs come from the same fiscal period, order cohort, and accounting policy.

Revenue
The ecommerce revenue being analyzed. Use net revenue after discounts, refunds, and returns when you want a finance-ready margin view.
COGS
The cost of goods sold tied to the units shipped or sold. This can include product cost, landed cost, inbound freight allocation, packaging, and other product-level costs according to finance policy.
Shipping/fulfillment
Variable logistics costs such as outbound postage, 3PL pick-pack, packaging, inserts, carrier surcharges, free-shipping subsidies, and return labels when they scale with orders.
Paid media spend
The ad spend and performance-marketing costs tied to the revenue period, including platform spend, affiliate commissions, and variable campaign fees when included in acquisition cost.
Contribution margin
The dollars left after core variable costs. This amount must cover fixed operating expenses and profit.
Contribution margin %
The share of revenue left after variable costs, useful for comparing time periods, product lines, channels, and growth strategies.

Example ecommerce contribution margin calculation

If monthly net revenue is $320,000, COGS is $128,000, shipping and fulfillment cost is $36,000, and paid media spend is $64,000, contribution margin is $92,000. Contribution margin percentage is 28.75%, before payroll, rent, software, fixed warehouse costs, financing, and corporate overhead.

Contribution margin

Revenue - COGS - shipping - ad spend

1
Revenue
2
Variable costs

Want a similar calculator on your website?

Describe your fields and formula in plain English, match your brand, and embed the widget anywhere—WordPress, Webflow, Shopify, or custom HTML. Capture leads when you're ready.

How to run the ecommerce contribution margin wizard

  1. Input trailing thirty-day net revenue after returns and payment refunds—match the same fiscal calendar your finance sheet uses so COGS accruals line up with recognition.
  2. Enter COGS tied to units shipped in that window (landed cost including inbound freight allocate and consumables); exclude capitalized inventory swings unless your board approved that mapping.
  3. Add shipping and fulfillment variable cash costs—carrier labels, 3PL pick-pack, inserts, and warehouse outbound touches—while leaving fixed warehouse lease and salaried ops out of this wizard.
  4. Type consolidated paid media invoices plus attributable platform fees for the period (often Meta, Google, TikTok, affiliates); compare dollar contribution margin and contribution margin percent before layering salaries, software amortization, and corporate overhead.

Common ecommerce contribution margin mistakes

  • Using gross revenue while COGS and fulfillment are tied to net-of-return orders.
  • Leaving free-shipping subsidies, carrier surcharges, return labels, or 3PL fees out of variable costs.
  • Treating gross margin as contribution margin before subtracting paid media and fulfillment.
  • Blending high-margin and low-margin SKUs without checking product mix.
  • Calling positive contribution margin net profit before fixed OpEx is covered.
  • Using platform ad spend without reconciling affiliate commissions, agency variable fees, or channel overlap.
  • Scaling paid media when contribution dollars are not enough to fund fixed costs and cash needs.

DTC contribution margin & cost-structure planning ranges

Reported gross margin before OpEx (revenue minus COGS, category varies)
Often ~45–65% for many consumer brands; beauty and supplements skew higher than heavy apparel
Variable fulfillment & outbound logistics as % of net revenue (typical planning bands)
~8–15% for scaled parcel-heavy DTC depending on free-shipping policy and 3PL rates
Net-revenue-weighted paid acquisition spend (blended paid social + search + partners)
Commonly modeled ~15–30% at growth pace; contribution margin % moves materially with this line

Best use cases

  • Forecasting and scenario planning
  • Client education and pre-qualification
  • Budget and performance decision support

FAQs

Why does this wizard exclude payroll, rent, and SaaS from contribution margin?

Contribution margin isolates revenue minus truly variable costs that scale roughly with orders and traffic so merchandising and growth leaders can stress-test discount depth, channel mix, and 3PL rates. Fixed OpEx still determines net income—allocate it afterward using your FP&A model so you do not double-count warehouse salaries embedded inside fulfillment invoices.

Should shipping include free-shipping subsidies and return-label costs?

Yes if they move with order volume in your accounting treatment: outbound postage, packaging, carrier surcharges, and incremental return logistics often belong in variable fulfillment. If finance books returns as contra-revenue, net revenue down before running this wizard so COGS and shipping align with fulfilled units rather than overstating contribution.

My gross margin is forty percent but contribution margin looks thin—what usually breaks?

High blended CAC as a percent of revenue or subsidized shipping frequently compresses contribution even when product margin looks healthy. Segment paid spend by prospecting versus retention and strip agency retainers or creative production out if those are fixed monthly charges rather than marginal acquisition dollars.

Does contribution margin percent equal Shopify’s reporting margin?

Rarely—Shopify reports emphasize product margin before fully burdened logistics and often omit off-platform ad invoices. Reconcile by exporting orders plus carrier bills plus media receipts into one month, then recompute this calculator’s numerator and denominator off finance’s definition of net revenue.

What should I do if revenue is growing but contribution margin is falling?

Check paid media efficiency, discount depth, return rate, shipping subsidies, SKU mix, fulfillment rates, and product costs. Growth can destroy contribution when new revenue comes from lower-margin products, colder traffic, or heavier promotions.

How do returns and refunds affect ecommerce contribution margin?

Returns reduce net revenue and can add reverse logistics, restocking, write-offs, and customer support cost. For clean analysis, align net revenue, COGS relief, return labels, and restocking costs to the same returned-order policy.

Should contribution margin be calculated by SKU or by total store?

Use both. Store-level margin shows overall health, while SKU-level margin reveals products that look strong on revenue but lose contribution after COGS, shipping, discounts, and acquisition costs.

How much contribution margin does an ecommerce brand need?

It depends on fixed OpEx, growth stage, cash runway, and category economics. A brand with high payroll, rent, software, and inventory financing needs more contribution dollars than a lean store with low fixed costs.

How should paid media be treated when some sales are organic or repeat customers?

Run blended contribution for the whole store, then segment paid, organic, email, affiliate, and repeat cohorts where possible. Blended paid spend can hide channels that are profitable only because organic or returning customers subsidize them.

How can an ecommerce team improve contribution margin without raising prices?

Improve ad efficiency, reduce discounting, renegotiate COGS, optimize packaging, lower carrier costs, improve return prevention, shift mix toward higher-margin SKUs, and raise AOV through bundles that do not add proportional cost.

Glossary

Scenario modeling

Testing multiple assumptions to estimate possible outcomes before execution.

Commercial intent

User behavior indicating readiness to buy, subscribe, or request a quote.

Related calculators

Step-by-step articles on building, embedding, and ranking calculator pages like this one.

Browse all blog posts →

Category: Ecommerce finance & unit economicsTopics: Contribution margin, DTC variable costs, Paid acquisition efficiency

Last reviewed: 2026-05-07

Reviewed by: Calclet Growth Team