Unconstrained demand: what you would have sold without a stockout

On this page

Are your price elasticities calculated based on your sales or on your actual demand?

Let's plan an exchangeDiscover our sales forecasting software
Definition

Unconstrained demand is an estimate of what customers would have purchased if the product had always been available. Zero sales do not mean zero demand: the product may have been out of stock. In pricing, an unreported out-of-stock situation creates the impression that a price increase caused sales to drop, and distorts the elasticity.

The Essentials

  • Sales measure what was sold, not what customers wanted to buy.
  • An unreported stockout distorts the forecast and the price elasticity calculated based on historical data.
  • Identifying and flagging stockout periods already solves most of the problem.

In 6 Questions

What?

Real demand, corrected for stockouts.

Who is it for?

Pricing managers, forecasters, data scientists.

When?

Before calculating an elasticity or a forecast.

Where?

For products that are frequently out of stock or of high importance.

Why?

Don't confuse a lack of inventory with a lack of interest.

How?

By cross-referencing sales and inventory on a day-by-day basis.

Observed Sales and Actual Demand

A sales history is a record of what the store has been able to sell.

LocationWhat the Sales Figures ShowWhat Happened
Product available12 sales12 customers served: Sales reflect demand
Out of stock during the day5 salesAt least 5 customers, probably more
Complete Breakdown0 salesUnknown demand, but not zero
Back in Stock20 salesUsual demand plus deferred purchases

When viewed without inventory, this time series shows an unstable product. When viewed with inventory, it shows a consistent product with insufficient supply.

Statisticians refer to this as "censored sales": the recorded value is an upper bound, not the true measure.

Why This Distorts Price Elasticity

Price elasticity relates changes in price to changes in sales. Any decline in sales unrelated to price affects price.

First scenario: A price increase is followed by a sales slump. Sales plummet, and the analysis attributes this drop to the price. The product appears to be very price-sensitive. There will be hesitation to raise the price again—wrongly so.

Second scenario: A promotion clears out inventory in three days. Sales plateau, and the promotion seems ineffective. We would conclude—also incorrectly—that this product does not respond to discounts.

In both cases, the coefficient appears accurate but is actually incorrect. We discuss these precautions in detail in the article onprice elasticity calculated by AI.

How can we estimate actual demand?

There are two levels of treatment. The first one resolves most cases.

  • Report stockouts: Mark days with no inventory so that the model does not interpret them as a lack of demand.
  • Estimate missing sales: use data from the same days in previous weeks, or from comparable stores that remained fully stocked.
  • Interpreting the downturn and recovery together: The subsequent rebound includes deferred purchases, which should not be counted twice.
  • Documenting the hypothesis: A reconstructed demand remains an estimate, not a measurement.

Without this treatment, the model learns a downward forecasting bias, which perpetuates stockouts. This is the mechanism described in our article on the link between stockouts and poor sales forecasting.

The Limitations of the Exercise

Estimating a demand that has not been observed involves an inherent degree of uncertainty.

  • It's unclear who waited: some customers postponed their purchase, while others went to a competitor.
  • Time makes all the difference: a one-day stockout can be reconstructed well, a six-week stockout much less so.
  • Out-of-stock notices aren't always clear: online, extended delivery times can discourage customers without actually showing that an item is out of stock.
  • Zero sales do not always indicate a disruption: some products naturally experience intermittent demand.

Our belief: Before optimizing a price, we verify that the sales used in the calculation were not constrained by inventory. This check is part of the process of preparing sales history data, which precedes our AI-powered sales forecast.

See also in the glossary:lags · global model · ARIMA and exponential smoothing · probabilistic forecasting

Frequently Asked Questions

Short answers to the most frequently asked questions about the "décontrainte" request.

What is unconstrained demand?

Unconstrained demand is an estimate of what customers would have purchased if nothing had limited their purchases. Recorded sales measure only what was actually sold. When a product is out of stock, part of the demand does not appear anywhere in the data. Unconstrained demand involves reconstructing this missing portion. The term comes from revenue management, where the goal was to estimate reservations that were declined due to a lack of available seats.

What is the difference between observed sales and actual demand?

Observed sales are what the cash register recorded. Actual demand is what customers wanted to buy. The two coincide as long as the product is available. They diverge as soon as a constraint arises: out-of-stock situations, unacceptably long delivery times, or quantity limits per customer. Sales then fall short of demand. A model trained on sales data alone learns that demand is lower than it actually is and then replicates this in its forecasts.

What are censored sales?

We speak of “censored sales” when the recorded value is a ceiling rather than the true value. If a store had ten units in stock and sold them all before noon, we know that demand was at least ten, without knowing by how much it exceeded that figure. Information beyond the stock level is hidden, much like a measuring instrument that has reached its limit. The term is borrowed from statistics, which has specific methods for handling this type of data.

How does a stockout distort price elasticity?

Elasticity is calculated by correlating changes in price with changes in sales. If a stockout occurs after a price increase, the drop in sales is attributed to the price when in fact it stems from inventory levels: the product appears to be more price-sensitive than it actually is. Conversely, a stockout during a promotion caps sales and makes the promotion appear less effective. In both cases, the resulting coefficient leads to poor pricing decisions.

How can we estimate the unconstrained demand?

The first step—which is often sufficient—is to identify stockout periods by cross-referencing sales and inventory data, and then to flag these periods to the model so that it does not mistake them for a lack of demand. To go a step further, we estimate the missing sales based on comparable periods: the same days in previous weeks, the sales pattern observed immediately before the stockout, or sales from comparable stores that remained fully stocked. The estimate remains an assumption and should be documented as such.

Should demand be reconstructed for every stockout?

No. Efforts should focus on products where the stakes justify it: those that have a significant impact on profit margins, those whose prices are set to be adjusted, and those that are frequently out of stock. For the rest of the catalog, simply flagging days when items are out of stock is enough to avoid most of the bias. Carefully reconstructing sales data for thousands of slow-moving SKUs adds complexity and uncertainty without measurably improving decision-making.

How Should You Handle a Sales Rebound After a Shortage?

Treat this with caution. When the product returns to stock, sales often rebound to a level above the usual pace because some customers have been waiting. This rebound does not represent a sustained increase in demand. If you have already accounted for the sales lost during the out-of-stock period, counting this rebound as well amounts to counting the same purchases twice. The stockout period and the days that follow should therefore be analyzed together, not separately.

Key Takeaways

  • Unconstrained demand is actual demand, after adjusting for the effect of shortages.
  • An unreported stockout distorts price elasticity and forecasting.
  • Reporting stockout days addresses the basics; restocking is reserved for high-stakes products.

Would you like to have elasticity calculated based on your actual request?

Booper identifies stockouts in your historical data before calculating forecasts and elasticities.

Let's talk about your sales data →Discover our sales forecasting software

These articles can
interest you

This is some text inside a div block.
Booper illustration: shelf with an empty spot, out of stock
Out-of-Stock Situations: The Direct Link to Poor Sales Forecasting

A stockout is almost never a logistical accident: it’s the result of a forecast that underestimated demand. It then skews the historical data, since lost sales appear as weak demand, and sets the stage for the next stockout.

Pricing is affected in two ways. A promotion on a sold-out item underestimates its own impact and makes demand appear less price-sensitive than it actually is. Price is also the quickest way to curb demand before the shelf runs out.

August 20, 2026
Read the article →
This is some text inside a div block.
Illustration: Price Elasticity and AI: Robust Models for Managing Margins
From Coefficients to Price Elasticity: Setting Prices with AI

AI does not make elasticity estimates more accurate for products that are already well known. Above all, it allows us to estimate a credible value for the long tail by sharing information between a reference product and its product family, and to separate the effect of price from that of promotions, out-of-stock situations, and seasonality.

Extreme flexibility is often the first sign of a data issue. And a model is only useful if the team understands its recommendations: projects fail more often because of organizational issues than because of the algorithm.

March 16, 2026
Read the article →
This is some text inside a div block.
Booper Illustration: Sales History Analyzed Over Time, Bars, and Clock
What Sales History Is Needed to Make Accurate Forecasts? The Complete Guide

How much historical data is needed for forecasting? It depends on the category, but reliability matters more than depth: historical data in which breaks, promotions, and price changes are dated is better than a long, unprocessed data set.

Two factors are often overlooked: the history of prices paid—without which elasticity cannot be measured—and the years of inflation, as reflected in volume figures. The adjustment begins with the items that account for the bulk of sales.

August 20, 2026
Read the article →
Want to discuss your pricing strategy?
30 minutes with our teams, with no obligation.
Request an exchange