Stockout measurement when the only thing you can see is sales
Nov 26, 2026, 9 min read

Stockout measurement is hard because you observe sales rather than demand, and a day with no sales looks the same whether the item was absent or nobody wanted it. An end of week stock snapshot taken after the delivery lands measures the fullest the shelf will be all week, which is how availability reads 96 percent while the field reports empty shelves. Counting events treats two hours empty and nine days empty as the same thing, so duration and volume weighting are what make the number actionable. The inventory record cannot referee, because a phantom on-hand figure suppresses replenishment and the gap persists until a physical count or a complaint.
Availability on the weekly report is 96.4 percent and has been for two years. Complaints from the field are rising, the category manager is convinced the shelf is empty half the time in the northern stores, and the report keeps saying 96.4. The report is built from an end of week stock snapshot. Deliveries land on Friday afternoon. The snapshot is taken on Sunday night, which is the fullest the shelf will be all week.
Nobody built that to deceive anyone. Somebody built a report from the data available at the time, and the timing artefact has been sitting inside the number ever since.
One store week, four availability numbers
Take one week, one chain, 12,000 item and store combinations, and measure availability four ways from the same underlying records.
Count an item as out when the on-hand balance is zero at the Sunday night snapshot, and 214 combinations are flagged. Availability 98.2 percent.
Count it as out when the on-hand balance touched zero at any point during the week, using the perpetual record rather than a snapshot, and 1,090 are flagged. Availability 90.9 percent.
Count it as out when the sales sequence shows a gap longer than the item's own selling rate can explain, and 1,640 are flagged. Availability 86.3 percent.
Count the hours the shelf was empty against the hours the store was open, and 4.1 percent of shelf hours were lost. Availability 95.9 percent.
Same week, same stores, same records. Numbers of 86.3, 90.9, 95.9 and 98.2 percent, all defensible, and the highest of them is the one that appears in the pack because a weekly snapshot is the cheapest thing to build.
The snapshot version has an extra property worth naming. Move the snapshot from Sunday night to Thursday morning, change nothing else, and it will report a materially worse figure, because it now samples the shelf at its emptiest. A snapshot availability measure is partly a measurement of your delivery calendar.
Detecting a gap you cannot see
The hard version of the problem is that you observe sales rather than demand, and a day with no sales looks identical whether the item was absent or nobody wanted it.
The way through is to ask how surprising a run of zeroes is, given how fast the item normally sells. Model daily sales as Poisson with the item's own rate.
For an item selling 0.8 units a day, the probability of a zero day is e to the minus 0.8, which is 0.449. Nearly half of all days are zero days by chance. Three consecutive zeroes have probability 0.449 cubed, which is 0.09, or about one week in eleven. Five consecutive zeroes give 0.018, about one in fifty-five.
For an item selling 6 units a day, the probability of a zero day is e to the minus 6, which is 0.0025, or about one in four hundred. A single zero day on that item is already strong evidence.
That gives a threshold rule you can derive rather than guess. Pick a false positive tolerance, say 2 percent, and solve for the run length where the probability of that many consecutive zeroes falls below it. For the 0.8 a day item that is five days. For the 6 a day item it is one day.
A single fixed rule applied across a catalogue, which is what most availability reports use, will therefore flood you with false positives on the slow half of the range and miss most of the real events on the fast half. The rule has to be per item, and it takes one line of arithmetic per item to set.
Two refinements matter in practice. Use the day of week profile rather than a flat daily rate, because a Monday zero on an item that sells mostly at weekends means very little. And re-estimate the rate outside promotional periods, since a promotion changes the baseline the whole test depends on.
Duration weighting, and the hours that matter
Counting events treats two hours empty before the truck arrives and nine days empty as the same thing. Duration weighting fixes the first half of that, and volume weighting fixes the rest.
Take an item out of stock for 14 hours in a week in a store open 84 hours, selling 42 units a week. Six of those hours fell on Saturday between eleven and five, which carries 19 percent of the week's volume in 6 of the 84 trading hours. The other eight hours fell in ordinary trading periods.
Unweighted, the lost time is 14 over 84, which is 16.7 percent, implying about 7.0 units of exposure.
Volume weighted, the Saturday window alone carries 19 percent of 42 units, which is 7.98 units. The remaining 78 hours carry the other 81 percent, or 34.02 units, at 0.436 units an hour, so the eight ordinary hours carry 3.49 units. Total exposure is 11.47 units, which is 27.3 percent of the week.
Same 14 hours. Sixteen point seven percent or twenty-seven point three percent, seven units or eleven and a half. The volume weighted version is the one that connects to money, and it also ranks your fix list differently, because an item that goes empty on Saturday afternoon needs a different replenishment answer from one that empties on Tuesday morning.
Weighting by what the gap was worth
There is one more weighting worth adding, and it changes which stores and which lines get the attention.
Availability measured by counting item-store combinations treats a top seller and a tail line as equal. Weight each combination by the margin it normally earns in a week and the picture moves, usually favourably, because outages concentrate in slow lines that are ordered infrequently and replenished last. The 86.3 percent from the gap detection rule above might become 94.1 percent when weighted by margin at risk, since the 1,640 flagged combinations carry well under their share of the category's earnings.
Both figures are true and they answer different questions. The count version measures how often the shelf lets a shopper down, which is a brand and habit question. The margin weighted version measures what the outages cost this week, which is the number that sizes the investment case. Publishing only the first produces a work programme aimed at the tail; publishing only the second lets a chronic gap on slow lines run indefinitely.
The practical arrangement is to report both, target the margin weighted one and monitor the count version for drift, because a count figure sliding while the weighted figure holds steady is the early signal that the tail of the range has stopped being replenished at all.
A distribution centre stockout and a shelf stockout are different events
These two get rolled into one availability number in a great many businesses, and they behave nothing alike.
A distribution centre stockout is a single event with a visible record, affecting every downstream node at once, and it converts into a backorder or a delayed store order rather than into an immediate lost sale. Its cause is usually supply: a late receipt, a forecast miss, an allocation decision. One item out at the distribution centre for three days across 180 stores counts as one event in an event log and 540 store-item-days in the store view, and only the second describes what shoppers experienced.
A shelf stockout is thousands of small independent events with no reliable record, converting immediately into a substitution or a walk. Its cause is more often execution than supply: a case sitting in the back room, a planogram change nobody actioned, an order the store manager trimmed.
Reporting them together produces a figure neither team can act on. A distribution centre fill rate of 99.1 percent alongside on-shelf availability of 93.4 percent tells you that 5.7 points of unavailability are being created inside your own network after the goods arrived, which is a completely different work programme from buying more stock.
Phantom stock, and why the record cannot be the referee
The reason store level detection cannot rely on the inventory record is that the record is wrong in a specific and self-perpetuating way. When the system believes there are four on hand and the shelf holds none, no replenishment triggers, so the condition persists until a physical count or a customer complaint clears it.
Where 3 percent of item-store records carry phantom stock, an availability measure built on the record overstates availability by roughly that amount, and the overstatement concentrates in exactly the items that have been quietly dead on the shelf longest.
The sales-gap method finds them, which is its second use. Of the 1,640 combinations flagged by the gap rule above, 1,090 also showed a zero or negative balance in the perpetual record at some point. The other 550 showed positive stock throughout the week while selling nothing. Those 550 are the phantom candidates, and each one is a shelf that will stay empty until somebody walks past it with a scanner.
What availability invites
Every availability definition has a cheap route to improvement.
A snapshot measure invites moving the snapshot. Nobody will describe it that way; the report will simply be rebuilt to run after the delivery window, for good operational reasons.
A count of stockout events invites reducing the range. Fewer lines produce fewer events, and the slowest fifteen percent of a range can easily generate a third of the events while carrying a few percent of sales. Cutting them improves the metric, and whether it improves the business is a separate question that belongs with I8.
An availability target with nothing beside it invites more stock everywhere, which works and costs whatever it costs.
A store level availability target invites back-room stock, because the cheapest way to guarantee a full shelf is to keep a case behind it, and back-room stock is the most common cause of the empty shelf it was meant to prevent.
Three pairings cover most of that. Report availability next to stock at the same granularity, so the price of every improvement is visible. Report estimated lost units alongside the percentage, because a point of availability on a fast mover and a point on a slow mover are different amounts of money. And report back-room stock next to store availability, because the correlation between them is usually the finding.
Where this stops
Every sales-based detection method estimates, and the estimate is weakest exactly where the catalogue is thickest. For an item selling 0.3 units a day, the probability of a zero day is 0.741, and seven consecutive zero days has probability 0.123, which is about one week in eight under perfectly normal trading. You cannot confidently detect a week long stockout on that item at all, and no amount of method sophistication changes the information content of the data.
Detection is also only the first half. Converting a detected stockout into an estimate of the demand that was lost requires assumptions about substitution, about whether the shopper returned later, and about the shape of demand during the gap. That is the censored demand problem, and D1 covers it; treating a detected outage as a known quantity of lost sales will overstate the loss in categories with close substitutes and understate it where the shopper leaves the store entirely.
The phantom rate itself can only be measured by physically counting, which costs money and decays as soon as you stop. A rolling count programme on the items the gap detector flags is far cheaper than a full count and catches most of the value, and it needs to be running for the availability number to mean anything at all.
Take one week of one store's perpetual inventory records, compute availability under a snapshot rule and again under an hours-out rule, and see how far apart the two land before you defend the number in your pack.
More on this in metrics on the DemandLabs platform.




