Safety Stock Calculator
Calculate how much buffer inventory to keep so you don't run out while waiting for a delivery. Choose a simple days-of-cover rule, the max − average method, or the statistical service level formula (Z × σ × √lead time), with or without lead time variability.
Chance of not running out during a replenishment cycle.
Use a spreadsheet's STDEV of daily sales.
How to use the Safety Stock Calculator
- Pick a method. Use a service level method if you know how much daily demand varies.
- Enter average daily demand and lead time in days.
- Fill in the method inputs: safety days, maximum values, or service level and standard deviations.
- Read the safety stock and the reorder point that includes it.
- Compare service levels in the table to balance stock-outs against inventory cost.
Safety stock formulas
| Method | Formula | Best for |
|---|---|---|
| Basic (days of cover) | SS = d × safety days | Quick rules of thumb, new items with little data |
| Max − average | SS = (dmax × LTmax) − (d × LT) | Simple planning without statistics |
| Service level, demand varies | SS = Z × σd × √LT | Stable suppliers, variable sales |
| Service level, demand and lead time vary | SS = Z × √(LT × σd² + d² × σLT²) | Unreliable or long supply chains |
d = average daily demand, LT = average lead time in days, σd = standard deviation of daily demand, σLT = standard deviation of lead time, Z = the standard normal value for your service level. Keep all time units the same (days, or weeks throughout).
Example: d = 40, LT = 10, σd = 8, σLT = 2 at 95% service (Z = 1.645). Demand only: 1.645 × 8 × √10 = 41.6 units. With lead time variability: 1.645 × √(10 × 64 + 1,600 × 4) = 1.645 × 83.9 = 138.0 units.
Service level and Z-score table
| Service level | Z-score | Expected stock-outs |
|---|---|---|
| 80% | 0.842 | 1 in 5 cycles |
| 85% | 1.036 | about 1 in 7 cycles |
| 90% | 1.282 | 1 in 10 cycles |
| 95% | 1.645 | 1 in 20 cycles |
| 97.5% | 1.960 | 1 in 40 cycles |
| 98% | 2.054 | 1 in 50 cycles |
| 99% | 2.326 | 1 in 100 cycles |
| 99.5% | 2.576 | 1 in 200 cycles |
| 99.9% | 3.090 | 1 in 1,000 cycles |
Frequently asked questions
What is the safety stock formula?
The most widely used statistical formula is SS = Z × σd × √LT, where Z is the Z-score for your service level, σd is the standard deviation of daily demand and LT is the lead time in days. At 95% service (Z ≈ 1.645), σd = 8 and a 10-day lead time, SS = 1.645 × 8 × √10 ≈ 41.6 units.
What if the lead time also varies?
Use SS = Z × √(LT × σd² + d² × σLT²), where d is average daily demand and σLT is the standard deviation of lead time in days. Lead time variability often adds far more safety stock than demand variability, as the 'demand + lead time vary' method shows.
What Z-score should I use?
Common choices are 1.28 for 90%, 1.645 for 95%, 2.054 for 98% and 2.326 for 99% service. Each extra point of service costs progressively more stock, so many businesses use 95% to 98% for regular items and higher levels only for critical ones.
What is the max − average method?
Safety stock = (maximum daily demand × maximum lead time) − (average daily demand × average lead time). It is easy to use without statistics but can give a very large buffer if the maximums are rare extremes.
What does service level mean here?
It is the cycle service level: the probability of not running out of stock during one replenishment cycle. A 95% level means you expect a stock-out in about 1 of every 20 order cycles. It is not the same as fill rate, the share of demand served from stock.
How does safety stock relate to the reorder point?
Reorder point = average daily demand × lead time + safety stock. The calculator shows both so you can set the reorder level directly.
Is my data sent anywhere?
No. All calculations, including the Z-score, run in your browser.