A busy store can generate plenty of revenue without leaving much money behind. Product costs are only the beginning: every order also brings packaging, delivery, payment fees and often marketing costs.
Contribution margin helps you see what remains after those costs. It gives you a practical way to compare products, evaluate promotions and understand whether more sales will help cover the expenses of running the business.
Once you break the calculation into its parts, it becomes easier to see where an improvement will make a difference. Sometimes that's the product mix. Sometimes it's fulfillment, discounting or the cost of bringing customers back.
What is ecommerce contribution margin?
Contribution margin is the revenue left after subtracting variable costs. That remaining amount contributes toward fixed expenses and, once those are covered, profit.
The basic calculation is:
Contribution margin = Net revenue − Variable costs
To express it as a percentage:
Contribution margin % = Contribution margin ÷ Net revenue × 100
This follows the standard definition in Shopify's contribution margin guide. For an ecommerce store, relevant variable costs can include the product, packaging, fulfillment, shipping, transaction fees and sales commissions.
Say an order generates $80 in net revenue and has $50 in variable costs. It contributes $30, or 37.5% of revenue, toward the rest of the business.
Contribution margin vs. gross margin
Gross profit subtracts cost of goods sold from revenue. Contribution margin groups costs by whether they change with activity, including selling and delivery costs that can fall outside COGS. Shopify's gross margin guide explains this distinction.
For a retailer buying finished products, gross margin is a useful view of the difference between selling price and product cost. Contribution margin goes on to show how much of that difference remains after serving the order.
A manufacturer may also have fixed production costs within its accounting COGS. Keep those cost classifications consistent when comparing the two measures, rather than assuming every gross-profit report matches the first stage of a contribution calculation.
Neither figure is the same as net profit. Your lease, fixed salaries and other overhead still need to be covered by the contribution the business generates.
Understanding CM1, CM2 and CM3
An operating report can break the calculation into stages so you can see where money is going. CM1, CM2 and CM3 are often used for this purpose, although the exact cost groupings vary between businesses.
For the examples here, we'll use three stages: product contribution, contribution after delivery, and contribution after marketing.
CM1: After variable product costs
Start with net revenue, then subtract the variable cost of the products sold. That includes the landed unit cost of inventory and any product packaging already included in that cost.
CM1 = Net revenue − Variable product costs
Net revenue should already reflect discounts and refunds. If an $80 product sells with an $8 discount, begin with $72; don't subtract the discount again later in the calculation.
This stage helps you compare the earning potential of products before order handling and marketing enter the picture.
CM2: After delivery and transaction costs
The next stage accounts for getting the order to the customer and collecting payment.
CM2 = CM1 − Variable fulfillment, shipping and transaction costs
Include pick-and-pack charges, delivery packaging, carrier costs, payment fees and applicable marketplace commissions. Use the rates your business pays, since the same product can have different costs across destinations and sales channels.
Returns can add handling and transport costs as well as reducing revenue. Keeping those costs visible helps you understand the full effect of products that come back frequently.
CM3: After marketing
For a view of what remains after generating the orders, subtract the marketing costs allocated to those sales.
CM3 = CM2 − Allocated marketing spend
This is a useful management view for campaigns and channels. Advertising budgets don't always vary directly with each order, so describe which spending is included when you use this stage.
On a first-order analysis, you might deduct acquisition spend per new customer. On a monthly store report, you can deduct the relevant period's marketing spending from total CM2. Each expense should appear once, with fixed team and software costs left in overhead if they haven't already been allocated above.
A worked ecommerce contribution margin example
Consider a store selling an $80 product with a $10 promotion. In this simplified example, the customer pays no shipping charge and there are no returns or taxes included in revenue.
| Item | Amount |
|---|---|
| Product selling price | $80 |
| Discount | −$10 |
| Net revenue | $70 |
| Variable product cost | −$24 |
| CM1 | $46 |
| Pick, pack and delivery packaging | −$4 |
| Shipping | −$7 |
| Payment and transaction fees | −$3 |
| CM2 | $32 |
| Allocated marketing spend | −$20 |
| CM3 | $12 |
The order leaves $12 after the costs shown, equivalent to 17.1% of net revenue. That amount is available for the overhead not already included in the calculation and for profit.
The stages also show where to investigate. A lower product cost would improve all three levels. A less expensive delivery arrangement would improve CM2 and CM3. A more efficient campaign would improve CM3.
How to improve ecommerce contribution margin
Look for changes that preserve what customers value while reducing costs or increasing the contribution from each order. The largest percentage on a report isn't always the most useful opportunity; consider the dollars involved and how many orders the change affects.
Review products and promotions together
A product can look attractive at its regular price and become much less useful under a common promotion. Compare the contribution it generates at the price customers usually pay.
For example, a bundle might earn more total contribution even with a lower percentage margin, because customers buy several relevant items in one shipment. A broad discount could do the opposite if it reduces revenue without adding enough orders.
Merchandising decisions become clearer when you can see contribution per order alongside total sales volume.
Reduce avoidable fulfillment costs
Break delivery costs down by product, parcel size and destination. An oversized box, an unnecessary split shipment or a fragile item that repeatedly arrives damaged can create a recurring expense.
Changes to packaging or inventory placement can help, but include their wider effects. A cheaper material that leads to more damage may cost more overall. A larger supplier order may reduce unit costs while tying up more cash in stock.
Investigate returns at the product level
Return reasons often point to something you can improve before the next order is placed. Fit problems may call for better sizing information; misunderstood features may need clearer photos or descriptions.
Include refund effects and return-processing costs in the same product view. If returned inventory can be resold, account for its recovery consistently instead of treating every return as a complete inventory loss.
Connect marketing decisions with order economics
A strong advertising return can still leave little contribution when the promoted product has high costs. Compare campaigns using the contribution from the orders they bring in, alongside their customer acquisition cost.
That can reveal a different priority from a revenue-only report. A campaign selling fewer high-contribution orders may be more useful than one generating a large volume of heavily discounted purchases.
How repeat purchases affect contribution margin
A returning customer doesn't need to be acquired for the first time again. That creates an opportunity for later orders to contribute more, especially when the customer returns directly or through a relevant message.
Those orders still carry product, delivery and transaction costs. Rewards, discounts, messaging and any paid reactivation also belong in the calculation.
Using the earlier example, if a repeat order has the same $32 CM2 and needs $4 in allocated retention marketing, it leaves $28 after marketing. The lower marketing cost adds $16 to the contribution from that order.
Your own comparison may look different. Understanding it helps you decide where improving customer lifetime value can add meaningful contribution over time.
Using contribution margin to understand break-even
Once you know the contribution available after the costs in your operating model, you can compare it with the remaining fixed expenses.
If those expenses total $12,000 a month and orders average $12 of contribution after the costs already deducted, you need 1,000 orders to cover them. That assumes the contribution per order and remaining fixed costs stay consistent at that volume.
Separating new-customer orders from repeat purchases makes this view more useful. Their different costs can change how much sales volume the business needs.
Final thoughts
Contribution margin makes the cost of selling easier to understand. It connects the product, the order experience and the marketing behind each purchase, so you can see what the sale leaves for the business.
That visibility helps you make more informed choices about promotions, fulfillment and growth. As the store develops, a consistent contribution view gives you a way to keep those decisions grounded in what your orders earn.




