Safety stock is the extra inventory you hold to protect against two kinds of uncertainty: customers buying more than usual, and suppliers delivering later than usual. There is no single safety stock formula. This guide compares three methods, from the simplest to the most rigorous, with a hypothetical example for each, so you can choose the one that suits the data you actually have.
How to calculate safety stock, step by step
- Pull your demand history. Use actual usage or shipments for the item, ideally 6 to 12 months, by day or by week.
- Clean it. Take out one-off project orders and periods when you were out of stock, because both distort the result.
- Measure lead time from your own records. Use the days from order placed to goods received, not the lead time the supplier quotes.
- Work out the averages and the spread. Average demand, the standard deviation of demand, average lead time and, if it moves, the standard deviation of lead time. Keep every figure in the same time unit.
- Choose a service level for the item and look up its z-score in the table below.
- Apply one of the formulas below, then round up to a sensible pack or pallet quantity.
- Check the answer against reality. If the item has rarely run out with less stock than this, ask why before you raise it.
Method 1: days of cover
Safety stock = average daily demand × chosen number of daysThis is the simplest method and the one many small businesses start with. You decide how many days of extra stock you want, often based on experience with a supplier, and multiply by average daily demand.
Example (hypothetical numbers). An item sells 40 units a day on average. The buyer wants five days of buffer: 40 × 5 = 200 units.
The strength of this method is that it needs only average demand. Its weakness is that it ignores how variable demand and lead time really are. A stable item and an erratic item with the same average get the same buffer, so the first is overstocked and the second is still at risk.
Method 2: maximum minus average
Safety stock = (maximum daily demand × maximum lead time) − (average daily demand × average lead time)This method uses the worst recent combination of demand and lead time. It needs a little more data: your highest daily demand and your longest lead time over a recent period.
Example (hypothetical numbers). Average demand is 40 units a day and average lead time is 12 days. Over the last six months, the highest daily demand was 55 units and the longest lead time was 16 days.
- Worst case: 55 × 16 = 880 units
- Average case: 40 × 12 = 480 units
- Safety stock: 880 − 480 = 400 units
The method is easy to explain, but it tends to produce large buffers because it assumes the highest demand and the longest delay happen at the same time. It is also sensitive to a single unusual day in the history.
Method 3: the statistical formula
The statistical method sets safety stock from the variability of demand and lead time and from the service level you want. The service level here means the probability of not running out during a replenishment cycle.
SS = z × σd × √LBoth vary:
SS = z × √(L × σd² + d² × σL²)Here d is average daily demand, σd is the standard deviation of daily demand, L is average lead time in days, σL is the standard deviation of lead time and z is a factor taken from the standard normal distribution.
| Service level | z |
|---|---|
| 90% | 1.28 |
| 95% | 1.645 |
| 99% | 2.33 |
Example (hypothetical numbers). Average demand is 40 units a day with a standard deviation of 10. Average lead time is 12 days with a standard deviation of 2 days. The target service level is 95%, so z ≈ 1.65.
- Demand-variability part: 12 × 10² = 1,200
- Lead-time-variability part: 40² × 2² = 6,400
- Square root of the total: √7,600 ≈ 87.2
- Safety stock: 1.65 × 87.2 ≈ 144 units
If the lead time never varied, only the first part would remain: 1.65 × 10 × √12 ≈ 57 units. Comparing the two answers shows that lead-time variability, not demand, drives most of the buffer in this example. That is a useful finding in itself: working with the supplier on delivery reliability could cut stock more than better forecasting would.
Safety stock formula in Excel
Put one item’s daily demand history in column B (rows 2 to 181 for six months) and its recent lead times in days in column C. Then use these cells:
| Cell | What it holds | Formula |
|---|---|---|
| F1 | Service level | 0.95 |
| F2 | Average daily demand (d) | =AVERAGE(B2:B181) |
| F3 | Standard deviation of demand (σd) | =STDEV.S(B2:B181) |
| F4 | Average lead time in days (L) | =AVERAGE(C2:C30) |
| F5 | Standard deviation of lead time (σL) | =STDEV.S(C2:C30) |
| F6 | z-score | =NORM.S.INV(F1) |
| F7 | Safety stock, lead time fixed | =F6*F3*SQRT(F4) |
| F8 | Safety stock, both vary | =F6*SQRT(F4*F3^2+F2^2*F5^2) |
| F9 | Reorder point | =F2*F4+F8 |
With the example figures above (d = 40, σd = 10, L = 12, σL = 2, 95%), F7 returns about 57 and F8 about 143. The small difference from 144 comes from using z = 1.645 rather than 1.65. Google Sheets uses the same formulas.
If your data is weekly or monthly
You do not need daily data. Keep demand and lead time in the same unit instead. With monthly demand, express the lead time in months.
Example (hypothetical numbers). Monthly demand has a standard deviation of 300 units and the lead time is 12 days, or 0.4 of a month. At 95%: 1.65 × 300 × √0.4 ≈ 1.65 × 300 × 0.63 ≈ 313 units. Using √12 with a monthly standard deviation would give about 1,715 units, more than five times too much. That is the most common error we see in safety stock spreadsheets.
Comparing the three methods
| Method | Data needed | Main strength | Main weakness |
|---|---|---|---|
| Days of cover | Average demand | Quick, easy to explain | Ignores variability |
| Maximum minus average | Average and peak demand and lead time | Simple worst-case logic | Often oversized; sensitive to outliers |
| Statistical | Averages and standard deviations | Links stock to a service level | Assumes roughly normal, stable demand |
For the same hypothetical item, the three methods gave 200, 400 and 144 units. None of these is the right answer in general; each reflects different assumptions. The statistical method is usually the best starting point when you have at least several months of clean demand and delivery data.
Choosing a service level
A higher service level always costs more stock, and the cost grows faster as you approach 100%. Moving from 95% to 99% raises z from about 1.65 to 2.33, which increases safety stock by roughly 40% in the statistical method. Many businesses therefore set different service levels by item: higher for items whose shortage stops production or loses a key customer, lower for items with substitutes or long shelf life.
Z-scores for common service levels
| Service level (cycle) | z-score | Safety stock vs 95% |
|---|---|---|
| 80% | 0.84 | 51% |
| 85% | 1.04 | 63% |
| 90% | 1.28 | 78% |
| 95% | 1.645 | 100% |
| 97.5% | 1.96 | 119% |
| 98% | 2.05 | 125% |
| 99% | 2.33 | 141% |
| 99.5% | 2.58 | 157% |
The last column shows how the buffer grows with the service level when everything else stays the same. In Excel, =NORM.S.INV(0.95) returns the z-score for any service level.
Common mistakes
- Mixing time units. If demand is measured per week, lead time and its standard deviation must also be in weeks.
- Using quoted rather than actual lead times. Measure lead time from your own order and receipt dates.
- Including one-off orders. A single large project order inflates both the average and the standard deviation. Remove it or treat it separately.
- Never recalculating. Revisit safety stock after a change in supplier, route, sales channel or season.
- Applying the formula to intermittent items. Items that sell rarely do not follow a normal distribution, so set their buffers by judgement or with specialist methods.
From safety stock to the reorder point
Safety stock is one part of the reorder point: the stock level at which you place the next order. Add expected demand during lead time to the safety stock, and you have the trigger. Our reorder point formula guide covers that step, and you can test your own numbers in the safety stock calculator or the reorder point calculator.
With safety stock and a reorder point set, you can run simple min-max inventory levels, or use the free min-max calculator.
See the formulas worked through with numbers in our safety stock calculation examples, and how the buffer fits into the order trigger in reorder point vs safety stock.
Frequently asked questions
What is the formula for safety stock?
The most widely used formula is safety stock = z × σd × √L, where z comes from the service level, σd is the standard deviation of demand and L is the lead time in the same time unit. When lead time also varies, use z × √(L × σd² + d² × σL²). Simpler methods are days of cover and maximum minus average.
How do you calculate safety stock in Excel?
Use AVERAGE and STDEV.S on your demand history, NORM.S.INV(service level) for the z-score, and then =z*stdev*SQRT(lead time). Keep demand and lead time in the same unit.
What z-score should I use for a 95% service level?
1.645, often rounded to 1.65. For 90% use 1.28, and for 99% use 2.33.
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: expected demand during the lead time plus the safety stock.
How often should safety stock be recalculated?
At least every quarter, and whenever a supplier, lead time, sales channel or season changes. Items with fast-changing demand may need a monthly review.
Can safety stock be zero?
Yes, for made-to-order items, items you can get the same day, or items where a short wait does no harm. Setting it to zero should be a deliberate decision, not a default.
Additional sources
- Safety stock – Wikipedia
- Normal distribution table – NIST/SEMATECH e-Handbook of Statistical Methods
- Reorder point – Wikipedia
Related guides: ABC/XYZ classification, single-source supplier risk, inventory optimization consulting, and all free supply chain calculators.
Want help applying this to your own items? Contact us first, scope agreed before we start.
Contact usContactTry the Statadventure live tools
Inventory tools for US manufacturers: reorder point, safety stock, EOQ and landed cost, with the inputs and assumptions shown.
Open the live tools