Stockout cost is the total financial loss from not having a product available when customers want it. A practical estimate adds the margin on sales that are lost for good to the extra costs of recovering, such as expedited freight and overtime. Revenue is the wrong base, because costs you avoid by not selling are not lost.
What does a stockout actually cost?
A stockout costs more than the sales missed while the shelf is empty. Some customers wait, some buy a substitute, some buy elsewhere and may not return, and the business spends money to get supply back.
The costs fall into layers, from easy to measure to hard:
- Lost margin on sales that never happen.
- Recovery costs: expedited freight, overtime, premium purchases and discounts or credits to keep customers.
- Substitution effects: customers who buy a cheaper or lower-margin alternative.
- Penalties in contracts that carry service-level clauses.
- Customer churn: buyers who do not come back. This is real, but it is the hardest to estimate.
The stockout cost formula
The calculation has four steps, the same ones used by the stockout cost calculator.
Total cost = lost margin + extra costs
- Demand during the stockout = average daily demand x days out of stock
- Lost units = demand during the stockout x share lost for good
- Lost margin = lost units x margin per unit
- Extra costs = expedited freight, overtime and discounts used to keep customers
Margin here means contribution margin: selling price minus variable cost. The share lost for good is the key assumption. The remainder is assumed to be backordered and fulfilled later, so it is delayed rather than lost.
Worked example
The numbers are illustrative. A product sells 200 units a day and is out of stock for 3 days. Management assumes 60% of the demand is lost for good and the rest is backordered. Margin is $12 a unit, and recovery costs $2,000 in expedited freight and overtime.
- Demand during the stockout = 200 x 3 = 600 units.
- Lost units = 60% x 600 = 360 units, with 240 units backordered.
- Lost margin = 360 x $12 = $4,320.
- Total cost = $4,320 + $2,000 = $6,320, or about $2,107 for each day out of stock.
The result: a three-day stockout of a modest product costs over six thousand dollars, and about a third of that is recovery spending rather than lost sales.
How do you estimate the share of sales lost?
Look at what happened in earlier stockouts of similar products. How many orders were cancelled, how many customers waited, and how quickly did sales return to normal afterwards? Use a range, such as 30%, 60% and 90%, and see how much the answer moves.
The share lost depends on a few things:
- How easily customers can substitute another product or brand.
- Whether backorders are offered and accepted.
- How urgent the purchase is, for example repair parts versus discretionary items.
- How many competing channels are one click away.
Where the data is thin, test the sensitivity rather than defending a single number. The conclusion often holds across the whole range, and if it does not, that tells you where better data is worth gathering.
What does the estimate leave out?
The simple model is a lower bound. It does not include the long-term effect of customers who do not return, damage to relationships with key accounts, or effects on retailers who give shelf space to competitors. These effects are real but difficult to measure credibly, so state them as a qualitative risk instead of adding an invented figure.
The model also treats the stockout as one event. In practice, repeated short stockouts of the same item can cost more than one long one, because shoppers learn that the product is unreliable.
What to do with the number
Compare the cost of a stockout with the cost of preventing it. Holding more stock has a price, which you can estimate with the inventory carrying cost calculator. If a stockout is much more expensive than the extra inventory, a higher service level and more safety stock are justified. If it is cheaper, the buffer may be too large.
Rank items by stockout cost to decide where to focus forecasting and replenishment effort. A few high-margin, high-demand products usually deserve far more attention than the long tail. The inventory and warehousing guides go further on buffers and replenishment.
Data to gather before you calculate
- Average daily demand during the period in question, ideally from orders rather than shipments, since shipments already reflect shortages.
- Length of the stockout in days, including partial days if the item sells hourly.
- Contribution margin per unit, from finance, using variable costs only.
- Invoices for expedited freight, overtime, premium purchases and customer credits.
- Records of cancelled orders, backorders and customer complaints from past stockouts.
- Any contract clauses with fines or service-level penalties.
Common mistakes
- Using revenue instead of contribution margin, which overstates the loss.
- Assuming all demand is lost, or none of it, without checking past events.
- Estimating demand from sales during the stockout, which are zero by definition.
- Leaving out recovery costs because they sit in different cost centres.
- Double counting: a backordered sale is delayed, not lost, so it should not be charged as lost margin.
- Presenting a single figure with no range, which suggests more precision than the data supports.
Where analytics helps
Analytics can help estimate true demand during a stockout by using sales before and after, similar products and seasonal patterns. It can also learn the share of customers who substitute or leave from history. Treat such outputs as estimates with uncertainty, and check them against a few real episodes.
Common questions
What is included in the cost of a stockout?
The cost includes lost margin on sales that do not happen, expedited shipping and overtime to recover, discounts or credits for affected customers, and sometimes contractual penalties. Long-term loss of customers is harder to measure and is usually listed as a separate risk rather than added to the figure.
How do I estimate the share of sales lost?
Look at past stockouts: how many orders were cancelled, how many customers waited and how quickly sales recovered. Then run a range of values to see how sensitive the result is. If the decision does not change across the range, the exact share matters less.
Should I use margin or revenue?
Use contribution margin, which is price minus variable cost. Revenue overstates the loss because costs you avoid by not selling, such as materials and freight, are not lost. Margin shows the profit that actually disappeared.
How is stockout cost used to set safety stock?
Stockout cost sets how much service is worth buying. When a miss is expensive compared with holding extra units, a higher service level is justified and the safety stock rises. When misses are cheap, a lower service level and a smaller buffer are the better trade.