Safety Stock Simulator
Monte Carlo simulation for safety stock and reorder point analysis. Uses Monte Carlo simulation to model demand during lead time (DDLT) distribution. Compares…
Uses Monte Carlo simulation to model demand during lead time (DDLT) distribution. Compares simulation results with analytical methods, supporting both normal and Poisson demand distributions.
What is Monte Carlo Safety Stock Simulation?
Monte Carlo simulation models uncertainty in safety stock calculations by running thousands of random demand and lead time scenarios. Unlike the analytical formula, simulation can handle non-normal distributions (Poisson, gamma), correlated variables, and complex supply chain dynamics.
The simulation generates random demand-during-lead-time (DDLT) samples by drawing daily demand from a specified distribution over a random lead time period. After thousands of iterations, the DDLT distribution reveals the safety stock needed for any target service level by finding the appropriate quantile.
Comparing analytical and simulated results validates assumptions. If simulation yields significantly different safety stock than the analytical method, it suggests the underlying demand or lead time distribution departs from normality — common for slow-moving or intermittent-demand items.
Formula: For each iteration i = 1..N: LT_i ~ Distribution(μ_LT, σ_LT) DDLT_i = Σ(j=1..LT_i) D_j where D_j ~ Distribution(μ_d, σ_d) Safety Stock = Percentile(DDLT, SL%) − mean(DDLT) ROP = Percentile(DDLT, SL%)
Example Calculation
With μ_d = 30 units/day, σ_d = 8, μ_LT = 5 days, σ_LT = 1.5 days, and 10,000 iterations at 95% service level: Analytical SS = 79 units. Simulation yields mean DDLT = 150, P95 = 233, so simulated SS = 233 − 150 = 83 units. The 5% difference indicates slight non-normality in the DDLT distribution.
When to Use This Calculator
- An inventory analyst validating analytical safety stock formulas against simulation for slow-moving or intermittent-demand items
- A supply chain planner testing the impact of lead time variability reduction initiatives on required safety stock
- A data scientist exploring non-normal demand distributions to determine if the standard formula over- or under-estimates stock requirements
- A logistics team running what-if scenarios to quantify the safety stock savings from improving supplier lead time consistency
Common Mistakes to Avoid
- Running too few iterations for extreme service levels — 1,000 iterations may seem sufficient, but tail percentiles at 99%+ require at least 10,000 to stabilize; use 50,000 for 99.5%+
- Assuming demand is always normally distributed — many real-world items have Poisson, gamma, or intermittent demand; the simulation's value lies in testing these non-normal scenarios
- Ignoring the difference between simulated and analytical results — if they diverge significantly, your demand distribution assumption is wrong and the analytical formula may be misleading
- Using simulation without understanding the underlying model — simulation is only as good as its input distributions; garbage parameters produce garbage results
How to Interpret Results
- If simulated safety stock is higher than analytical, the true demand distribution has heavier tails than the normal assumption — you need more buffer than the formula suggests
- If simulated safety stock is lower than analytical, the formula is conservative and you may be holding excess inventory
- The DDLT histogram shape reveals the true demand pattern: bell-shaped confirms normality, right-skewed suggests Poisson or gamma, bimodal suggests mixed demand patterns
Related Standards & References
- Monte Carlo simulation — repeatedly samples demand and lead time to build the empirical demand-during-lead-time (DDLT) distribution instead of assuming normality
- Law, Simulation Modeling and Analysis — methodological reference for replication count and confidence-interval analysis of stochastic inventory simulations
- APICS/ASCM safety stock framework — supplies the analytical (normal-formula) baseline the simulation is compared against to expose distribution skew
Frequently Asked Questions
How many iterations should I run for accurate results?
10,000 iterations provide stable results (±1-2%) for most scenarios. For extreme service levels (99.5%+), use 50,000-100,000 iterations because the tail percentile requires more samples. Doubling iterations reduces statistical error by roughly √2.
When should I use Poisson instead of Normal distribution for demand?
Use Poisson for slow-moving items (average demand < 10 units/day) where demand is discrete and sporadic. Normal distribution works well for fast-moving items (demand > 20/day) where the Central Limit Theorem applies. For intermittent demand (many zero-demand periods), consider compound Poisson or Croston's method.