Safety Stock Calculator
Calculate safety stock from your demand variability, lead time, and target service level using the standard Z-score formula: Safety Stock = Z-score × Standard Deviation of Daily Demand × √(Average Lead Time). Free, runs entirely in your browser, no signup required.
Free Starter plan · Per-SKU stock tracking · No credit card
01 — Overview
What a safety stock calculator computes
A safety stock calculator turns three inputs — demand variability, lead time, and your target service level — into a single buffer quantity: how many extra units to hold above expected demand so normal fluctuations don't cause a stockout.
Safety stock
55.9 units
Demand variability
The standard deviation of daily (or weekly) demand for one SKU.
Lead time
How many days, on average, it takes a supplier order to arrive.
Service level
The stockout risk you are willing to accept, expressed as a Z-score.
Per SKU, not per catalog
Every input varies by product — so does the resulting buffer.
Safety Stock = Z-score × Standard Deviation of Daily Demand × √(Average Lead Time in Days) — the standard statistical formula behind this calculator.
The Z-score comes from your target service level (1.65 for 95%, 2.33 for 99%) — higher service levels mean a bigger buffer, not a better formula.
Run the calculation per SKU. Demand variability and lead time both differ by product, so one safety-stock number for the whole catalog under-buffers volatile items and over-buffers stable ones.
02 — Calculator
Calculate your safety stock
Enter your own numbers below. The result updates instantly — nothing is sent to a server or saved.
Safety Stock Calculator
Z-score for 95%
1.64
Safety stock
34.8 units
Add this figure to your expected demand during lead time to get a full reorder point — see the reorder point calculator to combine the two. Run this per SKU: demand variability and lead time both differ by product, so a single safety-stock number applied across the whole catalog under-buffers volatile items and over-buffers stable ones.
03 — Formula
The safety stock formula, explained
This calculator uses the statistical (Z-score) method, the most common approach when you have enough sales history to calculate a standard deviation of demand.
Safety Stock = Z × σ(demand) × √(lead time)
Three factors multiply together. The Z-score encodes your target service level as a number of standard deviations of buffer. The standard deviation of daily demand measures how much actual sales swing around the average. The square root of average lead time scales the buffer for how long that variability has to play out before the next delivery arrives.
- Z-score: derived from your target service level (95% → 1.65)
- σ(demand): standard deviation of daily or weekly demand for one SKU
- √(lead time): average lead time in days, square-rooted to reflect variance scaling over the period
A simpler alternative formula — (Max Daily Usage × Max Lead Time) − (Average Daily Usage × Average Lead Time) — skips the standard deviation but is a cruder approximation. See the safety stock glossary page for that method.
04 — Worked example
A safety stock calculation, step by step
The defaults preloaded in the calculator above walk through a real example.
- 1. Gather the inputs. A SKU has a standard deviation of daily demand of 8 units, an average supplier lead time of 7 days, and you want a 95% service level.
- 2. Convert service level to a Z-score. A 95% service level corresponds to a Z-score of approximately 1.65.
- 3. Apply the formula. Safety Stock = 1.65 × 8 × √7 = 1.65 × 8 × 2.646 ≈ 34.9 units.
- 4. Round for practical use. Round up to 35 units as the buffer to carry for this SKU, on top of expected demand during lead time.
Change the service level to 99% with the same demand and lead time, and the Z-score jumps to 2.33 — safety stock rises to roughly 49.4 units. The formula is the same; only the acceptable stockout risk changed, and that alone moved the buffer by 40%.
05 — Service level
Choosing a service level (and its Z-score)
Service level is the probability you will not stock out during lead time — it is a business decision, not a statistical one, and it directly sets the Z-score in the formula.
Higher service level, larger buffer, more tied-up cash
90-95% is a reasonable default for most SKUs. Push to 98-99%+ only for critical, high-margin, or hard-to-substitute items where a stockout is especially costly — the jump from 95% to 99% roughly doubles the Z-score's contribution above the mean, which meaningfully increases the units (and cash) held in reserve.
- 90%: Z ≈ 1.28 — leaner buffer, more frequent minor stockouts
- 95%: Z ≈ 1.65 — common default for most SKUs
- 98%: Z ≈ 2.05 — tighter risk tolerance, higher holding cost
- 99%: Z ≈ 2.33 — reserved for critical or hard-to-substitute items
06 — Common mistakes
Mistakes that throw off the calculation
The formula itself is simple; the inputs are where most safety stock calculations go wrong.
Using average demand instead of its variability
Average demand belongs in the reorder-point calculation, not here. Safety stock reacts to how much demand swings around that average — its standard deviation — not to the average itself.
One number for the whole catalog
Applying a single safety-stock figure across every SKU over-buffers stable, low-variability items and under-buffers volatile ones. Calculate it per SKU using that item's own demand history and lead time.
Never revisiting the inputs
A supplier whose lead time lengthens, or a product whose demand becomes more erratic, both mean an old safety-stock figure is stale. Recalculate periodically, not just once at setup.
07 — vs. reorder point & EOQ
Safety stock vs. reorder point vs. EOQ
These three numbers work together but answer different questions — mixing them up is one of the most common inventory-planning errors.
Safety stock is a buffer, not a trigger
Safety stock is only the buffer component calculated here. Reorder point adds expected demand during lead time on top of that buffer to answer 'when do I reorder.' Economic order quantity (EOQ) is a separate calculation answering 'how much do I order' by minimizing ordering and carrying costs — it does not use the Z-score formula at all.
- Safety stock: the buffer, from this calculator
- Reorder point: (Average Demand × Lead Time) + Safety Stock — when to reorder
- EOQ: a separate cost-minimizing formula — how much to order each time
08 — Software
What software can (and can't) do for safety stock
StockFlow tracks the stock levels and sales history you need to run this formula per SKU — it does not calculate a Z-score-based safety stock figure for you automatically.
Per-SKU sales history
The data you need to calculate a standard deviation of daily demand for each product.
Minimum stock level alerts
Set a per-product threshold — safety stock included — and get a low-stock email alert once quantity on hand reaches it.
Frequently asked questions
What formula does this safety stock calculator use?
Safety Stock = Z-score × Standard Deviation of Daily Demand × √(Average Lead Time in Days). The Z-score corresponds to your chosen service level (1.65 for 95%, for example), reflecting how much buffer is needed to cover demand variability during lead time at that confidence level.
What service level should I use?
Higher service levels (98-99%+) mean fewer stockouts but require more safety stock and tie up more cash. 90-95% is a common starting point for most small-business SKUs; reserve 98-99%+ for critical, high-margin, or hard-to-substitute items where a stockout is especially costly.
Where do I get my demand standard deviation?
Calculate it from recent daily (or weekly) sales history for the specific SKU — most spreadsheet tools have a built-in STDEV function. A rough estimate from a few months of history works, but the more variable your actual demand, the more precisely this number matters.
Is this the same as the simple max-minus-average formula?
No — there are two common safety stock formulas. This Z-score method uses the statistical standard deviation of demand and a chosen service level. A simpler alternative is (Max Daily Usage × Max Lead Time) − (Average Daily Usage × Average Lead Time), which needs no standard deviation but is a cruder approximation. Both are valid; the Z-score method is generally more precise when you have enough sales history to calculate a standard deviation.
How is safety stock different from a reorder point?
Safety stock is only the buffer component. A full reorder point adds expected demand during lead time on top: Reorder Point = (Average Daily Usage × Average Lead Time) + Safety Stock. Use this calculator for the buffer, then the reorder point calculator to combine it with expected demand.
Does this calculator save my numbers?
No. This is a client-side calculation only — nothing is sent to a server or saved. Refreshing the page resets it to the defaults.
Does StockFlow calculate safety stock automatically?
StockFlow does not run the Z-score formula for you. It tracks the stock levels and sales history you need as inputs, and lets you set a per-product minimum stock level (your reorder trigger, safety stock included) that triggers a low-stock email alert once quantity on hand reaches it.
Track the sales history your safety stock number depends on
StockFlow tracks per-SKU stock levels and sales history so you have the real inputs for this calculation — free to start.