The short answer: Contribution margin is selling price minus variable cost per unit. A product that sells for $45 with $27 of variable cost has an $18 contribution margin, or 40% of price. That $18 is what each sale contributes toward fixed costs and, after they are covered, profit. It is not the same as gross margin, and it is not profit by itself.

Key takeaways

  • Subtract all variable costs. Materials, payment fees, pick-and-pack, shipping, commissions, and a returns allowance belong in the variable bucket.
  • Fixed costs are not in the ratio. Rent, salaried staff, and software subscriptions affect profit but not contribution margin.
  • Use it for break-even. Fixed costs divided by contribution margin per unit gives the unit volume needed to break even.
  • Watch the mix. A high-margin product can be diluted by a low-margin bestseller, even if every product looks fine on its own.
  • It is a short-run lens. Capacity limits, step costs, and long-term pricing commitments change the decision.

The formula

There are three versions worth knowing:

Contribution margin per unit = price − variable cost per unit

Contribution margin ratio = contribution margin per unit ÷ price × 100

Total contribution margin = contribution margin per unit × units sold

Variable costs are the costs that change with each additional sale. For a physical product, that usually includes materials, inbound freight allocated per unit, packaging, pick-and-pack labor, outbound shipping, payment processing, marketplace fees, sales commissions, and an allowance for returns. Fixed costs such as rent, salaried operations staff, and software are excluded from this calculation, but they still have to be paid.

A worked example

A product sells for $45. Variable costs are $27 per unit: $16 product and packaging, $4 shipping, $3 payment and platform fees, $2 pick-and-pack labour, and $2 expected returns handling. Contribution margin is $18 per unit, and the ratio is $18 ÷ $45 = 40%.

Line Per unit At 2,000 units
Revenue $45.00 $90,000
Variable costs $27.00 $54,000
Contribution margin $18.00 $36,000
Fixed costs — $30,000
Operating profit — $6,000

At 2,000 units, total contribution is $36,000. After $30,000 of fixed costs, operating profit is $6,000. Break-even volume is $30,000 ÷ $18 = 1,667 units. At 1,500 units, contribution is $27,000 and the business loses $3,000 before any other income or costs.

Contribution margin versus gross margin

Gross margin subtracts cost of goods sold, which may include fixed production overhead such as factory rent or depreciation. Contribution margin subtracts only costs that vary with the sale, so it usually includes selling, shipping, and payment costs that sit below the gross-margin line. A product can have a healthy gross margin and a thin contribution margin after shipping and returns, especially in ecommerce.

The two measures are not competitors. Gross margin helps judge production and pricing economics; contribution margin helps decide whether an additional order or product line pays for itself. Use the same cost definitions consistently, and do not compare a contribution margin that excludes shipping with one that includes it.

Limits

  • Cost classification is a judgement. A cost that is fixed at one volume can become variable at another; step costs and volume discounts blur the line.
  • Discounts and thresholds change the ratio. A 10% discount on a 40% margin product cuts contribution per unit by 25%, not 10%.
  • Product mix matters. Total contribution can fall even when every product’s unit margin is unchanged, if the sales mix shifts toward lower-margin items.
  • Returns and shipping are not always proportional. A free-shipping threshold can make shipping cost behave differently at different order values.
  • It is not a long-run profit measure. Contribution margin ignores fixed costs, capital, and the cost of staying in business, so a positive contribution does not automatically mean a viable product.

Use the calculator

Model your own unit economics with the contribution margin calculator. Test the price, the variable cost, and the volume together, then compare the result with your fixed-cost base.

Frequently asked questions

Is contribution margin the same as profit?

No. Contribution margin is revenue minus variable costs. Profit also subtracts fixed costs, and may include other income, interest, and taxes depending on the profit measure.

Should shipping be a variable cost?

Usually yes for ecommerce, because it changes with each order. If you charge customers for shipping, include both the cost and the revenue consistently in the calculation.

What is a good contribution margin ratio?

It varies by industry and business model. Software and digital products often run much higher than physical retail; the useful comparison is against your own fixed-cost structure and alternatives.

Further reading

Keep exploring

Read next Shipping Cost per Order: What to Count and How to Price It Build a shipping cost per order that includes carrier fees, packaging, handling, and returns, then compare it with… Read next Return Rate: Formula, Example, and What It Hides Calculate return rate by units or orders, choose the right denominator, and see what the number cannot tell… Read next CAC Payback: Months to Recover Acquisition Cost How to calculate CAC payback and what it assumes.