Standard Deviation Method or Z-score Method

Lesson5 min readCalculation & Safety Stock

Safety stock is the extra inventory you hold to protect against uncertainty in demand and supply during replenishment lead time. The standard deviation (Z-score) method calculates it statistically: you measure how much demand varies, choose the service level you want, and the formula tells you how many units of buffer that service level requires.

What safety stock does, and what it does not

Between placing an order and receiving it, you sell from stock. On average you will sell about average demand × lead time. Sometimes demand runs higher or the delivery is late, and that is when safety stock keeps customers from being turned away. It is not meant to cover constant, predictable demand. That belongs in the order quantity and reorder point.

The formula

Safety stock = Z × σd × √L

Symbol Meaning
Z Number of standard deviations needed for the target service level (from a normal distribution table)
σd Standard deviation of demand per period (for example per day)
L Lead time, in the same period unit as σd

The square root of lead time appears because, when daily demands are independent, variances add across days while standard deviations do not: the standard deviation over L days is σd × √L.

Choosing Z: the service level

The service level here is the cycle service level: the probability of not stocking out during a replenishment cycle. Common values:

Service level Z Meaning
90% 1.28 About 1 cycle in 10 ends in a stockout
95% 1.645 About 1 cycle in 20
97.5% 1.96 About 1 cycle in 40
99% 2.33 About 1 cycle in 100
99.9% 3.09 About 1 cycle in 1,000

In Excel or Google Sheets you can get Z for any level with =NORM.S.INV(0.95).

Worked example

Average daily demand is 200 units, with a daily standard deviation of 30 units. Lead time is a reliable 10 days, and you want a 95% service level.

SS = 1.645 × 30 × √10 = 1.645 × 30 × 3.162 ≈ 156 units

The reorder point is demand during lead time plus safety stock:

ROP = 200 × 10 + 156 = 2,156 units

When inventory position falls to 2,156 units, place a new order.

The cost of a higher service level

Service level is a business decision with a price tag. For the same item, lead-time demand standard deviation is 30 × √10 ≈ 94.9 units:

Service level Z Safety stock (units) Change vs 95%
90% 1.282 122 −22%
95% 1.645 156 baseline
97.5% 1.960 186 +19%
99% 2.326 221 +41%
99.9% 3.090 293 +88%

Going from 95% to 99% adds 41 percent more safety stock, and 99.9% nearly doubles it. Reserve the highest service levels for items where a stockout is costly (critical spares, A items) and accept lower levels for slow or cheap items.

When lead time also varies

Many stockouts come from late deliveries rather than demand spikes. If lead time itself varies, with standard deviation σL, use the combined formula:

SS = Z × √( L × σd² + d² × σL² )

Here d is average demand per period. Using the same item with a lead-time standard deviation of 2 days:

  • L × σd² = 10 × 30² = 9,000
  • d² × σL² = 200² × 2² = 160,000
  • √(9,000 + 160,000) ≈ 411
  • SS = 1.645 × 411 ≈ 676 units

That is more than four times the demand-only figure. In this example, supplier reliability matters far more than demand variability, so improving supplier lead-time consistency can cut inventory more than refining forecasts. You can feel this effect in level 3 of Reorder Point Rush, which uses an unreliable supplier.

Practical tip
If you have a forecast, use the standard deviation of the forecast error rather than the standard deviation of raw demand. Safety stock exists to cover what the forecast misses, not demand that was predictable.

Assumptions and limits

  • Demand is roughly normally distributed and independent from day to day. Check this before trusting the result.
  • Intermittent or highly skewed demand (spare parts, slow movers) breaks the normal assumption. Consider Monte Carlo simulation or other distribution-based methods.
  • Use enough history, typically at least 12 to 24 periods, and remove one-off events such as stock-outs or promotions that distort the data.
  • σ must be in the same time unit as L. To convert, σ(week) = σ(day) × √7 when days are independent.
  • Cycle service level is not fill rate. Fill rate is the share of units demanded that you can ship from stock, and it needs the expected shortage per cycle to calculate.

Common mistakes

  • Mixing units, such as monthly σ with a lead time in days.
  • Ignoring lead-time variability, which often dominates.
  • Setting the same service level for every item instead of segmenting with ABC classification.
  • Calculating once and never revisiting it as demand and suppliers change.

Key takeaways

  • Safety stock = Z × σd × √L when only demand varies.
  • Z comes from the service level you choose. Higher service level costs disproportionately more stock.
  • If lead time varies, include it. It can multiply the answer several times.
  • Reorder point = average lead-time demand + safety stock.

Put it into practice

Ready-made tools that apply this topic:

Browse all templates and bundles →

Frequently asked questions

What is the safety stock formula using standard deviation?

Safety stock = Z × σd × √L, where Z is the service-level factor, σd is the standard deviation of demand per period and L is the lead time in the same period unit. For σd = 30, L = 10 days and 95 percent service, it is about 156 units.

What Z-score should I use for a 95 percent service level?

Use Z = 1.645 for a 95 percent cycle service level. Other common values are 1.28 for 90 percent, 1.96 for 97.5 percent, 2.33 for 99 percent and 3.09 for 99.9 percent.

How do I include lead time variability in safety stock?

Use SS = Z × √(L × σd² + d² × σL²), where σL is the standard deviation of lead time and d is average demand per period. Lead-time variability often adds far more safety stock than demand variability.

What is the difference between cycle service level and fill rate?

Cycle service level is the probability of not stocking out in a replenishment cycle. Fill rate is the percentage of demanded units shipped from stock. A 95 percent cycle service level usually gives a fill rate higher than 95 percent.

When should I not use the Z-score method?

Avoid it for intermittent, highly skewed or very low-volume demand, where the normal distribution is a poor fit. Distribution-based or simulation methods work better in those cases.