Safety stock calculator
Safety stock = z × √(L × σd² + d̄² × σL²), and reorder point = d̄ × L + safety stock. When the lead time is steady this reduces to z × σd × √L. In the worked example, a 95% service level on a resin used at 120 kg a day needs 148 kg of safety stock if only demand varies, and 422 kg once the supplier's lead time variation is counted.
Work out safety stock and the reorder point
Enter daily demand and its standard deviation, the lead time and its standard deviation, and the service level you want.
Day-to-day variation
0 if deliveries are always on time
Chance of no stockout per cycle
- Demand variation only
- 148 units
- With lead-time variation
- 421.6 units
- Demand during lead time
- 1,080 units
- Share from lead time
- 87.7%
- z value
- 1.645
Show the working
- z for a 95% cycle service level: 1.6449.
- Demand variability only: 1.6449 × 30 × √9 = 148 units.
- Demand and lead-time variability: 1.6449 × √(9 × 30² + 120² × 2²) = 1.6449 × √(8,100 + 57,600) = 421.6 units.
- The lead time's variation is 87.7% of the total, so a steadier supplier would cut safety stock more than a steadier demand.
- Demand during the lead time: 120 × 9 = 1,080 units.
- Reorder point: 1,080 + 421.6 = 1,501.6 units.
The safety stock formulas
d̄ and σd are the average and standard deviation of demand per day; L and σL are the average and standard deviation of the lead time in days. Demand over a lead time of L days varies by σd × √L, assuming each day's demand is independent of the next. A lead time that varies adds d̄ × σL on top, because every extra day of waiting uses another day's demand. The combined formula adds the two variances, which assumes demand and lead time vary independently of each other.
The service level here is the cycle service level: the probability of not running out during one replenishment cycle. It is not the fill rate (the share of demand met from stock), which for the same safety stock is usually much higher. Ask which one a target means before you size stock to it.
Keep the time units the same everywhere. If your demand statistics are weekly, divide the weekly standard deviation by the square root of the working days in a week to get a daily one, or work in weeks throughout.
Worked example
A molding plant uses a resin at an average of 120 kg a working day, with a standard deviation of 30 kg from day to day. The supplier's deliveries arrive 9 working days after the order on average, give or take a standard deviation of 2 days. The plant wants a 95% chance of not running out in any one replenishment cycle.
- z for a 95% cycle service level: 1.6449.
- Demand variability only: 1.6449 × 30 × √9 = 148 units.
- Demand and lead-time variability: 1.6449 × √(9 × 30² + 120² × 2²) = 1.6449 × √(8,100 + 57,600) = 421.6 units.
- The lead time's variation is 87.7% of the total, so a steadier supplier would cut safety stock more than a steadier demand.
- Demand during the lead time: 120 × 9 = 1,080 units.
- Reorder point: 1,080 + 421.6 = 1,501.6 units.
Where the safety stock comes from
In the example, the lead time's variation makes up 88% of the total variance, so most of the 422 kg protects against late deliveries, not against busy days. Halving the lead time's standard deviation to 1 day would cut the safety stock to about 247 kg; halving the demand variation instead would barely move it, to about 402 kg. That pattern is common with long, unreliable lead times, and it points the improvement work at the supplier rather than the forecast.
Service level has a steep price. Raising it from 95% to 99% raises z from 1.645 to 2.326, so the same part needs 41% more safety stock; going from 99% to 99.9% (z = 3.090) adds another 33%. Set high service levels for parts whose shortage stops a line, and lower ones for parts that can be expedited cheaply. A kanban calculator loop can carry the result: add the safety stock to the usage during the lead time before dividing by the container size.
Common mistakes
- Using demand variation when you plan from a forecast. If orders are placed from a forecast, what safety stock has to cover is the forecast error, not the raw variation of demand. Use the standard deviation of forecast error in place of σd.
- Ignoring lead-time variation. The demand-only formula assumes the supplier is always on time. When deliveries vary, it can understate the stock you need several times over, as the worked example shows.
- Mixing periods. Daily demand variation with a lead time in weeks, or weekly variation used as if it were daily, gives a figure wrong by the square root of the days in a week. Convert everything to one unit first.
- Treating the service level as a fill rate. A 95% cycle service level means a stockout in about one replenishment cycle in twenty, not 5% of demand unmet. Size to the measure your target is actually written in.
- Applying it to lumpy demand. The formulas assume demand that is roughly normal from day to day. For parts used in large, occasional batches, the normal approximation breaks down; plan those from the schedule instead.
Safety stock FAQ
How do you calculate safety stock?
Multiply the z value for your service level by the standard deviation of demand over the lead time. With a steady lead time, that is z × σd × √L. When the lead time varies too, use z × √(L × σd² + d̄² × σL²).
What is the reorder point formula?
Reorder point = average demand per day × lead time in days + safety stock. When stock on hand plus stock on order falls to that level, place the next order.
What z value goes with a 95% service level?
1.645 for a 95% cycle service level, 1.282 for 90%, 2.326 for 99% and 3.090 for 99.9%. The calculator works out z for any level from 50% to just under 100%.
Why does lead-time variability matter so much?
Because every day a delivery is late uses another full day's demand. A two-day standard deviation on a part used at 120 a day adds 240 units of variation, more than the 90 that demand variation adds over a whole nine-day lead time.
What is the difference between cycle service level and fill rate?
Cycle service level is the chance of no stockout in a replenishment cycle. Fill rate is the share of demand met from stock. A 95% cycle service level usually gives a fill rate well above 95%, because even in a cycle that runs out, most of the demand was met before it did.
Is anything I enter saved?
No. The calculator runs in your browser and nothing you type is sent to AutoOps AI or stored. There is no login.