All challenges and every certification for $9 a month. And learn to build, buy and guide AI agents for supply chain: https://www.skool.com/supplychain

Safety Stock Formula: From a Service Level to a Number of Units, Step by Step

Published November 13, 2026

New here? Play what you are reading about. The first 5 challenges are free, no card needed. Create a free account and start.

The basic safety stock formula is Safety stock = z × σd × √L: the z-value for your target cycle service level, times the standard deviation of demand per period, times the square root of the lead time in the same periods. When lead times also vary, use z × √(L × σd² + d² × σL²).

This guide takes you from a service level target to a number of units step by step, with a worked example, a z-value table, the reorder point that follows from it, and an exercise.

What safety stock is for

Safety stock is the extra inventory held to cover demand that is higher than expected, or supply that arrives later than expected, during the replenishment lead time. Without it, you run out whenever demand during the lead time is above average, which happens about half of the time.

How much safety stock you need depends on three things:

  1. How uncertain demand is (its standard deviation)
  2. How long you are exposed (the lead time)
  3. How rarely you are willing to run out (the cycle service level)

Step 1: choose the cycle service level and find z

The cycle service level is the probability of not running out during one replenishment cycle. The z-value converts that probability into a number of standard deviations.

Cycle service level z
80% 0.84
85% 1.04
90% 1.28
95% 1.645
97% 1.88
98% 2.05
99% 2.33
99.5% 2.58

In Excel or Google Sheets: =NORM.S.INV(0.95) returns 1.645.

Notice how fast z grows at the top. Going from 95% to 99% needs 42% more safety stock. Going from 99% to 99.5% needs another 11%. Choosing the target is an economic decision, covered in Optimal Cycle Service Level.

Step 2: measure demand variability

Take the standard deviation of demand per period (σd) from history, using the same period as the lead time: daily demand if the lead time is in days, weekly if it is in weeks.

Better still, measure the standard deviation of the forecast error rather than of demand itself. If you forecast well, the error is smaller than the raw variation, and you need less safety stock.

Step 3: scale it to the lead time

Variability over several periods does not add up linearly. If periods are independent, the standard deviation over L periods is:

σ over lead time = σd × √L

Worked example: constant lead time

A distributor sells a filter cartridge.

  • Average daily demand d = 120 units
  • Standard deviation of daily demand σd = 30 units
  • Lead time L = 9 days, and the supplier is reliable
  • Target cycle service level = 95%, so z = 1.645

σ over lead time = 30 × √9 = 30 × 3 = 90 units

Safety stock = 1.645 × 90 = 148 units

The reorder point follows directly:

Reorder point = d × L + safety stock = 120 × 9 + 148 = 1,228 units

Every time the stock on hand plus on order falls to 1,228, a new order goes out.

Worked example: when the lead time also varies

Now the supplier is less reliable. The lead time still averages 9 days, but with a standard deviation σL = 2 days.

Safety stock = z × √(L × σd² + d² × σL²)

  • L × σd² = 9 × 30² = 8,100
  • d² × σL² = 120² × 2² = 14,400 × 4 = 57,600
  • √(8,100 + 57,600) = √65,700 = 256.3

Safety stock = 1.645 × 256.3 = 422 units

The reorder point rises to 120 × 9 + 422 = 1,502 units.

An unreliable supplier almost tripled the safety stock, from 148 to 422 units, without any change in customer demand. That is why lead time reliability is often the cheapest place to cut inventory. See Lead Time Decomposition Explained.

What the formula assumes

  • Demand per period is roughly normally distributed. For slow movers with many zero-demand days, it is not, and the formula overstates or understates the need.
  • Demand and lead time are independent of each other.
  • The service level is a cycle service level, not a fill rate. Using a 98% fill rate target as if it were a cycle service level gives far too much stock. See Cycle Service Level vs Fill Rate.
  • The review is continuous. If you only check stock every R days, replace L with L + R.

Common mistakes

  • Mixing periods: weekly standard deviation with a lead time in days.
  • Using one service level for every item. A-items, slow movers and critical spares deserve different targets.
  • Never updating the inputs. Demand variability and supplier reliability change; recalculate at least every quarter.
  • Forgetting the review period in periodic-review systems.

Exercise

A hospital pharmacy uses an average of 50 boxes of gloves a day, with a standard deviation of 15. The supplier delivers in exactly 16 days. The target cycle service level is 98%.

  1. What safety stock is needed?
  2. What is the reorder point?

Solution

  1. z for 98% = 2.05. σ over lead time = 15 × √16 = 60. Safety stock = 2.05 × 60 = 123 boxes.
  2. Reorder point = 50 × 16 + 123 = 923 boxes.

Questions people ask

What is the simplest safety stock formula?
Some teams use "average daily demand × days of cover", for example two weeks of stock. It is easy, but it ignores how variable each item is, so it gives too much on stable items and too little on volatile ones.

Does more safety stock always mean better service?
It raises the cycle service level, but with diminishing returns. The last few percentage points cost the most units.

How is safety stock different from cycle stock?
Cycle stock is the inventory that comes from ordering in batches and is used up between deliveries. Safety stock is the buffer underneath it. See Cycle Stock Explained.

Practise it

In Play Supply Chain you set reorder points under uncertain demand and see the stockouts and the stock you carry. Start with the free challenges.

Related reading

Don't just read about supply chains. Play them.

  • The first 5 challenges are free, with the same game engines and debriefs as Premium
  • Your stars and your level are saved to your profile
  • No credit card, no spam

More in Planning

The first 5 challenges are free, no card needed.

Create a free account