What Is a Stockout: Causes, Costs, and Prevention

A stockout happens when a business runs out of a product that customers want to buy. It means the item is completely unavailable, whether on a store shelf, in a warehouse, or in an online listing. Stockouts cost businesses money in obvious ways (the sale you didn’t make) and in less obvious ways (the customer who never comes back). Understanding what causes them and how to prevent them matters for anyone managing inventory, running a small business, or trying to grasp supply chain basics.

Why Stockouts Happen

Stockouts have two root causes: demand exceeded what was expected, or supply failed to arrive when it should have. In practice, those broad categories break down into a handful of specific triggers.

Human error is the most frequent culprit. Inventory miscounts, typos in spreadsheets, or incorrect entries in a tracking system lead a business to believe it has more units on hand than it actually does. When records say 50 units but the shelf holds 12, nobody reorders until it’s too late.

Delivery and logistics problems are the second major driver. A supplier ships late, a truck breaks down, a port backs up, or a customs delay stretches a two-week lead time to five weeks. Even a business that tracks inventory perfectly and reorders on schedule can face a stockout if the physical goods don’t arrive on time.

Demand spikes are the third trigger. A product goes viral, a competitor runs out of their version, or a seasonal surge hits harder than expected. Forecast inaccuracy, where actual demand outpaces projected demand, is closely linked. The more unpredictable a product’s sales pattern, the harder it is to stock the right amount.

What a Stockout Actually Costs

The immediate cost is straightforward: you lose the profit margin on every unit you could have sold but didn’t have in stock. If a $20 item costs you $12 wholesale, every missed sale is $8 in lost profit. Multiply that by hundreds or thousands of units over days or weeks, and the number grows fast.

But the direct lost sale is only part of the picture. Research in management science identifies three distinct layers of stockout cost:

  • Direct losses: The missed profit on items you didn’t have to sell.
  • Indirect losses: Lost sales on items you did have in stock but that customers didn’t buy because the out-of-stock item was part of what they came for. A shopper who came for a specific phone case and a screen protector may leave without buying either if the case is gone.
  • Goodwill losses: The long-term erosion of customer loyalty. When a product is unavailable, it damages the relationship, and winning that customer back often requires some form of compensation, whether a discount, a coupon, or simply a better experience next time.

Of those three layers, goodwill losses are often the largest. One study found that the cost of compensating customers to restore their satisfaction after a stockout exceeded the direct and indirect losses combined, averaging about $3 per purchase occasion in goodwill cost versus roughly $0.50 in direct and indirect losses. Over time, repeated stockouts undermine customer lifetime value, the total revenue a customer generates across their entire relationship with a business. A single stockout might cost a few dollars today but quietly push a loyal customer toward a competitor for years.

How Businesses Measure Stockout Risk

The most common metric is the stockout rate: the percentage of time (or the percentage of order cycles) in which an item is unavailable. Its inverse is the service level. A 95% service level means the item is in stock 95% of the time, which implies a 5% stockout rate.

Most businesses set target service levels by product category. A high-margin, high-demand item might warrant a 99% service level, while a slow-moving accessory might only justify 90%. The higher the service level target, the more safety stock you need to carry, which ties up cash and warehouse space. The tradeoff between carrying cost and stockout cost is the core tension of inventory management.

Safety Stock: The Primary Defense

Safety stock is extra inventory held specifically to prevent stockouts. It acts as a buffer against the two main sources of uncertainty: unpredictable customer demand and unreliable delivery timing.

The basic idea behind calculating safety stock is straightforward. You look at how much demand or lead time varies from its average, then multiply that variability by a factor that corresponds to your desired service level. That factor is called a Z-score in statistics. A 90% service level uses a Z-score of 1.28. A 95% service level uses 1.65. A 99% service level uses 2.33. The higher the service level, the more safety stock you need, and the relationship isn’t linear. Jumping from 95% to 99% requires significantly more buffer inventory than jumping from 90% to 95%.

When demand is the main variable, the safety stock formula multiplies the Z-score by the standard deviation of demand, adjusted for lead time. When lead time is the main variable, the formula multiplies the Z-score by the standard deviation of lead time and the average demand rate. When both demand and lead time fluctuate, the formulas combine both sources of variability. The math can get detailed, but the principle stays the same: more variability or a higher service target means more safety stock.

The Reorder Point

Safety stock only works if you reorder before you run out. The reorder point is the inventory level at which a new order gets placed. It’s calculated as the average demand during lead time plus the safety stock buffer. For example, if you sell 10 units per day and your supplier takes 7 days to deliver, your base need during lead time is 70 units. If your safety stock calculation says you need 20 extra units as a buffer, your reorder point is 90. When inventory drops to 90 units, you place a new order.

Setting reorder points too low is one of the most common paths to a stockout. Setting them too high avoids stockouts but loads you with excess inventory, which has its own costs: storage fees, tied-up capital, and the risk of products expiring or becoming obsolete.

Other Ways to Prevent Stockouts

Safety stock isn’t the only tool. Businesses use several complementary strategies depending on their industry and supply chain.

Order expediting is a reactive backup. When safety stock runs low unexpectedly, a business contacts its supplier to rush a shipment, sometimes using air freight instead of ground or ocean shipping. This costs more per unit but can prevent a stockout from lasting days or weeks. Some companies deliberately keep small amounts of inventory in regional warehouses and rely on expedited shipping to cover demand spikes rather than holding large buffers everywhere.

Improving demand forecasting reduces the need for safety stock in the first place. The more accurately you predict how much you’ll sell, the less buffer you need. Businesses use historical sales data, seasonal patterns, and promotional calendars to sharpen their forecasts.

Make-to-order and finish-to-order models sidestep the problem entirely for some products. If lead times are short enough, manufacturing only after a customer places an order eliminates most safety stock requirements. Finish-to-order, where a generic base product is customized at the last stage, reduces the number of distinct items you need to stock, which lowers variability and shrinks the required safety stock.

Better inventory tracking addresses the human-error problem. Barcode scanning, RFID tags, and automated inventory management software reduce the gap between what records say and what’s actually on the shelf. When your data is accurate, your reorder triggers fire at the right time.

Who Stockouts Affect Most

Retailers with large product assortments face stockouts constantly because they’re managing thousands of individual items, each with its own demand pattern and supply chain. Grocery stores are particularly vulnerable because many products are perishable, making it impossible to simply stockpile large buffers.

E-commerce businesses feel stockout pain acutely because online shoppers can switch to a competitor with a single click. There’s no friction to leaving, and the lost sale often comes with a lost customer. Small businesses with limited supplier relationships are also at higher risk, since they may not have backup vendors to turn to when their primary source runs late.

For any business that sells physical products, stockouts are not a question of “if” but “how often.” The goal isn’t to eliminate them entirely, since doing so would require carrying impractical amounts of inventory. The goal is to keep them rare enough that the cost of prevention stays lower than the cost of lost sales and damaged customer relationships.