All guides

InventoryAugust 30, 20269 min read

How to Prevent Stockouts on Shopify

Why Shopify stores run out of stock, and the specific habits — reorder points, safety stock, and supplier tracking — that actually prevent it.

A stockout is demand that arrives after available inventory has already hit zero. It isn't a mystery when it happens, even though it usually feels like one — every stockout traces back to either a demand number or a lead-time number that turned out to be wrong.

Why stockouts happen

Strip away the specifics and every stockout on this list comes from one of two directions. Either more demand showed up than your reorder point assumed, or the replenishment that was supposed to arrive before you ran out took longer than planned. Sometimes both happen on the same SKU at once, which is why a stockout that "came out of nowhere" is usually two smaller surprises compounding rather than one big one.

This is a different problem from a low stock level. Low stock is still sellable; a stockout is zero available units with live demand behind it. Everything below is a specific way one of those two directions goes wrong, followed by the habits that catch it before it turns into an actual stockout.

Demand-side causes

  • A sales spike your reorder point didn't account for. A promotion, a press mention, or a seasonal surge can push real demand well past the average your reorder point was built on, and the buffer that would normally absorb some of that gets used up faster than expected.
  • A velocity average that's gone stale. A reorder point calculated from a full year's average understates a SKU that's been trending up for the last quarter, and keeps understating it until someone recalculates from a more recent window.
  • A new product with no sales history to forecast from. Early demand for a brand-new SKU is a judgment call more than a calculation, and it's easy to under-order out of caution, then get caught by real demand exceeding the conservative guess.
  • An inventory count that was already wrong. If the number Shopify shows isn't the number actually on the shelf, the reorder point is comparing against a fiction, and the gap only becomes visible the day it hits zero for real.

Supply-side causes

  • A late purchase order. The most direct supply-side cause: a shipment that was supposed to land before the reorder point's lead-time window closed, and didn't. Managing a late purchase order covers what to do the moment this happens and how to feed the real delay back into future planning.
  • A lead-time assumption that's stale. A supplier that used to take 10 days and now takes 18 doesn't send a notice. If the reorder point still assumes 10, the buffer is spent days before the shipment actually arrives.
  • A partial shipment treated as a full one. Receiving less than what was ordered, without adjusting expectations for the shortfall, leaves a store believing it's better covered than it actually is.
  • A single-supplier dependency with no fallback. One supplier's disruption, whether a shipping delay or their own stockout, becomes your stockout with no second source to lean on.

Does forecasting prevent them?

Forecasting helps directly with the demand-side causes above: a method that actually reflects your recent trend, seasonality, and promotional history produces a reorder point that's closer to real demand than a flat average ever will be. The complete guide to Shopify inventory forecasting covers the full process behind that number.

What forecasting can't do is guarantee zero stockouts. Even a well-built forecast is a probability, not a promise — the safety-stock formula's own math states plainly that a 100% service level is statistically unattainable, because there's always some chance of a bigger-than-usual spike or a longer-than-usual delay. A good forecast narrows that range and makes stockouts rarer and smaller; it doesn't remove the possibility entirely, and any claim that it does should be treated with suspicion.

Prevention checklist

  • Recalculate reorder points from a recent sales window, not a stale full-year average. See the reorder point formula for the calculation itself.
  • Size safety stock deliberately, per SKU, instead of copying one flat buffer across the whole catalog. The safety stock guide covers both the quick rule of thumb and the exact statistical formula.
  • Watch for early warning signs before a SKU actually hits zero, not after. See the warning signs a stockout is coming.
  • Catch a late purchase order the day it's overdue, not the week a customer asks why a product still isn't back. See managing a late purchase order.
  • Review your fastest-moving and highest-margin SKUs more often than the rest of the catalog — a stockout on either one costs more than the same event on a slow, low-stakes product.

Doing all five by hand, across a real catalog, is the part that quietly stops happening once a store passes what one person can track in a spreadsheet. StockCue runs the reorder-point and lead-time checks above nightly against live sales data, on every plan including Free.

Frequently Asked Questions

Why do Shopify stores run out of stock?

Almost always one of two things: a demand-side surprise (sales ran ahead of what your reorder point assumed) or a supply-side surprise (the replenishment took longer than planned). Most recurring stockouts trace to one of these being treated as a one-time event instead of a number worth tracking and updating.

Can inventory forecasting fully prevent stockouts?

No. Forecasting narrows the range of demand you plan around, which reduces how often you're caught off guard, but it can't predict every spike, every supplier delay, or every viral moment. A 100% service level is statistically unattainable regardless of how good the forecast is — the honest goal is fewer, smaller stockouts, not zero.

What's the fastest habit to adopt to prevent stockouts?

Recalculating reorder points from a recent sales window rather than a stale annual average. It's the single change with the most immediate effect, because a reorder point built on outdated velocity is wrong in a way that compounds every cycle until someone catches it.

Do late purchase orders cause most stockouts, or is it usually a demand-side surprise?

No general source establishes which cause dominates across small stores, and it likely varies by category and supplier relationship. The more useful move than guessing is tracking your own stockouts for a quarter and tagging each one as demand-side or supply-side — that tells you which half of this guide to focus on first for your specific catalog.

STOCKCUE

StockCue's reorder alerts (every plan, including Free) and PO-late / PO-arriving-soon alerts (Starter and up) are built directly at the two cause categories in this guide: demand-side surprises and supply-side delays.

Install StockCue on Shopify →

Where to go next: for the reactive side of this problem, once a product is already out of stock, see what to actually do when a Shopify product goes out of stock. To put a real number on what a past stockout cost you, see how to calculate what stockouts cost your store.

Devmerx

Devmerx is a Shopify and WordPress development agency helping DTC brands build faster stores, cleaner migrations, and higher-converting experiences. Based in London, UK, serving clients worldwide.

See our work

Need help with your Shopify store?

Devmerx builds and optimises Shopify stores for DTC brands. Book a free 20-minute consultation.