Safety Stock Calculator
Safety stock from a service factor z, the standard deviation of daily demand and a constant lead time: z × σ × √lead time, plus lead-time demand deviation.
Safety Stock Calculator
Background.
Safety stock grows with the square root of lead time, not in proportion to it. Double the wait for a delivery from 10 days to 20 and the buffer needed for the same protection rises by about 41%, not 100%, because busy days and quiet days partly cancel out over a longer stretch. That fact, and the normal-distribution reasoning behind it, is what the formula here captures: safety stock = z × σ × √L, where σ is the standard deviation of daily demand, L the lead time in days and z a service factor read from the standard normal table.
The service factor is a policy choice; the data cannot make it for you. A z of 1.65 sets the buffer so that, if demand over the lead time is normally distributed, about 95% of replenishment cycles end without running out. A z of 1.28 gives about 90%, and 2.33 about 99%. Each step up costs more than the last: moving from 95% to 99% raises safety stock by about 41%, and from 99% to 99.9% by roughly another third. Where to stop depends on what running out costs — a lost sale of a commodity item, a stopped production line, a patient waiting for a drug — weighed against the cost of carrying the extra units all year.
The formula rests on three assumptions worth checking before trusting the answer. Daily demands are independent and roughly normal around a stable average. The lead time is constant. And σ measures the uncertainty you actually face, which for a business that forecasts is usually the forecast error rather than the raw swings of a seasonal pattern it already expects. The second assumption fails most often, and when lead times wander the buffer needed can be far larger than this calculation reports.
What is safety stock calculator?
Safety stock is inventory held above expected demand during the replenishment lead time, to protect against variability in demand or supply. In a reorder-point system it is the second term of reorder point = expected lead-time demand + safety stock, and on average it is the stock still on hand when each delivery arrives. The statistical method sizes it as a multiple of the standard deviation of demand over the lead time. If daily demand has standard deviation σ and successive days are independent, the variance over L days is L × σ², so the standard deviation is σ√L. The multiple, z, is the number of those standard deviations held in reserve, and with normally distributed demand it maps directly to the cycle service level: the probability of not running out during a replenishment cycle.
How to use this calculator.
- Choose the service factor z for the cycle service level you want: about 1.28 for 90%, 1.65 for 95%, 2.05 for 98% and 2.33 for 99%. In a spreadsheet, NORM.S.INV(0.95) returns about 1.645, and the same function gives z for any other percentage.
- Enter the standard deviation of daily demand, calculated from daily sales or usage history with a spreadsheet's STDEV.S function. Leave out days when you were out of stock, since their sales understate demand. If you forecast, use the standard deviation of forecast errors instead.
- Enter the lead time in the same time unit as the standard deviation — days for a daily σ, weeks for a weekly one — using the average your supplier actually achieves. This model treats it as fixed.
- Round the safety stock up to a whole unit and add it to expected lead-time demand to get the reorder point; the Reorder Point Calculator does that step.
The formula.
Safety stock = z × σd × √L, where σd is the standard deviation of demand in one day, L the lead time in days, and z the service factor. The second output, σd × √L, is the standard deviation of total demand over the lead time; the third simply repeats the z you entered.
The √L comes from adding variances. If each day's demand varies independently with variance σd², the total over L days has variance L × σd² and standard deviation σd√L. Ten days of demand with a daily σ of 30 therefore has a standard deviation of about 94.87 units, not 300. The same rule converts between time units: a daily σ of 30 implies about 79.37 units over a seven-day week, or 67.08 over a five-day working week. It breaks down when days are correlated — a promotion that lifts a whole week, a trend, a big customer who orders every Monday — and then variability over the lead time is larger than √L suggests.
The z value is the standard-normal quantile for the cycle service level, the probability that demand during the lead time stays within expected demand plus safety stock. That is not the same as fill rate, the share of units demanded that are served from stock. A stockout usually affects only the last few units of a cycle, so fill rate runs well above cycle service level for the same z, and the gap widens as order quantities grow. At the other extreme, z = 0 means no safety stock at all: the reorder point equals expected lead-time demand, and with symmetric demand about half of all cycles end short.
The constant lead time is the assumption most often broken. If lead time varies around an average L with standard deviation σL days, and average daily demand is d, the standard deviation of lead-time demand becomes √(L × σd² + d² × σL²). The second term is not part of this calculation, so for suppliers with erratic delivery the result understates the buffer you need.
A worked example.
An item sells an average of 100 units a day with a standard deviation of 30 units, the supplier delivers in a steady 10 days, and the target is a 95% cycle service level, so z = 1.65. The standard deviation of demand over the lead time is 30 × √10 = 30 × 3.1623 ≈ 94.8683 units. Multiplying by the service factor, 1.65 × 94.8683 ≈ 156.5327 units of safety stock, or 157 rounded up. Added to expected lead-time demand of 100 × 10 = 1,000 units, it gives a reorder point of about 1,157. The constant-lead-time assumption carries real weight here. If those 10 days actually vary with a standard deviation of 2 days, the variance of lead-time demand becomes 10 × 30² + 100² × 2² = 9,000 + 40,000 = 49,000, a standard deviation of about 221.36 units, and the same 95% target needs about 365.24 units of safety stock — more than twice the figure above, most of it caused by delivery uncertainty rather than by customers.
Frequently asked questions.
What service level should I aim for?
Is a 95% service level the same as a 95% fill rate?
How do I work out the standard deviation of daily demand?
Why doesn't doubling the lead time double the safety stock?
What if my supplier's lead time varies?
How often will I actually run out at a 95% service level?
Should I base safety stock on forecast error or on demand variability?
Does the formula work for slow-moving or lumpy items?
How much does safety stock add to my average inventory?
Is there any point in a service factor above 3?
References& sources.
- [1]NIST/SEMATECH e-Handbook of Statistical Methods; normal distribution and standard-deviation scaling. Retrieved 2026-08-07.
- [2]U.S. Census Bureau. Quarterly financial report. Retrieved 2026-08-07.
- [3]U.S. Small Business Administration. Manage your finances. Retrieved 2026-08-07.
- [4]Silver, E. A., Pyke, D. F., & Peterson, R. (1998). Inventory Management and Production Planning and Scheduling, 3rd ed. Wiley. Service-level safety stock model. access: print. (PRINT)
- [5]Nahmias, S., & Olsen, T. L. Production and Operations Analysis, 7th ed. Waveland Press. Reorder-point and service-level models. access: print. (PRINT)
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 5 cited below
- Method
- safety stock = service factor z × daily demand standard deviation × √lead time
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled