An $80 order looks lovely when the product costs $25. There is $55 left, right? Well, the customer used a discount. Your warehouse charged to pick and pack it. The carrier sent a bill. The payment processor took its cut. Some orders come back.

The product margin is still useful. It just cannot tell you what this order leaves to pay for ads, rent, software, and everyone who keeps the store running. Ecommerce contribution margin can. You need a cost boundary you can explain, a few reliable inputs, and a habit of updating them when your parcel or return mix changes.

ecommerce contribution margin

What contribution margin tells you

In managerial accounting, contribution margin is sales revenue minus variable costs. The amount left contributes to fixed costs and, once those are covered, profit. For an online store, the useful unit is often an order, though you can also calculate it by product, customer group, or sales channel.

Order contribution ($) = net order revenue − variable costs caused by that order.

Contribution margin (%) = order contribution ÷ net order revenue × 100.

That percentage needs a label. This article uses pre-acquisition contribution after product, fulfillment, shipping, transaction fees, and expected return cost. It then shows an after-acquisition contribution by subtracting attributed paid-media cost. Some businesses call these CM1 and CM2; others use those labels differently. Write out the included cost rows when you share a margin number.

Gross margin usually stops much earlier, after revenue and cost of goods. Net profit comes later, after fixed overhead and other period expenses. A store can have a healthy product gross margin and still lose money on a bulky parcel sent to a distant shipping zone. It can also have positive order contribution while the business as a whole loses money because fixed costs are too high.

You can use the number to set a discount floor, compare products, or decide whether a faster shipping promise is affordable. It is a decision measure, not a replacement for your accounting statements.

ecommerce contribution margin

Start with the money the order actually earns

The first row should be a defined revenue number. A workable order view is:

Product sales − discounts + customer shipping charges − refunds = net order revenue.

If you sell an item for $80, give an $8 discount, and collect $5 for shipping, the order earns $77 before any later refund. “Free shipping” simply makes the customer shipping line zero. It does not make the carrier label free.

Use the same treatment every month. If your reporting system already shows sales net of refunds, do not subtract refunds again. If discounts are already embedded in net sales, do not take them off a second time either. This sounds obvious until someone exports one Shopify report, one payment report, and a carrier bill into the same sheet.

Sales tax or VAT you collect for a tax authority is generally a pass-through amount, so keep it out of operating revenue and the contribution denominator. Duties are different when your business pays them as part of getting a product into stock or delivering it to a buyer. Put those costs where they belong and document the method. Cross-border tax treatment can depend on the transaction, so have your accountant confirm the reporting rule for your markets.

Customer shipping charges deserve their own row. If a customer pays $5 and the label costs $7, the $2 gap is a shipping subsidy. It is easy to hide that gap when product sales and shipping receipts appear in different reports.

ecommerce contribution margin

Put the variable costs where they happen

A cost belongs in this order view when it changes with the orders you take, or when you can sensibly assign it to them. Write down the rule so your comparisons stay fair.

Product cost and inbound landed cost

Begin with the product you actually ship, including its variant. A size XL jacket may cost more than size S; a glass jar may need a protective insert that a plastic one does not. If you import inventory, add inbound freight, import duties you pay, and other directly attributable costs under a consistent inventory-cost policy. Allocate batch costs across units rather than charging an entire container to the first order.

For dropshipping, the supplier’s per-order product price is the natural starting point. For stocked goods, use the cost of the units sold. Keep unsold inventory as inventory in the appropriate accounting view instead of pretending it was consumed by today’s orders. Our Shopify fulfillment cost guide breaks down the physical cost stack for different fulfillment setups.

Picking, packing and the materials in the box

A third-party logistics provider may charge per order, per item, or per extra pick. Add the charge triggered by that order. Include the mailer, carton, tape, void fill, insert, and any assembly or kitting fee. If a branded box has a one-time design charge, decide separately whether to amortize it for pricing decisions; do not quietly mix it with the per-box material cost.

Packaging choices affect the carrier bill too. A larger carton can push a light product into a higher dimensional-weight band. Before switching from a mailer to a gift box, compare both the box price and the packed parcel rate. Custom packaging MOQ and material choices are relevant when branded materials have to be bought in batches.

Outbound shipping, surcharges and split parcels

Use the label or carrier invoice for the destination and service level the order actually used. Fuel, remote-area, residential, signature, oversize, or peak charges can change the amount. So can a second parcel when one order draws from two suppliers.

A simple average label cost is fine for an early estimate, but it can hide trouble. A small beauty item sent domestically and a fragile lamp shipped across a border should not share one assumed $6 rate. Track at least the major destination zones and parcel profiles. If your customers get free shipping above a threshold, check whether larger baskets really cover the extra weight.

Payment, marketplace and per-sale fees

Payment processing commonly has a percentage and a fixed amount per transaction. Some marketplace, affiliate, or buy-now-pay-later arrangements add fees. Check the provider’s actual statement and fee base. A percentage may apply to shipping or tax as well as the item price, depending on the agreement. Do not calculate it from product price alone without checking.

Monthly storefront software and a fixed agency retainer usually sit below this order-level line. A per-order app charge or marketplace commission belongs in it. For a fee with both fixed and variable parts, separate the two when possible. This matters a lot for low-priced products: a fixed transaction charge takes a bigger bite from a $12 item than a $120 one.

Refunds, return handling and replacements

A refund removes revenue. The return also may cause a label, inspection, repacking, disposal, customer-support, or replacement-shipping cost. If the item can be sold again, its product cost is not necessarily a permanent loss; record the inventory recovery consistently. If it is damaged or uneconomic to restock, the product cost remains part of the loss.

For a recent order whose return window is still open, estimates can make the forecast useful. Estimate future refunds as a reduction to revenue and return handling or unsellable product as costs. Use product-level history when you have it. Once a refund is realized, replace the estimates for that order with actual figures. Counting the forecast and the final loss together will overstate the damage.

Processing fees need a look as well. Stripe’s refund-fee guidance says original processing fees are not returned and refund fees can depend on your pricing terms. Check your own processor rather than assuming every refund reverses the fee. For service-side expectations, FriendDropshipping’s refund and resend policy is one example of why return and reship rules need to be read before using a blanket allowance.

Paid acquisition: show a second layer

Many ecommerce teams subtract attributed ad spend after the pre-acquisition contribution to see what a campaign actually leaves. Others include acquisition in their main contribution number. Either can support a decision when the definition stays visible.

Do not allocate every brand campaign to a single order with false precision. For a campaign or customer cohort, match spend and orders over a sensible window and explain how repeat purchases are treated. An after-ad figure for a first order and a pre-ad figure for a repeat order are not comparable.

ecommerce contribution margin

One order, with the arithmetic exposed

Take this illustrative order. The figures are invented, not a fee quote or industry average. The merchant offers a small discount and collects some shipping from the customer.

LineAmountTreatment
Product price$80.00Starting sale price
Discount−$8.00Reduces revenue
Shipping paid by customer+$5.00Adds revenue
Net order revenue$77.00$80 − $8 + $5
Product and inbound allocated cost−$25.00Units shipped
Pick and pack−$3.50Per-order warehouse charge
Packaging−$1.00Materials used
Outbound label−$7.00Actual or quoted zone rate
Payment fee−$2.60Illustrative transaction fee
Expected return handling and product loss−$3.00Forecast; excludes any future refund of sales revenue
Pre-acquisition contribution$34.90$77 − $42.10
Attributed acquisition cost−$12.00Separate reporting layer
After-acquisition contribution$22.90$34.90 − $12

The pre-acquisition margin is $34.90 ÷ $77, or about 45.3%. After attributed acquisition cost, it is $22.90 ÷ $77, or about 29.7%. Neither number is net profit. Rent, salaries, and other fixed costs still need to be paid.

Now suppose this same order is fully refunded, including the $5 customer shipping charge. For the realized-order record, net revenue becomes $0. Remove the $3 forecast allowance and record actual return events. Say the customer returns the item, it cannot be resold, the return label costs $6, and inspection costs $2. The merchant has lost $25 of product cost, $3.50 of pick-and-pack, $1 of packaging, $7 outbound shipping, $2.60 processing, $6 return postage, and $2 inspection. The result is −$47.10 before acquisition cost, or −$59.10 if the $12 ad cost belongs to this order. With zero net revenue, show the dollar loss instead of a margin percentage.

A resellable item, partial refund, nonrefunded shipping charge, or replacement will change the rows. Follow the actual cash and inventory outcome, and clear the earlier forecast for this order.

ecommerce contribution margin

Bundles and split shipments make averages slippery

A bundle can look profitable until you count two extra picks, a bigger box, or a second carrier label. Use a documented allocation rule when you want margin by SKU. You might assign shared pick-and-pack by item count and shipping by packed weight or actual parcel contents. There is no perfect split; consistency lets you see a trend.

Keep the order result as the source of truth. If three items travel in one parcel, the total carrier invoice should be counted once. Your item-level allocation should add back to that same invoice, not produce three imaginary shipping labels. The same rule helps with prepaid inventory, print-on-demand goods, and products handled by a 3PL. A monthly warehouse minimum is a fixed commitment within a certain volume range; extra storage or per-order handling may vary. Show the difference.

Materials and category rules also affect cost. A fragile glass product needs more cushioning; an apparel SKU may have more size-related returns; a battery product may face shipping restrictions. These are reasons to use product-level data, not to assume a universal “fragile” or “fashion” surcharge.

Compare the number where decisions change

Start with a small weekly view: top SKUs, destination zones, and sales channels. Use the same revenue definition and cost rows for each. A marketplace order may have a higher commission but lower acquisition cost. A direct-store order may have no marketplace commission but a larger ad bill. You need both layers to compare them fairly.

Watch timing. Today’s carrier invoice may cover last month’s shipments, and this month’s refunds may belong to orders placed earlier. For financial reporting, reconcile to the accounting period. For operating decisions, attach late costs to the original order or cohort when your data allows it. State which method your dashboard uses.

Look at dollars as well as percentages. A 50% contribution on a $20 order leaves $10; a 35% contribution on a $100 order leaves $35. The larger order may still demand more cash for stock or create more expensive returns. Averages can be helpful, but a couple of real order records usually reveal what the average hides.

ecommerce contribution margin

Use the result to change a real cost

When contribution is thin, inspect the row causing it. A discount may be too deep. A box may be wider than the product needs. A free-shipping threshold may invite heavy, low-margin baskets. A recurring return reason may trace to a size chart or a product photo. Fixing the cause beats adding a mystery “handling fee” at checkout.

Fulfillment is often negotiable through better operating detail. Compare supplier-direct shipping with a consolidated or prestocked workflow using the same SKU mix and destinations. Include receiving, storage, pick-and-pack, materials, parcel rates, and exception work in both quotes. FriendDropshipping’s dropshipping fulfillment workflow shows what these handoffs can include; its fulfillment checklist can help define the inputs before you ask for a price. A shorter route or one fewer split parcel may help, but measure it with actual orders.

For paid media, the pre-acquisition contribution gives you a ceiling, not an automatic ad budget. You still need an amount for fixed costs and profit. A campaign that spends every remaining dollar to acquire the first order may work only if repeat purchases are real and measured. Keep that assumption visible.

Conclusion

Start with net order revenue. Subtract the product, physical fulfillment, shipping, transaction fees, and realistic return cost. Then show acquisition separately if you use paid traffic. Review the calculation by SKU and destination when your prices, packaging or carrier mix change. The useful margin is the one whose rows you can trace back to a real order.

FAQs

What is ecommerce contribution margin?

It is net sales revenue minus the costs that vary with the order. The amount left helps cover fixed costs and, after those, profit.

How is it different from gross margin?

Gross margin commonly subtracts product cost from revenue. An ecommerce contribution view also includes order-driven costs such as fulfillment, shipping and transaction fees. Always check the report’s exact definition.

Is contribution margin the same as profit?

No. Positive contribution still has to cover fixed overhead such as rent, salaries and some software subscriptions.

Should shipping charged to customers count as revenue?

Yes, in an order-level view it is a customer receipt. Record the outbound carrier charge separately so the shipping subsidy or surplus is visible.

Do I include the label and pick-and-pack fee?

Yes, when they are caused by the order. Add packaging materials and any per-item or per-order handling charges too.

Should I subtract sales tax or VAT?

Tax collected for a tax authority is generally excluded from operating revenue. Confirm your treatment with your accountant, especially for cross-border sales.

How do discounts affect the denominator?

Use revenue after the discount. A margin calculated on the original list price will overstate the amount earned from a discounted sale.

How do I include returns without counting refunds twice?

Reduce revenue for the actual refund. Add actual return-handling costs, and remove any earlier expected-return reserve for that order. If the report already nets refunds from sales, do not subtract them again.

What if the refunded item can be resold?

Record the inventory recovery under a consistent policy. The return label, inspection, repacking and any lost value can still cost money.

Do processing fees come back after a refund?

It depends on the provider and contract. Stripe says original processing fees are not returned under its published guidance. Check your own statement for the actual fee.

Should ad spend be included?

Show a pre-acquisition contribution first, then an after-acquisition layer if you can attribute spend sensibly. State which number you mean when comparing channels.

How do I allocate fulfillment cost across a bundle?

Use a consistent rule, such as item count for picks and packed weight for shipping. The allocated item costs must add up to the actual order cost.

What is a good ecommerce contribution margin?

There is no single percentage for every product and channel. The margin must cover your fixed costs and leave the return you need. Compare it with your own historical orders and cost structure.

Can gross margin be positive while contribution is negative?

Yes. A product can sell above its purchase cost but lose money once shipping, fulfillment, fees and returns are included.

How often should I recalculate by SKU and shipping zone?

Review a working dashboard weekly if volume allows, and refresh assumptions after a price, carrier, packaging, fee, or return-pattern change. Reconcile it with finance reports each month.

Leave A Comment

Table of Content

I’m Cassiel. I’ll help you scale your Shopify business with reliable fulfillment.

Join to newsletter.

Follow us and get more knowledge.