Safety stock calculation: Formula, example and how to avoid excess inventory

9 min read
23. October 2026

You have 160 units of safety stock for one SKU. Nobody remembers who calculated that number, or why. It feels safe, but every unit in that buffer is cash sitting still on a shelf. And if your safety stock is set incorrectly, it may not protect you against the stockouts that matter most.

There is no single standard safety stock formula. This guide covers the methods used in practice, the assumptions behind them, the same worked example run through each of them, and the mistakes that can leave you with too much inventory.

What is safety stock, and what isn't it?

Safety stock is the extra inventory you hold to cope with the unexpected: customers who buy more than usual, and suppliers who deliver later than expected.

Safety stock is part of the calculation of your reorder point: the expected demand while you wait for a new delivery, plus safety stock.

If you sell 12 units a day and the lead time is 10 days, your reorder point is 120 units plus safety stock.

When you decide whether it's time to reorder, you don't just look at what's on the shelf. You also take into account items you have already ordered and orders you haven't delivered yet. That is called your inventory position.

One more thing before you calculate. Inventory you hold because the supplier makes you buy 500 at a time is not safety stock. It is the result of a purchasing term. Mix the two up and your buffer looks bigger than it really is.


Which methods can you use to calculate safety stock?

There are both simple rules of thumb and statistical methods for calculating safety stock.

The simple methods use, for example, a fixed number of days of cover, or historical averages and maximum values.

The statistical methods are based on standard deviations and a target service level. Some only account for variation in demand, while others also include variation in lead time.

Which method fits depends on your data and the item's demand pattern. Below, we follow the same item through two different calculation methods.


How do you calculate safety stock with a rule of thumb?

A simple rule of thumb, known as the average-max method, compares the highest observed daily demand and the longest lead time with the corresponding averages.

Safety stock = (max daily demand × max lead time) − (average daily demand × average lead time)

Let's take an item we'll follow throughout the article. The example is hypothetical. You sell an average of 12 units a day, but have sold as many as 20 on your busiest days. Lead time is usually 10 days, but has reached 14.

20 × 14 − 12 × 10 = 160 units

That is just over 13 days of normal sales. The method is easy to explain and only needs data you already have. Its weakness is that it combines the highest observed demand with the longest observed lead time, even though the two don't necessarily occur at the same time. A single unusual period in your historical data can therefore leave you with an unnecessarily large buffer for years.


The safety stock formula with service level: Z × σ × √lead time

The statistical approach starts with a different question: how much risk of running out are you willing to accept? That depends on the service level you choose. The higher the cycle service level, the lower the risk of running out during a replenishment cycle. In the calculation, the service level is translated into a Z-score.

In this formula, service level means cycle service level: the probability of not running out during a replenishment cycle. It is not the same as fill rate, the share of demand you deliver straight from inventory. If the sales and purchasing teams use different definitions, they can end up talking past each other.

Safety stock = Z × σ × √L

Z is the Z-score for your target service level, σ is the standard deviation of daily demand, and L is the lead time in days. Use the same time unit throughout. If σ is calculated from weekly demand, the lead time must be in weeks too.

The formula assumes that you reorder when your inventory position reaches a set level: your reorder point.

If you review inventory at fixed intervals instead, the calculation also has to cover the time until the next review.

The method rests on assumptions: that demand during the lead time can be described reasonably well by a normal distribution, that its level is stable, and that day-to-day variation is independent. If the assumptions don't hold, the result can be misleading.

Cycle service level Z-score
90% 1.28
95% 1.65
98% 2.05
99% 2.33

 

We use the same item as before. You sell 12 units a day on average, but sales vary from day to day. In the example, we have calculated a standard deviation of 5 units. It is a statistical measure of how much daily sales typically vary around the average.

With a lead time of 10 days and a target cycle service level of 95%, the calculation is:

1.65 × 5 × √10 ≈ 26 units

But what if the supplier doesn't always deliver on time either?

Then you also need to account for the variation in lead time. In our example, the average lead time is 10 days with a standard deviation of 2 days.

To include both types of uncertainty, you use the extended formula:

Safety stock = Z × √(L × σdemand² + average daily demand² × σlead time²)

That gives: 1.65 × √(10 × 25 + 144 × 4) = 1.65 × √826 ≈ 47 units

So safety stock rises from about 26 to 47 units once you also account for variation in lead time.

The extended formula assumes that variation in demand and in lead time is independent. If they are linked, for example because the supplier slows down precisely when demand peaks, the approximation is no longer reliable. The calculation then needs a model that accounts for that relationship, or you may both under- and overestimate how much safety stock you need.

Method Result When does it make sense?
Average-max 160 units Simple rule of thumb, but sensitive to extreme values
Statistical, fixed lead time approx. 26 units When lead time is stable and demand fits the model
Statistical, variable lead time approx. 47 units When both demand and lead time vary, under the model's assumptions

 

The rule of thumb gives 160 units, while the statistical method gives around 47 at a 95% cycle service level. At a unit cost of €30, the difference is about €3,400 in inventory value on a single SKU.

It isn't automatically a saving, because the methods rest on different assumptions and service levels. But it is a gap worth investigating.

The Z-score table also shows what the last few percentage points cost. Raise the service level from 95% to 99% and the buffer grows from 47 to 67 units, because the Z-score goes from 1.65 to 2.33.

In this example, four percentage points more service means just over 40% more safety stock. Make that decision deliberately, item by item, not as one standard for the whole range.


Which safety stock method suits your items?

The statistical method assumes demand varies fairly evenly around an average. That holds for some items and not at all for others. So it can be useful to segment your items by both value and demand pattern. You can do that with an ABC-XYZ analysis, where ABC shows the items' relative consumption value, while XYZ shows how stable or irregular demand is.

AX items have high value and stable demand. Here the statistical method can be a good starting point, provided demand follows the model's assumptions.

AZ items have high value but irregular demand: three months of nothing, then one large order. Here the normal distribution model can give a misleading result, because demand doesn't follow the assumptions the formula is built on. So add what you know about your customers and their ordering patterns.

CZ items have low value and infrequent demand. Ask whether they need a fixed safety stock at all, or whether they should be special order items that you order in when a customer asks.

The segment is a starting point for choosing the method and service level, not a rule. The cost of a stockout, lead time and supplier reliability may all justify treating an item differently from others in the same segment. A cheap CZ item that stops an assembly line needs different treatment from a cheap CZ item the customer is happy to wait for.

If you have limited history, a simple rule of thumb can be a temporary starting point. But it isn't necessarily more reliable than a statistical model, especially if your maximum values rest on only a few observations, or unusual ones.


Can you calculate safety stock in Excel?

Yes. Excel is a practical place to start when you want to calculate safety stock, and for a first model it works fine. Put the target cycle service level in B2 (95%), the standard deviation of daily demand in B3 (5), the average lead time in B4 (10), the standard deviation of lead time in B5 (2) and average daily demand in B6 (12). Then the formulas in English Excel are:

Fixed lead time: =NORM.S.INV(B2)*B3*SQRT(B4)

Variable lead time: =NORM.S.INV(B2)*SQRT(B4*B3^2+B6^2*B5^2)

The second gives about 47 units, which you round up to 48. You can calculate the standard deviation with =STDEV.S() on historical demand data. If you use sales figures, watch out for periods with stockouts, where sales don't show the real demand.

The challenge comes later. The spreadsheet is built using data exported in February. The lead times are the ones the supplier promised, not the ones you got. And only one person knows how the formulas fit together. So safety stock gets calculated once and then lives on while demand and suppliers change.

Excel can work for a limited number of product groups, as long as the data is updated and someone owns the process. With thousands of SKUs, keeping the numbers current becomes hard.


Why does safety stock end up too high?

In our worked example, the calculated safety stock rises from about 26 to 47 units once we also account for variation in lead time. That shows why looking at demand alone isn't always enough. Supplier uncertainty can also have a big impact on how much safety stock you need. So working on supplier performance can be at least as relevant as adjusting your inventory parameters.

Other times, the uncertainty lies in demand. Large swings or changing sales patterns can make it hard to set the right buffer. Here, better demand planning can do more good than simply increasing safety stock.

Then there are purchasing terms. You sell 100 units a year, but the supplier's minimum order quantity is 250. One order therefore covers two and a half years of average demand. That is a different inventory problem from an incorrectly calculated safety stock, and the solution may be to renegotiate the order quantity or find another supplier, not to recalculate safety stock.

Finally, the products themselves. An item on its way out still has a healthy sales history, so the calculation gives it a full buffer. Safety stock should therefore be reassessed as the item is phased out, so it reflects expected demand and any service commitments. That belongs with the decision in assortment management.


How to calculate safety stock step by step

Start with one product group where you have either a lot of working capital tied up or a lot of backorders. A simple model that people actually use is better than a perfect one that never gets put into practice.

  1. Pull daily or weekly sales and the actual lead times per supplier. You need enough history to show the item's pattern. If the item is seasonal, include at least one full season.
  2. Identify one-off orders and campaigns, and separate known or planned demand from the variation safety stock is meant to cover.
  3. Split the items into ABC-XYZ segments and set a service level per segment as a starting point. Adjust the items where the consequence of running out is bigger or smaller.
  4. Choose a method per segment based on whether its assumptions hold, and calculate safety stock per SKU.
  5. Compare with your current safety stock and look at the largest gaps first.
  6. Repeat the calculation at regular intervals, and straight away when a supplier or an item's status changes.


See your safety stock in your own data

The calculation is the easy part. The hard part is applying it across thousands of SKUs, keeping lead times up to date and identifying where you may be holding more safety stock than the risk justifies. In Inact you categorise your items and adjust service levels, safety stock and reordering by category, so the whole range doesn't run on the same rules. See how inventory optimisation works in Inact.

 

Frequently asked questions about safety stock calculation

How much safety stock should I have?

It depends on how much demand and lead time vary, and on the service level the item needs. No fixed number of days fits every item. A stable item from a reliable supplier can manage with a small buffer, while an item with an unreliable supplier may need a much larger one.

What is the difference between safety stock and minimum stock?

Safety stock is the buffer you hold against uncertainty. Minimum stock is a control parameter, and what it means exactly depends on your ERP system. Some systems use it as the reorder trigger, while others handle safety stock and reorder point separately.

How do I find the Z-score?

The Z-score comes from the standard normal distribution and matches the service level you choose: 1.65 for 95% and 2.33 for 99% (rounded). In Excel you get it with =NORM.S.INV() and the service level as a decimal.

How often should safety stock be updated?

There is no fixed frequency. It depends on how quickly demand and lead times change. Review the calculation straight away when a supplier changes its lead time or an item changes status. High-value items with large swings may deserve closer follow-up.

Can safety stock be zero?

Yes, for items where the customer accepts a wait, or where you can get the item faster than the customer needs it. That could be cheap, slow-selling items, for example. For items where a stockout means a lost sale or a stopped production line, zero is a risky choice.

Back to top