Free Tool
Safety Stock Calculator
Enter demand variability, lead time variability, and your target service level to calculate the optimal safety stock buffer. See the formula and working capital impact.
Book a DemoHow do you calculate safety stock?
Safety stock is calculated as Z × √(LT × σD² + D² × σLT²), where Z is the Z-score for your target service level (e.g. 1.65 for 95%), LT is average lead time, σD is demand standard deviation, D is average demand per period, and σLT is lead time standard deviation. This formula accounts for variability in both demand and supply. Demand OS computes safety stock at the SKU and location level using this formula with continuously refreshed inputs from its AI Forecasting Engine.
Calculator
Enter your demand and lead time data
Formula used
Where Z is the service-level Z-score, LT is average lead time, σD is demand standard deviation, D is average demand, and σLT is lead time standard deviation.
Results
Fill in demand and lead time data, then click “Calculate Safety Stock”.
How to use it
Safety stock, worked through step by step
The calculator returns three numbers: safety stock, the reorder point (average demand × average lead time + safety stock) and, if you enter a unit cost, the working capital tied up in that buffer. Keep demand and lead time in the same period unit, such as weeks.
A worked example
A SKU sells an average of 500 units a week with a standard deviation of 80. Supplier lead time averages 3 weeks with a standard deviation of 0.5 weeks, the target service level is 95% (Z = 1.65) and each unit costs $12.
The demand term is 3 × 80² = 19,200. The lead time term is 500² × 0.5² = 62,500. The square root of 81,700 is 285.8, and 1.65 × 285.8 gives safety stock of about 472 units. The reorder point is 500 × 3 + 472 = 1,972 units, and the buffer ties up about $5,659.
How to read your result
Compare the two terms under the square root. In the example, the lead time term (62,500) is more than three times the demand term (19,200). Set the lead time deviation to zero and safety stock falls to about 229 units, so more than half the buffer exists only because the supplier is unpredictable. That points to a supplier conversation, not a forecasting fix.
Common mistakes
Mixing units, for example monthly demand with lead time in days. Using a single service level for every SKU, when slow, low-margin items rarely justify 99%. Leaving lead time deviation at zero because it is hard to measure. And calculating once a year: the inputs move with seasons, promotions and supplier performance, so the buffer should be refreshed as they change.
What to do next
Safety stock sets when to reorder; the EOQ calculator sets how much to order each time. Together they give you a complete reorder policy for a SKU.
Explore more Demand OS tools
EOQ Calculator
Find the order size that minimizes total ordering and holding costs with the EOQ formula.
Learn moreInventory Turnover Calculator
Compute turnover ratio, days of supply, and compare against industry benchmarks.
Learn moreInventory Optimization
Service-level-driven safety stock that shows the working capital impact of every recommendation.
Learn moreFrequently Asked Questions
Safety stock, answered
What is safety stock and why does it matter?+
What Z-score should I use for safety stock?+
Why include lead time variability in the safety stock formula?+
How often should safety stock be recalculated?+
How does Demand OS automate safety stock calculation?+
Ready to automate safety stock at scale?
- Free consultation
- No commitment
- Tailored to your team