On this page
- What safety stock protects you from
- The example product
- Method 1 — Max minus average
- Method 2 — Demand variability only
- Method 3 — Lead time variability only
- Method 4 — Demand and lead time combined
- The four methods side by side
- Choosing the service level (Z)
- Monthly data, daily formula
- Safety stock formulas in Excel
- Which formula should you use?
- Common safety stock mistakes
- Frequently asked questions
The short answer
Safety stock = Z × √(LT × σd² + d² × σLT²) — Z from your service level, LT the lead time in days, d the average daily demand, σd how much daily demand varies, σLT how much the lead time varies.
For a fuel filter selling 6.9 a day on a 21-day lead time, at a 95% service level, that's 64 units. The quick "max − average" rule gives 102 for the same product — about 60% more cash on the shelf for protection you mostly don't need.
Safety stock is the stock you hold so that a bad week doesn't become an empty shelf. There are several ways to calculate it, and they give very different answers. This guide runs the four common formulas on the same product, so you can see what each one does, what it costs, and when to use it.
What safety stock protects you from
Two things go wrong between placing an order and receiving it:
- You sell more than average. Demand varies from day to day and month to month.
- The supplier is slower than average. Lead times vary too — usually more than suppliers admit.
Each formula below covers one or both of these. The more completely a formula describes them, the less stock it needs to give the same protection.
The example product
SKU-0012, a 10 mm fuel filter, from the sample data in our free reorder point calculator:
| Input | Value | Where it comes from |
|---|---|---|
| Monthly sales, last 12 months | 149 … 258 | Average 209.7, standard deviation 32.3 |
| Average daily demand, d | 6.90 | 209.7 ÷ 30.4 days |
| Daily demand variation, σd | 5.85 | 32.3 ÷ √30.4 |
| Best month, per day | 8.49 | 258 ÷ 30.4 |
| Average lead time, LT | 21 days | Recent deliveries |
| Lead time variation, σLT | 4 days | Standard deviation of those deliveries |
| Slowest delivery | 29 days | Longest of those deliveries |
| Unit cost | $4.20 | Used to show what each answer costs |
Method 1 — Max minus average
The rule of thumb most people start with, because it needs no statistics. Its weakness is that it plans for your best sales month and your slowest delivery happening at the same time — which is rare. One unusual month or one stuck container sets the buffer for the whole year. It reliably overstocks.
Use it when you have very little history, or you need a number today and will refine it later.
Method 2 — Demand variability only
The textbook formula. It assumes the lead time never changes, and covers only the chance of selling more than average while you wait. The √LT is there because good and bad days partly cancel out over a long lead time.
Use it when the supplier is genuinely reliable — local, or delivering to the day, every time.
Method 3 — Lead time variability only
The mirror image: demand is treated as steady, and the buffer covers the supplier arriving late.
Use it when demand is very stable but the supplier isn't — a consumable that sells the same every week, shipped from overseas.
Method 4 — Demand and lead time combined
= 1.645 × √( 718.7 + 761.8 ) = 1.645 × 38.48 ≈ 63.3 → 64
This covers both risks at once. Notice it is not 45 + 46 = 91. Selling more than usual and a late supplier are mostly independent, so they rarely hit at full strength together; the square root adds them the way independent risks actually combine. Adding methods 2 and 3 instead is a common mistake that overstocks by about 40%.
Use it as your default for anything bought from a supplier with a real lead time. It is the formula our free calculator uses.
The four methods side by side
| Method | Safety stock | Cash on the shelf | Covers |
|---|---|---|---|
| 1 · Max − average | 102 | $428.40 | Worst month and slowest delivery, together |
| 2 · Demand only | 45 | $189.00 | Demand swings; ignores late suppliers |
| 3 · Lead time only | 46 | $193.20 | Late suppliers; ignores demand swings |
| 4 · Combined | 64 | $268.80 | Both, at a 95% service level |
| 2 + 3 added (mistake) | 90 | $378.00 | Both, double-counted |
Choosing the service level (Z)
The service level here is the probability of not running out during one replenishment cycle. Z is the
matching value from the normal distribution: =NORM.S.INV(0.95) returns 1.645.
| Service level | Z | Safety stock | Cash | Good for |
|---|---|---|---|---|
| 90% | 1.28 | 50 | $210.00 | Cheap items you can restock fast |
| 95% | 1.64 | 64 | $268.80 | Most products — a sensible default |
| 97.5% | 1.96 | 76 | $319.20 | Best sellers |
| 99% | 2.33 | 90 | $378.00 | Items where a stockout loses the customer |
| 99.9% | 3.09 | 119 | $499.80 | Rarely worth it |
Each step up costs more than the last. Going from 95% to 99% adds 26 units; going from 99% to 99.9% adds another 29 to remove a risk that was already one in a hundred. Spend the high service levels where a stockout is genuinely expensive, not across the whole catalogue.
Monthly data, daily formula
Most sales reports are monthly; lead times are in days. Convert demand to days:
The √30.4 assumes one day's sales don't depend on the day before. If you sell in occasional bulk orders, that isn't true and daily σ comes out too small — in that case, work with weekly data instead. You can also do the whole calculation in months (lead time 21 ÷ 30.4 = 0.69 months); as long as every input is in the same unit, the answer is the same.
Safety stock formulas in Excel
With average daily demand in R2, daily SD in S2, lead time in B2, its SD in C2, the slowest delivery in X2,
monthly sales in F2:Q2 and the service level in Z1:
Method 1 max − average =ROUNDUP(MAX(F2:Q2)/30.4*X2-R2*B2,0) Method 2 demand only =ROUNDUP(NORM.S.INV($Z$1)*S2*SQRT(B2),0) Method 3 lead time only =ROUNDUP(NORM.S.INV($Z$1)*R2*C2,0) Method 4 combined =ROUNDUP(NORM.S.INV($Z$1)*SQRT(B2*S2^2+R2^2*C2^2),0)
To get σLT, list your last ten or more deliveries from that supplier with the order date and the date received, and take
=STDEV.S() of the days between them. If you only have the supplier's quoted lead time, you don't know σLT yet —
start with method 2 plus a few days of extra lead time, and start recording deliveries.
Which formula should you use?
| Your situation | Use |
|---|---|
| Little history, need a number today | Method 1, then switch within three months |
| Reliable supplier, demand that swings | Method 2 |
| Steady demand, unreliable or distant supplier | Method 3 |
| Anything else — the normal case | Method 4 |
| Slow, lumpy parts (0, 0, 3, 0, 1…) | None of these; a simple min–max rule |
Common safety stock mistakes
- Trusting the quoted lead time. Measured lead times are almost always longer and more variable. The variation (σLT) is often the biggest term in the formula.
- Treating safety stock as spare stock. If you sell it down every cycle, it isn't a buffer; your reorder point is too low.
- Counting stockout months as low demand. A month you were empty for two weeks shows half the real demand and shrinks both d and σd.
- Never recalculating. A buffer set last year is protecting last year's demand.
- One service level for every product. The cheapest way to cut stock without more stockouts is to lower the service level on items where running out costs little.
Frequently asked questions
Is safety stock part of the reorder point?
Yes. Reorder point = average daily demand × lead time + safety stock. Safety stock is the part of the reorder point that covers the unexpected.
What is a good service level for safety stock?
95% is a sensible default. Use 97.5–99% for best sellers and products where a stockout loses the customer, and around 90% for cheap items you can restock quickly. Each step up costs more stock than the last.
Can safety stock be zero?
Yes — if demand and lead time never vary, or for items you are happy to run out of, such as made-to-order or discontinued products. For anything else, zero safety stock means running out in about half of all order cycles.
How do I calculate safety stock without sales history?
Borrow the numbers from a similar product, or hold a fixed number of days of cover — for example ten days of expected sales. Replace it with a calculated figure once you have three months of real data.
Should I use STDEV.S or STDEV.P?
STDEV.S. Twelve months of sales are a sample of the demand you will see, not the whole population. With twelve data points the difference is about 4%.
Why does the formula use the square root of the lead time?
Because good and bad days partly cancel out. The variance of demand over the lead time grows in proportion to its length, so its standard deviation grows with the square root.