REPLENISHMENT GUIDE
How to calculate safety stock: three formulas with worked examples
Safety stock is the extra inventory you keep so that normal swings in demand or supplier lead time do not leave you without parts. Too little and a late truck stops a production line. Too much and cash sits on shelves. This guide walks through three ways to calculate it, from a quick rule you can do on a napkin to the statistical method planners use, and shows the same part worked through each one.
What safety stock protects you from
Two things go wrong in replenishment:
- Demand variability. You planned to use 40 units a day, but this week you used 55.
- Lead time variability. The supplier quoted 9 days, but the order arrived in 12.
Safety stock covers the gap between what you expect and what actually happens during the replenishment window. It is not a buffer against everything: it will not save you from a supplier going out of business or a one-off order ten times your normal size. Those need a separate plan.
The example part
We will use one purchased component for every method:
- Average daily usage: 40 units
- Highest daily usage seen in the last quarter: 55 units
- Standard deviation of daily usage: 12 units
- Average supplier lead time: 9 days
- Longest lead time seen: 12 days
- Standard deviation of lead time: 2 days
Method 1: max minus average (quick and conservative)
This is the simplest formula and needs no statistics:
Safety stock = (max daily usage × max lead time) − (average daily usage × average lead time)
For our part: (55 × 12) − (40 × 9) = 660 − 360 = 300 units.
It is easy to explain, but it assumes your worst usage day and your worst lead time happen together, every time. That rarely happens, so this method usually gives a large number. It is a reasonable starting point for a low-cost part where running out is expensive, and a poor choice for costly parts.
Method 2: demand variability only (Z-score method)
If your supplier is reliable but your usage moves around, use the standard deviation of demand:
Safety stock = Z × σd × √L
Where Z is the service-level factor, σd is the standard deviation of daily demand, and L is the average lead time in days (use the same time unit for both).
The Z value comes from the normal distribution and sets how often you are willing to run out during a replenishment cycle:
| Target cycle service level | Z |
|---|---|
| 90% | 1.28 |
| 95% | 1.65 |
| 97.5% | 1.96 |
| 99% | 2.33 |
At a 95% service level: 1.65 × 12 × √9 = 1.65 × 12 × 3 = 59.4, so round up to 60 units.
Notice how much smaller this is than Method 1. The square root of lead time appears because daily swings partly cancel each other out over several days.
Method 3: demand and lead time variability (combined)
When both usage and the supplier are unpredictable, combine them:
Safety stock = Z × √( L × σd² + d² × σL² )
Where d is average daily demand and σL is the standard deviation of lead time.
Step by step for our part at 95%:
- L × σd² = 9 × 12² = 9 × 144 = 1,296
- d² × σL² = 40² × 2² = 1,600 × 4 = 6,400
- Sum = 7,696; square root = 87.7
- 1.65 × 87.7 = 144.7, so round up to 145 units
The lead-time term (6,400) is far bigger than the demand term (1,296). For this part, a two-day wobble in delivery costs more safety stock than daily usage swings. That tells you where to act: a conversation with the supplier, or a second source, may cut more inventory than any forecasting work.
You can run these numbers for your own parts with our safety stock calculator.
Which method should you use?
- No usage history yet: start with Method 1, or a simple rule such as a set number of days of supply, and revisit after three months of data.
- Steady supplier, variable usage: Method 2.
- Both vary, or lead time is the bigger problem: Method 3.
Whatever you pick, group parts by importance before choosing a service level. A 99% target on every low-value fastener ties up money for little benefit. Many shops use ABC analysis to set higher service levels for critical or long-lead parts and lower ones for cheap, easy-to-get items.
How to get the inputs
- Daily usage: pull issues to production (or shipments, for finished goods) for the last 13 to 26 weeks. Divide by working days, not calendar days.
- Standard deviation of usage: in a spreadsheet, list usage per day (or per week) and use STDEV.S. If you work in weeks, keep lead time in weeks too.
- Lead time and its deviation: for each recent purchase order, measure days from order to receipt. Our lead time calculation guide shows how.
Remove one-off events, such as a single large special order, before you calculate. Otherwise they inflate the deviation for every future cycle.
From safety stock to reorder point
Safety stock on its own does not tell you when to order. Add it to the demand you expect during the lead time to get the reorder point: 40 × 9 + 60 = 420 units using the Method 2 figure. See the reorder point formula guide for the full method.
Common mistakes
- Mixing time units. Daily deviation with lead time in weeks gives a wrong answer by a wide margin.
- Setting it once and forgetting it. Review at least quarterly, and after any supplier or product change.
- Using it as a planning crutch. If you dip into safety stock every cycle, your average usage figure is too low. Fix the average, not the buffer.
- Counting on inaccurate records. If the system says 400 and the shelf holds 250, no formula helps. Regular cycle counting keeps the numbers honest.
Frequently asked questions
What is a good safety stock level?
There is no single right number. It depends on how much your usage and supplier lead times vary and on the service level you want. Calculate it per part, and set higher service levels only for parts where a stockout is costly.
Is safety stock the same as minimum stock?
Not exactly. Safety stock is the buffer for variability. A minimum or reorder level usually includes safety stock plus the demand expected during the lead time, so it is the higher figure.
What Z value should I use?
1.65 for a 95% cycle service level is a common starting point. Use 2.33 (99%) for critical parts and 1.28 (90%) for low-value, easy-to-replace items.
How often should safety stock be recalculated?
Review it at least every quarter, and whenever demand, a supplier, or lead time changes noticeably.