Tabellab
Business & operations

Safety stock formula: calculate safety stock and reorder point

Safety stock is the extra inventory that covers demand and delivery delays above the average. The standard formula is safety stock = z × σd × √L when only demand varies, and z × √(L × σd² + d² × σL²) when the lead time varies too, where z comes from =NORM.S.INV(service level). The reorder point is d × L + safety stock. With an average demand of 121 units a day (σ = 19), a lead time of 8 days (σ = 2 days) and a 95% service level, the safety stock is 408 units and the reorder point 1,376 units. Demand variation alone would need only 89 units: here the unreliable lead time drives the buffer.

Updated 30 Oct 2026 5 min read By Tabellab team

The inputs and the formula

  • d: average demand per period, here per day, from =AVERAGE over 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.

Worked example: safety stock and reorder point for one item
AB
1Daily demand historyUnits
2Day 1112
3Day 2135
4Day 398
5Day 4141
6Day 5120
7Day 6104
8Day 7150
9Day 8127
10Day 993
11Day 10130
12InputValue
13Average lead time (days)8
14Std dev of lead time (days)2.0
15Maximum lead time (days)12
16Target cycle service level95%
17Unit cost24.00
18Holding cost per year (% of unit cost)25%
19CalculationResult
20Average daily demand d121.0
21Std dev of daily demand σd18.97
22z for the service level1.645
23Safety stock, demand variation only89
24Safety stock, demand + lead time variation408
25Demand during lead time d × L968
26Reorder point = d × L + safety stock1,376
27Holding cost of the safety stock per year2,448.00
28Safety stock at 99% service level577
29Max-minus-average method (for comparison)832
Key formulas
  • 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.

Practise it in a lab

Related guides

Reading is step one. Doing is step two.

Every guide links to a lab where you build the same calculation in an online spreadsheet and get instant feedback.

Open the lab