Deciding "How Many Times the Average to Keep in Stock" in Demand Planning — How Safety Stock Works

· · Inventory Management, Safety Stock, Demand Forecasting, Statistics, Excel, Mathematical Consulting

Post on X
Revision history (first version, published Nov 1, 2026)
First published
Cite this article(DOI: 10.5281/zenodo.23856491)

This article is archived on Zenodo. Below are both the DOI that always resolves to the latest version and the DOI pinned to the version you are reading.

Go Komura (2026). Deciding "How Many Times the Average to Keep in Stock" in Demand Planning — How Safety Stock Works. KomuraSoft LLC. https://doi.org/10.5281/zenodo.23856491 https://comcomponent.com/en/blog/safety-stock-reorder-point-basics/

DOI (latest version)
10.5281/zenodo.23856491
DOI (this version)
10.5281/zenodo.23856492

Some companies decide how much inventory to hold with a multiplier, such as “twice the average” or “one month’s worth.” It is an easy rule to understand, but there is no basis for saying what the multiplier should be. You end up repeating adjustments: raise the multiplier for items that kept running out, lower it for items left over.

This article explains how to set an inventory target with the idea of “safety stock” instead of a multiplier. The short answer is that safety stock is not some multiple of the average; it is determined by four things: demand variability, the lead time, the ordering policy, and how strongly you want to avoid stockouts. The formulas are simple enough to calculate in a spreadsheet, and a worked example using Excel functions is included.

The scope is inventory that is replenished and used, such as goods bought for resale or parts. The formulas are the standard ones taught in logistics and inventory management lecture materials, and every number in the worked examples is a fictitious value made up for explanation. The formulas rest on assumptions and some items do not fit them, so the last section covers how to tell those items apart.

Why “a multiple of the average” cannot decide it

Suppose two items each sell an average of 20 units a day. Item A sells steadily, between 18 and 22 units every day. Item B sells 5 units on some days and 40 on others. Because the averages are the same, deciding by “a multiple of the average” gives them the same inventory, but item B is clearly the one more likely to run out.

You hold more than the average so that you do not run out even if more sells than expected between placing an order and receiving it. How much extra you need depends on how much sales fluctuate, how many days delivery takes, when you place orders, and how far you tolerate stockouts. The size of the average does not appear in the safety stock formula, except when the delivery date varies.

Four factors that determine safety stockShows that safety stock is determined by four factors: demand variability, lead time and its variability, the ordering policy, and the target service level.Demand variabilitySafety stockLead timeOrdering policyService level

Figure 1: Safety stock is determined by four things: demand variability, lead time, ordering policy and service level.

In the diagram a solid line marks a relation that always holds and a dashed line marks a conditional one (the conditions are given per relation on the detail page). The full list of relations (10 in total, with evidence and certainty) and the definitions of the main concepts are collected on the knowledge map detail page (in Japanese). Data: JSON-LD / Turtle

Safety stock and the reorder point

Consider a policy in which you watch the inventory level and place an order when it falls to a set level. The inventory level that triggers this order is called the reorder point. The time from placing an order to receiving the goods is the lead time, and the demand that goes out during that time is called lead-time demand1.

The reorder point is the average lead-time demand plus the safety stock. Put another way, safety stock is what remains after subtracting the average lead-time demand from the reorder point: a margin for when more sells than average12.

One cycle of a reorder point policyShows one cycle in which an order is placed when inventory falls to the reorder point, inventory keeps falling during the lead time, and inventory recovers when the goods arrive, and that the reorder point consists of average demand and safety stock.Inventory fallsFalls to the reorder pointPlace an orderLead time (until delivery)Goods arrive and inventory recoversReorder point = average lead-time demand + safety stock

Figure 2: The reorder point is made up of what sells at the average rate until delivery and a margin (safety stock) for when more than average sells.

If sales during the lead time match the average, the safety stock is what remains on hand when the goods arrive. Even if more than average sells, there is no stockout as long as the difference fits within the safety stock. Deciding how much safety stock to hold means deciding “how much more than average you prepare for.”

Expressing demand variability with the standard deviation

How much sales fluctuate can be expressed as the standard deviation of past sales. The standard deviation is a value that shows how far data is spread out from its average. In Excel you can calculate it with the STDEV.S function, which treats the data you pass as a sample and divides by n−13.

A standard deviation computed from daily sales is the fluctuation for one day. If the lead time is 9 days, what you need is the fluctuation of 9 days of demand. When each day’s demand can be treated as independent of the others, the variability (variance) of L days of demand is L times that of one day, and the standard deviation is √L times as large2.

Deriving the lead-time standard deviation from the daily standard deviationShows the flow of computing the one-day standard deviation from daily sales and multiplying by the square root of the number of lead-time days to get the standard deviation of lead-time demand.Daily salesOne-day standard deviation (STDEV.S)Multiply by √lead time (days)Standard deviation of lead-time demand

Figure 3: The fluctuation of lead-time demand is the one-day standard deviation multiplied by the square root of the number of lead-time days.

The fluctuation over 9 days is not 9 times the one-day figure but 3 times (√9). This is because high and low days offset each other, so even when the lead time gets longer, safety stock does not grow in proportion to the number of days. This offsetting, however, assumes that each day’s demand is independent.

Service level and the safety factor

Cycle service level

The service level puts a number on how far you want to avoid stockouts. A commonly used one is the cycle service level, which is the probability that no stockout occurs within one replenishment cycle21. At 95%, a stockout can occur during the lead time in roughly 1 out of 20 replenishments.

If lead-time demand is treated as following a normal distribution, the cycle service level determines a safety factor k, and the safety stock is k multiplied by the standard deviation of lead-time demand2. The normal distribution spreads symmetrically around its mean, and the one with mean 0 and standard deviation 1 is called the standard normal distribution4. k is the point at which the cumulative probability of the standard normal distribution equals the cycle service level, and in Excel it can be found with the NORM.S.INV function5.

Deriving safety stock from the cycle service levelShows the flow of finding the safety factor from the target cycle service level with NORM.S.INV, multiplying by the standard deviation of lead-time demand to get the safety stock, and adding average demand to get the reorder point.Target cycle service levelSafety factor k (NORM.S.INV)Safety stock = k × lead-time standard deviationReorder point = average lead-time demand + safety stock

Figure 4: Find the safety factor from the target service level and multiply by the standard deviation to get the safety stock.

The safety factors for common service levels, computed with NORM.S.INV, are as follows (to four decimal places).

Cycle service level Safety factor k Formula
90% 1.2816 =NORM.S.INV(0.9)
95% 1.6449 =NORM.S.INV(0.95)
98% 2.0537 =NORM.S.INV(0.98)
99% 2.3263 =NORM.S.INV(0.99)

Raising the level by 3 points from 95% to 98% increases k by about 0.41, while raising it just 1 point from 98% to 99% increases it by about 0.27. The higher the target, the more safety stock each additional point costs. Inventory balloons as you approach 100%, so rather than setting every item uniformly to 99%, one option is to set higher levels for items where a stockout has a bigger impact.

How it differs from the fill rate

There is another service level measure called the fill rate. It is the share of demand filled immediately from stock12. While the cycle service level counts “whether a stockout occurred,” the fill rate counts “how much was short.”

The two values can differ greatly. In an example from University of Iowa lecture material, with an order quantity of 500 units and lead-time demand averaging 150 units with a standard deviation of 50, a safety factor of 0.9 is enough to reach a 99% fill rate target. The cycle service level in that case is 81.6%, so a stockout occurs with 18.4% probability on each replenishment1. The fill rate is computed as 1 minus the expected shortage divided by the order quantity, so with a large order quantity a stockout is small as a proportion even when it happens2.

Difference between cycle service level and fill rateShows that the cycle service level is the probability that no stockout occurs in one replenishment cycle and the fill rate is the share of demand filled from stock, and that the two can differ greatly for the same inventory.The same safety stockCycle service levelFill rateProbability of no stockout in one cycleShare of demand filled from stock

Figure 5: Even with the same inventory, the service level value changes greatly depending on whether you count the number of stockouts or the quantity short.

When you say “a 95% service level,” decide first which measure the 95% refers to. The worked examples in this article use the cycle service level, whose formula is simpler.

A worked example in Excel

From here on, the calculation uses fictitious numbers. Item A sells 20 units a day on average, the standard deviation of daily sales is 6 units, and the lead time is 9 days and never varies. The target is a 95% cycle service level.

Cell Content Formula Result
E2 Average daily demand =AVERAGE(B2:B61) 20
E3 One-day standard deviation =STDEV.S(B2:B61) 6
E4 Lead time (days) Input 9
E5 Cycle service level Input 0.95
E6 Safety factor k =NORM.S.INV(E5) 1.6449
E7 Lead-time standard deviation =E3*SQRT(E4) 18
E8 Safety stock =E6*E7 29.6
E9 Reorder point =E2*E4+E8 209.6

B2:B61 is assumed to hold daily sales for the past 60 days. The “Result” column shows the values when the average and standard deviation come out at exactly 20 and 6. The safety stock is about 30 units and the reorder point about 210 units. If you order when inventory (including quantities already ordered but not yet received) falls to 210 units, the probability of a stockout before the goods arrive 9 days later is about 5%.

Steps in the worked exampleShows the steps of finding the average and standard deviation from the past 60 days of sales, finding the safety factor from the service level, multiplying by the square root of the lead time to get the safety stock, and adding average demand to get the reorder point.Past 60 days of salesAverage 20, standard deviation 69-day standard deviation = 6 × 3 = 1895% → k = 1.6449Safety stock = 1.6449 × 18 ≈ 30Reorder point = 20 × 9 + 30 ≈ 210

Figure 6: Calculate the safety stock and reorder point in turn from four values: average, standard deviation, lead time and service level.

Like item B at the start, if the average is the same 20 units but the standard deviation is three times larger at 18 units, the safety stock is also three times larger, about 89 units. Conversely, if almost the same number sells every day and the standard deviation is 2 units, a safety stock of about 10 units is enough. Even with the same average, the safety stock needed differs greatly from item to item.

When the lead time varies

So far the lead time has been a constant 9 days every time. In practice, the number of days until delivery can vary because of the supplier. When the lead time varies with a mean of μ_L days and a standard deviation of σ_L days, the standard deviation of lead-time demand is found with the following formula1.

Standard deviation of lead-time demand = √( μ_L × σ_d² + μ_d² × σ_L² )
  μ_d: average daily demand   σ_d: standard deviation of daily demand
  μ_L: average lead time (days)   σ_L: standard deviation of lead time (days)

The first term comes from demand fluctuation and the second from fluctuation in the delivery date. For item A in the worked example, if the lead time varies with a mean of 9 days and a standard deviation of 2 days, this is √(9 × 36 + 400 × 4) = √1924 ≈ 43.9. The safety stock is 1.6449 × 43.9 ≈ 72 units, more than twice the roughly 30 units when the lead time is constant.

How lead-time variability adds to safety stockShows that the variability of lead-time demand consists of a part from demand fluctuation and a part from delivery-date fluctuation, and that safety stock is the combined standard deviation multiplied by the safety factor.Demand fluctuation (μ_L × σ_d²)Standard deviation of lead-time demandDelivery-date fluctuation (μ_d² × σ_L²)Safety stock = k × standard deviation

Figure 7: When the delivery date varies, safety stock needs a margin for that on top of demand fluctuation.

The lecture material points out that a long lead time with no variability can sometimes require less safety stock than a lead time that is shorter on average but varies a lot1. When comparing suppliers, record and compare not only the average number of days but also how much the delivery date varies.

When you order on fixed days

There is also a policy of checking inventory and ordering at fixed intervals, such as ordering every Monday. Each time, the order quantity is set to bring inventory back up to a certain level (the order-up-to level). With this policy you need to cover demand for R + L days: the interval R until the next order plus the lead time L until delivery6.

Coverage period under a reorder point policy and a periodic review policyShows that under a reorder point policy safety stock covers demand over the lead time, while under a periodic review policy it covers demand over the order interval plus the lead time.Reorder point policyCoverage period = lead time LPeriodic review policyCoverage period = order interval R + lead time LSafety stock = k × standard deviation over that period

Figure 8: When you order on fixed days, the period until the next order day is also part of the period whose fluctuation you must cover.

If item A in the worked example is switched to ordering every 7 days, the coverage period is 7 + 9 = 16 days. The 16-day standard deviation is 6 × √16 = 24 units, and the safety stock is 1.6449 × 24 ≈ 39.5 units. It is more than the roughly 30 units under the reorder point policy because inventory is not checked between order days, so safety stock also has to absorb the fluctuation over that period. The order-up-to level is 20 × 16 + 39.5 ≈ 360 units. At each order, you order this level minus the inventory position (inventory on hand plus quantities ordered but not yet received, minus backorders)6.

Items this formula does not fit

The formulas so far assume that demand follows a normal distribution and can be treated as independent from day to day. If you apply them to items that do not fit these assumptions, the safety stock may come out too large or too small.

What to check before applying the formulaShows checking, for each item, whether it has intermittent demand with many days without sales, whether it has seasonality or a trend, and whether it is a new item with no history, and not using the basic formula as is when one of these applies.Check the itemMany days without sales (intermittent demand)Has seasonality or a trendNew item with no sales historyNone of theseNormal distribution assumption fits poorlyUse the variability of forecast errorVariability cannot be measuredUse the basic formula

Figure 9: Before applying the formula, check whether the shape of demand fits its assumptions.

Items with many days without sales

Some items, such as repair parts, go many days without selling and then sell in batches when they do. Such demand is called intermittent demand, and it is characterized by many periods of zero demand7. With intermittent demand, how to represent the distribution of lead-time demand is the hard part of inventory management, and there is research showing that the normal distribution can be used only when demand variability (the coefficient of variation) is small7. For such items, methods that fit other distributions, such as the gamma, Poisson and negative binomial distributions, have been studied7.

Items with seasonality or a trend

For items that sell in summer or grow year by year, the standard deviation of daily sales also includes the predictable changes due to the season or trend. MIT lecture material explains that the standard deviation used to compute safety stock is technically the root mean square error (RMSE) of the forecast over the lead time, and that substituting the standard deviation of demand amounts to treating the forecast as the average2. If seasonality and trends are built into the forecast, use the variability of the difference between forecast and actual rather than sales themselves.

New items with no sales history

A new item has no past sales, so the standard deviation cannot be calculated. The amount has to be decided outside the calculation, for example by referring to the history of similar items. Once history accumulates, recalculate with the formulas in this article.

Checking the chosen safety stock in operation

A calculated safety stock stops fitting when the underlying numbers (average, standard deviation, lead time) change. When the sales trend changes, or when you change suppliers or shipping methods, it is time to recalculate.

Also check whether the service level you targeted is actually being achieved. For the cycle service level, record for each item the share of replenishment cycles in which a stockout occurred. Items with more stockouts than targeted may have underlying numbers that no longer match reality, or may be items that do not fit the formula’s assumptions (normal distribution, independence). The advantage of deciding with a formula is that, instead of nudging a “multiple of the average” up and down, you can investigate which number is off.

References

  1. Dennis Bricker (The University of Iowa), Reorder Point. Definitions of reorder point, lead-time demand and safety stock; cycle service level and fill rate; the standard deviation formula when lead time varies; the example of a 99% fill rate with a safety factor of 0.9. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7

  2. MIT Center for Transportation & Logistics, CTL.SC1x Key Concepts: Week 7 Lesson 1 Probabilistic Inventory Models. Safety stock and the safety factor, the reorder point policy, cycle service level and fill rate, the relation between standard deviation and forecast error, and converting between periods. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7

  3. Microsoft Support, STDEV.S function. Computing the standard deviation of data treated as a sample, dividing by n−1. ↩

  4. NIST/SEMATECH, e-Handbook of Statistical Methods: Normal Distribution. Definitions of the normal distribution and the standard normal distribution. ↩

  5. Microsoft Support, NORM.S.INV function. The inverse of the cumulative distribution function of the standard normal distribution. ↩

  6. MIT Center for Transportation & Logistics, CTL.SC1x Key Concepts: Week 7 Lesson 2 Probabilistic Inventory Models II. The order-up-to level of the periodic review policy, and the period combining the order interval and lead time. ↩ ↩2

  7. Yasin Unlu, Manuel D. Rossetti (University of Arkansas), Evaluating the Lead Time Demand Distribution for (r, Q) Policies Under Intermittent Demand. Proceedings of the 2009 Industrial Engineering Research Conference. Characteristics of intermittent demand, and a review of prior research on when the normal distribution can be used. ↩ ↩2 ↩3

Recent articles sharing the same tags. Deepen your understanding with closely related topics.

These are topic pages close to this theme. Starting from the article, you can go on to related services and other articles.

This article leads to the following service pages. Start from the entry point closest to your situation.

Mathematical Consulting & Business Optimization

Safety stock is decided by turning each item's demand variability, lead time, ordering policy and target service level into formulas. Building the calculation for a large number of items, and handling items the formulas do not fit, can be worked out as mathematical consulting.

Frequently Asked Questions

Questions commonly asked at the time of consultation about the topic of this article.

How many times average demand should I keep in stock?
A multiplier alone cannot decide it. Safety stock depends on demand variability (standard deviation), the lead time from ordering to delivery, the ordering policy, and how strongly you want to avoid stockouts (the service level). Even for items with the same average, if the variability is three times larger, the safety stock is three times larger too.
What is the basic safety stock formula?
When you consider only demand variability and the lead time can be treated as constant, safety stock = safety factor × standard deviation of daily demand × √lead time (in days). The reorder point is the average demand during the lead time plus the safety stock. The safety factor is derived from the cycle service level using the normal distribution; for 95% it is about 1.645.
Does a 95% service level mean 95% of orders can be filled?
A 95% cycle service level means a 95% probability that no stockout occurs within one replenishment cycle. It is a different measure from the share of ordered quantity shipped from stock (the fill rate), and the two can differ greatly for the same inventory. Decide first which one you are targeting.
Are there items this formula does not work for?
For items with intermittent demand, which sell on few days with long runs of days without sales, the assumption that demand follows a normal distribution fits poorly. For items with clear seasonality or trends, use the deviation of forecasts from actuals (forecast error) rather than the variability of demand itself. For new items with no sales history, the variability cannot be measured.

Author Profile

Profile page for the article author.

Go Komura

Representative of KomuraSoft LLC

Focused on Windows software development, technical consulting, and bug investigation, with particular strength in projects where existing assets remain and in investigating failures whose cause is hard to see.

Back to the Blog