Home / Glossary / Ecommerce

Ecommerce

Contribution margin

In shortContribution margin is the money left from sales after subtracting variable costs, such as product cost, shipping, payment fees and often advertising. It shows how much each order or channel adds toward fixed costs and profit. Marketers use it to decide how much they can spend to win an order.

By Aditya Aman, working in SEO for almost a decade and hands-on with AEO and GEO as those fields have developed. Updated 25 November 2026.

  • FormulaRevenue minus variable costs.
  • Who it matters toEcommerce owners, finance and paid media leads.
  • Variable costsProduct, shipping, payment fees, returns, sometimes ad spend.
  • Differs fromGross margin, which usually counts only product cost.
  • Common mistakeJudging a channel on revenue instead of margin.

What is contribution margin?

Contribution margin is revenue minus the costs that change with each sale. If you sell more, these costs rise. Rent and salaries usually do not rise with each order, so they are left out and paid from the margin that remains.

Teams differ on which costs to include, especially advertising. Some deduct ad spend to get a margin after marketing. Choose a definition, write it down and use it in every report, so numbers can be compared.

What does a worked example look like?

The numbers below are hypothetical and rounded, shown for illustration. They follow one order with a selling price of 1,000 pesos.

LineAmount (pesos)Note
Revenue1,000Selling price, after discount
Product cost-450Cost of goods
Shipping paid by store-80Net of what the customer pays
Payment fees-30Processor charges
Contribution margin440Before ad spend and fixed costs

Why do marketers need contribution margin?

Revenue can make a channel look strong while it loses money. A campaign that sells low-margin products with free shipping can post a good return on ad spend and still add little profit. Margin shows whether growth pays.

It also sets your ceiling for acquisition. If an order leaves 440 pesos before ad costs, spending more than that to win it loses money on the first order. Whether it pays back later depends on customer lifetime value, which is an estimate, not a promise.

How do you put it to use?

Start with the products and channels where the decision is clearest, and ask your finance contact to confirm the cost lines.

  1. List variable costsInclude product, packing, shipping, payment fees and returns.
  2. Calculate per orderSubtract those costs from net revenue for each order or product group.
  3. Add channel costsDeduct ad spend or agency fees if you want margin after marketing.
  4. Rank products and channelsFind where growth adds profit and where it only adds revenue.
  5. Revisit regularlyCosts change, so refresh the figures at least each quarter.

What mistakes should you avoid?

Ignoring returns is common. A product with a high return rate can look profitable until refunds and reverse shipping are counted. Use net figures after returns where you can.

Mixing up contribution margin and gross margin is the other. They answer different questions, and using one name for both in a report confuses decisions. Label each clearly.

Need help with Contribution margin on your site?

Tell us what is not working. We will check where this affects your search results and what to fix first.

Book a meetingEcommerce SEO

Questions people ask

What is the difference between contribution margin and gross margin?

Gross margin usually subtracts only the cost of the goods sold. Contribution margin subtracts all variable costs, including shipping and payment fees, and sometimes advertising. It is a closer view of what each order adds to profit.

Should ad spend be included?

Both approaches are used. Many teams report margin before ad spend, then subtract marketing to get margin after marketing. What matters is choosing one definition and labeling it in every report.

How does it relate to return on ad spend?

Return on ad spend divides revenue by ad cost and ignores product costs. Contribution margin shows whether that revenue leaves profit. Use margin to set the return on ad spend you need to break even, then track against it.

Inspect the original evidence