Ecommerce Contribution Margin, Explained

Contribution margin is what remains from an order’s revenue after every cost that varies with that order: cost of goods, shipping, payment fees, fulfillment labor, returns, and discounts. It is the number that determines whether an order is actually worth making, and improving it is usually more reliable than trying to improve conversion rate or ROAS directly, because it compounds across every order the business ever ships.
A full per-order example
Take a $60 order for a single item.
- Price: $60.00
- COGS: $18.00 (30% of price)
- Shipping cost to the merchant: $7.50
- Payment processing fee: $1.94 (roughly 2.9% plus $0.30)
- Pick and pack labor: $3.00
- Returns reserve: $1.80 (a 3% blended return rate at full cost of the returned order)
- Discount applied: $6.00 (a 10% code)
Subtract all six from the $60 price: 60 minus 18 minus 7.5 minus 1.94 minus 3 minus 1.8 minus 6 leaves $21.76 in contribution margin, or 36.3% of revenue. That 36.3% figure, not the 70% gross margin someone might quote off the COGS line alone, is what pays for customer acquisition, overhead, and profit.
This is also the input POAS needs to mean anything: profit on ad spend is only as accurate as the contribution margin feeding it, and a merchant using gross margin instead of full contribution margin will overstate how much room they actually have to spend.
Why AOV is the highest-leverage lever
Raising average order value improves contribution margin faster than almost any other lever, because most of the per-order costs above are partially fixed rather than fully variable. Payment processing has a flat $0.30 component. Pick and pack labor barely changes whether the box holds one item or three. Shipping cost per order often steps rather than scales linearly with weight up to a threshold.
Push the same order from $60 to $80 through a bundle or a threshold-based free-shipping offer, and the added $20 carries close to its full margin straight through, because the fixed-cost components do not repeat. In the example above, adding one more $20 unit at 30% COGS and no extra shipping or packing cost adds roughly $13.40 in contribution margin, a return well above the 36.3% blended rate on the original order.
The improvement levers, ranked
AOV first. As shown above, it improves margin with the least operational disruption, through bundling, quantity breaks, or a free-shipping threshold set just above current average order size.
COGS second. Renegotiating supplier pricing or shifting toward better-margin SKUs in marketing mix moves the largest line item on the list, but it takes longer to execute and is often constrained by supplier contracts or minimum order quantities.
Shipping third. Rate shopping across carriers, packaging optimization to hit lower dimensional weight tiers, and regional fulfillment to cut zone-based cost typically recovers a few points of margin without touching price or product.
Return rate fourth. Every percentage point of return rate removed returns close to a full order’s contribution margin back to the business, since a returned order usually carries the outbound shipping cost, the COGS, and often a portion of inbound shipping with no revenue to offset it. Better sizing information and clearer product photography are the standard, low-cost fixes.
Discount discipline last, but not least. A blanket 10% site-wide discount code, applied to an order that would have converted anyway, is a direct and permanent transfer of margin with no guarantee of incremental volume. Reserve discounts for genuinely marginal converters, first purchase only or cart abandonment recovery, rather than running them as a default acquisition lever.
When this does not apply
A subscription or replenishment business should evaluate contribution margin across the full customer relationship, not per order, since a low or even negative first-order margin can be by design if repeat orders reliably recover it. Optimizing first-order contribution margin in isolation in that model risks cutting the acquisition offer that built the subscriber base in the first place. Check the full relationship against LTV before changing a subscription first-order economics.
How YieldBI helps
YieldBI triages a Meta account daily and surfaces which ad sets and creative need a decision. It does not calculate your contribution margin; that number has to come from your own cost data. What it does is keep the ad-side half of the decision current, so once you know which products and offers carry margin, you are choosing what to scale on today’s performance rather than a week-old dashboard scan.
The number under the number
Every ecommerce metric above contribution margin, ROAS, conversion rate, even revenue growth, can look good while the business quietly loses money on the orders driving it. Contribution margin is the check that catches that, because it forces every cost that actually varies with a sale back into the same line. Get the six inputs right once, and every decision built on top of them gets more honest for free.