Safety stock is the extra inventory you hold on top of expected demand to protect against two risks: customers buying more than forecast, and suppliers delivering later than planned. The standard formula is safety stock = z × √(L × σd² + d² × σL²), where z sets the service level, L is the lead time, d is average demand and the two σ terms measure how much demand and lead time vary.

This guide walks through the calculation step by step with a worked example, compares the common methods, shows how to do it in Excel, and covers the two cases where the textbook formula gives the wrong answer: seasonal items and slow movers. For how safety stock fits into the wider picture of service levels, segmentation and multi-echelon planning, see our inventory optimization guide.

What safety stock protects against

Between placing a replenishment order and receiving it, two things can go wrong:

  • Demand variability. Sales during the lead time come in above the forecast.
  • Supply variability. The order arrives later than the standard lead time, so the stock has to last longer.

Safety stock covers both, up to a chosen level of risk. It is not a cure for a biased forecast: if the forecast is consistently low, the fix is the forecast, not a bigger buffer. A forecast that runs consistently low or high shows up as bias in your accuracy measures; our forecast accuracy guide shows how to measure it.

The safety stock formula

Safety stock = z × √(L × σd² + d² × σL²)

SymbolWhat it isWhere to get it
zService factor for the target cycle service levelTable below, or NORM.S.INV in Excel
LAverage lead timeOrder-to-receipt history by supplier and item
σdStandard deviation of demand per period (better: of forecast error)Sales or forecast-error history
dAverage demand per periodSales history or forecast
σLStandard deviation of lead timeSame receipt history as L

Every input must use the same time unit. If lead time is in days, demand and its standard deviation must be daily. Mixing a weekly standard deviation with a lead time in days is the most common error in safety stock spreadsheets.

How to calculate safety stock: a worked example

An item sells an average of 100 units a day with a standard deviation of 30. The supplier’s lead time averages 9 days with a standard deviation of 2 days. The target is a 95% service level, so z is about 1.65.

  1. Demand risk during the lead time: L × σd² = 9 × 30² = 8,100
  2. Lead time risk: d² × σL² = 100² × 2² = 40,000
  3. Combine and take the square root: √(8,100 + 40,000) = √48,100 ≈ 219
  4. Multiply by z: 1.65 × 219 ≈ 360 units

Notice which term dominates. The two-day swing in lead time contributes about five times as much risk as the day-to-day swing in demand. For this item, working with the supplier on delivery reliability would cut the buffer more than any forecasting improvement.

From safety stock to reorder point

The reorder point is the stock level that triggers a new order: Reorder point = d × L + safety stock. Here that is 100 × 9 + 360 = 1,260 units. When stock on hand plus on order falls to 1,260, it is time to reorder.

If you review stock periodically

The formula above assumes you watch stock continuously and order the moment it hits the reorder point. If you review and order on a fixed cycle, say every Monday, the buffer has to cover the review period as well: replace L with L + R in the demand term. With a weekly review (R = 7 days), the example becomes 1.65 × √(16 × 30² + 100² × 2²) ≈ 385 units.

Choosing the service level (z)

Cycle service levelzSafety stock for the example
90%1.28about 280
95%1.65about 360
98%2.05about 450
99%2.33about 510
99.5%2.58about 570

The cost of service rises steeply. Going from 95% to 99% adds about 40% to the buffer. That is why service targets should be set by segment, not as one number for the whole catalog; the inventory optimization guide shows how to segment by value and variability.

Be clear about which “service level” you mean. The z-based formula targets the cycle service level: the share of replenishment cycles with no stockout. The fill rate (the share of demand shipped from stock) is usually higher for the same buffer, because even a cycle that runs short ships most of its units. Customers experience fill rate; the formula sets cycle service level. Mixing them up leads to buffers that are larger than needed.

Safety stock methods compared

MethodCalculationExample resultWhen it fits
Days of coverFixed days × average daily demand (7 × 100)700Quick start, very stable items; ignores variability
Max-averageMax daily demand × max lead time − d × L (160 × 13 − 900)1,180Simple, but assumes the worst day and the worst delay happen together
Demand variability onlyz × σd × √Labout 150Suppliers that are reliably on time
Lead time variability onlyz × d × σLabout 330Steady demand, unreliable supply
Combined (standard formula)z × √(Lσd² + d²σL²)about 360The default for most make-to-stock items
Forecast-error basedStandard formula with σ of forecast error in place of σdabout 345*Seasonal, trending or promoted items

*Assuming the forecast error has a standard deviation of 20 units a day, against 30 for raw demand.

The spread is the point. The same item needs anywhere from 150 to 1,180 units depending on the method. Rules of thumb err in both directions: too much stock on stable items, too little on the volatile ones.

Using forecast error instead of demand variability

The textbook formula uses the standard deviation of demand. That works when demand is flat. When demand has a trend, seasonality or promotions, the swings in raw demand are mostly predictable, and counting them as risk inflates the buffer. What the buffer really has to cover is the part the forecast gets wrong.

So for most items, use the standard deviation of forecast error (actual minus forecast) over the same lag as your lead time. If your system reports mean absolute deviation (MAD) rather than a standard deviation, multiply MAD by about 1.25 to approximate it. This is also where forecast quality turns directly into working capital: a better forecast shrinks σ, and the buffer with it.

Safety stock in Excel

Put the inputs in cells and the formula does the rest:

CellInputExample
B1Service level0.95
B2Average lead time (days)9
B3Std dev of daily demand or forecast error30
B4Average daily demand100
B5Std dev of lead time (days)2

=NORM.S.INV(B1)*SQRT(B2*B3^2+B4^2*B5^2) returns about 361. The reorder point is =B4*B2+ that result. To convert a daily standard deviation to weekly, multiply by √7 (assuming days are independent), and convert lead time to weeks too.

Seasonal items

A single annual safety stock number fails seasonal items twice: it is too small going into the peak and too large going out of it, which is how buffers turn into end-of-season markdowns. Three adjustments fix most of it:

  1. Base σ on forecast error, not demand. The seasonal shape is predictable; only the error around it is risk.
  2. Time-phase the buffer. Express safety stock as weeks of forward cover against the upcoming forecast. Two weeks of cover is 2,000 units when the next weeks forecast 1,000 a week, and 400 units in the off-season at 200 a week. The buffer rises before the peak and falls on its own as the season winds down.
  3. Stop building buffer near the end of the selling window. In the last weeks of a season, a unit of safety stock that doesn’t sell has to be marked down or carried for a year. Many planners let the buffer run down to zero over the final replenishment cycle.

For products bought once per season with no chance to reorder, such as much of fashion and seasonal goods, safety stock isn’t the right model at all. The question becomes how much to buy against an uncertain total, and the classic answer is the newsvendor critical ratio: buy up to the point where the probability of selling the next unit equals cost of a lost sale ÷ (cost of a lost sale + cost of a leftover unit). If a lost sale costs $30 of margin and a leftover unit loses $20 after markdown, the ratio is 30 ÷ 50 = 60%: buy to the 60th percentile of the demand forecast, not the 95th. Our apparel planning guide covers how seasonal buys fit into open to buy.

Slow-moving and intermittent items

The standard formula assumes demand follows a normal distribution. For an item that sells a few units a month with many zero weeks, it doesn’t, and the formula misleads in both directions. Three better approaches:

  • Use a discrete distribution. If demand during the lead time averages 2 units, a Poisson distribution says you need a reorder point of 5 to cover 95% of lead times (4 covers only about 94.7%). The normal formula gives 4.3, which rounds down to too little.
  • Forecast with methods built for intermittent demand. Croston and its bias-corrected variant (SBA) forecast the size of orders and the gap between them separately. Feeding a regular moving average into a safety stock formula overstates both the average and the variability.
  • Decide whether to stock it at all. For very slow, lumpy items, the cheapest service is often one central stock point instead of one per location, a simple min/max of one or two units, or making or buying to order with a quoted lead time.

Common safety stock mistakes

  1. Mixing time units: weekly standard deviation, lead time in days.
  2. Ignoring lead time variability: in the example it is most of the risk.
  3. Using demand variability on seasonal or promoted items instead of forecast error.
  4. One service level for every item instead of targets by segment.
  5. Never recalculating. Demand, error and supplier performance change; buffers should be refreshed on a regular cycle, monthly or quarterly for most businesses.
  6. Measuring demand from shipments during stockouts. Sales lost to stockouts don’t show up in history, so average demand and its variability are both understated for exactly the items that need more protection.
  7. Treating safety stock as the cure for a biased forecast. Bias needs fixing at the source.

How K3 helps

K3’s consultants set up safety stock and service-level policies as part of supply chain and replenishment projects: segmenting items, choosing the method that fits each segment, and building the calculations from your own sales, forecast and receipt history, whichever ERP or planning platform you run.

In K3 Demand, K3’s planning solution, the buffer is set per item in weeks of cover and included in each period’s buy calculation alongside the published plan and the target closing stock. The result is recommended purchase orders you approve. The methods above are how to decide what those weeks of cover should be.

Frequently asked questions

What is safety stock?

Safety stock is extra inventory held on top of expected demand to protect against two risks: demand running higher than forecast, and supply arriving later than planned. It is the buffer that is still on the shelf, on average, when the next replenishment arrives.

What is the formula for safety stock?

The standard formula is safety stock = z × √(L × σd² + d² × σL²), where z is the service factor for the target service level, L is the average lead time, σd is the standard deviation of demand per period, d is average demand per period, and σL is the standard deviation of lead time. If lead time is reliable, it reduces to z × σd × √L.

How do you calculate safety stock in Excel?

Get the service factor with =NORM.S.INV(0.95) for a 95% service level (about 1.645). With the service level in B1, lead time in B2, demand standard deviation in B3, average demand in B4 and lead time standard deviation in B5, use =NORM.S.INV(B1)*SQRT(B2*B3^2+B4^2*B5^2). Keep all inputs in the same time unit.

What is the difference between safety stock and the reorder point?

Safety stock is the buffer. The reorder point is the stock level that triggers a new order: average demand during the lead time plus safety stock. With 100 units a day, a 9-day lead time and 360 units of safety stock, the reorder point is 1,260 units.

What service level should I use for safety stock?

Set it by segment rather than one number for everything. High-value, predictable items can carry high targets cheaply; low-value, volatile items are candidates for lower targets. Remember that the cost rises steeply: moving from 95% to 99% raises safety stock by about 40%.

How do you calculate safety stock for seasonal items?

Use the standard deviation of forecast error rather than of raw demand, and express the buffer as weeks of forward cover against the upcoming forecast, so it rises before the peak and falls before the season ends. For a product bought once per season, use the newsvendor critical ratio instead of a safety stock formula.

How do you calculate safety stock for slow-moving items?

The normal-distribution formula breaks down when demand is a few units at a time with many zero periods. Use a Poisson or other discrete distribution to find the stock level that meets the target, forecast with methods built for intermittent demand such as Croston or SBA, and consider holding very slow items centrally or making them to order.

What is the max-average safety stock method?

It sets safety stock as maximum daily demand × maximum lead time minus average daily demand × average lead time. It is easy to calculate but assumes the worst day and the worst lead time happen together, so it usually holds far more stock than a statistical calculation for the same service.