A $100 order is not necessarily a profitable $100 sale. A discount reduces what the customer pays, free shipping still costs you money, and your payment provider takes a fee. If you look only at product price minus product cost, you can miss the expense of fulfilling the order.
To calculate ecommerce contribution margin per order, start with the revenue you keep from the order and subtract the costs that occur because you made and fulfilled that sale. The result tells you how much the order contributes toward fixed costs and profit. Here’s how to calculate it, including discounts, shipping, and payment fees.
The contribution margin per order formula
Use this formula as your starting point:
Contribution margin per order = Net order revenue − Variable order costs
Net order revenue is the amount you earn from the products and any shipping charge paid by the customer, after discounts and refunds. Variable order costs typically include the cost of goods sold, outbound shipping, packaging, fulfillment fees, and payment processing fees. You may also need to include other costs directly tied to that order, such as a marketplace commission or per-order sales commission.
For a percentage, divide contribution margin by net order revenue:
Contribution margin rate = Contribution margin per order ÷ Net order revenue × 100
Use revenue excluding sales tax or VAT collected on behalf of a tax authority. Tax you collect and remit is not revenue you keep. Keep your treatment of refunds, shipping charges, and fees consistent from one order to the next so your comparisons remain useful.
Calculate an order step by step
Suppose a customer buys products listed at $100, uses a $10 discount code, and pays $5 for shipping. Your store pays $12 to ship the order. The products cost you $38, packaging costs $2, and your payment processing fee for this example is $3.05. These figures are illustrative; use your own provider’s actual fee data.
| Item | Calculation | Amount |
|---|---|---|
| Product revenue after discount | $100 − $10 | $90.00 |
| Customer-paid shipping | Added to revenue | $5.00 |
| Net order revenue | $90 + $5 | $95.00 |
| Cost of goods sold | Subtracted from revenue | $38.00 |
| Outbound shipping | Subtracted from revenue | $12.00 |
| Packaging | Subtracted from revenue | $2.00 |
| Payment processing | Subtracted from revenue | $3.05 |
| Contribution margin per order | $95 − $38 − $12 − $2 − $3.05 | $39.95 |
The contribution margin rate is $39.95 ÷ $95 = approximately 42.1%. That $39.95 is available to cover costs not assigned to this order—such as software, salaries, and rent—and, after those costs, contribute to profit. It is not the order’s net profit.
How to account for discounts, shipping, and payment fees
Subtract discounts once
A discount reduces the selling price you actually receive. If a $100 product sells for $90 after a code is applied, use $90 as product revenue. Do not enter $90 as revenue and then subtract the $10 discount again.
For bundles, buy-one-get-one offers, or discounts spread across multiple items, allocate the discount across the affected products if you want accurate product-level margins. At the order level, using the total discount is usually enough. If another party funds a promotion, record any reimbursement separately rather than assuming the discount is entirely your cost.
Separate what the customer pays for shipping from what shipping costs you
A shipping charge paid by the customer adds to order revenue. The carrier charge and any variable fulfillment or packaging costs are expenses. Recording both sides makes the shipping subsidy visible.
In the example, the customer pays $5 and shipping costs $12, leaving a $7 shipping shortfall before packaging. On a free-shipping order, customer-paid shipping is $0, but the carrier cost still belongs in the calculation.
If you use a third-party fulfillment provider, check what each charge covers. Avoid counting postage or packaging twice if those costs are already included in a bundled fulfillment fee.
Use the payment fee charged on the transaction
Payment processing commonly includes a percentage component, a fixed transaction charge, or both. The fee may depend on factors such as payment method, transaction location, and the amount processed. For completed orders, use the actual fee recorded for that transaction when available.
When forecasting, use a clearly labeled estimate based on your provider’s terms and your typical order mix. Check the fee’s calculation base rather than assuming it applies only to product revenue: it may be charged on the amount collected from the customer, including shipping and, in some cases, tax. Although collected tax is excluded from your revenue figure, any processing cost you bear on that amount is still a cost.
Which other costs belong in contribution margin?
Include a cost when it changes because you receive, process, or fulfill the order. Depending on your business, that may mean:
- Product cost, including the purchase or production cost assigned to items sold.
- Per-order pick-and-pack, warehouse, or fulfillment charges.
- Packaging, inserts, and other materials used for that shipment.
- Marketplace commissions or transaction fees.
- Variable sales commissions or other order-specific charges.
Fixed expenses such as monthly software subscriptions, salaried staff, and rent generally sit outside the per-order contribution margin calculation. You still need enough total contribution margin to pay for them.
Customer acquisition cost needs a little care. Ad spend is rarely traceable to one specific order with complete accuracy, especially when a customer sees several ads or returns to buy again. Calculate your order contribution margin before marketing costs, then compare it with acquisition cost at the campaign, channel, or customer-cohort level. If you choose to allocate ad spend per order, label that as a separate margin after allocated marketing cost so you do not confuse it with the underlying order economics.
Build a simple per-order margin tracker
You do not need a complex system to get started. Export order details from your store and match them with product costs, shipping invoices, fulfillment charges, and payment fee records. Give each order one row and create columns for:
- Order ID, date, and sales channel.
- Product selling price, discounts, customer-paid shipping, and refunds.
- Net order revenue, excluding collected sales tax or VAT.
- Cost of goods sold, outbound shipping, packaging, and fulfillment.
- Payment fees and any other variable order fees.
- Contribution margin in currency and as a percentage.
Start with a recent sample of orders if you cannot reconcile every transaction immediately. Check a few rows by hand against your store, shipping, and payment records before relying on the totals. Then review margins by product, discount code, shipping method, order size, and sales channel. An average margin can hide a promotion or product combination that regularly produces weak orders.
For decisions about future promotions, add forecast columns. You can then change the proposed discount, expected shipping cost, or estimated payment fee and see what happens to contribution margin before launching the offer.
Common mistakes that distort order profitability
- Using list price instead of the price paid: Base revenue on the order after discounts.
- Treating free shipping as free to your business: Include the carrier and fulfillment costs even when the customer pays nothing for delivery.
- Ignoring small per-order charges: Packaging and fixed payment transaction fees can matter, particularly on low-value orders.
- Mixing tax into sales revenue: Exclude tax collected for remittance, while retaining any related processing fee you pay.
- Calling contribution margin profit: Your fixed overhead and other business expenses still need to be covered.
- Overlooking refunds and returns: Update the original order—or track a clearly defined post-return margin—when revenue is refunded and costs change.
Use contribution margin to make better decisions
Contribution margin is most useful when it helps you test a specific choice. Before offering a deeper discount, calculate the margin at the proposed selling price. Before raising your free-shipping threshold, look at whether the larger basket is likely to cover the extra shipping subsidy. If one sales channel looks busy but produces thin margins after its fees, compare it with your other channels rather than judging it on revenue alone.
Start by calculating the margin on ten recent orders, including at least one discounted order and one free-shipping order. You will have a more reliable basis for pricing, promotions, and shipping decisions than sales totals alone can provide.
Veelgestelde vragen
Is contribution margin the same as gross profit?
No. Gross profit typically subtracts cost of goods sold from revenue. Contribution margin also subtracts the other variable costs you include in your definition, such as shipping, fulfillment, and payment fees. Define your calculation consistently when comparing reports.
Should I include shipping revenue in contribution margin?
Yes, if you charge the customer for shipping and keep that charge as part of the sale, include it in order revenue. Record your outbound shipping cost separately. This shows whether the customer’s charge covers the cost of delivery.
How do I handle returns and refunds?
Reduce revenue by the amount refunded and adjust costs where appropriate. Consider any return shipping, nonrefunded payment fees, or product value you can recover if those amounts are material. Keep your method consistent so returned orders do not appear more profitable than they are.
What is a good ecommerce contribution margin per order?
There is no universal target. A useful margin depends on your products, order size, acquisition costs, return rate, and fixed expenses. First establish your current margin, then assess whether the contribution from your expected order volume can cover the rest of your costs and support your profit goals.