Articles
    Back to Articles
    12 min read
    November 16, 2026

    14 Cost Lines Between Price and Profit: A Contribution Margin Per Unit Example for Ecommerce

    By · Updated November 19, 2026

    Gross margin is the most quoted number in ecommerce and the least useful one for running a store. A product that sells for 49 euros and costs 14 euros to make looks like a 71 percent margin business. In the illustrative example below, the same unit leaves about 5 euros once VAT, discounts, shipping, card fees, returns and the ad spend that produced the order have been paid.

    That 5 euros is the contribution margin per unit: what one more sale adds to the pot that pays for salaries, software, rent and, eventually, profit. If it is positive and large enough, growth helps. If it is thin, every extra order adds work for very little, and if it is negative, growth makes the hole deeper.

    Three layers of contribution, and why the fuzzy middle matters

    The uncertainty most founders feel about contribution margin comes from the fact that people use the term for three different numbers. It helps to name them and keep them apart.

    CM1, product margin: net revenue minus the landed cost of the goods. Net revenue means the price after discounts and after VAT, because VAT is collected for the state and never belongs to the store. Landed cost means the purchase price plus inbound freight and import duty.

    CM2, after fulfilment and transaction costs: CM1 minus everything it costs to get the order to the customer and to take the money: packaging, pick and pack, outbound shipping, payment processing and the cost of returns.

    CM3, after marketing: CM2 minus the variable marketing cost per unit, usually paid ad spend divided by the units it produced.

    CM1 tells you whether the product is priced sensibly against what you pay the supplier. CM2 tells you whether your logistics and returns policy can carry it. CM3 tells you whether acquiring the customer at today's ad prices makes sense on the first order. The middle layer is where most stores are surprised, because fulfilment and returns are spread across invoices from a warehouse, a carrier and a payment provider, and nobody adds them up per unit.

    Fixed costs stay out of all three layers. Salaries, the Shopify plan, the office and the accountant do not change when one more unit ships, so they belong below contribution. Mixing them in makes every product look unprofitable and tells you nothing about which ones to push.

    The 14 lines between the sticker price and the contribution

    Here are the cost lines that sit between the price a customer sees and the contribution margin of one unit. Not every store has all 14, but most have at least 10.

    1. VAT included in the shelf price, at the destination country rate for EU consumer sales (for example 19 percent in Germany, 20 percent in France, 21 percent in Spain, 23 percent in Portugal).
    2. Discounts and promo codes, averaged across all orders, not just the ones that used a code.
    3. Purchase price of the goods from the supplier.
    4. Inbound freight from the factory or supplier to your warehouse.
    5. Import duty and customs brokerage, if you import from outside the EU.
    6. Packaging: box, filler, tape, inserts.
    7. Pick and pack fee charged by the warehouse or third party logistics provider, or the labour time if you pack yourself.
    8. Variable storage that scales with volume, such as per pallet or per bin fees.
    9. Outbound shipping to the customer, net of any shipping fee the customer pays.
    10. Percentage payment fee on the amount charged.
    11. Fixed payment fee per transaction, typically around 0.25 euros for cards.
    12. Reverse shipping on returned items, if you pay for it.
    13. Return handling and write off for items that cannot be resold.
    14. Variable marketing cost: ad spend, affiliate commissions or marketplace referral fees per unit.

    Lines 6, 7, 9 and 11 are charged per order, not per unit. That distinction drives one of the biggest errors in per unit maths, covered further down.

    One unit of a 49 euro product, worked line by line

    Take an illustrative product sold in France. The shelf price is 49 euros including 20 percent VAT. The store's average discount across all orders is 10 percent. Average units per order is 1.6. All figures below are invented for the example, so replace them with your own.

    Revenue first. After the discount the customer pays 49 × 0.90 = 44.10 euros. Removing VAT gives 44.10 / 1.20 = 36.75 euros of net revenue. The return rate is 12 percent, and returned units are refunded, so the expected net revenue kept per unit sold is 36.75 × 0.88 = 32.34 euros.

    Product cost. The supplier charges 14.00 euros, and freight plus duty adds 1.80, so landed cost is 15.80 euros. Returned units go back into stock, so only the 88 percent that are kept consume stock: 15.80 × 0.88 = 13.90 euros. CM1 = 32.34 - 13.90 = 18.44 euros per unit.

    Fulfilment. Packaging costs 1.20 per order, pick and pack 2.50, outbound shipping 5.90. That is 9.60 per order, or 9.60 / 1.6 = 6.00 euros per unit. Payment fees are 2 percent of the 44.10 charged plus 0.25 per order: 0.88 + 0.16 = 1.04 euros per unit.

    Most processors keep their fee when you refund, so it applies to returned units too. Returns cost 6.00 euros per returned unit in handling, reverse shipping and the share that cannot be resold, so 0.12 × 6.00 = 0.72 per unit sold. CM2 = 18.44 - 6.00 - 1.04 - 0.72 = 10.68 euros.

    Marketing. Ad spend is 9.00 euros per order, or 5.63 per unit. CM3 = 10.68 - 5.63 = 5.05 euros, about 16 percent of the net revenue kept. The 71 percent gross margin the founder quoted has become a 16 percent contribution after marketing.

    A calculator for your own numbers

    The calculator below runs the same three layers. Enter prices including VAT, because that is what you see in your shop admin, and costs excluding VAT, because that is what your suppliers invoice a VAT registered business.

    The formula behind it is the same as in the worked example. Net revenue per unit is the discounted price divided by one plus the VAT rate, multiplied by the share of units that are not returned. Landed cost is counted only for kept units, because returned units go back to stock, while the cost of handling returns is added separately.

    Every per order cost is divided by units per order before it is subtracted. Units per order can be a decimal: 1.6 means 160 units shipped for every 100 orders, which is how your shop analytics will usually report it. If you ship mainly single items, set it to 1 and the per order costs fall on each unit in full.

    The last line of the output is often the most useful one. It shows the maximum you could spend on marketing per order before CM3 hits zero. If your current cost per order from paid channels is close to that figure, scaling ad spend will add revenue and almost no contribution.

    The same output feeds longer views. In our metrics library, lifetime value is defined on gross profit by cohort, and CM2 per unit is the right input for that, multiplied by the units a cohort buys over time. LTV built on revenue overstates value for exactly the reasons gross margin overstates contribution, so run this calculator first and the cohort maths second.

    Per order costs and the units per order trap

    Four of the fourteen lines are charged once per order: packaging, pick and pack, outbound shipping and the fixed part of the payment fee. In the example they add up to 9.85 euros per order. How much of that lands on one unit depends entirely on how many units travel together.

    At 1.0 unit per order, those costs are 9.85 per unit, and CM2 drops from 10.68 to about 6.98 euros before marketing is even counted. At 1.6 units per order, the figure in the example, they are about 6.16 per unit. At 2.2 units per order they fall to about 4.48. Nothing about the product changed, only the basket.

    Marketing cost behaves the same way when it is measured per order. Nine euros of ad spend per order is 9.00 per unit for a single item basket and 4.09 per unit for a basket of 2.2. This is why stores with low average order value struggle with paid acquisition even when the product margin looks healthy.

    The trap is that founders often calculate contribution per unit using the store average for units per order, then make product decisions as if every product sold at that average. A low price accessory that is usually bought alongside something else has a very different per order cost from a 150 euro hero product that ships alone. When you can, compute contribution per order type or per basket, then translate back to units.

    The opposite error exists too. Free shipping thresholds push units per order up, but they also push average discounts up when customers add a cheap item to reach the threshold. Check both lines after any threshold change, not just basket size.

    Mistakes that make the margin look better than it is

    These are the errors that most often turn a negative contribution into an apparently positive one in a spreadsheet.

    • Leaving VAT inside revenue. On a 20 percent rate this alone inflates revenue by a sixth, and it is the most common error in founder decks.
    • Averaging discounts only across orders that used a code. If 30 percent of orders use a 20 percent code, the average discount is 6 percent across all orders, and that is the number to use.
    • Taking the product cost from the supplier quote and forgetting inbound freight and duty. For goods shipped from Asia, freight and duty can add 10 to 25 percent to the purchase price.
    • Ignoring payment fees on refunds. Many processors do not return their fee, so a returned order still costs you the fee.
    • Counting returns only as lost revenue. The reverse label, inspection, repacking and the share of items that are damaged or unsellable all cost money on top.
    • Using blended marketing cost that includes organic and returning customers. For a decision about paid acquisition, use paid spend divided by orders from paid channels, measured on new customers.
    • Treating free shipping as a marketing cost instead of a fulfilment cost. It belongs in CM2 so that you can compare products and baskets fairly.
    • Forgetting marketplace referral fees when the same product also sells on Amazon or Zalando. Those fees are variable and belong in the unit calculation for that channel.

    Each of these errors on its own is worth 1 to 7 euros per unit in the example above. Two of them together can hide a product that loses money on every first order.

    An illustrative case: the bestseller that funded nothing

    Here is a composite case. A small homeware brand sells a 29 euro ceramic mug alongside a range of larger items. The mug is the bestseller by units, with about 40 percent of all orders containing one, and the founder's spreadsheet shows a 68 percent gross margin on it.

    Running the mug through the three layers changes the picture. Net of 20 percent VAT and a 12 percent average discount, revenue is 21.27 euros. Landed cost is 7.40 euros. The return rate on ceramics is low, 4 percent, but 9 percent arrive broken and must be replaced, which works like an extra return.

    When the mug ships alone, the 8.90 euros of per order fulfilment and fees fall entirely on it, and ad spend of 11 euros per order lands there too. On single item orders, CM3 is around minus 8 euros.

    When the mug ships with another item, the picture reverses: it shares the per order costs and adds about 9 euros of contribution to the basket, because the order would have shipped and been paid for anyway.

    The founder's decision in this case was to stop advertising the mug as a standalone product, keep it as an add on with a bundle price, and set the free shipping threshold above the mug's price. Single mug orders fell from about half of mug sales to under a fifth over the next quarter.

    The broader point is that a product can be a bestseller and a loss maker at the same time, depending on what it ships with.

    Which lever to pull first: a decision tree

    Once you know CM1, CM2 and CM3, the next question is where to act. Work down these questions in order and stop at the first yes.

    1. Is CM1 below about 50 percent of net revenue? If yes, the problem is price or purchase cost. Renegotiate with the supplier, test a price increase on a portion of traffic, or reduce discounting before touching anything else.
    2. If no: are per order costs above 25 percent of net revenue per order? If yes, work on units per order through bundles, thresholds and add on placement, or renegotiate carrier and warehouse rates.
    3. If no: is the return rate above 15 percent, or above the norm for your category? If yes, look at sizing information, product photos and the returns policy before cutting anything else, because each returned unit costs revenue and handling at once.
    4. If no: is CM3 negative while CM2 is positive? If yes, your marketing is too expensive for the first order. Either lower cost per order or check whether repeat purchases make the customer profitable over a longer window, using cohort contribution.
    5. If no: is CM3 positive but thin, under 10 percent? If yes, growth is possible but fragile. Keep scaling slowly and watch whether ad prices rise as spend increases.

    If every answer is no, the unit economics support growth, and your constraint is somewhere else: cash, stock or traffic.

    One question stays open even after all of this. If CM3 on the first order is negative but customers come back, how much of that first order loss is it reasonable to fund, and how sure do you need to be about the repeat rate before you do?

    Related Articles