Free tool
Ecommerce Contribution Margin Calculator
See what each order leaves after the costs you enter.
Use this contribution margin calculator to see how much an ecommerce order leaves after product cost, fulfillment, payment fees, shipping, packaging and additional return costs. Add the customer acquisition cost you want to assign to that order.
The result shows gross profit, contribution before and after acquisition, and contribution as a percentage of revenue. Compare the amounts to see where the money goes. What remains still needs to cover fixed overhead and any other costs you leave out.
Per order · Before and after acquisition · Before fixed overhead
Revenue for one order
Use one order, or averages for the same set of orders. Keep every amount in one currency.
Replace these examples with your own numbers. Results update as you type. Your entries stay on this page until you copy them.
Need help finding your figures in Shopify?
Ask Sidekick for recorded revenue and costs for the same orders. Check missing fulfillment, shipping, fee, return and acquisition costs against your own records before entering them.
Paste the copied text into Shopify Sidekick.
Costs for one order
Acquiring the customer
What’s different about this calculator
See what one order leaves after selling costs and customer acquisition.
| Basic calculation | What this adds |
|---|---|
| Sale revenue minus product cost | Also subtracts fulfillment, payment fees, shipping, packaging and extra return costs |
| Contribution before acquisition costs | Shows what remains after the acquisition cost you allocate to that order |
| Revenue after discounts and refunds | Explains where refunds and shipping payments belong so you do not subtract them twice |
How this tool works
How to calculate contribution margin
Start with net revenue per order after discounts and refunds, excluding sales tax. Subtract product cost to get gross profit. Then subtract fulfillment, payment fees, net shipping cost, packaging and additional return costs to get contribution before acquisition. Subtract the customer acquisition cost allocated per order to get contribution after acquisition.
Divide either contribution amount by the same net revenue to get its contribution margin ratio. Multiply by 100 to show it as a percentage. Use amounts for the same order, or per-order averages from the same set of orders, in one currency. Count each cost once and keep the same definitions when comparing results.
Contribution before acquisition = net revenue − product cost − fulfillment − payment fees − net shipping cost − packaging − additional return cost. Contribution after acquisition = contribution before acquisition − customer acquisition cost allocated per order. Contribution margin (%) = contribution ÷ net revenue × 100.
What a $100 order leaves after $64 in costs
Start with $100 net revenue and $35 product cost: gross profit is $65. Subtract $6 fulfillment, $3 payment fees, $4 net shipping, $2 packaging and $2 additional return costs. That leaves $48 before acquisition. Subtract $12 customer acquisition cost allocated to the order, and $36 remains. The contribution margin after acquisition is 36%, before fixed overhead and other costs left out.
Questions & answers
Understanding your result
What is the difference between contribution margin and gross margin?
In this calculator, gross profit subtracts product cost from net revenue. Contribution also subtracts the other order costs you enter, with a separate result after customer acquisition cost. Gross margin and contribution margin express those amounts as a share of revenue. Two orders can have the same gross margin but leave different amounts after shipping, fees and acquisition.
What is a good contribution margin ratio?
There is no single target that works for every business. The ratio tells you how much of each revenue dollar remains after the costs you included. A 36% margin leaves $36 from $100 of revenue. Whether that is enough depends on your sales volume, fixed overhead and other expenses. With zero net revenue, the margin ratio is undefined, even though the contribution amount can still be calculated.
How should I enter customer acquisition cost?
Enter the customer acquisition cost allocated per order, separately from the other costs. It can include more than advertising if that is how you measure acquisition. A CAC figure per new customer is not automatically a cost per order, especially when repeat orders are included. Use a consistent allocation for the orders you are checking. Enter zero to see the result without an acquisition charge.
Should shipping paid by the customer reduce my shipping cost?
If customer shipping payments are already included in net revenue, enter the full shipping cost. If those payments are excluded from revenue, enter shipping cost minus what the customer paid. Do not count the payment both ways. The shipping field accepts only non-negative costs. If customer payments exceed shipping cost, include those payments in revenue and enter the full shipping cost instead.
How do I include refunds and return costs without counting them twice?
Enter revenue after refunds and use product cost that reflects any inventory recovery already recorded. Additional return cost is for costs still missing, such as return shipping, handling or an unrecovered product cost. Include each loss only once. Do not enter refunded revenue here if it has already been removed from net revenue.
Does a positive contribution mean the order or business is profitable?
It means the order leaves money after the costs you entered. Fixed overhead, financing, tax on profit and any other omitted costs still need to be covered. A positive contribution does not prove company profitability. A negative contribution means the entered costs exceed net revenue before those remaining expenses.
