← Docs

Ecommerce Metrics

Contribution margin: your acquisition ceiling

Contribution margin is the money left from a sale after variable costs. Why it, not revenue or ROAS, sets how much you can spend to acquire a customer.

Updated Jul 2026

What contribution margin is

Contribution margin is the amount of money left from a sale after subtracting the variable costs tied directly to that sale. It excludes fixed costs like rent, salaries, or software subscriptions. For an ecommerce order, variable costs typically include cost of goods sold, payment processing fees, shipping, and packaging. What remains after those costs is the money available to cover fixed costs and, beyond that, to fund customer acquisition.

Contribution margin can be expressed per order, as a total across a period, or as a percentage of revenue. All three versions matter for different decisions, but the per-order figure is the one that connects most directly to ad spend.

How it is calculated

The formula is simple: revenue per order minus variable costs per order. If a product sells for 50 dollars, costs 18 dollars to produce, 3 dollars to ship, and 1.50 dollars in payment processing fees, the contribution margin is 27.50 dollars, or 55 percent of revenue.

The calculation gets harder with bundles, discounts, and multi-item carts, where variable costs vary by SKU. Many stores solve this by calculating a blended average contribution margin percentage across their catalog, then applying it to any given order value. This is less precise than SKU-level costing but far easier to maintain, and it is accurate enough to guide acquisition spend decisions.

Why it matters for Meta ads

Revenue and ROAS treat every sales dollar the same, but a dollar of revenue on a low-margin product is worth far less than a dollar on a high-margin one. Two campaigns can post identical ROAS while one loses money and the other stays comfortably profitable, simply because they sell products with different cost structures.

Contribution margin fixes this by showing the actual cash a sale generates before acquisition cost is subtracted. It sets the ceiling for what a business can spend to acquire a customer and still turn a profit. If the contribution margin per order is 27.50 dollars, spending more than that to acquire the customer means losing money on the first purchase, unless repeat purchases make up the difference.

How to act on it

Calculate contribution margin per order, or per product line if margins vary widely across the catalog. Compare that number against blended cost per acquisition, not just ROAS, when judging whether a campaign is worth scaling. A campaign selling a 70 percent margin product can tolerate a much higher CPA than one selling a 20 percent margin product, even at the same ROAS.

Bidding toward value-based goals or ROAS targets that ignore margin will systematically favor high-revenue, low-margin sales over the ones that actually build the business. Feed margin thinking into optimization decisions instead of leaving Meta to chase revenue alone.

Common mistakes

The most common mistake is optimizing purely to ROAS or revenue targets without checking margin, which quietly rewards the wrong products and campaigns. Another is using a single company-wide margin figure when the catalog spans very different cost structures, which misprices acquisition cost for individual product lines. A third is forgetting to update variable costs when suppliers raise prices or shipping rates change, letting contribution margin figures drift out of date and understate true acquisition risk.

How YieldBI helps

YieldBI’s Profit Goal and Growth Priority controls factor margin into daily scale, test, and pause recommendations, so budget shifts toward campaigns that build the business rather than just the ones with the highest ROAS. Ad-level revenue signals show which products and campaigns generate real profit, not just top-line sales.