To understand this guide’s operational framework, start with Smart stockout alerts. The parent page details inputs, business rules, exceptions and the expected result.

How do you anticipate an ecommerce stockout?

Short answer. To anticipate stockouts, calculate available coverage per SKU from saleable stock, open orders and sales velocity. Compare it with supplier lead time plus a safety-stock allowance and alert before timely replenishment becomes impossible.

Why a fixed threshold is insufficient

A fixed threshold (for example alerting at 10 units remaining) ignores sales velocity. Ten units offer a week’s buffer for a slow mover but only hours for a bestseller during peak demand.

Combine sales velocity and replenishment lead time

An intelligent alert considers recent product sales velocity and actual supplier lead time, triggering when just enough time remains to place and receive a new order without a stockout.

What this prevents in practice

A successful product’s stockout has a direct cost (lost sales) and an indirect one: customers finding it unavailable often move to a competitor, sometimes permanently. Anticipation limits both effects.

The expected result

With this type of alert, replenishment orders are placed early enough that stockouts usually never occur.

A concrete example

A cleaning-products retailer used a fixed 20-unit threshold across its catalogue. Suitable for most references, it proved far too late for three bestsellers whose sales velocity far exceeded the rest during seasonal peaks. Once thresholds were calculated dynamically from recent sales velocity and actual supplier lead time per product, those three references had no stockouts the next season, although they had caused most stockouts the previous year.

How to implement it, step by step

1. Calculate recent sales velocity per product. A rolling two-to-four-week average reflects current dynamics better than an annual average smoothing seasonal variations.

2. Know actual replenishment lead time by supplier. This may differ from stated contractual timing and must be based on actual previous delivery history.

3. Calculate a dynamic alert threshold. The threshold should equal stock needed to cover expected sales during replenishment lead time, with a reasonable safety buffer.

4. Prioritise commercially important products. Start with bestsellers, where stockout costs are highest, before extending dynamic calculations across the catalogue.

5. Adjust after every seasonal peak. High-demand periods often reveal supplier lead-time or safety-threshold adjustments needed for the next season.

Mistakes to avoid

Using one threshold for the entire catalogue. The same threshold for fast and slow movers is guaranteed to be poorly calibrated for one of them.

Using contractual rather than actual supplier lead time. Stated supplier timing can be optimistic compared with effective lead times recorded in your order history.

Ignoring short-term sales trends. A recent sales acceleration not reflected in an annual average can make a usual threshold obsolete overnight.

Not prioritising strategic products. Applying equal rigour to all products dilutes attention on references where stockout impact is greatest.

This use case also contributes to the business solution Inventory, orders & operations, which brings together the associated commercial challenges without changing this guide’s parent relationship.

How the scope is defined

Timing and price depend on volume, the tools to connect, data quality and the expected level of human approval. After the diagnostic, you receive a precise scope, timeline and fixed price agreed before work starts.

How to measure the result

Stockout counts for strategic references before and after implementation are the most direct indicator. Average time between alert and replenishment receipt must remain consistent with actual supplier lead time. Estimated lost stockout revenue, tracked monthly, quantifies overall financial impact.

Adapt the approach to your team’s size

For a small catalogue of a few dozen references, regular manual bestseller monitoring remains feasible, but automatic alerts eliminate omissions during busy periods. With a larger catalogue and widely differing sales velocities, manually calculating a threshold per product is impractical, making automation the only realistic full-coverage option.

The role of your existing tools

A stock tool already centralising sales history and supplier replenishment lead times greatly eases dynamic calculations. Without that centralisation, data consolidation must precede automated threshold calculation.

Key takeaway

A stockout alert has value only if early enough for corrective action. A fixed catalogue-wide threshold is almost always too late for bestsellers or too early for slow movers.

Plan for change management

Purchasing may initially distrust a system deciding when to order. Present it as decision-support alerts, with the team retaining final replenishment approval at least in early rollout, before considering deeper automation if trust is confirmed.

Take your roadmap further

Intelligent stockout alerts naturally combine with sales forecasting and automatic carrier selection to cover the logistics chain from anticipating requirements to final delivery, rather than treating each link independently.

Signs that you are ready

If bestsellers suffered unexpected stockouts recently, or current thresholds are identical across the catalogue regardless of sales velocity, dynamic replenishment thresholds would immediately protect your most strategic references.

Frequently asked questions

Does this alert work for highly seasonal products?

Yes, provided sales-velocity calculations account for seasonal trends rather than a simple annual average, which would greatly underestimate stockout risk at demand peaks.

Can the system place replenishment orders automatically, not just alert?

Technically yes, but retain human approval at least for strategic suppliers or high-value orders to maintain control over financial commitments.

Should supplier stock also be monitored, not just your own?

It is a valuable additional signal when supplied: knowing supplier stock helps anticipate a shortage risk not solely dependent on your own sales velocity.

Must the alert connect directly to your supplier ordering system?

Not initially. An alert informing purchasing is enough at first; direct automatic order triggering can be considered later once trust is established.

Should customs or import delays be included for international suppliers?

Yes. Include these additional delays in actual replenishment lead time to avoid underestimating the time needed and alerting too late for overseas suppliers.

Is minimum safety stock needed even with a well-calibrated alert?

Yes. Safety stock remains advisable for unexpected supplier delays or sudden demand peaks; dynamic alerts complement rather than fully replace that buffer.

Should alert thresholds change during major promotions?

Yes. Promotions temporarily increase expected sales velocity, which must be anticipated in threshold calculations to avoid stockouts accelerated by the campaign’s own success.

Should alerts be shared with sales, not just purchasing?

Yes. Sales can adjust features or promotions for a product facing an anticipated shortage, limiting its commercial impact through coordination.

Should alert thresholds differ across sales channels?

Yes. If stock is shared, rapid marketplace sales may cause a stockout earlier than expected on the main site, a factor to include in overall calculations.

Want to know whether this type of automation applies to your shop?

View ‘Intelligent stockout alert’ automation Book my free assessment