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”.
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?+
Get Started
Ready to automate safety stock at scale?
Demand OS calculates safety stock at the SKU and location level using live demand and lead time data — refreshed continuously, not once a quarter.