Stockout cost is the total economic loss incurred when a customer wants to buy an item and you don't have it — the sum of lost margin, emergency procurement premiums, and long-term customer defection, expressed per stockout event or as an annual dollar figure.
Quick answers
What is stockout cost? Stockout cost is the full financial impact of an empty shelf: the immediate lost sale, the premium you pay to rush-replenish, and the lifetime value erosion from customers who leave and don't come back. It is almost always larger than operators assume.
What is the stockout cost formula? stockout cost per event = lost margin + emergency premium + (defection probability × customer lifetime value). For annual planning: annual stockout cost = stockout events × average cost per event.
How does stockout cost relate to safety stock? Safety Stock is the economic defense against stockout cost. The optimal safety stock level is the point where the marginal cost of holding one more unit equals the marginal cost of one more stockout.
What's a typical stockout cost? Studies consistently show stockout cost runs 2–5× the item's gross margin per event once customer defection is included. A $12 item with $5 margin may carry $15–$25 in total stockout cost when you account for lost future visits.
The formula
stockout cost per event = M + E + (P_d × CLV)
where:
- M — lost gross margin on the missed sale
- E — emergency procurement premium (rush shipping, spot-market pricing, or substitution cost)
- P_d — probability the customer defects permanently (doesn't return)
- CLV — customer lifetime value
For aggregate planning:
annual stockout cost = Σ (stockout events per SKU × cost per event per SKU)
Stockout cost multipliers by vertical
| Vertical | Multiplier (× item gross margin) | Primary driver |
|---|---|---|
| Restaurant / food service | 3–5× | Customer won't return; menu item unavailability damages brand |
| Grocery | 2–4× | Customer switches stores for entire basket |
| Specialty retail | 2–3× | Lost impulse sale; item may not be re-requested |
| E-commerce | 3–6× | One click to competitor; high defection probability |
| Manufacturing (component) | 5–20× | Production line downtime; idle labor costs |
| Healthcare / pharmacy | 10–50× | Regulatory penalties; patient safety |
Worked example
A restaurant runs out of its second-most-popular entree (menu price $28, food cost $9, gross margin $19) during Friday dinner service. Over the evening, 14 guests would have ordered it.
- Lost margin: 14 × $19 = $266
- Emergency procurement: Kitchen subs a higher-cost protein to offer an alternative; extra cost = 14 × $3 = $42
- Customer defection: Research shows 10–15% of restaurant guests who encounter an out-of-stock on their intended order reduce visit frequency. Assume 10% defection × 14 guests × $1,200 annual spend per loyal guest = $1,680 in at-risk lifetime value.
- Total stockout cost for one evening: $266 + $42 + $1,680 = $1,988
Compare that to the carrying cost of 5 extra portions of safety stock: 5 × $9 × (35% annual carrying rate / 365) = $0.43/day. The asymmetry is staggering — a few cents of carrying cost per day prevents nearly $2,000 in downside risk.
Why most stockout cost estimates are wrong
- Counting only the lost sale. Operators tally the missed revenue and stop. But the margin is what matters, and it's the smallest component — defection cost dominates.
- Ignoring the basket effect. In grocery and retail, a customer who can't find one item often abandons adjacent purchases or switches stores entirely. The real loss is the full basket, not the single SKU.
- Assuming substitution is free. Offering an alternative saves the immediate sale but often at lower margin or higher COGS. That delta is a real cost.
- Not measuring defection. Because defection is invisible (the customer simply stops showing up), operators massively underweight it. Cohort analysis on visit frequency after stockout events reveals the true damage.
The core problem is asymmetry: carrying a little extra costs pennies per day, but a single stockout event can destroy hundreds of dollars of value. Without measuring both sides, operators cannot make rational inventory decisions.
How LineNow handles stockout cost
- Tracks stockout events by detecting zero-quantity days for items that had regular recent demand, flagging true stockouts vs. intentional deactivations.
- Estimates per-SKU stockout cost using item margin, order frequency, and a configurable defection multiplier based on your business type.
- Balances stockout cost against carrying cost to recommend optimal Safety Stock levels — more buffer on high-stockout-cost items, less on low-consequence SKUs.
- Triggers Reorder Point alerts early enough to account for Lead Time variability, so replenishment lands before on-hand inventory hits zero.
- Reports Days of Inventory on Hand per item, highlighting SKUs where DOH has dropped below lead time — meaning a stockout is already mathematically inevitable without intervention.
- Quantifies annual stockout losses in your dashboard so you can see the total dollar impact and justify the inventory investment to stakeholders.