Skip to content
Omnikalc

Safety stock calculator: how many units to hold to avoid stockouts

Enter the demand and its variability, the lead time and its variability, the service level and the cost to get the safety stock, the reorder point and the holding cost.

Updated on
Your inputs
units

Value out of range

units

Value out of range

days

Value out of range

days

Value out of range

%

Value out of range

$

Value out of range

%

Value out of range

Results

Safety stock

324 units

Z-score for the service level
1.645
Reorder point (demand during lead time + safety stock)
1,164 units
Demand during the average lead time
840 units
Annual holding cost of the safety stock
$777

Safety stock is the buffer of inventory that protects a business from a demand spike or a late delivery. The safety stock calculator gives the safety stock, the z-score of the service level, the reorder point, the demand during the lead time and the annual holding cost of the buffer.

How the calculation works

  • Enter the average daily demand and its standard deviation, computed from the sales of the last weeks or months.
  • Enter the average lead time, in days, between the order and the delivery, and its standard deviation if the delivery time varies.
  • Enter the service level, the probability of not running out of stock during a replenishment cycle. 95 % is a common choice.
  • Enter the unit cost and the annual holding cost rate to price the safety stock. The calculator gives the safety stock = z × √(L × σd² + d² × σL²), the reorder point and the holding cost.

Example

A product sells 120 units a day with a standard deviation of 30. The lead time is 7 days with a standard deviation of 1.5 days, and you want a service level of 95 %, a z-score of 1.645. The variability is √(7 × 30² + 120² × 1.5²) = 196.7 units, so the safety stock is 1.645 × 196.7 = 324 units. The demand during the lead time is 840 units, so the reorder point is 1,164 units. At $12 per unit and a holding rate of 20 %, the safety stock costs $777 a year to hold.

Why it matters

The calculator helps small businesses, buyers, warehouse managers and students to size the buffer stock for a product, to set the reorder point in an inventory system and to see the cost of a higher service level. It turns the variability of the demand and of the supplier into a number of units.

Good to know

The formula assumes that the demand follows a normal distribution and that the demand and the lead time are independent. For slow movers and for products with a very irregular demand, other methods fit better. Use at least 30 data points to estimate the standard deviation, and recompute it each season. Check the result against the shelf space and the shelf life.

The reorder point calculator turns the demand and the lead time into a trigger level, the EOQ calculator finds the best order quantity, the demand forecast calculator estimates the demand, and the inventory carrying cost calculator measures the cost of holding stock.

Frequently asked questions

What is safety stock?

Safety stock is the extra inventory that a business keeps to protect itself against a higher demand than expected or a late delivery. Without it, any variation during the lead time causes a stockout. It is added to the expected demand during the lead time to give the reorder point.

How is safety stock computed?

When the demand and the lead time vary independently, the safety stock is z × √(L × σd² + d² × σL²), where z is the z-score of the service level, L the average lead time, σd the standard deviation of the daily demand, d the average daily demand and σL the standard deviation of the lead time. If the lead time is fixed, the second term is zero.

What service level should I choose?

A service level of 95 % means that you accept a stockout in about 1 cycle out of 20. Going from 95 % to 99 % raises the safety stock by about 40 %, and going to 99.9 % almost doubles it. Choose a higher level for products that are critical or have a high margin, and a lower one for slow movers and cheap items.

How do I lower the safety stock?

Reduce the variability or the lead time. A better forecast lowers the standard deviation of the demand, a reliable supplier lowers the standard deviation of the lead time, and a shorter lead time lowers both terms. Pooling the inventory of several locations also reduces the total safety stock, since variations partly cancel out.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.