Safety stock is the buffer inventory a business holds above its expected demand to absorb variability in supply or demand. It's the cushion that prevents stockouts when a supplier ships late, demand spikes unexpectedly, or both happen at once.
Without variability, safety stock would be unnecessary — the business could time POs to arrive exactly when stock runs out. In practice, every supply chain has variability:
Safety stock is the answer to "how much extra do we hold to keep service levels acceptable when one or more of these go wrong?"
The simplest method — average daily demand × buffer days — works fine for low-variability SKUs. The more rigorous method accounts for both demand and lead time variability:
Safety stock = Z × √(Lead Time × Demand StdDev² + Demand² × Lead Time StdDev²)
Where Z is the service level factor (1.65 for 95% service, 2.33 for 99%). The intuition: the more variable demand and lead time are, the more buffer is needed; the higher the target service level, the more buffer is needed.
Too little safety stock causes stockouts — lost sales, frustrated customers, ad spend wasted on out-of-stock SKUs. Too much safety stock ties up working capital and creates dead stock risk. Most Shopify brands err in one of two directions: under-buffering on hero SKUs (because they assume bestsellers won't run out) and over-buffering on long-tail SKUs (because the cost of holding extra units feels small per SKU but adds up across the catalog).
Calculating safety stock properly requires historical demand and lead-time variability data that most brands don't have clean access to until it's centralized — usually in whatever system tracks purchase orders and receiving across suppliers. Shopify ERP integration work is often what makes that data usable in the first place, connecting the order and inventory systems the formula actually depends on. And because safety stock levels drift as demand and lead times shift, the quarterly review this page recommends is exactly the kind of gap an ecommerce audit is built to catch, alongside the rest of the inventory and operational assumptions a brand may not have revisited in a while.
The demand and lead-time variability the safety stock formula above depends on is not something to eyeball once and set aside — it comes from an ongoing forecasting practice, and getting that forecast wrong in either direction undermines the buffer calculation as much as skipping it. For the forecasting side of that problem, see this guide to Shopify inventory forecasting.
Get a free ecommerce SEO audit. Our team reviews your Shopify store and sends findings back within a couple of days.