The contribution margin formula is revenue minus variable costs. The result is a money amount left to cover fixed costs and, once those are covered, operating profit. Divide that amount by revenue to get the contribution margin ratio.
Contribution margin can be expressed as a dollar amount or as a percentage of revenue. This article calls the percentage the contribution margin ratio.
For an ecommerce order, product cost is only one part of the calculation. Payment fees, packing, delivery and sales commissions can also reduce what the order contributes. A useful result names the costs included and uses the revenue actually earned after discounts and refunds.
Key takeaways
- Total contribution is revenue minus total variable costs for the same sales.
- Contribution per unit subtracts variable cost per unit from selling price per unit; an order containing two items is still only one order.
- The contribution margin ratio divides contribution by revenue, not by cost.
- Contribution still has to cover fixed costs. It is not net profit.
Contribution margin formula: total, per unit and ratio
The three forms describe the same economics at different scales. Use the money amount to see what remains, the per-unit amount to examine an item, and the ratio to express contribution as a share of revenue.
| Measure | Formula | What the result means |
|---|---|---|
| Total contribution margin | Total revenue − total variable costs | Money available from the measured sales |
| Contribution margin per unit | Selling price per unit − variable cost per unit | Money contributed by one item under the stated conditions |
| Contribution margin ratio | Contribution margin ÷ revenue | Contribution as a fraction of revenue |
Multiply the ratio by 100 to express it as a percentage. With revenue of $52 and variable costs of $28, contribution is $24. The ratio is $24 ÷ $52 = 0.4615, or 46.15%. Each dollar of revenue leaves about 46 cents for fixed costs and operating profit in this example.
For ecommerce orders, assign delivery revenue and shared order costs consistently when moving to a per-item result. An item’s checkout price is not the full revenue attributed to it if the customer also pays for delivery.
If identical units have the same selling price and variable cost, total contribution also equals contribution per unit multiplied by units sold. When discounts, quantities or fulfillment costs differ, calculate the individual sales first and add their contributions.
Decide which variable costs belong in the calculation
A variable cost changes with the activity being measured. For this article’s order calculation, include the costs incurred to supply and complete those orders, including any commission triggered by the sale. Keep fixed period expenses separate.
For a hypothetical retailer, the cost definition includes:
- Product cost: the inventory cost of the units sold, including assigned inbound freight in this model. Use the cost of sold units, rather than the cash spent replenishing the entire warehouse.
- Pick-and-pack charges: the fulfillment charge for processing the order. Separate any fixed warehouse retainer from charges that depend on orders or items.
- Packaging: the mailer, box, inserts or other materials consumed by the shipment. Count them once, even if a fulfillment invoice already includes them.
- Outbound delivery: the carrier charge incurred for the order. Customer-paid shipping belongs on the revenue side of this model, so the full carrier charge remains on the cost side.
- Payment and marketplace fees: the charges attributable to the sale. A fixed amount per transaction varies with the number of transactions even though it does not vary with basket value.
- Sales-triggered commissions: affiliate or acquisition payouts owed because an eligible sale occurred. The example below uses this kind of payout, rather than dividing a fixed campaign budget among orders.
Fixed rent, salaried administration and a flat software subscription stay outside this calculation within the activity range being analyzed. A subscription with an additional transaction charge needs its fixed and variable components separated.
The cost list should follow the business’s actual charges. The formula does not make an expense variable merely because it can be allocated to an order.
Treat advertising and returns explicitly
Advertising needs its own definition. A sale-triggered affiliate commission belongs in the variable-cost model above. A fixed advertising commitment for the period does not become variable by dividing it by order count. If you also deduct allocated campaign spending, label that result as contribution after allocated marketing, state the allocation method and avoid counting the same spending again in period expenses.
Returns affect both sides of an order calculation. A refund reduces revenue; return postage, handling and nonrefunded fees can add costs. A resalable item can reverse its original inventory cost, while an unrecoverable item cannot receive the same treatment. Reconcile the actual refund, fees and inventory recovery instead of subtracting a blanket refund amount twice.
For a forecast, a return allowance is an estimate. Keep that estimate distinct from settled order results and explain its assumptions. The worked orders below have no refunds or return allowance, making their cost boundary explicit.
How to find contribution margin across four ecommerce orders
Calculate each order from its own revenue and variable costs, then add the results. This preserves differences that a single assumed margin would hide.
The following figures are a constructed example, not store data or a benchmark. A retailer sells one desk organizer SKU. Each unit has an $18 inventory cost, including inbound freight. All amounts are USD. Sales tax collected for remittance is outside the modeled revenue and costs; these orders have no returns. Any additional variable charges would need to be added before using the calculation in a real store.
1. Record revenue after discounts
Use the product amount earned after discounts, then add the delivery charge retained from the customer. Do not substitute the advertised list price. The distinction between starting and discounted item prices is covered in list price vs net price.
| Order | Units sold | Product revenue after discounts | Customer-paid delivery | Total revenue |
|---|---|---|---|---|
| A | 1 | $48.00 | $4.00 | $52.00 |
| B | 1 | $44.00 | $0.00 | $44.00 |
| C | 2 | $96.00 | $4.00 | $100.00 |
| D | 1 | $38.00 | $0.00 | $38.00 |
| Total | 5 | $226.00 | $8.00 | $234.00 |
There are four orders but five units. Order C contains two identical organizers at the same $48 item price as Order A. It is a quantity purchase with no bundle discount.
2. Add the variable costs once
The payment charges are illustrative invoice amounts. They are not a quoted payment provider’s fee schedule. Orders B and D also incur different sale-triggered affiliate payouts.
| Variable cost | A | B | C | D | Total |
|---|---|---|---|---|---|
| Product cost | $18.00 | $18.00 | $36.00 | $18.00 | $90.00 |
| Pick and pack | $2.40 | $2.40 | $3.00 | $2.40 | $10.20 |
| Carrier delivery | $5.10 | $5.10 | $6.00 | $5.10 | $21.30 |
| Packaging | $0.70 | $0.70 | $1.00 | $0.70 | $3.10 |
| Payment fee | $1.80 | $1.70 | $3.10 | $1.50 | $8.10 |
| Affiliate payout | $0.00 | $6.00 | $0.00 | $15.00 | $21.00 |
| Total variable cost | $28.00 | $33.90 | $49.10 | $42.70 | $153.70 |
Because customer-paid delivery is included in revenue, the table deducts the full carrier cost. Replacing that cost with only the net shipping subsidy would credit the customer payment twice.
3. Subtract costs and calculate each ratio
Order A contributes $52 − $28 = $24. Applying the same calculation to all four orders gives:
| Order | Revenue | Variable cost | Contribution | Contribution ratio |
|---|---|---|---|---|
| A | $52.00 | $28.00 | $24.00 | 46.15% |
| B | $44.00 | $33.90 | $10.10 | 22.95% |
| C | $100.00 | $49.10 | $50.90 | 50.90% |
| D | $38.00 | $42.70 | −$4.70 | −12.37% |
| Total / combined ratio | $234.00 | $153.70 | $80.30 | 34.32% |
The orders contribute $80.30 in total. Order D has negative contribution: its revenue does not cover its stated variable costs. Repeating that order under identical conditions would increase the shortfall before fixed expenses.
Order C contributes $50.90 per order and $25.45 per unit. Order A contributes $24 per unit. The two-unit shipment spreads some order costs across more items. Across all five units, average contribution is $80.30 ÷ 5 = $16.06 per unit. Across four orders, it is $80.30 ÷ 4 = $20.075 per order, or $20.08 displayed to the nearest cent.
These are different denominators. For a basket containing unlike products, a per-unit average also depends on how shared order costs are assigned to each SKU. Keep that allocation rule visible. A combined offer introduces a separate pricing decision, covered in bundle pricing.
4. Calculate the combined ratio from totals
The combined contribution margin ratio is $80.30 ÷ $234 × 100 = 34.32%. A simple average of the four unrounded order percentages would give 26.91%, which is not the ratio for this set of sales.
Order C carries more revenue than the other orders, so it must carry more weight. Dividing total contribution by total revenue produces the revenue-weighted ratio automatically. Retain full precision during the calculation and round the displayed result at the end.
Contribution margin vs gross profit
Gross profit subtracts cost of goods sold from revenue. Contribution margin classifies costs by whether they vary with the activity being measured. For this retailer, variable selling costs extend beyond inventory cost, so contribution is lower than gross profit.
The same four orders illustrate the difference. In this example only, COGS consists of the $90 product inventory cost; the retailer’s stated presentation puts outbound fulfillment, packaging, payment fees and affiliate commissions among selling expenses. Both calculations use the same $234 revenue base.
| Calculation | Amount |
|---|---|
| Revenue | $234.00 |
| Less product COGS | −$90.00 |
| Gross profit | $144.00 |
| Less other variable selling costs | −$63.70 |
| Contribution margin | $80.30 |
The modeled gross margin is 61.54%, but the contribution margin ratio is 34.32%. Using gross profit to assess these orders would leave $63.70 of variable selling costs out of the calculation.
This bridge is specific to the stated retailer model. COGS in a manufacturing business can include allocated fixed production overhead, which a contribution calculation separates from variable costs. Check the composition of COGS before treating “gross profit minus selling costs” as a universal contribution formula.
Neither gross profit nor contribution is net profit. Fixed operating costs, financing costs and income taxes can still remain below these measures.
Use contribution to calculate a break-even requirement
Break-even calculations translate contribution into the sales required to cover specified fixed costs. They describe a requirement under stated assumptions; they do not predict how many people will buy.
For a single product with a positive, stable contribution per unit:
Break-even units = fixed costs ÷ contribution margin per unit.
For a stable sales mix with a positive contribution margin ratio:
Break-even revenue = fixed costs ÷ contribution margin ratio.
Suppose the hypothetical retailer has $4,015 of monthly fixed operating costs and expects the same order mix, prices and costs as the four-order example. Using the unrounded combined ratio:
$4,015 ÷ ($80.30 ÷ $234) = $11,700 of revenue.
That is equivalent to 50 repetitions of the modeled four-order mix: 200 orders, 250 units and $4,015 of contribution. At that unchanged mix, $4,015 ÷ $16.06 average contribution per unit = 250 units also reconciles the requirement. The illustrative fixed-cost amount was chosen to make the reconciliation exact. At that level, the model covers those fixed operating costs; it has not established net profit after financing or tax.
If the mix shifts toward Order D, the old ratio no longer applies. Additional capacity costs can also change the requirement. Zero or negative contribution cannot cover positive fixed costs through more identical sales alone. When a calculation returns a fractional number of units, round up to the next whole unit.
Comparing alternative selling prices and testing customer response is a separate task; see how to choose a price point.
Interpret the result before making a pricing decision
A higher percentage does not always mean more money is available for fixed costs. For example, an order with $50 revenue and a 40% ratio contributes $20; an order with $100 revenue and a 30% ratio contributes $30. Read the money amount alongside the ratio.
A useful contribution report shows total contribution, units or orders, the combined ratio and the cost definition together. It also keeps negative orders visible. An average can show that the period contributes positively while concealing transactions that fail to cover their variable costs.
There is no single percentage that establishes a viable store. The required contribution depends on fixed costs, sales volume, product mix and the costs included. Compare periods or channels only after aligning those definitions, and distinguish settled results from estimates for returns or acquisition spending.
For the four-order example, the conclusion is specific: $234 of revenue leaves $80.30, or 34.32%, after the stated variable costs. That amount remains available for fixed expenses. A pricing change needs a fresh calculation with its own costs and sales assumptions; the broader decision process belongs in ecommerce pricing strategies.
See how your own catalog compares with the market
SkuPeek finds matching competitor offers and compares their prices and availability with your products.
