Offers and promotions: the maths behind every discount

TL;DR

Difficulty: Intermediate

Most discounts look like wins in revenue and are losses in contribution.

  • Judge a discount against contribution per order, not gross margin. With a contribution share of 37.0%, 20% off needs 118% more orders; the textbook 52% margin says 62.5%.
  • Extra items in the same basket are worth far more than extra orders, so bundles and well placed thresholds beat flat percentages.
  • Gifts cost their landed cost and free delivery costs what customers paid towards it: both need much less uplift.
  • Count the dip after a sale and the orders that would have come anyway.
  • Use unique single use codes and keep the code box behind a link.
  • Measure every promotion with a holdout and judge it on contribution per person.
  • Deep cuts make sense for stock you will never reorder, because its cost is sunk.

A discount always brings orders. Whether it brings money is a different question, and the answer hides in four numbers: what each order really leaves you, how many extra orders come, how many would have come anyway and what happens after the promotion ends. This chapter works out each one with a real formula and an invented shop, so you can judge your next promotion before you launch it.

A discount is a price cut you pay for out of margin

Sales are flat, a competitor has a banner saying "20% off everything", and the quickest lever in reach is a discount code. Orders will go up. The question this chapter answers comes after: did the discount make money, or did it just give margin away?

It depends on four things you can measure: how much each order really leaves you, how many extra orders the discount brings, how many of the discounted orders would have happened anyway, and what happens in the weeks after the promotion ends.

A few words first. A promotion is any temporary change to the deal a customer gets: a lower price, a free extra, free delivery, a gift. A discount is the most common kind, money off. Margin is what is left of a sale after the cost of the goods. Contribution goes one step further and also takes off every other cost that comes with an order: payment fees, picking, packing, postage and the cost of handling returns. If any of these terms is new, the eCommerce metrics glossary defines each one, and the unit economics chapter builds contribution line by line.

Promotions are one of the most studied topics in marketing research. A widely cited review of that research found that a temporary price cut reliably lifts sales while it runs, and that the lift is mostly made up of people switching brands, buying earlier than planned or buying more at once1. Very little of it is new demand that would not otherwise exist. Keep that finding in mind. It explains almost everything that follows.

Example: 20% off everything for two weeks

Shannonside Home is the invented online homeware shop in Limerick that runs through this whole series, at shannonsidehome.example. Niamh owns it and Callum builds and runs the shop software. Every number about it is invented for the example.

Niamh wants to run "20% off everything" for two weeks. A fifth off the price, and surely more than a fifth more orders. This chapter shows why that sale would lose about €8,000 of contribution while showing a 40% rise in revenue.

What one order really leaves you

Before you can judge any discount, you need the number the discount comes out of. That number is not the price and not the gross margin. It is the contribution per order: what the order leaves after the goods, VAT, refunds, payment fees, fulfilment and returns handling.

The series uses one fixed set of figures for Shannonside Home, set out in the glossary chapter. The average order is €84 including VAT, already after the discounts the shop usually gives, and without delivery. VAT is 23%. The gross margin on product is 52%. About 9% of orders are refunded. Payment fees are about 1.7% of the order value, fulfilment (picking, packing and postage with An Post and couriers, net of what customers pay towards delivery) costs €7.50 per order, and handling a return costs €10.50.

Example: the average Shannonside Home order, line by line

LineAmountHow it is worked out
Customer pays, including VAT€84.00the example's figure
Net of VAT€68.2984÷1.2384 \div 1.23
Net after expected refunds€62.1568.29×0.9168.29 \times 0.91, because 9% of orders come back
Cost of the goods kept€29.8348% of €62.15, the goods that do not come back
Payment fees€1.431.7% of €84, not returned on a refund
Fulfilment€7.50the example's figure
Expected returns handling€0.940.09×10.500.09 \times 10.50
Contribution before marketing€22.44what the order leaves

€22.44 is 36.1% of net revenue after refunds. That is the pot every discount comes out of, and it is much smaller than a 52% gross margin suggests. Over 1,980 orders a month it adds up to €44,440 of contribution before marketing, which matches the glossary chapter's monthly figure.

The break even uplift: how many more orders a discount needs

Here is the core of the chapter. When you give a discount, every order that would have come anyway now earns less. To end up with the same total contribution as before, you need enough extra orders to make up for it. The share of extra orders you need is called the break even uplift.

Start from what stays equal. Before the promotion, QQ orders each leave CC. During the promotion, each order leaves C−DC - D, where DD is what the discount costs you per order. You break even when the new number of orders times the smaller contribution equals the old total.

u=DC−Du = \frac{D}{C - D}

Here uu is the break even uplift, the share of extra orders you need (0.5 means 50% more orders). CC is the contribution per order at the normal price, in euro. DD is the contribution the discount removes from one order, in euro. The derivation is one line: Q⋅C=Q(1+u)(C−D)Q \cdot C = Q(1 + u)(C - D), divide both sides by Q(C−D)Q(C - D) and subtract one. Foundations: marginal versus average explains why the extra orders are judged at the new, smaller contribution and not at the old average.

The cost of the discount, DD, is not simply the money off the price. Three things shrink it a little. VAT: a euro off a VAT inclusive price is only 81 cent of your net revenue at 23% VAT. Refunds: an order that is returned is refunded at the discounted price, so on refunded orders the discount costs nothing. Payment fees: a lower price means a slightly smaller fee. The cost of the goods does not shrink at all. The mug costs the same to buy in whatever you sell it for.

For a percentage discount dd on the goods, that gives a simple rule. Call BB the part of the order a discount eats into: net revenue after refunds, minus the payment fee. Then D=d⋅BD = d \cdot B, and the formula can be written with shares alone.

u=dm−d,m=CBu = \frac{d}{m - d}, \qquad m = \frac{C}{B}

dd is the discount as a share of the price (0.20 for 20%), BB is the net revenue after refunds minus the payment fee, and mm is the contribution as a share of BB. When dd reaches mm, the denominator hits zero and no number of extra orders can save the promotion: every order loses money. Foundations: ratios and rates covers working with shares like these.

Example: what "20% off everything" needs at Shannonside Home

From the order table, B=62.15−1.43=60.72B = 62.15 - 1.43 = 60.72 euro, and C=22.44C = 22.44. So

m=22.4460.72=0.370m = \frac{22.44}{60.72} = 0.370

A 20% discount costs D=0.20×60.72=12.14D = 0.20 \times 60.72 = 12.14 euro per order. Each order now leaves 22.44−12.14=10.3022.44 - 12.14 = 10.30 euro. The break even uplift is

u=12.1410.30=1.179u = \frac{12.14}{10.30} = 1.179

So u=1.179u = 1.179: Shannonside Home needs 118% more orders, more than double, just to stand still. In a normal two week stretch the shop takes about 914 orders, so the sale must bring about 1,992 orders in those two weeks before it earns a single extra euro.

Now compare the textbook version of this calculation, which you will find in many places. It uses the gross margin of 52% instead of the contribution share: 0.20÷(0.52−0.20)=0.6250.20 \div (0.52 - 0.20) = 0.625, so 62.5% more orders. That figure ignores that every extra order also brings its own postage, packing, payment fee and returns. It roughly halves the true hurdle. Plan with the gross margin and you will run promotions that lose money while looking fine on paper.

The break even discount for this shop is m=37.0%m = 37.0\%. At 37% off, Shannonside Home could double, triple or quintuple its orders and still not earn a cent more.

Invented Shannonside Home example. Grouped bars of the break even uplift in orders for discounts of 5, 10, 15, 20, 25 and 30 percent, calculated two ways. With the textbook gross margin of 52 percent: 10.6, 23.8, 40.5, 62.5, 92.6 and 136.4 percent. With the real contribution share of 37.0 percent: 15.6, 37.1, 68.3, 117.9, 209.0 and 430.9 percent. The real hurdle is always higher and rises steeply above 20 percent off. Tap or click to open full screen and move around

The hurdle grows much faster than the discount: going from 10% to 20% off roughly triples the uplift you need. The same shape holds for any shop. Only the numbers move.

Extra items in the same order are worth more than extra orders

The break even formula above assumes the discount brings more orders. But some promotions do something different: they make people put more into the basket they were going to buy anyway. That changes the maths, because an extra item in an existing order does not bring a second parcel, a second pick and pack, or a second chance of a return being handled.

This is why bundles, multibuys and "spend more, save more" offers can pay when a flat percentage off does not. They aim the discount at the lowest cost kind of extra sale there is.

Example: one extra €28 item, two ways

Take a €28 item, say a linen tea towel set. Net of VAT and expected refunds it brings 28÷1.23×0.91=20.7228 \div 1.23 \times 0.91 = 20.72 euro. The goods cost 48% of that, €9.94, and the payment fee is 1.7% of €28, about 48 cent.

Added to an order that was happening anyway, the only extra cost is a little more picking time, say 45 cent. It leaves 20.72−9.94−0.48−0.45=9.8520.72 - 9.94 - 0.48 - 0.45 = 9.85 euro.

Sold on its own as a separate order, it also carries the full €7.50 fulfilment and the 94 cent expected returns handling. It leaves 20.72−9.94−0.48−7.50−0.94=1.8620.72 - 9.94 - 0.48 - 7.50 - 0.94 = 1.86 euro.

The same product earns five times as much when it rides along in a basket. A promotion that gets people to add one more thing is working with the grain of the cost structure. A promotion that brings lots of small separate orders is working against it. The cross sell and upsell article covers how to make those basket additions happen without any discount at all.

Every promotion type, and what it really costs

Promotions come in many shapes. Each one changes behaviour in its own way, and each one costs you something different from what the customer sees. The table gives the overview. The sections after it work through the ones that need maths.

PromotionWhat it does to behaviourWhat it really costs youWhere it fits
Percentage offMore orders, often pulled forwardd⋅Bd \cdot B on every order, including those that would have come anywayClearing stock, rare events
Fixed amount off above a spendSome baskets grow to reach the thresholdThe amount off, net of VAT, on every qualifying orderWhen the threshold sits above most baskets
Buy X, get Y (multibuy)More units of the same productThe free or reduced price unit, at cost and feesConsumables, sets, gifts
BundleMore items per order, across productsThe bundle discount, on items that ride in one parcelProducts that belong together
Gift with purchaseBigger baskets to reach the gift, goodwillThe landed cost of the gift, not its retail priceWhen you have a gift customers value
Free deliveryFewer abandoned checkouts, more small ordersWhat customers would have paid towards deliveryShort events, or a well placed threshold
First order discountSign ups and first ordersThe discount, plus weaker repeat buyingOnly with a measured payback
Loyalty pointsRepeat orders, if the scheme is well designedThe share of points actually redeemedShops with frequent repeat buying
Sales event (Black Friday, summer sale)A spike in orders, then a dipAll of the above, at scaleWhen you plan for the dip too

Fixed amount off above a spend threshold

"€12 off when you spend €105" sounds generous and controlled. Its cost depends almost entirely on where the threshold sits compared with the baskets you already get. Every order that was already above €105 gets €12 for nothing. Every order just below it might grow to reach it. The promotion pays if the second group, plus any genuinely new orders, outweighs the first.

A euro off a VAT inclusive price is worth 1÷1.231 \div 1.23 of net revenue. Spread over refunds and less the small fee saving, €12 off costs 12÷1.23×0.91−0.017×12=8.6712 \div 1.23 \times 0.91 - 0.017 \times 12 = 8.67 euro per qualifying order.

Example: €12 off orders over €105 for a month

Callum looks at last month's baskets. 22% of orders, about 436 of the 1,980, were already €105 or more. Another 15%, about 297 orders, sat between €80 and €105, close enough to top up.

  • The subsidy: 436 orders get €8.67 off that they did not need, so 436×8.67=3,780436 \times 8.67 = 3{,}780 euro of contribution given away.
  • The top ups: suppose four in ten of the near misses add a €26 item, so 119 orders. Each added item leaves about €9.11 after its goods, fee and extra picking. After the €8.67 discount, each topped up order gains only 44 cent, so about €52 in total.
  • What is missing: 3,780−52=3,7283{,}780 - 52 = 3{,}728 euro. At 22.44−8.67=13.7722.44 - 8.67 = 13.77 euro per new discounted order, the promotion needs about 271 entirely new orders in the month, 14% more, just to break even.

Moving the threshold to €130 would cut the subsidy to the few orders already above it, and make the offer a genuine reason to add something. The unit economics chapter works through the same logic for free delivery thresholds, with the share of customers who top up, pay or walk away.

Buy X, get Y and multibuys

"Three for the price of two" is a 33% discount on the three items together. Whether it makes money depends on what the customer would have bought without it. If they would have bought one, the offer sold two extra units at a profit. If they would have bought three, it gave a third of the price away.

Example: three tea towels for the price of two

Shannonside Home sells a single tea towel at €10.50. Net of VAT that is €8.54, the goods cost 48% of it, €4.10, so each towel leaves €4.44 before the order's own costs. To keep the comparison clean, this example looks at the towels alone and leaves out refunds and fees, which change nothing in the conclusion.

  • Three for two: the customer pays €21, so €17.07 net, for goods that cost 3×4.10=12.303 \times 4.10 = 12.30. The towels leave 17.07−12.30=4.7717.07 - 12.30 = 4.77 euro.
  • If that customer would have bought one towel at full price: it would have left €4.44. The offer earned 33 cent more and moved two more towels.
  • If they would have bought two at full price: they would have left €8.88. The offer cost €4.11.
  • If they would have bought three anyway: they would have left €13.32. The offer cost €8.55.

So the multibuy only pays where most buyers would otherwise take one. The order history tells you: if most tea towel orders already contain two or three, a multibuy is a subsidy.

Bundles

A bundle sells several different products together at a lower price than the parts. Good bundles combine things that belong together, so the customer would not have bought them all separately anyway. Because the items ship in one parcel, the order's fixed costs are paid once.

Example: the reading corner bundle

A floor lamp at €76, a linen shade at €35 and a warm bulb at €9 add up to €120. Shannonside Home offers them together at €108, 10% off.

The discount costs €12 in the price, so 12÷1.23×0.91−0.017×12=8.6712 \div 1.23 \times 0.91 - 0.017 \times 12 = 8.67 euro of contribution. If a customer would have bought only the lamp, the bundle adds the shade and the bulb, €44 at full price. Using the same steps as before, those two items bring 44÷1.23×0.91=32.5544 \div 1.23 \times 0.91 = 32.55 euro net, cost 0.48×32.55=15.620.48 \times 32.55 = 15.62 euro in goods, 75 cent in fees and perhaps 90 cent in extra picking, leaving €15.28. After the €8.67 discount, the bundle is €6.61 ahead for that customer.

If a customer would have bought all three anyway, the bundle cost €8.67. So the bundle pays as long as more than about 8.67÷(8.67+6.61)=57%8.67 \div (8.67 + 6.61) = 57\% of bundle buyers are people who would only have bought the lamp. That is a much easier bar than doubling orders.

Gift with purchase

A free gift costs you its landed cost, the price you paid for it with freight and duty, not the price on its label. The customer values it at the label price. That gap is why a gift can be worth more to the customer than the same money off, for less money from you.

Example: a free mug against €16 off

Shannonside Home's speckled mug sells for €16. Its landed cost is 48% of the net price: 16÷1.23×0.48=6.2416 \div 1.23 \times 0.48 = 6.24 euro. As money off, €16 would cost 16÷1.23×0.91−0.017×16=11.5716 \div 1.23 \times 0.91 - 0.017 \times 16 = 11.57 euro of contribution.

So a "free mug with orders over €115" costs €6.24 per qualifying order, and "€16 off orders over €115" costs €11.57. Both look like €16 to the customer. One costs you 54% of the other. Two conditions: the gift must be something people actually want, and it must not take a sale away, so pick a product that rarely sells on its own, or stock bought for the purpose.

Free delivery

Free delivery is the promotion customers notice most and the one that often costs least, because the shop pays the carrier anyway. What you give up is what customers would have paid towards delivery.

Example: a free delivery week

At Shannonside Home, customers pay on average €1.60 per order towards delivery, already netted off in the €7.50 fulfilment figure. A free delivery week therefore costs €1.60 per order. The break even uplift is

u=1.6022.44−1.60=0.077u = \frac{1.60}{22.44 - 1.60} = 0.077

So u=0.077u = 0.077, or 7.7% more orders. A 10% discount would need 37.1%. If the shop wants a promotion at all, free delivery for a short spell is a far easier bet than a percentage off. The unit economics chapter covers the permanent version, the free delivery threshold, in full.

First order discounts

A welcome discount, "15% off your first order when you join the newsletter", is really a customer acquisition cost. It should be judged as one: against what the new customer is worth over time, not against the first order alone. The chapter on customer acquisition cost and payback shows how.

There is one research finding every shop owner should know here. Michael Lewis studied customers of a newspaper and an online grocer and found that the deeper the discount used to win a customer, the lower their repeat buying and their long term value. In his data, customers won with a 35% acquisition discount were worth about half as much over time as customers won without a promotion2. A discount attracts people who like discounts. Some of them never pay full price.

Example: the 15% welcome code over twelve months

A new Shannonside Home customer places 1.45 orders in their first year, at €22.44 each, so they are worth about 1.45×22.44=32.541.45 \times 22.44 = 32.54 euro of contribution in that year.

With a 15% welcome code, the first order costs 0.15×60.72=9.110.15 \times 60.72 = 9.11 euro, so it leaves €13.33. If repeat buying were unchanged, the year would be worth 13.33+0.45×22.44=23.4313.33 + 0.45 \times 22.44 = 23.43 euro. If, in line with the direction of Lewis's finding, the discount customers come back a quarter less often (an assumption for the example, not a measured figure), it becomes 13.33+0.45×0.75×22.44=20.9013.33 + 0.45 \times 0.75 \times 22.44 = 20.90 euro.

So the code has to bring in at least 32.54÷20.90=1.5632.54 \div 20.90 = 1.56 times as many new customers as the shop would have won without it, 56% more, before it pays inside the first year. That is a question for a holdout test, not for a gut feeling.

Loyalty points

A points scheme is a discount paid later, and its cost is the share of points actually redeemed (the rest is called breakage). The loyalty article covers scheme design, breakage and the accounting liability in depth.

Example: one point per euro, 100 points for €5

Shannonside Home considers giving one point per euro spent, with 100 points worth €5 off. That hands out 5% of spend in value. If 70% of points are eventually redeemed (an assumption for the example), the real cost is 3.5%, so D=0.035×60.72=2.13D = 0.035 \times 60.72 = 2.13 euro per order. The break even uplift is 2.13÷(22.44−2.13)=0.1052.13 \div (22.44 - 2.13) = 0.105, 10.5% more orders, which here means more repeat orders. With 28% of first time customers buying again within twelve months, the scheme would need to lift that to about 31%.

Pull forward and the dip after the promotion

A promotion does not only create orders. It moves them. People who were going to buy next month buy now, while the price is lower, and then do not buy next month. Some who hear about a sale coming wait for it. Researchers call this purchase acceleration, and its visible sign is a post promotion dip: sales fall below normal for a while after the promotion ends.

The research on dips is careful and worth knowing. In grocery store data the dip is often hard to see with the naked eye, because it is spread over several weeks and hidden among other changes. Van Heerde, Leeflang and Wittink built models designed to find it and estimated the dips at between 4% and 25% of the extra sales during the promotion3. A later study of 83 stores and ten product categories found dips are stronger for higher priced, frequently promoted products and where promotions are less predictable4. Homeware is not groceries, so take the size as a guide, not a rule, and measure your own.

To count the real extra orders from a promotion, add up the gap between actual and normal orders over the whole window, before, during and after.

ΔQ=∑t(qt−bt)\Delta Q = \sum_{t} (q_t - b_t)

ΔQ\Delta Q is the net number of extra orders the promotion created. qtq_t is the actual number of orders in week tt, btb_t is the baseline, the number you would have expected without the promotion, and the sum runs over every week from the announcement until orders are back to normal. Weeks in the dip have qt<btq_t < b_t and subtract. Foundations: seasonality shows how to set a baseline that respects the time of year.

Example: Shannonside Home's two week summer sale

Suppose Niamh runs her 20% sale anyway, in weeks 5 and 6 of a twelve week stretch. The baseline is about 457 orders a week. Week 4, when the sale is announced, comes in at 448. The sale weeks bring 835 and 770 orders. The six weeks after bring 372, 405, 432, 449, 455 and 458.

Invented Shannonside Home example over twelve weeks. Normal weeks run at about 457 orders. Week 4, when the sale is announced, has 448. The sale weeks 5 and 6 have 835 and 770 orders. After the sale, orders dip to 372, 405, 432, 449, 455 and 458 in weeks 7 to 12. The dashed baseline stays at 457. The bump adds 691 orders, the dip and the week before take away 180, so the sale created 511 net extra orders. Tap or click to open full screen and move around

The bump during the sale: (835−457)+(770−457)=691(835 - 457) + (770 - 457) = 691 extra orders.

The dip: week 4 lost 9, and weeks 7 to 12 lost 85+52+25+8+2−1=17185 + 52 + 25 + 8 + 2 - 1 = 171. Together, 180 orders that would have come at full price came in the sale instead, or not at all. That is 26% of the bump, just above the range the grocery research found.

ΔQ=691−180=511\Delta Q = 691 - 180 = 511

So ΔQ=511\Delta Q = 511: the sale created 511 genuinely extra orders. Now put money on it. The two sale weeks would normally have brought 914 orders at €22.44, so €20,510 of contribution.

Invented Shannonside Home example in euro. The two weeks would normally earn 20,510 of contribution. The discount given on the 914 orders that would have come anyway costs 11,096. The 691 extra orders in the sale add 7,117 at the reduced contribution of 10.30 each. The 180 orders lost to the dip cost 4,039. The result is 12,492, which is 8,018 less than doing nothing. Tap or click to open full screen and move around
  • The subsidy: 914 orders that would have come anyway each lose €12.14, so €11,096.
  • The extra orders: 691 orders at €10.30 each, so €7,117.
  • The dip: 180 orders lost at full price, €22.44 each, so €4,039.

Net, the sale cost −11,096+7,117−4,039=−8,018-11{,}096 + 7{,}117 - 4{,}039 = -8{,}018 euro of contribution. Meanwhile gross revenue in the sale weeks rose from €76,776 to 1,605×84×0.80=107,8561{,}605 \times 84 \times 0.80 = 107{,}856 euro, up 40.5%. The revenue chart celebrates. The bank account does not. This is the single most common way promotions fool their owners.

Cannibalisation: the orders you would have had anyway

The biggest cost in the waterfall above is not the dip. It is the discount handed to people who would have bought at full price. Marketing people call this cannibalisation: the promotion eats sales you already had. It comes in three forms in an online shop.

  • Across customers: people who were going to buy anyway get the discount.
  • Across time: people who would have bought later buy now, the pull forward from the previous section.
  • Across products: people switch from a full price product to the discounted one next to it.

The research shows how easy it is to misread this. A well known decomposition of promotion effects said about three quarters of a brand's promotion response came from people switching brands. Van Heerde, Gupta and Wittink showed that this was a figure about elasticities, not unit sales, and that in unit terms only about a third of the extra sales came from competing brands5. The lesson for a shop owner is not the exact share. It is that "where did these extra sales come from" needs a careful measurement, because the obvious reading of the numbers is often wrong.

And the effects rarely last. Pauwels, Hanssens and Siddarth followed the effects of price promotions over time and found that permanent effects on sales were virtually absent: after an adjustment period, sales went back to where they were6. A promotion borrows sales from the future and from full price buyers. It rarely creates a lasting new level.

Example: who used the summer sale

Callum splits the 1,605 sale orders by customer. 52% came from returning customers, most of whom had bought in the same season last year without a sale. These are the people the sale subsidised. How many would have bought anyway, nobody can see from the orders alone. That is what a holdout is for, two sections on.

Discount dependency: when customers learn to wait

The longer term risk of frequent promotions is that customers learn your rhythm. If there is a sale every six weeks, why pay full price in between? Mela, Gupta and Lehmann studied more than eight years of purchase data for a packaged good and found results consistent with consumers becoming more price and promotion sensitive over time as promotions increased and advertising fell7. Customers also judge a price against what they remember paying before. A review of reference price research concluded that consumers form reference prices partly from past prices, and react more strongly to prices above their reference than to prices below it8. Run a discount often enough and the discounted price becomes the reference. The full price then feels like a loss.

The pricing psychology article covers reference prices and anchoring in more depth. Here, the job is to notice dependency early, in your own numbers.

Example: the share of orders with a code

Callum tracks one number every quarter: the share of orders that used any discount, and the average discount on them.

QuarterOrders with a discountAverage discount on those ordersDiscount cost per order, all orders
Q1 last year18%12%0.18×0.12×60.72=1.310.18 \times 0.12 \times 60.72 = 1.31
Q3 last year27%14%0.27×0.14×60.72=2.300.27 \times 0.14 \times 60.72 = 2.30
Q1 this year34%15%0.34×0.15×60.72=3.100.34 \times 0.15 \times 60.72 = 3.10
Q3 this year41%16%0.41×0.16×60.72=3.980.41 \times 0.16 \times 60.72 = 3.98

The discount cost per order tripled in eighteen months, from €1.31 to €3.98, while orders did not grow. That is €2.67 of the €22.44 pot per order, across 1,980 orders a month, about €5,290 a month that used to be contribution. The signs to watch alongside it: full price conversion rate falling between promotions, and more customers whose every order used a code.

The cure is fewer, shorter, better targeted promotions, each one measured.

Coupon codes leak, and the code box invites hunting

A discount code meant for one group rarely stays with that group. Codes get shared on voucher websites, picked up by browser extensions that try codes automatically at checkout, and passed between friends. Each use by someone who was about to buy anyway is pure subsidy.

The checkout itself can make it worse. A Nielsen Norman Group study of discount usability found many purchases side tracked or abandoned by users who did not have a code for the visible code field, and observed that many users leave the checkout page, or even the site, in search of a promotion to try9. Baymard Institute's checkout guidelines make the same point: promotional fields are distracting and encourage some users to leave the checkout to hunt for coupons off site10. A big empty box labelled "discount code" tells every customer that someone else is paying less.

Three fixes, in order of effect:

  • Use unique, single use codes for anything sent to a list, so a leaked code works once and then stops.
  • Apply targeted discounts automatically through a link in the email, so nobody needs a code at all.
  • Put the code field behind a small text link in the basket rather than an open box, unless a public promotion is running.

Example: what the leaked welcome code costs

Shannonside Home's welcome code WELCOME15 is printed in the sign up email. Callum checks last month: 310 orders used it, and 120 of them came from email addresses that were not on the newsletter list, most arriving from a voucher website. Each cost 0.15×60.72=9.110.15 \times 60.72 = 9.11 euro of contribution, so 120×9.11=1,093120 \times 9.11 = 1{,}093 euro a month went to people who were already at the checkout.

Example: Callum's single use codes in Solidus

Shannonside Home runs on Solidus, the open source eCommerce framework on Ruby on Rails. In current Solidus versions, the promotions system lives in the solidus_promotions component. A promotion can have a usage limit per code, and a code batch generates many random codes from one base code11. This is how Callum replaces the shared code with one code per subscriber.

# Run once from a Rails console or a small task.
promotion = SolidusPromotions::Promotion.find_by!(name: "Welcome 15")

# Each code may be used exactly once.
promotion.update!(per_code_usage_limit: 1)

# 2,000 codes like WELCOME_k7m2qp, generated in a background job.
batch = promotion.code_batches.create!(
  base_code: "WELCOME",
  number_of_codes: 2_000
)
batch.process

per_code_usage_limit caps how often any single code can be used. code_batches.create! stores the request, and process hands it to a background job that writes the codes, each made of the base code, a join character and a random suffix. The sign up email then takes the next unused code for each new subscriber. A code posted on a voucher site now works for one order, not hundreds.

Measuring a promotion properly: hold some people out

Everything so far points at one question that ordinary reports cannot answer: how many of the promotion's orders would have happened anyway? The orders that used the code do not tell you. The revenue chart does not tell you. "Revenue from the promotion" in an email tool does not tell you either, because it counts every order with the code, including those that would have come regardless.

The honest answer comes from a holdout: before you send the offer, pick a random group of the people you would send it to and do not send it to them. Everything else stays the same. After the promotion, compare the two groups. Because the groups were chosen at random, the only systematic difference between them is the offer, so the difference in what they bought is what the offer caused. The chapter on experiments inside your own shop covers the general technique, and the attribution chapter explains why incrementality beats attribution for decisions like this.

The number that matters is not the extra orders, it is the extra contribution per person.

ΔC=nT(cˉT−cˉH)\Delta C = n_T \left( \bar{c}_T - \bar{c}_H \right)

ΔC\Delta C is the extra contribution the promotion caused. nTn_T is the number of people who received the offer. cˉT\bar{c}_T is the average contribution per person in the offer group over the measurement window, and cˉH\bar{c}_H is the same for the holdout. Both averages include people who bought nothing. If ΔC\Delta C is negative, the promotion lost money, however many orders it brought. Comparing averages like this is the logic of Foundations: hypothesis tests.

Because the groups are samples, the difference in buying rates comes with uncertainty. A 95% confidence interval for the difference between two proportions is

(p^T−p^H)±1.96p^T(1−p^T)nT+p^H(1−p^H)nH(\hat{p}_T - \hat{p}_H) \pm 1.96 \sqrt{\frac{\hat{p}_T (1 - \hat{p}_T)}{n_T} + \frac{\hat{p}_H (1 - \hat{p}_H)}{n_H}}

where p^T\hat{p}_T and p^H\hat{p}_H are the shares of people who ordered in the offer and holdout groups, nTn_T and nHn_H are the group sizes, and 1.96 is the multiplier for 95% confidence. Foundations: confidence intervals explains where the formula comes from, and Foundations: sample size explains how big the holdout needs to be.

Example: the 15% newsletter offer with a 10% holdout

Niamh wants to send a 15% code to the whole newsletter list of 38,000. Callum persuades her to hold back 10%. So 34,200 subscribers get the code and 3,800 get the normal newsletter without it. The window is fourteen days.

The assignment must be random and stable, so that a subscriber cannot end up in both groups. Callum hashes the subscriber's id together with the name of the test.

require "digest"

# Same subscriber and test name always give the same group.
def promotion_arm(subscriber_id, test_key: "newsletter_15_june")
  bucket = Digest::SHA256.hexdigest("#{test_key}:#{subscriber_id}").to_i(16) % 100
  bucket < 10 ? "holdout" : "offer"
end

After the fourteen days, Callum counts orders per group from the shop database. Only completed orders count, and each subscriber's orders are matched by email address.

SELECT a.arm,
       COUNT(DISTINCT a.email)                        AS people,
       COUNT(o.id)                                    AS orders,
       COALESCE(SUM(-o.promo_total), 0)               AS discount_given,
       COALESCE(SUM(o.item_total + o.promo_total
                    - o.included_tax_total), 0)       AS net_goods
FROM promotion_assignments a
LEFT JOIN spree_orders o
       ON o.email = a.email
      AND o.state = 'complete'
      AND o.completed_at >= '2027-06-07'
      AND o.completed_at <  '2027-06-21'
WHERE a.test_key = 'newsletter_15_june'
GROUP BY a.arm;

promotion_assignments is a small table Callum created to store each subscriber's group. spree_orders is the standard Solidus orders table: promo_total holds promotion adjustments as a negative number, so the query flips its sign, and included_tax_total is the VAT included in the prices. From net goods and the shop's known costs per order, Callum works out contribution per group.

The results:

Offer groupHoldout
People34,2003,800
Orders1,12999
Share who ordered3.30%2.61%
Contribution per order€14.70 (85% used the code at €13.33, 15% did not at €22.44)€22.44
Contribution per 1,000 people€485€585

The offer lifted the ordering rate by 0.70 percentage points, a 26.7% rise. The confidence interval:

0.0070±1.96×0.00276=[0.0016, 0.0124]0.0070 \pm 1.96 \times 0.00276 = [0.0016,\ 0.0124]

Here 0.002760.00276 is the square root in the formula, worked out from the table. So the offer really did bring more orders, somewhere between 0.16 and 1.24 extra orders per 100 subscribers. An email tool would report 1,129 orders and about €83,000 of revenue "from the campaign". And yet

ΔC=34,200×(0.4853−0.5847)=−3,399\Delta C = 34{,}200 \times (0.4853 - 0.5847) = -3{,}399

With cˉT=0.4853\bar{c}_T = 0.4853 and cˉH=0.5847\bar{c}_H = 0.5847 euro per person, the promotion lost about €3,400 of contribution. Even at the top of the confidence interval the offer group would earn €565 per 1,000 people, still below the holdout's €585. For this code to break even, the offer group would have had to order at 3.98%, not 3.30%. The extra orders were real. They were not enough to pay for the discount on the orders that would have come anyway.

Invented Shannonside Home example. Contribution per 1,000 subscribers over fourteen days. The holdout group, who received no code, earned 585 euro. The offer group earned 485 euro at the measured order rate, 406 euro at the bottom of the 95 percent confidence interval and 565 euro at the top. Every value for the offer group is below the holdout, so the code lost money despite raising orders by 26.7 percent. Tap or click to open full screen and move around

Next, Niamh tries a smaller benefit or a code only for lapsed subscribers, each with the same holdout.

What to send to your analytics

Your analytics should see promotions in the same terms. Google Analytics 4 has recommended events for this: view_promotion when a promotion is shown and select_promotion when someone clicks it, each with a promotion_id and promotion_name. The purchase event takes a coupon parameter for the order, and each item can carry its own coupon and a discount, the money off per unit12.

gtag("event", "purchase", {
  transaction_id: "R123456789",
  value: 71.40,
  currency: "EUR",
  coupon: "WELCOME_k7m2qp",
  items: [{
    item_id: "SKU_LAMP_OAK",
    item_name: "Oak floor lamp",
    price: 71.40,
    discount: 12.60,
    quantity: 1
  }]
});

Here the lamp's price is sent after the discount, and discount records the €12.60 taken off it, so reports can show both. Analytics only sees people who accepted cookies, so count the holdout in the shop's own database. The tracking plan chapter sets out every event and parameter, and the purchase event chapter covers getting the value right.

When you cannot hold anyone out

A sitewide sale cannot hold out customers, because everyone sees the site. Three second best options, from best to weakest:

  • Hold out a whole region or channel, for example run the sale only for visitors from paid social and not from email, and compare the two against their own history.
  • Compare against a baseline built from the same weeks of previous years, adjusted for this year's trend, and count the full window including the dip, as in the summer sale example.
  • Compare against the weeks just before, the weakest, because seasons, weather and ads all move.

Whichever you pick, write down how you will judge the promotion before it starts.

Clearance is different: the stock has already been paid for

There is one situation where deep discounts often do make money: clearing stock you cannot sell at full price. The difference is in what the goods really cost you. For a product you will keep restocking, every sale must cover the cost of buying the next one. For stock you will never reorder, the money is already spent. What matters now is not what you paid, but what the stock is worth to you from here on: what it will sell for, how long it ties up space and cash, and what it will fetch at the end. Economists call the money already spent a sunk cost. It is the same whatever you decide, so it should not drive the decision.

Example: 40 discontinued sideboards

Shannonside Home has 40 oak sideboards from a range the supplier has discontinued. They sell for €490, so €398.37 net of VAT, and cost €191.22 each. At full price, two sell a month. Each one costs €52 to deliver by two person courier, and storage costs the shop about €16 per sideboard per month. Payment fees are 1.7%. The comparison below leaves out refunds to keep it short.

Option A, hold the price for a year:

  • 24 sell at full price, each leaving 398.37−0.017×490−52=338.04398.37 - 0.017 \times 490 - 52 = 338.04 euro, so €8,113.
  • Storage: the stock falls from 40 to 18 over twelve months, 348 sideboard months in total, at €16 each, so €5,568.
  • The 16 left go to a trade buyer at €80 each, so €1,280.
  • Total from here on: 8,113−5,568+1,280=3,8258{,}113 - 5{,}568 + 1{,}280 = 3{,}825 euro.

Option B, 30% off, sold out in about eight weeks:

  • 40 sell at €343, so €278.86 net, each leaving 278.86−0.017×343−52=221.03278.86 - 0.017 \times 343 - 52 = 221.03 euro, so €8,841.
  • Storage: about 60 sideboard months, so €960.
  • Total from here on: 8,841−960=7,8818{,}841 - 960 = 7{,}881 euro.

The clearance earns about €4,060 more, and frees the space and the cash two months in instead of twelve. On a "margin" view the 30% sale looks awful: (278.86−191.22)÷278.86=31%(278.86 - 191.22) \div 278.86 = 31\% instead of 52%. But the €191.22 was spent long ago and is the same in both options. The useful question is only "which option leaves more money from here on".

Clearance logic applies only to stock you are truly leaving behind. And a clearance price is still a price reduction in law.

Price reductions have rules

When you show a reduced price next to a higher one, the law cares about whether that higher price is genuine. In Ireland, the European Union (Requirements to Indicate Product Prices) (Amendment) Regulations 2022 (S.I. No. 597 of 2022) added a rule that a trader who announces a reduction in the selling price of a product must state the prior price in that announcement. The prior price is the lowest price the trader applied to the product during a period of not less than 30 days before the reduction, and where there are consecutive reductions, the lowest price before the first one. Not stating it is an offence13. The Competition and Consumer Protection Commission (CCPC) enforces the rule and explains it for business in its guidance on price reductions14. The rule comes from the EU Omnibus Directive15. A "was €490" that the shop charged for two days before the sale does not pass. The next chapter on urgency, scarcity and persuasion goes through the rules on reference prices, countdowns and "limited time" claims in detail. This is general information and not legal advice.

A promotion plan on one page

Every promotion decision runs through the same few questions. The flow below is the order Callum and Niamh now use, before any promotion goes live.

Tap or click to open full screen and move around

And the checklist that goes with it:

Before launchWhy
Contribution per order known, not just gross marginThe real hurdle can be twice the textbook one
Break even uplift written downSo the result can be judged against it
Offer chosen for its cost structureBundles, gifts and free delivery often need far less uplift
Threshold set above most existing basketsOtherwise most of the cost is subsidy
Unique single use codes, or automatic applicationLeaked codes cost money with no new orders
Holdout or comparison group fixed in advanceThe only honest way to count what the promotion caused
Window includes the weeks afterThe dip belongs to the promotion
Reference prices checked against S.I. No. 597 of 2022A missing or wrong prior price is an offence

Example: Niamh's revised plan

Niamh drops "20% off everything". Instead, for June she plans three things. A free delivery week for everyone, which needs 7.7% more orders. The reading corner bundle on the lamp pages, which pays if more than 57% of buyers would only have bought the lamp. And the 40 sideboards cleared at 30% off, with the lowest price of the last month stated honestly. Every one gets a comparison group or a holdout, and Callum reports contribution, not revenue, at the end of the month.

Conclusion

A discount is a price cut you pay for out of contribution, and contribution per order is much smaller than the gross margin suggests. At Shannonside Home, 20% off needs more than twice the orders just to stand still, and that is before the dip after the sale and the orders that would have come anyway. Most promotions that look like successes in revenue are losses in contribution.

That does not mean never promote. It means choose the promotion for its cost structure: benefits that cost you less than they are worth to the customer (gifts, free delivery), discounts aimed at extra items in the same basket (bundles, well placed thresholds), and deep cuts only for stock whose cost is already sunk. Protect the codes, watch the share of orders with a discount, and above all measure each promotion against people who did not get it. The extra contribution per person is the only number that answers the question this chapter started with.

If you want to know which of your promotions actually made money, book the free workshop: we work out your break even uplift and set up a proper holdout for the next one, and the first two weeks of work are on me.

Sources

  1. 1.

    Blattberg, R. C., Briesch, R. and Fox, E. J. (1995). How Promotions Work. Marketing Science, 14(3), pp. G122 to G132. INFORMS. https://doi.org/10.1287/mksc.14.3.G122

  2. 2.

    Lewis, M. (2006). Customer Acquisition Promotions and Customer Asset Value. Journal of Marketing Research, 43(2), pp. 195 to 203. American Marketing Association. https://doi.org/10.1509/jmkr.43.2.195

  3. 3.

    Van Heerde, H. J., Leeflang, P. S. H. and Wittink, D. R. (2000). The Estimation of Pre- and Postpromotion Dips with Store-Level Scanner Data. Journal of Marketing Research, 37(3), pp. 383 to 395. American Marketing Association. https://doi.org/10.1509/jmkr.37.3.383.18782

  4. 4.

    Macé, S. and Neslin, S. A. (2004). The Determinants of Pre- and Postpromotion Dips in Sales of Frequently Purchased Goods. Journal of Marketing Research, 41(3), pp. 339 to 350. American Marketing Association. https://doi.org/10.1509/jmkr.41.3.339.35992

  5. 5.

    Van Heerde, H. J., Gupta, S. and Wittink, D. R. (2003). Is 75% of the Sales Promotion Bump Due to Brand Switching? No, Only 33% Is. Journal of Marketing Research, 40(4), pp. 481 to 491. American Marketing Association. https://doi.org/10.1509/jmkr.40.4.481.19386

  6. 6.

    Pauwels, K., Hanssens, D. M. and Siddarth, S. (2002). The Long-Term Effects of Price Promotions on Category Incidence, Brand Choice, and Purchase Quantity. Journal of Marketing Research, 39(4), pp. 421 to 439. American Marketing Association. https://doi.org/10.1509/jmkr.39.4.421.19114

  7. 7.

    Mela, C. F., Gupta, S. and Lehmann, D. R. (1997). The Long-Term Impact of Promotion and Advertising on Consumer Brand Choice. Journal of Marketing Research, 34(2), pp. 248 to 261. American Marketing Association. https://doi.org/10.2307/3151862

  8. 8.

    Kalyanaram, G. and Winer, R. S. (1995). Empirical Generalizations from Reference Price Research. Marketing Science, 14(3), pp. G161 to G169. INFORMS. https://doi.org/10.1287/mksc.14.3.G161

  9. 9.

    Flaherty, K. (2019). Applying Discounts and Promotions on Ecommerce Websites. Nielsen Norman Group, 2 June 2019. https://www.nngroup.com/articles/applying-discounts/

  10. 10.

    Baymard Institute (2026). How to Display Promotional Fields, guideline 615, checkout usability research, updated July 2026, checked 22 November 2026. https://baymard.com/guidelines/615-how-to-display-promotional-fields

  11. 11.

    Solidus (2026). solidus_promotions source code: PromotionCodeBatch and Promotion models, solidusio/solidus repository on GitHub, checked 22 November 2026 against release v4.8.1. https://github.com/solidusio/solidus/blob/main/promotions/app/models/solidus_promotions/promotion_code_batch.rb

  12. 12.

    Google (2026). Recommended events reference, Google Analytics 4, gtag.js: purchase, view_promotion, select_promotion. Google for Developers, checked 22 November 2026. https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag

  13. 13.

    Government of Ireland (2022). S.I. No. 597 of 2022, European Union (Requirements to Indicate Product Prices) (Amendment) Regulations 2022, Regulation 4 inserting Regulation 5A. Irish Statute Book. https://www.irishstatutebook.ie/eli/2022/si/597/made/en/print

  14. 14.

    Competition and Consumer Protection Commission (2022). Price reductions, guidelines for business, reflecting the rules in force from 29 November 2022, checked 22 November 2026. CCPC. https://www.ccpc.ie/business/help-for-business/guidelines-for-business/price-reductions/

  15. 15.

    European Parliament and Council (2019). Directive (EU) 2019/2161 on the better enforcement and modernisation of Union consumer protection rules (the Omnibus Directive), Article 2, inserting Article 6a into Directive 98/6/EC. EUR-Lex. https://eur-lex.europa.eu/eli/dir/2019/2161/oj