How much demand dostockouts hide?
We analyzed 7,869,549 store-product days of hourly sales and stock data from 1,057 grocery stores. Stockouts hid about a fifth to a quarter of demand, and most of it never shows up as a day with zero sales.
Data: FreshRetailNet-LT by Dingdong-Inc (CC BY 4.0), fresh grocery in China, June 2023 to July 2025.
Key findings
22–25%
of demand hidden by stockouts
Customers who wanted an item that had run out never show up in the sales history.
22.2%
of trading hours out of stock
Across 22,939 store-product pairs, two years of hourly stock records.
79.1%
of stockout hours on days with a sale
Most stockouts start after the first sale, so a zero-sales check never sees them.
99.5%
of month-long windows had a stockout
239,924 30-day windows. A clean month is the rare exception.
The blind spot
Shelves empty in the evening, after the day’s sales are booked
The most common way to find stockouts in sales data is to look for days with no sales. That catches almost nothing here. Stockouts were rare at opening and climbed through the day: 8.1% of the 06:00 hour, 44.1% of the 21:00 hour.
So 79.1% of out-of-stock hours fell on days that still recorded a sale, and 90.1% of stockout days look like normal selling days to a day-level check. The sales that would have happened that evening are simply missing.
Stockouts were not confined to a few problem items: 48.2% of all store-product days had one, and 53.9% of products were out of stock for more than a fifth of their trading hours.
Share of store-product days out of stock during each trading hour, 7,869,549 days.
Hidden demand
About a fifth to a quarter of demand, and close to a third in summer
For every 30-day window we estimated what each product would have sold had it stayed in stock, using the hours it was on the shelf and how much each hour normally sells. Stockouts hid 21.8% to 24.7% of that demand overall. The share swings with the season: about 30% in summer 2023, mid-20s in summer 2024, and around 15% in late autumn and winter.
Month of the window’s first day. Peak 31.9% (Jul 23), low 14.5% (Dec 23).
Putting it back
Day-level fixes recover almost none of it. Hour-level ones recover most.
To test the corrections, we took 20,989 month-long windows where a product never ran out, removed about 20% of its sales in two realistic ways, and checked how much each correction put back. One test copied another product’s real stockout hours; the other made the product sell out once it reached its normal daily level.
| Correction | How it works | Real stockout pattern | Sell-out |
|---|---|---|---|
| No correction | Use sales as demand. | 0% | 0% |
| Day rule | Count a day as in stock if it sold anything. | 12% | 0% |
| In-stock hours | Scale sales by the share of hours the item was on the shelf. | 113% | 85% |
| Hour-of-day profile | Weight each in-stock hour by how much that hour normally sells. | 97% | 64% |
Share of the removed demand each correction recovered. Above 100% means it overshot. Both hour-level corrections fall short under sell-out, which is why we treat the 22–25% range as conservative.
What it means for your forecast
Forecast demand, not just sales
- Keep a stock history. You cannot correct for stockouts you never recorded. Daily on-hand counts are the minimum; time-stamped stock levels are better.
- Don’t rely on zero-sales days. Most stockouts start after the first sale of the day.
- Expect the gap to move with the season. Busy months hide the most demand, so an uncorrected forecast falls furthest behind exactly when it matters.
How Spark Inventory handles it
Demand ESP, Spark’s forecasting engine, reads your stock history to find when each item was out of stock and estimates the demand lost in each month, so the forecast learns from demand rather than from the shortage. Where your stock records allow it, it counts availability hour by hour, the kind of correction that recovered most of the missing demand in this study.
In our public-data forecasting test on 799 Iowa products, Demand ESP’s six-month forecast error was 30% lower than forecasting from last month’s sales.
Methodology
Data and method
Data. FreshRetailNet-LT by Dingdong-Inc, released under CC BY 4.0 (revision dcf72462): 7,869,549 store-product days, 22,939 store-product pairs, 1,057 stores, 2023-06-05 to 2025-07-13. Each day records sales and an in-stock or out-of-stock flag for every hour. We used the trading hours 06:00 to 21:59, matching the publisher’s own stock-hour count.
Stockout facts. Computed on every row. A 30-day window is 30 consecutive days of one store-product pair, counted from its first day in the data.
Hidden demand. For each window, estimated demand is observed sales scaled up by the time the item was available. One estimate counts in-stock hours; the other weights each hour by that product category’s normal hourly sales, measured on days with no stockout. Hidden demand is estimated demand minus sales, as a share of estimated demand. These are estimates, not observed demand, and the controlled test above shows how far each one can be off.
Pre-registration. The analysis plan was written and committed on 2026-11-21, before any result was computed, and the results were added below it without changing it. An earlier 90-day sample from the same publisher (FreshRetailNet-50K) gave nearly the same picture: 19.9% of trading hours out of stock and 83% of stockout hours on days with a sale.
Limits. One retailer’s fresh grocery stores in China. Quantities are rescaled by the publisher. Other categories, channels and countries will show different levels; the late-day pattern and the day-level blind spot are the parts most likely to carry over.
Cite this study
Spark Inventory (2026). How much demand do stockouts hide? An analysis of 7,869,549 store-product days of hourly sales and stock data (FreshRetailNet-LT). https://sparkinventory.com/research/stockouts-hidden-demand/
You may quote and chart these figures with a link to this page. Please also credit FreshRetailNet-LT by Dingdong-Inc (CC BY 4.0) and keep the dataset label with the numbers.
Questions
How much demand do stockouts hide?
In this study of 7,869,549 store-product days of fresh grocery data, stockouts hid an estimated 22% to 25% of demand. Hidden demand ran near 30% in summer and about 15% in late autumn and winter. The range comes from two estimation methods, and both tend to underestimate when items sell out, so the true figure is more likely higher than lower.
Why do sales understate demand?
Sales only record what was on the shelf to sell. When an item runs out, customers who wanted it leave without buying it, or buy something else, and none of that appears in the sales history. A forecast trained on those sales learns the shortage as if it were low demand, which leads to ordering too little and running out again.
Why does a zero-sales day miss most stockouts?
Most stockouts happen late in the day, after the item has already sold. In this data, 79.1% of out-of-stock hours fell on days that still recorded a sale, so a rule that only flags days with no sales treats about nine in ten stockout days as normal. Stockouts climbed from 8% of the 06:00 hour to 44% of the 21:00 hour.
How do you estimate lost sales from stockouts?
Measure how long the item was actually available, then scale the sales you saw up to a full period. The more precise the availability record, the better: in a controlled test, scaling by in-stock hours or by an hour-of-day sales profile recovered most of the missing demand, while a day-level rule recovered 12% or less.
Does this apply to my business?
The data comes from fresh grocery stores in China, where products sell many times a day and shelves empty in the evening. The size of the effect will differ for other products and countries, but the mechanism is general: any item that runs out records lower sales than its real demand, and a day-level check misses stockouts that start after the first sale.
Can I use these figures?
Yes. Cite this page as the source and credit the FreshRetailNet-LT dataset by Dingdong-Inc (CC BY 4.0). Please keep the dataset label (fresh grocery, China, June 2023 to July 2025) next to any figure you quote.
