The Cost of Stockouts: Lost Sales and Beyond
By Newtown Analytics · · 9 min read
For ops, supply chain & planning leaders
The cost of stockouts is usually larger than it looks, and understanding it is what lets a company decide how much inventory is enough. This guide is part of demand planning and inventory optimization, follows excess and obsolete inventory and inventory carrying cost, and leads to inventory optimization and in-stock rate. When an item is out of stock, the obvious loss is the sale that did not happen. But there are other costs: the premium freight to rush a replenishment, the penalties charged by retailers for missed deliveries, the customers who switch to a competitor and sometimes do not return, the time spent firefighting and the damage to a brand's standing with a buyer. The offsetting cost of avoiding stockouts is the cost of holding extra stock. The right level of inventory sits where the next dollar of stock costs the same as the stockouts it prevents. This guide walks through the components of stockout cost, builds a worked example with checked arithmetic, compares it with the cost of safety stock, introduces the newsvendor ratio for single-season products and shows how to estimate your own numbers. Stockouts also strain cash through rush costs, as discussed in cash flow management.
The components
Lost margin on unfulfilled sales. If the customer cannot buy, the sale is lost. The loss is the margin, not the revenue, because you also avoid the cost of the goods. In retail and ecommerce, many shoppers who find an item unavailable buy something else, from you or a competitor.
Backorder and substitution effects. Some customers wait for backorders, which delays revenue and adds handling. Some accept a substitute, perhaps at lower margin.
Expediting costs. Air freight, overtime, special production runs and administrative time to fix the shortage.
Penalties and chargebacks. Retailers often fine suppliers for late or short shipments, based on fill rate or on-time-in-full scorecards.
Customer and channel damage. Repeated stockouts lead buyers to reduce shelf space, drop the item or delist. Online, out-of-stock listings lose search ranking and conversion.
Lifetime value effects. A customer lost to a competitor takes future purchases with them.
Internal disruption. Planners, customer service and logistics spend time on shortages instead of improvement.
A worked event cost
An item sells 40 units a day with a margin of $9 per unit. It stocks out for 5 days (illustrative). Assume that 30 percent of the demand is recovered through backorders or substitutions and 70 percent is lost.
- Demand during the stockout: 5 × 40 = 200 units
- Lost units: 200 × 0.70 = 140 units
- Lost margin: 140 × 9 = $1,260
- Expedite cost to rebuild stock quickly: $800
- Retailer chargeback for the short shipment: $500
- Total direct cost: 1,260 + 800 + 500 = $2,560, or $512 per day of stockout
This excludes the harder-to-measure effects on shelf space and customer loyalty. Even so, it is a meaningful number to hold against the cost of avoiding the event.
Compare with the cost of a buffer
To avoid a 5-day stockout you would hold about 5 × 40 = 200 extra units. At a unit cost of $25 and a carrying cost rate of 20 percent, holding 200 units costs 200 × 25 × 0.20 = $1,000 a year. If such stockouts would otherwise occur three times a year, the annual stockout cost is 3 × 2,560 = $7,680. The buffer costs $1,000 and avoids $7,680, a favorable trade by a factor of more than seven. Even if the buffer only prevented two of the three events, the saving of $5,120 would still exceed the cost. By contrast, if the same item's stockouts cost only $300 each and occurred once a year, a $1,000 buffer would not pay. The comparison depends on frequency, margin, chargebacks and the cost of holding. Check: 5 × 40 = 200; 0.7 × 200 = 140; 140 × 9 = 1,260; 1,260 + 800 + 500 = 2,560; 3 × 2,560 = 7,680; 200 × 25 × 0.2 = 1,000.
The long-term cost
Add a customer loyalty effect as a scenario, not a fact. Suppose a retail customer generates $12,000 a year of margin, and that you estimate (from your own history) a 1 in 50 chance that a given serious stockout leads to loss of the account. The expected cost per stockout from this effect is 12,000 / 50 = $240 per year of lost account margin, and more if the customer would have stayed for several years. Use your own history of delistings and lost accounts to calibrate. The point of the exercise is that the visible cost of a stockout understates the full cost, so safety stock decisions based on the visible cost alone will err toward too little stock for important customers.
The newsvendor ratio for single-season products
For items sold in a single season with no replenishment, the right stocking level can be found by comparing the cost of having too little and the cost of having too much. The underage cost (Cu) is the margin lost on each unit short. The overage cost (Co) is the loss on each unit left over: its cost minus what it can be sold for after the season. The optimal probability of meeting demand, the critical ratio, is Cu / (Cu + Co). For an item with a $9 margin per unit, a cost of $25 and a salvage value of $10, Cu = 9 and Co = 25 - 10 = 15. The critical ratio is 9 / (9 + 15) = 0.375. This means you should stock to the level that gives only a 37.5 percent chance of covering demand: for this item, it is rational to risk selling out, because the loss on leftovers is greater than the margin on a lost sale. For an item with a margin of $20 and a salvage loss of $5, the ratio is 20 / 25 = 0.80, so stock to an 80 percent service level. The formula tells you that the right service target depends on the margin and the salvage loss, not on a fixed rule.
How to estimate your own numbers
- Lost sales rate. Use history of stockouts, comparing sales before, during and after, or look at web traffic to out-of-stock pages. Estimate the share of demand that is lost versus recovered.
- Margin. Use contribution margin per unit.
- Chargebacks and fines. Pull from retailer scorecards and deductions.
- Expedite costs. Review premium freight and overtime on shortages.
- Frequency. Count stockouts by item and class from your in-stock data.
- Loyalty effect. Use account history, with caution, and show it as a range.
Using the result
Set service targets by item class according to the economics: higher for items with high margin, no substitute, penalties or strategic customers; lower for items with low margin and easy substitutes. Compare the incremental cost of safety stock for each service level with the expected stockout cost avoided. Use the numbers to justify investments in forecasting and supplier reliability, which reduce the cost of achieving a given service level. See inventory optimization.
Common mistakes
- Counting revenue instead of margin as the lost amount.
- Ignoring chargebacks and expediting.
- Assuming all stockout demand is lost, or none.
- Applying one service target to every item.
- Treating stockouts and excess as separate problems when both come from poor planning.
- Not measuring stockouts at all.
Setting the service level from the cost ratio
For items that are replenished continuously, a classic result links the optimal cycle service level to the costs involved: the service level should be 1 minus the annual holding cost of the order cycle divided by the annual cost of shortages. In symbols, service level = 1 - (Q × H) / (B × D), where Q is the order quantity, H is the annual holding cost per unit, B is the cost per unit short and D is annual demand. Using the EOQ example, Q = 537, H = $5 and D = 12,000. If a unit short costs $14 (lost margin plus expedite and penalties), the target service level is 1 - (537 × 5) / (14 × 12,000) = 1 - 2,685 / 168,000 = 1 - 0.016 = 98.4 percent. If a unit short costs only $2, the target is 1 - 2,685 / 24,000 = 1 - 0.112 = 88.8 percent. The same item should be stocked differently depending on what a shortage costs. This is the quantitative basis for service tiers: a high-margin item with chargebacks warrants a service level near 98 percent, and a low-margin item with ready substitutes warrants far less. The calculation is an approximation, but it shows that a uniform 95 percent target is likely to be wrong in both directions.
Estimating lost sales from your own data
Lost sales are not visible in the sales ledger, because they are sales that did not occur. You can estimate them from history. Compare sales during a stockout with sales in comparable periods when stock was available. If an item usually sells 280 units a week and sold 90 in the week it was out of stock for four days, the shortfall is 190 units, an estimate of the sales not made (some may have been deferred, not lost). Check the following weeks: if sales in the next week were 340, 60 above normal, then about 60 of the 190 may have been recovered, leaving about 130 lost, a recovery of 60 / 190 = 32 percent. For online channels, compare conversion rates with and without stock. For retail partners, use shelf availability and point-of-sale data. Build a table by category of the typical share of demand lost during a stockout, and update it as evidence accumulates.
Channel differences
The cost of a stockout varies by channel. In wholesale to large retailers, the main costs are chargebacks, lost shelf space and the effect on the next buying decision. A missed promotion can cost a retailer's goodwill for a season. In direct-to-consumer channels, the cost is lost conversion, abandoned carts and customers who go to a marketplace or competitor; a returning customer who finds an item unavailable twice may stop checking. On marketplaces, stockouts can reduce search ranking, which damages sales long after stock returns. In business-to-business channels, a stockout may stop a customer's production, creating penalties and relationship damage far larger than the margin on the order. Estimate the costs separately for each channel and use channel-specific service targets.
From cost to policy
Turn the analysis into a small table of cost per unit short by item class and channel, agreed by finance, sales and operations. Use it to set service targets, to justify safety stock for important items and to prioritize allocation when stock is scarce. When allocation is needed, rank customers and orders by the cost of a shortage, not by who shouts loudest. Review the table once a year, or when contracts and scorecards change. A shared set of numbers improves the quality of discussion between sales, who want more stock, and finance, who want less.
FAQs
What is the cost of a stockout?
The lost margin on sales that do not happen, plus expediting costs, penalties and the longer-term effect on customers and shelf space.
How do you calculate the cost of lost sales?
Multiply the units of demand lost by the contribution margin per unit, after estimating what share of demand is recovered through backorders or substitutes.
Should I always avoid stockouts?
No. The right level balances the cost of stockouts against the cost of holding stock. For some low-margin items with expensive overstock, a lower service level is rational.
What is the newsvendor model?
A method for deciding how much to stock for a single-season product by comparing the cost of too little with the cost of too much.
How can I reduce stockouts without inflating inventory?
Improve forecast accuracy, reduce lead time variability, segment service targets and set reorder points from real data.
Keep reading
- Complete guide: Demand Planning and Inventory Optimization: The Complete Guide
- In-Stock Rate: How to Measure and Improve It
- Inventory Optimization: Strategies, Metrics, and Tools
- Inventory Turnover: What It Is and Why It Matters
- Related topic: Cash Flow Management: The Complete Guide for Growing Businesses
This article is for general information. It is not accounting, tax, legal or investment advice, and examples use illustrative numbers rather than client data. Confirm decisions that carry financial or legal consequences with a qualified professional.