Freight Desk

How to Calculate Safety Stock

Safety stock is the buffer that keeps a bad week from becoming a stockout. There are two common ways to size it: a quick min/max method and the more precise statistical (service-level) method, SS = Z × σd × √L. Here’s each with a worked example, the Z-table you need, and the one factor — lead-time variability — that quietly triples the number.

What safety stock protects against

Two things move against you between orders: demand can spike above the average, and the lead time can run long. Safety stock is the cushion that covers both so you don’t sell out before the replenishment lands. Size it too low and you stock out; too high and you tie up cash and space. The formulas below aim for the right amount for a chosen level of service.

Method 1: Min/max (the quick way)

No statistics required. The buffer is the gap between a worst-case pull over the longest lead time and the everyday pull over the average lead time:

SS = (max demand × max lead) − (avg demand × avg lead)

Say demand averages 100 units/day but can hit 140, and lead time averages 7 days but can stretch to 10: SS = (140 × 10) − (100 × 7) = 1,400 − 700 = 700 units. It’s fast and needs only four numbers, but it tends to run conservative because it assumes the worst case on both at once.

Method 2: Statistical (service level)

This ties the buffer to how much availability you actually want:

SS = Z × σd × √L

Z is the service-level factor (from the table below), σd is the standard deviation of demand per period, and L is the lead time in those periods. With demand averaging 100/day at a standard deviation of 20, a 9-day lead time, and a 95% target: SS = 1.65 × 20 × √9 = about 99 units.

The Z-table (service level → Z)

Service levelZ factor
80%0.84
90%1.28
95%1.65
97.5%1.96
98%2.05
99%2.33
99.9%3.09

The factor that quietly triples the number: lead-time variability

The simple formula assumes lead time is fixed. It rarely is. When lead time varies too, the buffer has to cover that as well, and the formula grows:

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

In the example above, demand-only safety stock was about 99 units. Add a lead-time standard deviation of just 2 days and it jumps to about 343 units — more than triple. The lesson: an unreliable supplier costs you far more buffer than variable demand does. If your safety stock feels high, the lead time is usually why.

Chasing demand forecasts is the glamorous work. Tightening supplier lead times is what actually shrinks the buffer.

Which service level to pick

Higher service means fewer stockouts and more cash on the shelf — the cost climbs fast at the top end. Set it by how expensive a stockout is for that item, not one blanket number for the whole catalog. The inventory planning guide shows how safety stock feeds the reorder point and works alongside EOQ to set your whole ordering policy.