Ask three people in a retail organization what a stockout is and you will get three answers that quietly contradict each other. The merchandiser means an empty facing. The supply-chain analyst means zero on-hand in the system. The store manager means the thing a customer complained about this morning. They are not arguing — they are describing different failures that all wear the same word, and the gap between those definitions is where most lost sales actually live. A stockout is, at its simplest, the condition in which a customer wants to buy a product and cannot, because it is not available to purchase at the moment of demand. That definition sounds obvious. The trouble starts the instant you decide where “available” is measured. Measure it in the inventory system and you get one number. Measure it at the shelf edge, where the customer’s hand actually reaches, and you get a different one — usually worse. The naive approach trusts the inventory system: if the warehouse and back-of-store records show units, the item is assumed available, and empty shelves are expected to be caught by staff walking the aisles. That assumption is wrong often enough to matter, and the reason it is wrong is structural, not operational. What a Stockout Actually Means in Practice In practice, a stockout is a moment of unfulfilled demand at the point of sale, not a state of an inventory record. Those two things correlate, but they are not the same variable, and conflating them is the root misconception this article exists to correct. The inventory system tracks units that have been received, sold, and adjusted. It is an accounting view of stock. The shelf is a physical view of stock — what is faced, reachable, scannable, and visible to a shopper in the next ninety seconds. A product can be fully present in the accounting view and completely absent from the physical view: sitting in a backroom cage, mis-shelved two aisles over, buried behind a competing SKU, or stacked so deep on a shelf that the front face is empty while units hide at the back. To the inventory system, all of those read as “in stock.” To the customer, every one of them is an out-of-stock. This is why on-shelf availability — not inventory accuracy — is the metric that ties most directly to revenue. We treat the two as separate instruments precisely because they fail independently. What Is the Difference Between a System Stockout, an On-Shelf Stockout, and a Phantom Stockout? These three terms are used interchangeably in casual conversation and should not be. They have different causes, different detection methods, and different fixes. Stockout type What it means Visible to inventory system? Typical fix System stockout On-hand quantity is genuinely zero — the store has none, anywhere Yes — quantity reads 0 Replenishment order; supply-chain action On-shelf stockout Units exist in the store but the shelf facing is empty (in backroom, misplaced, or unfaced) No — system still shows positive on-hand Staff task: replenish or face the shelf Phantom stockout System shows positive on-hand but the units do not actually exist (theft, shrink, mis-scan, damage) No — and the number is wrong Inventory correction + physical verification The system stockout is the only one of the three that the inventory record reliably surfaces, and it is the one most teams optimize against. The other two — on-shelf and phantom — are invisible to the system by definition, and they are the ones that quietly bleed sales. An on-shelf stockout means a customer leaves without a product the store physically owns. A phantom stockout is worse: the system believes there is stock, so it never triggers a reorder, and the shelf stays empty until someone physically notices. Both are detectable only by looking at the shelf, which is exactly what staff rounds attempt and exactly where the timing problem lives. Why Do Inventory Systems Miss On-Shelf Stockouts That Customers See? Because inventory systems were never instrumented to observe the shelf. They observe transactions. A point-of-sale scan decrements a count; a receiving event increments it. Between those two events, the system is blind to the physical state of the product. It cannot tell whether a unit sitting at positive on-hand is faced and reachable or wedged behind a misplaced display. There is a second, subtler reason. Many phantom stockouts are created by the inventory system’s own confidence. When on-hand is positive, automatic replenishment is suppressed — the logic assumes no order is needed. So a phantom stockout (units recorded but not present) actively prevents the corrective reorder that would refill the shelf. The error compounds silently. This is an observed pattern across retail operations, not a benchmarked failure rate, but it is consistent enough that any serious on-shelf-availability program treats inventory-record trust as a known weak point rather than a foundation. The customer, meanwhile, has none of this context. They see an empty hook, conclude the store does not have it, and either substitute or leave. The decision is made in seconds and the inventory system never registers that a demand event occurred at all. That uncaptured demand is the part that does not show up in any report — which is what makes it dangerous. How Shelf-Execution AI Detects a Stockout Sooner Than Staff Rounds The honest framing here is a timing problem. Staff rounds do detect on-shelf and phantom stockouts — eventually. The question is the size of the window between when a shelf goes empty and when a human notices. Between rounds, that window can run hours, and every hour is unfulfilled demand and substitution risk. Shelf-execution AI closes that window by treating the shelf as a continuously observed surface rather than a periodically inspected one. A computer-vision model trained on shelf imagery classifies each facing as stocked, empty, or misfaced, and flags the empty and misplaced ones as actionable events routed to staff — in near real time rather than at the next round. The detection layer does not replace the inventory system; it adds the physical-state observation the system structurally lacks. We cover the full mechanism, including planogram-drift detection, in our breakdown of how shelf-execution AI catches stock-outs and planogram drift without hardware replacement, and how this slots beneath the broader availability metric in inventory control explained: how shelf-execution AI fits into on-shelf availability. The detection task is not trivial. Retail shelves are crowded, reflective, variably lit, and constantly re-merchandised, which is why generic object detectors trained on clean datasets degrade badly in store conditions — a failure mode we examine in why off-the-shelf computer vision breaks at retail scale. A facing that reads “empty” under one lighting condition can read “stocked” under another; a packaging redesign can silently invalidate a model that keyed on the old artwork. These are real boundary conditions, not edge cases, and we will return to them. What Hardware Do You Need to Detect Stockouts? This is usually the first question retail operations asks, and the answer is more reassuring than expected: in most stores, the cameras and mobile devices already exist. Many locations carry ceiling or fixture cameras, and associates already carry handheld scanners or phones. Shelf-execution detection can run against existing fixed-camera feeds or against images captured on staff mobile devices during normal floor activity, which avoids a hardware procurement cycle and the capital approval that comes with it. The engineering work is in the model and the pipeline, not the sensors. Detecting a stockout reliably enough to dispatch a real staff task means a vision pipeline that survives the move from a clean pilot to a messy production floor — the same hardening discipline that lets computer-vision defect-detection models survive the move from pilot to production line in manufacturing applies directly to store environments. Lighting variance, occlusion, and continual re-merchandising are the store-floor equivalents of the conveyor-line conditions that break naive defect models. Both rest on the same principle: the deployment environment, not the demo, determines whether the model is useful. For teams that want to scope this against their actual store conditions, our retail computer-vision practice and broader computer-vision engineering work start with an audit of the existing camera and device estate before any model is trained — because the answer to “what can we detect” depends entirely on what your current hardware actually sees. How Do You Measure the Cost of a Stockout and the Lift From Faster Detection? Three measurements turn a stockout from a vague worry into a managed metric. None of them require new instrumentation beyond the detection layer itself. On-shelf availability rate, before and after. The share of facings that are stocked and faced at any given time. This is the headline metric and the one that moves revenue. Time-to-restock from detection. How long between a shelf going empty and a staff member acting on it. Faster detection shrinks this directly; it is the variable shelf-execution AI is built to compress. Share of phantom and on-shelf stockouts surfaced that the inventory system missed. This is the diagnostic that proves the detection layer is doing something the existing system could not — and it is usually the number that surprises operations the most. A worked illustration, with assumptions stated plainly: suppose a store runs staff rounds every four hours and a popular SKU sells out on the shelf one hour into a cycle. Under rounds-only detection, that facing sits empty for roughly three hours before anyone notices. If shelf-execution AI flags it within minutes and routes a restock task, the empty window shrinks from hours to the time it takes an associate to walk over. The lost-sales delta is the demand that would have occurred during the avoided empty window — which you can estimate from the SKU’s typical hourly sell-through. This is illustrative framing, not a benchmarked result; the actual lift depends on store traffic, SKU velocity, and staffing, and should be measured per environment rather than assumed. Where Does Stockout Detection Still Fail? No detection layer is complete, and pretending otherwise erodes trust faster than any honest limitation. There are three failure regions worth naming up front. Lighting and reflection. Glossy packaging, glass-fronted coolers, and uneven aisle lighting create conditions where a stocked facing reads as empty or an empty one reads as stocked. Refrigerated and frozen sections are particularly hard. Models must be trained on the store’s own conditions, not borrowed datasets. Packaging redesigns. A model that learned to recognize a product by its artwork can silently fail when the brand refreshes the box. The shelf is full; the model no longer recognizes the SKU. This is a maintenance burden, not a one-time build, and any program that ignores it will degrade quietly over a season. Deep and stacked shelves. A camera sees the front face. When product is stocked deep behind an empty front row, or when the shelf geometry hides units, the physical-state read can be ambiguous. Some shelf layouts simply do not present cleanly to a fixed viewpoint, and detection accuracy degrades accordingly. These are the conditions under which we would scope expectations carefully rather than promise universal coverage. The right posture is to detect what is reliably detectable, measure the residual, and improve the model against the store’s real failure regions over time. FAQ How does stockout work, and what does it mean in practice? A stockout is a moment of unfulfilled demand at the point of sale — a customer wants a product and cannot buy it at that moment. In practice it is a property of the shelf, not of the inventory record: a product can read “in stock” in the system while the facing a customer reaches for is empty. Measuring availability at the shelf edge, rather than in the accounting view, is what makes the metric tie to revenue. What is the difference between a system stockout, an on-shelf stockout, and a phantom stockout? A system stockout means on-hand is genuinely zero and the inventory record reflects it. An on-shelf stockout means units exist somewhere in the store but the facing is empty — in the backroom, misplaced, or unfaced — while the system still shows positive on-hand. A phantom stockout means the system shows positive on-hand but the units do not actually exist due to shrink, mis-scan, or damage. Only the first is reliably visible to the inventory system. Why do inventory systems miss on-shelf stockouts that customers see? Inventory systems observe transactions, not shelves — a scan decrements a count, a receipt increments it, and between those events the system is blind to whether a unit is faced and reachable. Worse, positive on-hand suppresses automatic replenishment, so a phantom stockout actively prevents the reorder that would refill the shelf. The empty facing persists until a human physically notices. How does shelf-execution AI detect a stockout sooner than store-staff rounds? It treats the shelf as a continuously observed surface rather than one inspected periodically. A computer-vision model classifies each facing as stocked, empty, or misfaced and routes empty and misplaced facings to staff as near-real-time tasks, shrinking the window between a shelf going empty and someone acting on it from hours to minutes. It adds the physical-state observation that inventory systems structurally lack rather than replacing them. What hardware is needed to detect stockouts, or can existing cameras and mobile devices be reused? In most stores the existing fixed cameras and staff mobile devices are sufficient — detection can run against current camera feeds or images captured during normal floor activity, avoiding a hardware procurement cycle. The engineering effort lives in the model and pipeline, not in new sensors. The starting point is an audit of what the current camera and device estate actually sees. How do we measure the cost of a stockout and the lift from faster detection? Track three numbers: on-shelf availability rate before and after, time-to-restock from detection, and the share of phantom and on-shelf stockouts surfaced that the inventory system missed. The cost of a stockout is the unfulfilled demand during the empty window, estimable from the SKU’s typical hourly sell-through. Actual lift depends on traffic, velocity, and staffing and should be measured per environment, not assumed. Where does stockout detection still fail (lighting, packaging redesigns, deep shelves)? Three regions remain hard: lighting and reflection (glossy packaging and glass-fronted coolers can flip a read), packaging redesigns (a model keyed on old artwork stops recognizing a refreshed SKU), and deep or stacked shelves where product hidden behind an empty front row creates ambiguous reads. These are maintenance and boundary realities, so the right posture is to detect what is reliably detectable, measure the residual, and improve against the store’s real failure regions. What is a good stockout rate, and how do you calculate stockout rate as an operations metric? Stockout rate is most usefully measured as on-shelf unavailability: the share of facings empty or unfaced over a period, rather than the share of SKUs reading zero on-hand in the system. The “good” threshold is context-dependent on category, velocity, and store format, so the actionable target is a measured before/after improvement in your own environment, not a borrowed industry number. How does a stockout differ from a backorder, and why does that distinction matter for retail availability? A stockout is a missed sale at the point of demand — the customer cannot buy now. A backorder is a deferred fulfillment — the customer has committed to buy and will receive the item later. The distinction matters because a backorder captures demand while a stockout usually loses it; on-shelf availability work targets the stockout case, where the sale evaporates the moment the shelf reads empty to the shopper. The word “stockout” hides a three-way fork, and most retail teams optimize the one branch their inventory system can see. The branches that drive the most lost sales — on-shelf and phantom — are exactly the ones the system is structurally blind to. If you want to know where your availability is actually leaking, stop asking the inventory record and start measuring the shelf: a GPU performance audit scoped to the detection pipeline turns a precise definition of “out-of-stock” into a flagged, routable shelf event your staff can act on before the customer walks.