Contribution margin calculator for ecommerce
Contribution margin is what each order leaves to pay your fixed costs. Enter your price and variable costs to see it in three steps (after product cost, after fulfilment and fees, and after ads), per order and as a percentage.
- CM1: after product cost
- $35.00
- CM2: after shipping, fees, packaging
- $26.25
- CM2 as % of revenue
- 52.5%
- Payment fees per order
- $1.75
- Revenue after tax
- $50.00
- Contribution per month
- $7,125.00
Each order leaves $14.25 (28.5%) to pay fixed costs: $7,125.00 a month.
Get your real numbers every day with ProfitFlyConnect Shopify, Meta and TikTok and see your real net profit every day. Free up to 50 orders a month.
What is contribution margin?
Contribution margin is revenue minus the costs that go up with every order: product, shipping, packaging, payment fees and, for stores that buy their customers through ads, ad cost per order. It's what's left to cover the costs that don't change with volume, such as salaries, software and rent.
Splitting it into levels shows where the money goes. CM1 is after product cost. CM2 is after fulfilment and payment fees. CM3 is after ads.
The formula
CM3 = revenue after tax − product − shipping − payment fees − packaging − ads per order
Contribution margin % is each level divided by revenue after tax. Payment fees are calculated on the price the customer pays, because that's what the processor charges on.
A worked example
You sell at $50 with no sales tax included. The product costs $15, so CM1 is $35 (70%). Shipping is $6, payment fees are 2.9% + $0.30 = $1.75 and packaging $1. CM2 is $26.25 (52.5%).
You pay $12 in ads per order, so CM3 is $14.25: a 28.5% contribution margin after ads. At 500 orders a month, that's $7,125 to pay your fixed costs.
How to improve it
Each level has its own lever. CM1: pricing and supplier cost. CM2: shipping rates, packaging, a free-shipping threshold that lifts order value. CM3: ad efficiency. Seeing all three tells you which lever is worth pulling first.
Common mistakes
Counting fixed costs as variable (your Shopify plan doesn't grow with each order). Ignoring payment fees because they look small. Calculating on revenue with tax included. And stopping at CM2: for an ad-driven store, the margin that matters is after ads.
FAQ
What's the difference between contribution margin and gross margin?
Gross margin usually only subtracts product cost. Contribution margin subtracts every variable cost, including shipping, fees and often ads. Contribution margin is the better guide for pricing and ad budgets.
What is a good contribution margin?
It has to be big enough that your monthly contribution covers your fixed costs with room to spare. Use the break-even calculator to see how many orders that takes.
Are refunds part of contribution margin?
They should be. If you lose a share of revenue to refunds, either lower the price you enter or use the refund impact calculator to see the full effect.