OrdersmithyGuidesSafety stock formula

Field notes · Safety stock

Safety stock formula: four ways to calculate it, and which to use

Four common formulas, run on the same product, with what each one costs in cash on the shelf — and the one to use by default.

On this page
  1. What safety stock protects you from
  2. The example product
  3. Method 1 — Max minus average
  4. Method 2 — Demand variability only
  5. Method 3 — Lead time variability only
  6. Method 4 — Demand and lead time combined
  7. The four methods side by side
  8. Choosing the service level (Z)
  9. Monthly data, daily formula
  10. Safety stock formulas in Excel
  11. Which formula should you use?
  12. Common safety stock mistakes
  13. 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:

InputValueWhere it comes from
Monthly sales, last 12 months149 … 258Average 209.7, standard deviation 32.3
Average daily demand, d6.90209.7 ÷ 30.4 days
Daily demand variation, σd5.8532.3 ÷ √30.4
Best month, per day8.49258 ÷ 30.4
Average lead time, LT21 daysRecent deliveries
Lead time variation, σLT4 daysStandard deviation of those deliveries
Slowest delivery29 daysLongest of those deliveries
Unit cost$4.20Used to show what each answer costs

Method 1 — Max minus average

safety stock = (max daily sales × max lead time) − (average daily sales × average lead time)
(8.49 × 29) − (6.90 × 21) = 246.1 − 144.8 ≈ 101.3 → 102

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

safety stock = Z × σd × √LT
1.645 × 5.85 × √21 ≈ 44.1 → 45

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

safety stock = Z × d × σLT
1.645 × 6.90 × 4 ≈ 45.4 → 46

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

safety stock = Z × √( LT × σd² + d² × σLT² )
1.645 × √( 21 × 5.85² + 6.90² × 4² )
= 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

MethodSafety stockCash on the shelfCovers
1 · Max − average102$428.40Worst month and slowest delivery, together
2 · Demand only45$189.00Demand swings; ignores late suppliers
3 · Lead time only46$193.20Late suppliers; ignores demand swings
4 · Combined64$268.80Both, at a 95% service level
2 + 3 added (mistake)90$378.00Both, double-counted
One product. Multiply the differences across a catalogue of a few thousand SKUs and the choice of formula is worth real money.

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 levelZSafety stockCashGood for
90%1.2850$210.00Cheap items you can restock fast
95%1.6464$268.80Most products — a sensible default
97.5%1.9676$319.20Best sellers
99%2.3390$378.00Items where a stockout loses the customer
99.9%3.09119$499.80Rarely 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.

Service level isn't fill rate. A 95% service level means 5% of order cycles see some stockout, often for a day or two at the very end. The share of customer demand you actually fill (the fill rate) is usually much higher — often 99% or more. If someone quotes you a "98% fill rate" target, don't plug 98% straight into Z.

Monthly data, daily formula

Most sales reports are monthly; lead times are in days. Convert demand to days:

d = monthly average ÷ 30.4     σd = monthly standard deviation ÷ √30.4

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:

Excel · Google Sheets · LibreOfficerow 2
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.

Method 4 for 200 products, freeThe Reorder Point Calculator applies the combined formula to every row, with your choice of service level, then turns it into reorder points and order quantities.
Download free (.xlsx)

Which formula should you use?

Your situationUse
Little history, need a number todayMethod 1, then switch within three months
Reliable supplier, demand that swingsMethod 2
Steady demand, unreliable or distant supplierMethod 3
Anything else — the normal caseMethod 4
Slow, lumpy parts (0, 0, 3, 0, 1…)None of these; a simple min–max rule

Common safety stock mistakes

  1. 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.
  2. Treating safety stock as spare stock. If you sell it down every cycle, it isn't a buffer; your reorder point is too low.
  3. 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.
  4. Never recalculating. A buffer set last year is protecting last year's demand.
  5. 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.
Measure σLT from your real deliveriesThe Inventory Control Kit grades every supplier on its real lead time and on-time rate from your receipts, and adds ABC-XYZ classes, dead and excess stock and PO drafts. One-time $39.
See the kit

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.

About the author

Peiman manages stock for an automotive parts business across 13 warehouses and several car brands. Everything in these guides is work he does by hand every week, written down — and the Ordersmithy tools are the spreadsheets he built to do it faster.