CCalclabhub

Operations

How To Calculate Safety Stock

Safety stock is the buffer sized so demand does not run out during a lead time.

Quick Answer

safety stock = z x demand standard deviation x sqrt(lead time)

SS
Safety stock in units
z
Service factor, 1.645 at 95 percent and 2.326 at 99 percent
sd
Standard deviation of daily demand, in units
L
Lead time in days

Pick the service factor for the fill rate you want, multiply it by the day to day variability in demand, then multiply by the square root of the lead time in days. A 95 percent service factor of 1.645, a standard deviation of 8 units and six days of lead time gives 32 units, on top of a reorder point of 240 units.

What Is Safety Stock?

Safety stock is the buffer sized so demand does not run out during a lead time. At a ninety five percent service level, a demand standard deviation of eight units and a lead time of six days gives thirty two units, on top of a reorder point of two hundred and forty units made up of average demand during the lead time.

The service level is the probability that demand during the lead time does not exceed the buffer. Ninety five percent is the usual target in retail, ninety nine percent is common where a stockout is expensive or dangerous, and ninety nine point nine is used for spare parts that halt production.

Higher service levels get expensive quickly. The factor is 1.645 at ninety five percent and 2.326 at ninety nine, so going from ninety five to ninety nine raises the buffer by about forty one percent. Raising it to ninety nine point nine multiplies it by nearly two again, which is why the last few percentage points are rarely bought.

The square root of lead time is the part that surprises people. Doubling the lead time does not double the required buffer, it increases it by about forty one percent, because random variation accumulates as a square root rather than in a straight line.

The formula assumes demand is roughly normal and that daily demand figures are independent. Neither is exactly true: demand has seasonality, promotions cause spikes and some products are ordered together. Where those effects are large the calculated buffer is a starting point rather than an answer.

Demand variability is the input that is hardest to get. It has to be the standard deviation of daily demand over a comparable period, not of monthly totals, and it has to be measured on the same product rather than on a category average.

Safety stock is not the same as the reorder point. The reorder point is average demand during the lead time plus the safety stock, and it is the level at which an order is placed. The two are often confused because they are quoted together.

Lead time variability is a separate risk that the basic formula ignores. If a supplier is sometimes early and sometimes very late, the buffer has to cover the late cases as well as the demand variation, and a more elaborate formula is needed.

The cost side is holding cost times the buffer. Every unit of safety stock earns nothing while it sits, so the target service level is usually a commercial decision rather than an operational one, balancing the margin lost to a stockout against the carrying cost of the buffer.

Perishable and seasonal goods cap the buffer differently. A safety stock that would cover a thirty day lead time is useless if the product expires in ten, so the target has to be capped by what can actually be sold.

Finally, review cadence matters more than precision. A buffer recalculated monthly from fresh demand data stays close to right, while one calculated once and left alone drifts as demand and lead times change.

Formula

SS = z x sd x sqrt(L)

Formula page →

The buffer that covers demand variability during a lead time at the target service level.

SymbolMeaning
SSSafety stock
zService factor
sdDemand standard deviation
LLead time

ROP = average daily demand x L + SS

Formula page →

The stock level that triggers an order, being average demand over the lead time plus the buffer.

SymbolMeaning
ROPReorder point
dAverage daily demand
LLead time
SSSafety stock

How To Calculate Safety Stock

  1. 1

    Decide the service level

    Ninety five percent is the usual retail target. Go higher only where a stockout is expensive, dangerous or breaches a contract.

  2. 2

    Measure the standard deviation of daily demand

    Use the same product over a comparable period. A monthly standard deviation divided by the square root of thirty is not the same thing and will give the wrong buffer.

  3. 3

    Multiply the factor by the standard deviation

    1.645 times 8 is 13.16 units. This is the buffer that would cover a single day of lead time at the target service level.

  4. 4

    Multiply by the square root of lead time

    13.16 times the square root of six is about 32 units. Random variation accumulates as a square root, so a longer lead time needs less than proportionally more.

  5. 5

    Add it to average demand during the lead time

    Forty units a day over six days is 240, and adding 32 gives a reorder point of 272. The buffer protects the service level; the reorder point decides when to order.

Examples

Example 1: 95 percent service, 8 units of daily variation, six days of lead time

Service level
95 percent
Demand standard deviation
8
Lead time in days
6
Average daily demand
40
StepCalculationResult
Factor times standard deviation1.645 * 813.16
Safety stock1.645 * 8 * sqrt(6)32
Demand during lead time40 * 6240
Reorder point240 + 32272
Buffer as a share of lead time demand32 / 2400.1333

Result: A safety stock of 32 units and a reorder point of 272, with the buffer worth 0.1333 of lead time demand at a 95 percent service level.

Example 2: 99 percent service, 15 units of daily variation, ten days of lead time

Service level
99 percent
Demand standard deviation
15
Lead time in days
10
Average daily demand
120
StepCalculationResult
Factor times standard deviation2.326 * 1534.89
Safety stock2.326 * 15 * sqrt(10)110
Demand during lead time120 * 101200
Reorder point1200 + 1101310
Buffer as a share of lead time demand110 / 12000.0917

Result: A safety stock of 110 units and a reorder point of 1310, with the buffer worth 0.0917 of lead time demand at a 99 percent service level.

Example 3: 90 percent service, 4 units of daily variation, two days of lead time

Service level
90 percent
Demand standard deviation
4
Lead time in days
2
Average daily demand
25
StepCalculationResult
Factor times standard deviation1.28 * 45.12
Safety stock1.28 * 4 * sqrt(2)7
Demand during lead time25 * 250
Reorder point50 + 757
Buffer as a share of lead time demand7 / 500.14

Result: A safety stock of 7 units and a reorder point of 57, with the buffer worth 0.14 of lead time demand at a 90 percent service level.

Calculator

Safety stock

32

Reorder point
272
Buffer as a share of lead time demand
13.33%

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

Prefer a full-width tool? Open the Safety Stock calculator page.

Common Mistakes

  • Confusing safety stock with the reorder point

    The reorder point is average demand during the lead time plus safety stock. The buffer is only the second term, and quoting one for the other understates or overstates orders by hundreds of units.

  • Scaling the buffer in proportion to lead time

    Variation accumulates as a square root, so doubling lead time raises the buffer by about forty one percent rather than doubling it.

  • Using monthly variability instead of daily

    The formula needs the standard deviation of daily demand. A monthly figure divided by thirty, or used raw, gives a badly wrong buffer.

  • Aiming for 100 percent service

    The factor grows without bound as the target approaches certainty, and the buffer becomes unsellable. The last few percentage points are the most expensive ones on the curve.

  • Ignoring lead time variability

    A supplier that is sometimes very late needs a buffer for the late cases too. The basic formula only covers demand variation during a normal lead time.

  • Calculating once and never revisiting

    Demand and lead times move, so a buffer set once drifts. Recalculate monthly from fresh data rather than trusting the original figure.

FAQ

What is the formula for safety stock?

Service factor times the standard deviation of daily demand times the square root of lead time. 1.645 times 8 times the square root of 6 is about 32 units.

What z value should I use for 95 percent service?

1.645. For 99 percent it is 2.326, for 97.5 percent it is 1.96, and for 99.9 percent it is about 3.09.

Is safety stock the same as the reorder point?

No. The reorder point is average demand during the lead time plus safety stock, and it is the level that triggers an order.

Why does lead time use a square root?

Because independent random variation accumulates as a square root. Doubling lead time raises the required buffer by about forty one percent, not by one hundred percent.

How do I handle a supplier with variable lead times?

The basic formula assumes a fixed lead time. When lead time itself varies, the calculation has to combine demand and lead time variability, which needs a larger buffer.

What service level should a small retailer use?

Ninety five percent is the usual starting point, because going to ninety nine percent raises the buffer by about forty one percent for a small reduction in stockouts.

References

  1. [1]Wikipedia, Safety stock — https://en.wikipedia.org/wiki/Safety_stock
  2. [2]Wikipedia, Inventory management — https://en.wikipedia.org/wiki/Inventory_management
  3. [3]Wikipedia, Reorder point — https://en.wikipedia.org/wiki/Reorder_point
  4. [4]Wikipedia, Service level — https://en.wikipedia.org/wiki/Service_level