Contribution margin per order calculator
Contribution margin per order is what you collect on an order minus product, shipping, payment fees, expected refunds and ad cost. The example $70 order below leaves $8.72.
- The example $70 order at 10% off keeps $8.72 after product, shipping, fees, refunds and $22 in ads.
- Running 25% off turns the same order into a loss at the same ad cost.
- Order A's product margin is 68%; its contribution margin is 13.8%.
- Leave out rent, salaries and software: they do not change with each order.
- Formula
- What you collect − product − shipping − fees − expected refunds − ad cost per order
- What you collect
- Order value × (1 − average discount)
- Expected refunds
- Refund rate × (what you collect − product cost)
- Max ad cost per order
- Contribution margin before ads. Pay more and the first order loses money
- Leave out
- Rent, salaries, software subscriptions and other costs that do not change with each order
Contribution margin per order calculator
Enter one typical order. The result is what that order leaves you after every cost that comes with it, ads included.
- Contribution margin per order
- $8.72
- Per 100 orders
- $872.30
- Margin as % of what you collect
- 13.8%
- Max ad cost per order
- $30.72
You collect $70.00 − 10% = $63.00. Take off product $20.00, shipping $8.00, fees $2.13 and expected refunds $2.15 (5% × ($63.00 − $20.00)) to get $30.72 before ads. Minus $22.00 in ads leaves $8.72 per order, or $872.30 per 100 orders.
Put this calculator on your site
Free to use. Paste this where you want the calculator to appear. The second line is the credit link back to Brand Captain, so keep it with the calculator.
How do I use the contribution margin calculator?
Enter the numbers for one typical order, using averages from the last 30 or 90 days. The calculator shows what that order leaves after every cost that comes with it, and what 100 of those orders leave.
The numbers in the boxes when the page loads are a made-up example store, not a benchmark. Replace each one with your own.
- 1
Order value before discounts
Enter your average order value at full price.
- 2
Average discount
Divide total discounts for the period by total order value at full price. Count discount codes, sale prices and bundle savings.
- 3
Product cost per order
Enter what you paid for the goods in an average order, including freight to your warehouse.
- 4
Shipping and packing per order
Add the label, box, filler and any pick-and-pack fee from your warehouse. Subtract what the customer paid for shipping.
- 5
Payment fee rate and fixed fee
Enter your card processor's percentage and flat fee per order, plus any app that bills per order. On Shopify's pricing page in October 2026, US online standard card rates were 2.9% + 30¢ on Basic, 2.7% + 30¢ on Grow and 2.5% + 30¢ on Advanced.
- 6
Refund rate
Divide refunded orders by all orders for the period.
- 7
Ad cost per order
Divide total ad spend for the period by total orders for the period.
What is the contribution margin per order formula?
Contribution margin per order = what you collect − product cost − shipping − payment fees − expected refunds − ad cost per order. It is the per-order version of Shopify's unit contribution margin: selling price per unit minus variable cost per unit.
Here is each line the calculator works out.
What you collect
Order value × (1 − discount %).
Payment fees
What you collect × fee % + fixed fee.
Expected refunds
Refund rate × (what you collect − product cost).
Contribution margin before ads
What you collect − product − shipping − fees − expected refunds. This is also the most you can pay in ads for one order before the first order loses money.
Contribution margin per order
Contribution margin before ads − ad cost per order.
Margin %
Contribution margin per order ÷ what you collect, which matches Shopify's contribution margin ratio.
What does contribution margin per order look like on real numbers?
Here are three example orders run through the calculator. The stores are made up; the math is what the calculator does with their numbers. All three use a 2.9% + $0.30 card fee.
Made-up example orders run through this calculator, not benchmarks.
| Example order | Order value and discount | Product and shipping | Refund rate | Ad cost per order | Margin before ads | Margin per order | Per 100 orders |
|---|---|---|---|---|---|---|---|
| A: the default example | $70, 10% off ($63.00 collected) | $20 + $8 | 5% | $22 | $30.72 | $8.72 (13.8%) | $872.30 |
| B: same store, 25% off sale | $70, 25% off ($52.50 collected) | $20 + $8 | 5% | $22 | $21.05 | −$0.95 (−1.8%) | −$94.75 |
| C: apparel, high refunds | $90, no discount ($90.00 collected) | $30 + $9 | 20% | $25 | $36.09 | $11.09 (12.3%) | $1,109.00 |
What do those examples show?
Order A collects $63.00. Product $20.00, shipping $8.00, fees $2.13 ($63 × 2.9% + $0.30) and expected refunds $2.15 (5% × ($63 − $20)) leave $30.72 before ads. After $22 in ads, the order keeps $8.72, or $872.30 per 100 orders.
Order B is the same store running 25% off. The discount takes $10.50 off what it collects, fees and refunds drop slightly, and margin before ads falls to $21.05. At the same $22 ad cost, each order now loses $0.95, so the sale only pays if the lower price brings ad cost per order under $21.05.
Order C has no discount but refunds one order in five. Expected refunds cost $12.00 per order (20% × ($90 − $30)), more than shipping. It still keeps $11.09 per order after $25 in ads.
How do I read the result?
A positive contribution margin per order means each order pays for itself, ads included, and adds to the money you have for rent, salaries and profit. A negative one means every order you buy with ads costs you money on the first purchase.
Read the four results together.
Margin per order
What one order adds after its own costs and its share of ad spend.
Per 100 orders
Set it next to your monthly fixed costs. If you ship 400 orders a month at $8.72, that is $3,488 toward rent, salaries and software.
Margin %
The share of what you collect that you keep. Use it to compare products or offers with different prices.
Max ad cost per order
The most an order can cost in ads before the first order loses money. Our break-even ROAS calculator turns the same idea into a ROAS target.
How is contribution margin different from gross margin?
Gross margin takes off the cost of the goods; contribution margin takes off every cost that comes with each order. Shopify describes gross margin as covering the costs directly involved in producing and distributing what you sell, and contribution margin as what you keep after variable expenses, naming sales commissions and marketing as examples.
Gross margin
Takes off the cost of the goods
- Covers the costs of producing and distributing what you sell
- Order A: $63 − $20 = $43, or 68% of what it collects
Contribution margin
Takes off every cost that comes with each order
- Also takes off shipping, payment fees, refunds and ads
- Order A: $8.72, or 13.8% of what it collects
What should I do after I calculate contribution margin per order?
Change one input at a time to find the lever that moves the result most.
If ad cost per order is the line that turns the result negative, that is the work Brand Captain does: Meta, Google and TikTok ads, creative testing and landing pages for ecommerce and Shopify brands. Start with the free growth assessment or book a 30-minute call.
Work with Brand Captain
Want Brand Captain to run this for you?
One team in Utah runs your Meta, Google and TikTok ads, makes the creative, and builds the landing pages and emails behind them. Sized for brands doing $10k or more a month. 90-day minimum, then month to month.
Questions
What is contribution margin per order?
Contribution margin per order is what you collect on an order minus every cost that comes with it: product, shipping and packing, payment fees, expected refunds and the ad cost to get the order. It is what the order adds toward fixed costs and profit.
How do you calculate contribution margin per order?
Take the order value after discounts, then subtract product cost, shipping, payment fees, expected refunds and ad cost per order. A $70 order at 10% off with $20 product cost, $8 shipping, a 2.9% + $0.30 fee, 5% refunds and $22 in ads leaves $8.72.
Should ad spend be included in contribution margin?
For a store that buys most of its orders with ads, yes, because ad cost grows with every order you buy. The calculator shows both numbers: margin before ads, which is the most you can pay per order, and margin after ads.
What costs are not in contribution margin?
Costs that stay the same whatever your order count: rent, salaries, monthly software subscriptions and agency retainers. Those come out of the total contribution margin from all orders.
How do returns affect contribution margin per order?
Multiply your refund rate by what you collect minus product cost, then subtract it from each order. At a 20% refund rate on a $90 order with $30 product cost, that is $12 per order. If you pay for return labels, add the label cost times the refund rate to shipping.
What is a good contribution margin per order?
Any positive number pays for the order and its ads, but it has to add up to more than your fixed costs at your monthly order count. Multiply margin per order by monthly orders and compare it to rent, salaries and software.
What is the difference between contribution margin and profit per order?
Contribution margin per order leaves out fixed costs, so it is the money each order adds before rent and salaries. Net profit is what is left after the fixed costs are paid from the total contribution margin.
Keep reading
- Calculator MER calculator (marketing efficiency ratio) MER is total revenue divided by total marketing spend. This free calculator also gives new-customer MER (aMER) and the break-even MER your margin allows.
- Calculator Break-even ROAS calculator Break-even ROAS = 1 / your margin per order after product, shipping and fees. Enter one order to get break-even ROAS, a profit-target ROAS and max ad cost.
- Brand Captain Shopify ads agency
- Brand Captain Free growth assessment
- Calculator Marketing ROI calculator Marketing ROI = (revenue × margin minus ad spend and fees) ÷ marketing cost. Enter four numbers to get ROI, profit after marketing and break-even revenue.
- Calculator ROAS calculator ROAS = revenue from ads / ad spend. Get your ROAS, the break-even ROAS for your margin, what you kept after ads, and the spend needed to hit a revenue goal.
- Calculator Marketing agency fee calculator: percent of ad spend vs flat fee Percent fee = the higher of ad spend × rate and the minimum. Compare it with a flat retainer at your spend and find the spend where the two cost the same.
- Calculator In-house marketer vs agency cost calculator A Utah marketing specialist costs about $8,500 a month with benefits (BLS). Compare that loaded cost with an agency retainer, monthly and yearly.
Browse all 15 free calculators, or every guide, calculator and data page in the Brand Captain resource library.