Safety stock calculator
Estimate how much buffer stock to hold against demand swings and late deliveries at the service level you choose. Use it when you know how much your daily demand and supplier lead times vary.
Calculate safety stock
Use daily figures from the same period of history. Enter 0 for lead-time variation if it never changes.
- Safety stock (units)
- 75
- Reorder point with this safety stock
- 355
Calculated in your browser. Nothing you enter is sent or stored.
The formula
Safety stock = Z × √(L × σd² + d² × σL²); with a fixed lead time, safety stock = Z × σd × √L
- Service level (Z)
- The chance of not running out during a replenishment cycle, converted to a Z factor: 90% is 1.28, 95% is 1.65, 97.5% is 1.96 and 99% is 2.33.
- Average lead time (L)
- Average days from placing a purchase order to stock being available to pick. Measure it from your own order and receipt dates.
- Standard deviation of daily demand (σd)
- How much daily demand varies around its average. Export daily shipped units for the last few months and apply a spreadsheet standard deviation function.
- Average daily demand (d)
- Units shipped per day on average, over the same period you used for the demand deviation.
- Standard deviation of lead time (σL)
- How much actual lead times vary, in days, across recent orders from the supplier. Enter zero if deliveries always arrive on schedule.
Worked example
Suppose phone case SKU CASE-114 sells an average of 40 units a day with a standard deviation of 12, and supplier lead time averages 10 days with a standard deviation of 2 days. At a 95% service level, Z = 1.65. Demand variation over the lead time is 10 × 12² = 1,440. Lead-time variation is 40² × 2² = 6,400. Their sum is 7,840, and √7,840 ≈ 88.5. Multiply by 1.65 to get about 146.1, so hold 147 units. If lead time never varied, safety stock would be 1.65 × 12 × √10 ≈ 63 units.
Choosing a service level
Buffer grows faster than service level. Moving from 95% to 99% raises Z from 1.65 to 2.33, which is about 41% more safety stock for four extra points of protection. Reserve the highest levels for fast movers, critical spares and customers with strict delivery terms. Cheap, slow or easily substituted items can run at 90%.
This service level is the probability of no stockout per replenishment cycle. It is not the same as order fill rate, which measures the share of demand shipped complete.
Why lead time variability matters so much
In the example, unreliable lead time more than doubles the buffer, from 63 to 147 units. The d² × σL² term grows with the square of daily demand, so late deliveries hurt fast movers most. Getting a supplier to deliver consistently often cuts safety stock more than a better demand forecast would.
When the statistical formula breaks down
The formula assumes demand varies randomly around a stable average. Treat the result with caution in these cases:
- Intermittent demand, where most days show zero sales and a few show large orders.
- Seasonal or trending demand, where a single average and deviation mix different periods.
- Promotions and launches, which need a forecast rather than history.
- Periodic ordering, where the buffer must cover lead time plus the review period, so use L plus the review days.
Putting safety stock to work
Safety stock only helps when it feeds a trigger. Add it to lead-time demand in the reorder point calculator, and review both each quarter or after any supplier change.
The inputs come from history, so they are only as good as your records. NextStock records every shipment and receipt as a ledger movement and stores supplier lead times in the supplier catalog. Replenishment suggestions propose purchases and transfers from demand and cover.
Frequently asked questions
Short, direct answers to the questions warehouse teams ask most.
Is there a simpler safety stock formula?
A common shortcut is (maximum daily sales × maximum lead time) − (average daily sales × average lead time). It needs no statistics, but it sizes the buffer for the worst day and the worst delivery happening together, which usually overstates it. Use it as a starting point when you lack enough history for standard deviations.
Should every SKU have the same service level?
No. A single service level treats a slow, cheap item the same as a fast mover that customers cannot do without. Group SKUs by value and importance, give the critical group a higher level, and accept a lower level where a stockout costs little. This keeps total inventory down while protecting what matters.
Does safety stock count as available stock?
Yes. Safety stock is ordinary sellable stock, not a separate reserved pile. It is the level you plan to have left when a replenishment arrives. When demand spikes, you ship from it. If you regularly dip into it, recheck your demand and lead-time inputs rather than treating it as untouchable.
A little more order. A lot more possibility.
Make space for a better way to run your warehouse.