esc

Jump to a ranking

Which Safety Stock Formula Is Right? The 2 Most-Copied Are Wrong

Use Z × √(LT × σd² + d² × σLT²). In our example max-minus-average held 680 units vs 98 needed, and lead-time-only held 33. Worked examples.

Updated 2026-11-26 · For T1, T2, T3, T4 · Planning, IMS

Use this formula:

Safety stock = Z × √(LT × σd² + d² × σLT²)

Here Z is set by the service level you want, LT is average lead time in days, σd is the standard deviation of daily demand, d is average daily demand, and σLT is the standard deviation of lead time in days. It covers both things that cause stockouts: demand coming in higher than usual, and the supplier arriving late. Set the service level by SKU class instead of using 95% for everything, and work out demand from days you were actually in stock.

The two formulas you’ll find in most search results each cover only part of that. The first is “(max daily usage × max lead time) − (average daily usage × average lead time).” It has no service level, and it bets on your worst day and your worst lead time happening together, so it usually overstocks by a lot. The second is “Z × σLT × average demand.” It looks only at lead-time variation and ignores demand variation, which for most DTC SKUs is the bigger risk. Both appear in Shopify’s guide (Shopify blog, 2022-01-06) and in countless copies of it.

Where do the common safety stock formulas come from?

Mostly from platform blogs and planning software vendors, and the best-known guide lists six methods without comparing them.

Platform blogs and inventory and planning software vendors write most of the top-ranking safety stock content. Shopify’s guide lists six methods (Shopify blog):

  • the max-minus-average formula
  • a fixed number of days of cover
  • “Heizer and Render’s” Z × σLT
  • a time-based approach
  • “Greasley’s” Z × σLT × Davg
  • EOQ

No worked example compares them, so you can’t see how far apart their answers are. Planning vendors such as Inventory Planner, Netstock, GMDH Streamline and Prediko sell the automated version. That’s a fair product, but you should know the math well enough to check what the software is doing.

One note on Shopify’s version of Heizer and Render: as written there, Z × σLT returns a number of days, not units. It only makes sense once it’s multiplied by demand, which is the Greasley version.

How do the three safety stock formulas compare?

Only the combined formula covers both demand swings and late suppliers. Max-min overstocks, and lead-time-only ignores demand.

Let:

  • d = average daily demand (units)
  • σd = standard deviation of daily demand
  • LT = average lead time (days), from PO placed to sellable at your warehouse
  • σLT = standard deviation of lead time (days)
  • Z = service factor: 1.28 for 90%, 1.645 for 95%, 2.05 for 98%, 2.33 for 99%. These are standard normal values, and Shopify quotes 1.65 for 95%.
FormulaWhat it coversWhat it ignores
Max-min: (max d × max LT) − (d × LT)Extremes, crudelyService level; how likely the extremes are to happen together
Lead-time only: Z × σLT × dLate suppliersDemand variability
Combined: Z × √(LT × σd² + d² × σLT²)BothAssumes demand and lead time are roughly independent and normal

Example 1: a volatile DTC SKU from a reliable domestic supplier

  • d = 20 units a day, σd = 15 (promos and influencer spikes)
  • LT = 14 days, σLT = 1 day
  • Your worst recent day was 60 units and your worst lead time was 16 days
  • Target: 95% (Z = 1.65)
FormulaSafety stock
Max-min: 60 × 16 − 20 × 14 = 960 − 280680 units
Lead-time only: 1.65 × 1 × 2033 units
Combined: 1.65 × √(14 × 225 + 400 × 1) = 1.65 × √3,55098 units

The lead-time-only formula holds a third of what’s needed, because the risk on this SKU is demand, not the supplier. Max-min holds almost seven times the combined figure. At a $12 unit cost, that’s an extra 582 units, or about $7,000 of cash tied up in one SKU, all to cover a bad day and a late truck arriving together.

Example 2: a steady SKU from an overseas supplier

  • d = 20, σd = 8
  • LT = 30 days, σLT = 7 days
  • Max day 40, max lead time 45 days
  • Z = 1.65
FormulaSafety stock
Max-min: 40 × 45 − 20 × 30 = 1,800 − 6001,200 units
Lead-time only: 1.65 × 7 × 20231 units
Combined: 1.65 × √(30 × 64 + 400 × 49) = 1.65 × √21,520242 units

Here the lead-time-only formula comes close, because lead time is the risk. That explains why the formula survives: it works for some SKUs. The combined formula handles both cases without you having to guess which risk dominates. Max-min is still about five times too high.

Which safety stock mistakes matter more than the formula?

Bad inputs: demand measured on stockout days, quoted instead of actual lead times, and one service level for every SKU.

  1. Measuring demand on days you were out of stock. If a SKU sold zero for 10 days because it was out of stock, those zeros pull down both d and σd, and the next order is too small. Calculate demand from days in stock only, or use a forecast.
  2. Using the supplier’s quoted lead time. Measure from PO sent to units sellable at your warehouse or 3PL, including freight, customs and receiving backlog. Calculate σLT from your actual POs.
  3. One service level for everything. 95% on every SKU overstocks the long tail. A common pattern is 97 to 99% for A items, 95% for B and 90% for C. Each step changes Z, and Z multiplies the whole result. These levels are an editorial suggestion, not a benchmark.
  4. Forgetting the review period. The formula assumes you can reorder any day. If you place POs weekly or monthly, replace LT with LT plus the review period. Otherwise you’ll stock out between reviews.
  5. Not recalculating after promotions. A launch or sale changes σd. Recompute after big events, and plan promo inventory separately rather than letting it inflate safety stock for the rest of the year.
  6. Splitting stock across warehouses. Each node needs its own buffer, so total safety stock rises when you add warehouses. Factor this into any decision about going multi-node.

How do you turn safety stock into a reorder point?

Add expected demand over lead time plus the review period to your safety stock.

Reorder point = d × (LT + review period) + safety stock

For Example 1 with a weekly review: 20 × (14 + 7) + safety stock. The safety stock also has to use LT + 7 = 21 days: 1.65 × √(21 × 225 + 400 × 1) = 1.65 × √5,125 ≈ 118. So the reorder point is 420 + 118 = 538 units.

Safety stock calculator (coming soon)

Inputs: average and standard deviation of daily demand, average and standard deviation of lead time, target service level, review period, MOQ and unit cost.

Outputs: safety stock under all three formulas side by side, the reorder point, the order-up-to level, and the dollars tied up under each formula.

How to set safety stock for your SKUs in 5 steps

  1. Export 6 to 12 months of daily sales by SKU and remove stockout days.
  2. Pull your actual PO-to-sellable lead times and compute the average and standard deviation for each supplier.
  3. Use the combined formula, with the review period added to lead time if you don’t reorder continuously.
  4. Assign service levels by ABC class, and check the dollars tied up per class.
  5. Recompute monthly and after every major promotion. If your inventory or planning tool computes safety stock, ask it to show the formula it uses and run Example 1 through it.

Sources

  1. Shopify blog: Safety stock (published 2022-01-06) · shopify.com · accessed 2026-11-26