Free · No signup · Runs in your browser
Inventory math that shows its work.
Calculate safety stock, reorder point, EOQ and ABC classes. Then run a simulated year of random demand and late deliveries to see whether your numbers actually hold.
Z-score built inDemand + lead-time variabilityMonte Carlo checkShareable links
A plain explanation of each formula, so you can defend the numbers in an S&OP meeting.
Safety stock formula
Safety stock covers the gap between what you expect to sell during the lead time and what you might actually sell. When both demand and supplier lead time vary, the combined uncertainty is:
SS = Z × √(LT × σd² + d² × σLT²)
The first term is demand noise building up over the lead time. The second is the risk that the truck shows up late while you keep selling at the normal rate. If your supplier is perfectly on time, set σLT to 0 and it becomes the textbook Z × σd × √LT.
Reorder point formula
The reorder point is the inventory level that triggers a new order:
ROP = d × LT + SS
The first part is the stock you expect to use while waiting for delivery. Safety stock sits on top. Compare it to inventory position (on hand + on order − backorders), not on-hand alone. Otherwise you will double-order.
Choosing a service level (Z)
Z converts a target probability into standard deviations: 90% → 1.28, 95% → 1.65, 98% → 2.05, 99% → 2.33. This is cycle service level: the chance a replenishment cycle has no stockout at all. Fill rate (the share of demand served from the shelf) usually comes out much higher, which the simulation above shows.
The curve in Sheet 01 makes the trade-off concrete. Going from 95% to 99% often needs about 40% more safety stock.
EOQ formula
Economic order quantity balances two costs that move in opposite directions. Big orders mean fewer purchase orders but more stock on the shelf:
EOQ = √(2 × D × S / H)
D is annual demand, S is the full cost of one order, H is the annual cost to hold one unit (unit cost × holding %). The bowl is flat near the bottom, so ordering 20% above or below EOQ costs only about 2% more. Round up to case packs and MOQs without worrying.
ABC analysis
Rank SKUs by annual value (units × cost) and cut the cumulative curve: the first ~80% of value is A, the next 15% is B, the rest is C. A typical result is that about 20% of SKUs drive 80% of value.
Use it to choose effort: review A items weekly with tighter service targets, and automate C items with simple rules.
Why the simulation matters
The formula assumes normal demand, independent lead times and continuous review. Real life is lumpier. Sheet 01 runs your policy through hundreds of simulated replenishment cycles with random demand and random lead times, then reports what actually happened.
If the simulated service level falls well short of target, your order quantity is probably too small relative to lead-time demand, or the variability inputs are understated.
Want this running on your live ERP data, with AI flagging what to reorder? Safety Stock Lab is built by Sankalp Mehra, who works on AI implementation for supply chain and manufacturing.
Work with me →