The inputs and the formula
- d: average demand per period, here per day, from
=AVERAGEover a history of recent demand (not sales, if stock-outs cut sales). - σd: the standard deviation of demand per period, from
=STDEV.S. - L and σL: the average lead time and its standard deviation, in the same time unit as demand.
- z: the number of standard deviations for the target cycle service level: 1.282 for 90%, 1.645 for 95%, 2.326 for 99%.
The square root term is the standard deviation of total demand during the lead time. L × σd² is the demand uncertainty over L days, and d² × σL² is the uncertainty from the lead time itself. In Excel: =ROUNDUP(NORM.S.INV(B16)*SQRT(B13*B21^2+B20^2*B14^2),0). Round up, because stock comes in whole units.
Step by step with the example
1. Demand statistics. Ten days of demand give d = 121 and σd = 18.97. 2. z value. =NORM.S.INV(0.95) = 1.645. 3. Demand variation only. 1.645 × 18.97 × √8 = 88.3, rounded up to 89 units. 4. With lead time variation. L × σd² = 8 × 359.8 = 2,878 and d² × σL² = 14,641 × 4 = 58,564. The square root of the sum is 247.9, times 1.645 gives 407.7, so 408 units. 5. Reorder point. 121 × 8 = 968 units of expected lead-time demand plus 408 = 1,376: when the inventory position falls to 1,376 units, order.
The comparison is the main lesson of this example: a two-day standard deviation in delivery time costs far more buffer than the daily demand swings. Reducing lead time variability with the supplier is often cheaper than holding the stock. At a unit cost of 24 and a holding cost of 25% a year, the 408 units tie up about 2,448 a year.
Worked example: safety stock and reorder point for one item
Ten days of demand and the lead-time inputs are yellow. The calculation block uses AVERAGE, STDEV.S and NORM.S.INV and compares two formulas and the max-minus-average method.
| A | B | |
|---|---|---|
| 1 | Daily demand history | Units |
| 2 | Day 1 | 112 |
| 3 | Day 2 | 135 |
| 4 | Day 3 | 98 |
| 5 | Day 4 | 141 |
| 6 | Day 5 | 120 |
| 7 | Day 6 | 104 |
| 8 | Day 7 | 150 |
| 9 | Day 8 | 127 |
| 10 | Day 9 | 93 |
| 11 | Day 10 | 130 |
| 12 | Input | Value |
| 13 | Average lead time (days) | 8 |
| 14 | Std dev of lead time (days) | 2.0 |
| 15 | Maximum lead time (days) | 12 |
| 16 | Target cycle service level | 95% |
| 17 | Unit cost | 24.00 |
| 18 | Holding cost per year (% of unit cost) | 25% |
| 19 | Calculation | Result |
| 20 | Average daily demand d | 121.0 |
| 21 | Std dev of daily demand σd | 18.97 |
| 22 | z for the service level | 1.645 |
| 23 | Safety stock, demand variation only | 89 |
| 24 | Safety stock, demand + lead time variation | 408 |
| 25 | Demand during lead time d × L | 968 |
| 26 | Reorder point = d × L + safety stock | 1,376 |
| 27 | Holding cost of the safety stock per year | 2,448.00 |
| 28 | Safety stock at 99% service level | 577 |
| 29 | Max-minus-average method (for comparison) | 832 |
- B20
=AVERAGE(B2:B11)Average daily demand - B21
=STDEV.S(B2:B11)Standard deviation of daily demand - B22
=NORM.S.INV(B16)z for 95% cycle service level - B23
=ROUNDUP(B22*B21*SQRT(B13),0)Demand variation only - B24
=ROUNDUP(B22*SQRT(B13*B21^2+B20^2*B14^2),0)Demand and lead time variation - B26
=ROUNDUP(B25+B24,0)Reorder point - B29
=MAX(B2:B11)*B15-B20*B13Max-minus-average method
Fictional item and demand history. The formula assumes normally distributed, independent demand and lead time.
Service level and its cost
The service level in this formula is the cycle service level: the probability of not running out during one replenishment cycle. It is not the same as the fill rate, the share of demand served from stock, which is usually higher for the same safety stock. Make sure everyone means the same number when a target such as 95% is set.
Safety stock grows steeply near 100%. Raising the service level from 95% to 99% lifts z from 1.645 to 2.326 and the safety stock from 408 to 577 units, 41% more for four points of service. A 100% cycle service level would need infinite stock. That is why many companies set different targets per item class, for example 98% for class A items and 90% for class C (see EOQ formula for the order quantity side).
Variants and when to use them
Fixed lead time: if deliveries are reliable, use z × σd × √L. Periodic review: if you order on fixed days, for example every week, the stock must cover the review period too: replace L with L + R. Max-minus-average: (maximum daily demand × maximum lead time) − (average demand × average lead time), here 150 × 12 − 968 = 832 units. It needs no statistics, but it reacts to single extreme values and has no link to a service level, so it often overstates the buffer, as here.
The normal-distribution formula assumes that demand is roughly symmetric and that demand and lead time are independent. For slow movers with many zero-demand days, such as spare parts, it underestimates the risk; methods based on the Poisson distribution or simulation fit better. Recalculate the safety stock regularly, because σd and σL change with the season and the supplier.
Common mistakes
- Mixing time units. If demand is per day, the lead time and its standard deviation must also be in days. Weekly σ with daily lead time gives nonsense.
- Ignoring lead time variability. As the example shows, it can be the larger part of the buffer.
- Using sales instead of demand. Days with stock-outs show low sales but high demand and understate both d and σ.
- Confusing cycle service level and fill rate. The z in this formula belongs to the cycle service level.
- Setting 99.9% for every item. The cost rises steeply. Differentiate targets by item class.
- Calculating once and never again. Update σ and the lead time statistics at least every season.
Frequently asked questions
What is the formula for safety stock?
Safety stock = z × square root of (L × σd² + d² × σL²), where z comes from the service level, d and σd are average demand and its standard deviation, and L and σL the lead time and its standard deviation. With a fixed lead time it simplifies to z × σd × √L.
How do you calculate the reorder point?
Reorder point = average demand per period × lead time in periods + safety stock. In the example 121 × 8 + 408 = 1,376 units.
What z value should I use for a 95% service level?
About 1.645, from =NORM.S.INV(0.95) in Excel. For 90% use 1.282 and for 99% use 2.326.
How do I calculate safety stock in Excel?
Calculate AVERAGE and STDEV.S of the demand history, get z with NORM.S.INV, then use =ROUNDUP(z*SQRT(L*sd^2+d^2*sdL^2),0) with the cell references of your inputs.
What is the max-minus-average safety stock method?
Safety stock = maximum daily demand × maximum lead time minus average daily demand × average lead time. It is simple but sensitive to extreme values and not tied to a service level.