Skip to content
Guide

Safety stock formula: four methods compared, with one example

The same part, four formulas, four answers from 50 to 620 units. What each method assumes, when to use it, and why lead-time variability usually matters most.

By , founder13 November 20268 min

The short answer

There is no single safety stock formula. The four in common use answer different questions: a fixed number of days of usage, the gap between worst case and average, demand variability only, or demand and lead-time variability together. Applied to the same part, they can differ by a factor of ten. When supplier lead times move, only the last one reacts to it. See safety stock for the definition.

The example part

One part, 12 weeks of history, used for all four methods. Illustrative example, not a customer result.

  • Average daily usage: 20 units. Standard deviation of daily usage: 6 units.
  • Average supplier lead time: 25 days. Standard deviation of lead time: 5 days.
  • Highest daily usage seen: 32 units. Longest lead time seen: 35 days.

Usage during an average lead time is 20 x 25 = 500 units. Safety stock is what you hold on top of those 500.

Method 1. Safety days

Formula: safety stock = average daily usage x safety days.

With 10 safety days: 20 x 10 = 200 units.

  • Assumes: one buffer in days fits the part, whatever its variability.
  • Use it when: history is short or unreliable, or for low-value parts where precision does not pay.
  • Watch out: it does not move when the supplier becomes less reliable.

Method 2. Maximum minus average

Formula: safety stock = (highest daily usage x longest lead time) - (average daily usage x average lead time).

(32 x 35) - (20 x 25) = 1,120 - 500 = 620 units.

  • Assumes: the worst usage and the worst lead time happen at the same time.
  • Use it when: the part is critical and cheap, and a shortage costs far more than the stock.
  • Watch out: one odd day or one very late delivery in the history inflates the result for good. On most parts it holds far more than needed, as value above target.

Method 3. Demand variability only

Formula: safety stock = Z x standard deviation of daily usage x square root of lead time in days.

Z is the service factor: about 1.28 for 90%, 1.65 for 95%, 2.33 for 99%. At 95%: 1.65 x 6 x 5 = about 50 units.

  • Assumes: the lead time is fixed and only demand varies, roughly following a normal distribution.
  • Use it when: the supplier is very reliable and demand is the main source of uncertainty.
  • Watch out: it ignores late deliveries entirely. Here it gives the smallest buffer of the four, on a part whose lead time varies by 5 days.

Method 4. Demand and lead-time variability

Formula: safety stock = Z x square root of (lead time x standard deviation of usage squared + average usage squared x standard deviation of lead time squared).

Inside the root: 25 x 36 = 900 for demand, plus 400 x 25 = 10,000 for lead time, so 10,900. The square root is about 104.4. At 95%: 1.65 x 104.4 = about 172 units. At 99%: about 243 units. At 90%: about 134 units.

  • Assumes: demand and lead time vary independently, both roughly normal.
  • Use it when: you have a usable history of receipts as well as usage, and the part matters.
  • Watch out: it needs the lead time actually observed per delivery (order date to receipt date), not the lead time written in the item master.

The four results side by side

  • Safety days (10 days): 200 units.
  • Maximum minus average: 620 units.
  • Demand variability only, 95%: about 50 units.
  • Demand and lead-time variability, 95%: about 172 units.

The reorder point is usage during the lead time plus safety stock: from 550 to 1,120 units depending on the method. That gap is the difference between a part that runs short every few months and a part that holds a year of stock.

Why lead-time variability usually matters most

In method 4, lead-time variability contributes 10,000 to the root and demand variability 900. A 5-day swing in supplier delivery weighs eleven times more than the day-to-day swings in usage. This is common for purchased parts, and it is why lead times deserve attention first. In the ISM Manufacturing PMI Report for October 2026, the average lead time for production materials was 87 days (see our supplier lead time tracker). A buffer set when lead times were shorter and steadier is now too small. See lead-time drift.

How to choose

  • Start with safety days for most parts, and write the number of days down per part. An ABC analysis tells you which parts deserve more.
  • Move to method 4 for the parts that ran short last quarter and for the parts that stop a line, using observed lead times from receipts.
  • Avoid maximum minus average except on cheap, critical parts.
  • Review after every lead-time change. The formula matters less than the lead time you feed it.
  • Check the result in days. Safety stock divided by average daily usage gives days of buffer: 172 units is about 9 days here. If the number looks absurd in days, the inputs are wrong.

Common mistakes

  • Reading the service level as a fill rate. 95% here means the probability of not running out during one replenishment cycle, not the share of demand served from stock. See fill rate.
  • Using the lead time from the item master. It is often the one agreed years ago. Measure it from order and receipt dates.
  • Raising safety stock to cover a wrong lead time. Fix the lead time first, then the buffer.
  • One service level for every part. Critical, single-sourced parts deserve a higher one than commodities.

Where WERISCO fits

WERISCO does not compute or change your safety stock. It reads your ERP or your exports and shows the parts that will run short, ranked by days of cover, and where reorder points were set for lead times your suppliers no longer quote. Nothing is written back to your ERP. See a sample result on demo data.

Questions people ask

What is the most accurate safety stock formula?

The one that includes both demand and lead-time variability, provided the inputs are measured: observed lead times from receipts and dated usage. With poor data, a simple safety-days rule written down per part is often more reliable.

What Z value should I use for safety stock?

About 1.65 for a 95% cycle service level, 2.33 for 99%, 1.28 for 90%. Choose it per class of part: higher for critical or single-sourced parts, lower for commodities.

How often should safety stock be recalculated?

Whenever a supplier's lead time or reliability changes, and at least every quarter for the parts that matter. The quarterly review catches drift that nobody reported.

Run the Risk, every week.

One supply-chain shock, decoded in numbers, and what a data-driven plant does about it.

A container terminal at night

Supply chain audit

See where your supply chain is exposed.

A 20-minute call and three exports you already run: stock by item, consumption history and open orders. You see the inventory and order value exposed. No integration, no savings estimate, and an NDA if you need one.