Audited 05 Aug 2026·Last updated 28 Oct 2026·5 citations·Tier 1·0 uses

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

Safety stock under constant-lead-time variant
156.5327
Units of safety stock for your service factor, demand variability and lead time, assuming the lead time is constant; round up to a whole unit.
Lead-time demand standard deviation
94.8683
Service factor used
1.65

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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 = service factor z × daily demand standard deviation × √lead time

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.

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.

daily Demand Standard Deviation30
lead Time Days10
service Factor Z1.65

Frequently asked questions.

What service level should I aim for?
The level at which one more unit of buffer costs about as much as the stockouts it prevents. For an item costing $40 with a 24% annual carrying rate, 157 units of safety stock at 95% cost about $1,507.20 a year to hold; the 222 units needed for 99% cost about $2,131.20. Critical items, such as parts that stop a production line, justify the higher figure; slow, cheap-to-substitute items may not. Setting a level for each class of item, rather than one for everything, lets the buffer follow what a stockout really costs.
Is a 95% service level the same as a 95% fill rate?
No. Cycle service level counts replenishment cycles without any stockout; fill rate counts units served from stock. With z = 1.65 and a lead-time standard deviation of 94.87 units, the expected shortage per cycle is only about 1.96 units, so with orders of 500 units the fill rate is about 99.61%, and with orders of 2,000 about 99.90%. If customers judge you on fill rate, a lower z may be enough.
How do I work out the standard deviation of daily demand?
Take daily demand for at least a few months, count days with no sales as zeros, and drop days when you had nothing to sell, then apply a spreadsheet's STDEV.S function. If your system reports mean absolute deviation instead, multiply it by about 1.25 for normally distributed errors — a MAD of 24 implies a standard deviation of about 30.08. If you have weekly data, divide its standard deviation by √7 for a daily figure, assuming days are independent.
Why doesn't doubling the lead time double the safety stock?
Because over a longer period high and low days tend to offset each other, so the spread of total demand grows with the square root of time. In the example, a 20-day lead time needs about 221.37 units at z = 1.65, which is √2, or about 1.41, times the 10-day figure; a 5-day lead time needs about 110.69. Shortening lead time therefore cuts safety stock, but by less than people tend to hope.
What if my supplier's lead time varies?
Then this result is too low. Measure the standard deviation of actual lead times from your purchase-order and receiving dates and use √(L × σd² + d² × σL²) for the lead-time standard deviation before multiplying by z. With 100 units a day, even a 2-day spread in delivery more than doubles the buffer in the worked example. Making delivery more reliable is often cheaper than holding the extra stock.
How often will I actually run out at a 95% service level?
About once in every twenty replenishment cycles, whatever the order size. An item selling 36,500 units a year in orders of 1,000 goes through 36.5 cycles a year, so at z = 1.65 you would expect a stockout of some size in about 1.8 of them. Ordering more often means more cycles, so with the same z, smaller and more frequent orders bring more stockout events a year.
Should I base safety stock on forecast error or on demand variability?
On whatever you cannot predict. If you plan stock around a forecast that already anticipates a December peak, that peak is not uncertainty, and building it into σ would inflate the buffer all year. The right measure is then the standard deviation of forecast errors, actual minus forecast. If you simply reorder against a flat average, raw demand variability is what you face, and the plain standard deviation is right.
Does the formula work for slow-moving or lumpy items?
Poorly. An item that sells a couple of units a week, or one that sits idle and then goes out in large orders, does not have normally distributed demand, and a normal model can put too little stock against the occasional big order. Count-based models such as the Poisson distribution, or a buffer read directly from the history of lead-time demand, serve these items better than z × σ × √L.
How much does safety stock add to my average inventory?
All of it, all year. Average inventory in a reorder-point system is roughly half the order quantity plus the safety stock, because the cycle stock runs down from a full order to near zero while the buffer stays in place. With orders of 1,000 units and 157 units of safety stock, average inventory is about 500 + 157 = 657 units, so nearly a quarter of what sits on the shelf is buffer. That is why the service level choice shows up directly in carrying cost.
Is there any point in a service factor above 3?
Rarely. A z of 3.09 already corresponds to about 99.9% in the normal model, and far out in the tail real demand seldom follows the bell curve closely enough for the extra precision to mean anything. Beyond that point the larger risks are a supplier failure, a data error or a sudden change in demand, which more stock of the same kind does little to guard against. Contingency plans and second sources usually protect critical items better.

References& sources.

  1. [1]NIST/SEMATECH e-Handbook of Statistical Methods; normal distribution and standard-deviation scaling. Retrieved 2026-08-07.
  2. [2]U.S. Census Bureau. Quarterly financial report. Retrieved 2026-08-07.
  3. [3]U.S. Small Business Administration. Manage your finances. Retrieved 2026-08-07.
  4. [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. [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
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.

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon