Variable cost
A variable cost is a cost that rises and falls with the number of orders you take, such as product cost, shipping and payment fees.
By Berend Vrakking, founder of Product Metrics. Updated 18 November 2026.
Variable cost formula
Variable cost per order = product cost + shipping + payment fees + packaging + returns
Revenue minus variable costs is contribution margin, and break-even ROAS is 1 ÷ the contribution margin rate (40% becomes 0.40). Fixed costs such as rent and salaries stay out.
Variable cost example
| Item | Amount |
|---|---|
| Order value (excl. VAT) | €80.00 |
| Product cost | −€36.00 |
| Shipping | −€6.00 |
| Payment fees (3%) | −€2.40 |
| Packaging | −€1.60 |
| Returns allowance (10% of orders × €20.00 per return) | −€2.00 |
| Total variable cost | €48.00 |
| Contribution margin (€80.00 − €48.00) | €32.00 (40%) |
Variable costs take €48.00 of an €80.00 order. The €32.00 left pays for ads and fixed costs, so break-even ROAS is 1 ÷ 0.40 = 2.5. Illustrative data.
Put it into practice
- Calculate it: Markup and margin calculatorWork out margin, markup and selling price from cost.
- Read the guide: How to calculate the break-even pointDivide fixed costs by contribution per unit to find the units and sales that cover them.
Variable cost: one product and the whole account
Variable cost differs from product to product. Take a second product at the same €80.00 price and €36.00 product cost that is heavy to ship (€14.00) and comes back more often (€6.00 returns allowance). Its variable cost is €60.00, its contribution margin 25% and its break-even ROAS 4, against 2.5 for the first. Illustrative data.
Average the two and you get a variable cost neither product has. The same ROAS can be a profit on one product and a loss on the other, and only variable costs counted per product let POAS, profit on ad spend, show which products earn their ad spend.
Variable cost: common mistake
Counting ad spend as a variable cost and then comparing it with ad spend again. Break-even ROAS and POAS already account for ads, so the margin must come before ad spend or the break-even comes out too high.
Variable cost: questions
What is the difference between variable and fixed costs?
Is cost of goods sold a variable cost?
Is ad spend a variable cost?
Keep reading
- WooCommerce fee and profit calculatorCompare gateway fees and allocate monthly costs to each order.
- Contribution marginRevenue minus variable costs, the margin that sets break-even ROAS.
- Gross marginThe margin after product cost only, before the other variable costs.
- Cost of goods soldThe first variable cost on every order.
- Break-even ROAS calculatorFind the return each product needs to break even.
- POAS vs ROASWhy profit on ad spend counts profit after variable costs.