Supply Chain Demand Variability Safety Stock Simulator
Calculate safety stock levels using demand and lead time variability for supply chain optimization.
Formula
Safety Stock = Z × √(LT × σD² + D² × σLT²); Reorder Point = (D × LT) + Safety Stock
Safety stock formula combines demand variability (σD) and lead time variability (σLT) under the square root, weighted by lead time (LT) and average demand (D). The Z-factor converts desired service level to standard deviations (e.g., 1.65 for 95%). This accounts for both sources of uncertainty—demand might be higher than expected AND/OR delivery might be later than expected. Reorder point triggers replenishment early enough to receive stock before running out.
Worked Examples
Example 1: Consumer Electronics Component
Problem:Electronic component: avg demand 5,000/month, std dev 1,500. Lead time 21 days ± 5 days. Target 97% service level. Unit cost $15. Calculate safety stock.
Solution:Parameters: - Daily demand: 5,000/30 = 167 units - Daily std dev: 1,500/30 = 50 units - Lead time: 21 days, σLT = 5 days - Z for 97%: 1.88 Combined Variability: - Demand variance: 50² × 21 = 52,500 - Lead time variance: 167² × 5² = 696,889 - Combined σ = √(52,500 + 696,889) = 866 units Safety Stock: - SS = 1.88 × 866 = 1,628 units Reorder Point: - Demand during LT: 167 × 21 = 3,507 - ROP = 3,507 + 1,628 = 5,135 units Costs: - Safety stock value: 1,628 × $15 = $24,420 - Annual holding (25%): $6,105 Note: Lead time variability contributes more than demand variability!
Result:Safety Stock: 1,628 | ROP: 5,135 | $6,105/year holding cost
Example 2: Service Level Optimization
Problem:Retailer comparing service levels for $50 product. Demand: 200/week, σ = 60. Lead time: 7 days (no variability). Stockout costs $100/incident. Find optimal service level.
Solution:Safety Stock by Service Level: - 90%: Z=1.28 → SS = 1.28 × 60 × √1 = 77 - 95%: Z=1.65 → SS = 99 - 97%: Z=1.88 → SS = 113 - 99%: Z=2.33 → SS = 140 Annual Holding Costs (25%): - 90%: 77 × $50 × 0.25 = $963 - 95%: $1,238 - 97%: $1,413 - 99%: $1,750 Expected Stockout Costs: - 90%: 10% × 52 weeks = 5.2 stockouts × $100 = $520 - 95%: 2.6 stockouts = $260 - 97%: 1.6 stockouts = $160 - 99%: 0.5 stockouts = $50 Total Cost Analysis: - 90%: $963 + $520 = $1,483 - 95%: $1,238 + $260 = $1,498 - 97%: $1,413 + $160 = $1,573 - 99%: $1,750 + $50 = $1,800 Optimal: 90-95% service level minimizes total cost
Result:Optimal: 90-95% | Total cost ~$1,500 | Higher SL not justified by stockout savings
Example 3: Multi-Supplier Strategy
Problem:Critical part: demand 300/day, σ = 75. Current: single supplier, 30-day lead time ± 10 days. Alternative: dual-source with 15-day lead time ± 2 days (20% cost premium). Compare safety stock.
Solution:Single Supplier Analysis: - Demand variance: 75² × 30 = 168,750 - Lead time variance: 300² × 10² = 9,000,000 - Combined σ = √9,168,750 = 3,028 - SS (95%): 1.65 × 3,028 = 4,996 units Dual-Source Analysis: - Demand variance: 75² × 15 = 84,375 - Lead time variance: 300² × 2² = 360,000 - Combined σ = √444,375 = 667 - SS (95%): 1.65 × 667 = 1,101 units Comparison: - SS reduction: 4,996 - 1,101 = 3,895 units - At $20/unit: $77,900 inventory reduction - Annual holding savings: $19,475 Cost Premium Analysis: - 300 × 365 × $20 × 20% = $438,000/year premium - Inventory savings: $19,475/year Conclusion: Dual-sourcing not justified by inventory alone. But consider: supply risk reduction, flexibility, negotiating leverage.
Result:Single: 4,996 SS | Dual: 1,101 SS | Dual saves $19K but costs $438K premium
Frequently Asked Questions
What is safety stock?
Safety stock is extra inventory held to buffer against demand and supply variability. It protects against stockouts when actual demand exceeds forecast or when suppliers deliver late. The amount depends on desired service level, demand variability, and lead time variability. Higher safety stock = fewer stockouts but higher carrying costs.
How do I calculate safety stock?
Basic formula: Safety Stock = Z × σ × √LT, where Z is service level factor, σ is demand standard deviation, and LT is lead time. For variable lead times: SS = Z × √(LT×σD² + D²×σLT²), combining demand and lead time variability. This accounts for both sources of uncertainty.
What is the relationship between service level and safety stock?
Non-linear relationship. Going from 90% to 95% requires ~30% more safety stock. From 95% to 99% requires ~40% more. From 99% to 99.9% nearly doubles it. The cost of that last bit of service level is exponentially higher. This is why not everything should be 99%.
How does lead time affect safety stock?
Longer lead times require more safety stock because more can go wrong during the wait. Safety stock scales with square root of lead time—doubling lead time increases safety stock by ~40%, not 100%. Lead time variability often matters more than length; work on consistency first.
What is coefficient of variation (CV)?
CV = Standard Deviation / Mean. It measures demand variability relative to average demand. CV < 0.15: low variability (stable demand). 0.15-0.30: moderate. > 0.30: high variability (erratic demand). High CV items need more safety stock or different inventory strategies (e.g., make-to-order).
Should I use the same safety stock approach for all items?
No. ABC analysis segments items by value/importance. A items (high value): careful calculation, high service levels. B items (moderate): standard formulas. C items (low value): simple rules or periodic review. One-size-fits-all approaches either under-stock critical items or over-stock trivial ones.
How often should I recalculate safety stock?
Depends on demand stability. Stable demand: quarterly or annually. Seasonal or trending: monthly or per season. Highly volatile: continuously with rolling averages. Major events (new products, market changes): immediate recalculation. Stale parameters cause stockouts or excess inventory.
What is a reorder point?
Reorder point = Average demand during lead time + Safety stock. When inventory drops to this level, place an order. It ensures new inventory arrives before you run out, accounting for both expected demand and safety buffer. Too low = stockouts; too high = excess inventory.
How do I reduce safety stock needs?
Strategies: (1) Reduce demand variability (better forecasting, demand smoothing), (2) Reduce lead time (closer suppliers, faster shipping), (3) Reduce lead time variability (supplier reliability), (4) Postponement (delay final configuration), (5) Accept lower service levels where appropriate.