Back to the blog
E-commerce Finance 2 min read

Contribution margin in e-commerce: formula and practical example

What contribution margin is, how to calculate it, and why it determines how much you can spend on advertising without losing profitability in your e-commerce store.

You can have a 4x ROAS.
You can be selling more every month.

And still be destroying your profitability.

The number that decides whether you can really scale is called contribution margin.

It's not a marketing metric.
It's a business metric.

  • What contribution margin is in e-commerce.
  • How to calculate it correctly.
  • A practical example with real numbers.
  • Mistakes that distort the calculation.
  • How to use it to decide how much to spend on ads.

⚡ TL;DR — The number that matters

Contribution margin = what you keep per unit after covering variable costs.
That's the money that pays your fixed costs.

If you don't know your real margin, you don't know how much you can spend on advertising.

1) What contribution margin is

It's the difference between the sale price and the variable costs tied to each sale.

Contribution margin = Sale price − Variable costs

Variable costs in e-commerce include:

  • Product cost.
  • Advertising per sale.
  • Shipping.
  • Payment fees.
  • Returns.

2) A practical example

Let's assume:

  • Price: $40,000
  • Product cost: $18,000
  • Ads per sale: $8,000
  • Shipping: $4,000
  • Fees: $2,000

Total variable costs: $32,000

40,000 − 32,000 = 8,000

Your contribution margin is $8,000 per sale.

That's the money that pays for salaries, tools and overhead.

3) Why ROAS can mislead you

A high ROAS only tells you revenue vs advertising.

It doesn't account for:

  • Real product costs.
  • Fees.
  • Shipping.
  • Returns.

You can have a good ROAS and a negative margin.

4) How to use margin to scale

Contribution margin determines:

  • How much you can pay to acquire a customer.
  • Whether you can raise your ad budget.
  • Which products are actually worth scaling.
  • Which SKU you should cut.

Scaling without enough margin just speeds up your losses.

5) Common mistakes

  • Not including advertising as a variable cost.
  • Using wrong average costs.
  • Not reviewing margin by SKU.
  • Ignoring returns.

If your margin is miscalculated, every decision you make is wrong.

6) So… where does Escalafy come in?

Escalafy automatically calculates your real margin:

  • Margin by product.
  • Margin by channel.
  • Real impact of Ads.
  • Daily profit without Excel.

ROAS is marketing.
Margin is business.

If you don't know your contribution margin, you're not scaling. You're improvising.

What Escalafy does for your store

Connect your channels and see the truth behind your numbers. No Excel, in real time.

Stop operating blind.Real results, in real time.

Connect in minutes. Escalafy tells you if you're making or losing money — today, not at the end of the month.

7-day trial · No credit card · Cancel anytime