← All articles
Basic8 min read|

What Is Contribution Margin? A Complete Guide for E-Commerce Sellers

Learn what contribution margin is, how to calculate it for e-commerce products, and why it matters more than gross margin when making pricing and growth decisions.

If you sell physical products online, you have probably heard of gross margin. But gross margin only tells half the story. Contribution margin tells you what each unit actually earns after every variable cost — and it is the number that should drive your pricing, ad spend, and growth decisions.

What is contribution margin?

Contribution margin is the revenue left over after subtracting all variable costs associated with producing and selling one unit. Unlike gross margin, which only accounts for the cost of goods sold (COGS), contribution margin includes fulfillment, payment processing fees, and customer acquisition cost (CAC).

In other words, contribution margin answers a simple question: how much does this product contribute to covering my fixed costs and generating profit?

Contribution Margin Formula

Contribution Margin = Revenue − COGS − Fulfillment − Processing Fees − CAC

Gross margin vs. contribution margin

Many e-commerce sellers track gross margin and assume their products are profitable. But gross margin excludes some of the largest variable costs in a direct-to-consumer business. Here is the difference:

Gross Margin vs. Contribution Margin
Gross MarginContribution Margin
Starts withRevenueRevenue
Subtracts COGSYesYes
Subtracts fulfillmentNoYes
Subtracts payment processingNoYes
Subtracts customer acquisitionNoYes

A product with a healthy 60% gross margin can easily have a 15% contribution margin — or even a negative one — once you factor in fulfillment, processing, and the cost to acquire the customer who bought it.

How to calculate contribution margin: a worked example

Let's walk through a real example. Say you sell a "Starter Kit" for $49.00. Here are the variable costs per unit:

Worked Example
Selling price$49.00
COGS$18.00
Fulfillment$6.50
Payment processing (3%)$1.47
Customer acquisition cost$12.00
=Contribution margin$11.03
Margin %$11.03 ÷ $49.00 = 22.5%

Every time you sell one Starter Kit, $11.03 flows toward covering your fixed costs (rent, software, salaries) and, eventually, profit. The contribution margin percentage is 22.5%.

Contribution WaterfallExample: Starter Kit
Revenue
$49.00
COGS
($18.00)
Fulfillment
($6.50)
Processing
($1.47)
CAC
($12.00)
Contribution
$11.03
Contribution margin %22.5%

The waterfall above makes it easy to see where your revenue goes. The green bar at the bottom is what each unit actually earns — everything above it is cost.

Why contribution margin matters for e-commerce

1. It reveals true product profitability

Gross margin tells you how much you make after manufacturing. Contribution margin tells you how much you make after selling. In e-commerce, selling costs (ads, shipping, payment fees) often exceed manufacturing costs. Ignoring them means you are flying blind.

2. It tells you how much you can afford to spend on ads

Your maximum viable CAC is bounded by your contribution margin. If your contribution margin per unit (before CAC) is $23, you cannot profitably spend $25 to acquire a customer. This sounds obvious, but without a clear contribution margin number, many sellers overspend on acquisition and wonder why revenue grows while profit doesn't.

3. It drives pricing decisions

When considering a price change, gross margin can be misleading. A 10% price increase on a $49 product adds $4.90 to revenue — but your variable processing fee also increases. Contribution margin shows you the true incremental profit from a price change.

4. It identifies which SKUs to scale (and which to kill)

In a multi-product store, not every SKU earns equally. Ranking products by contribution margin — not revenue or gross margin — reveals which products are actually building your business and which are burning cash.

Common mistakes sellers make

Ignoring payment processing fees

A 3% credit card fee on a $49 item is $1.47. On 1,000 units per month, that is $1,470 that never appears in a simple COGS calculation. It adds up.

Not allocating CAC per product

If you spend $10,000 on ads and sell 500 units across three products, each unit absorbs some of that ad spend. Sellers who track CAC at the account level but not at the product level cannot see which products are profitable and which are subsidized.

Forgetting fulfillment variability

Heavier, larger, or more fragile products cost more to ship. Using a single average fulfillment cost across all SKUs hides the true margin on each one.

How to improve your contribution margin

There are four levers you can pull:

  1. Increase price — the highest-leverage move. Even small price increases drop straight to contribution margin.
  2. Reduce COGS — negotiate with suppliers, order in larger quantities, or find alternative materials.
  3. Optimize fulfillment — consolidate shipments, renegotiate carrier rates, or use regional warehouses to shorten shipping zones.
  4. Lower CAC — improve ad targeting, increase organic traffic, or boost conversion rates to spread acquisition costs across more sales.

Start tracking contribution margin per SKU

The simplest way to get started is to list every variable cost for your top-selling product and subtract them from the selling price. Once you see the real number, do the same for every SKU. You might be surprised by what you find.

MarginCaptain calculates contribution margin per SKU automatically — including COGS, fulfillment, payment processing, and CAC decomposition — so you can see exactly what each product earns. Try the interactive demo to see how it works.

Find your fake-profitable SKUs.

Upload your Shopify data. Get your margin leak audit in minutes.