Safety stock: definition, formula and calculation
Safety stock is calculated with a simple formula, the service coefficient multiplied by the standard deviation of demand over the lead time. Here is the formula, a step-by-step example, the Excel version, and the limit the calculation does not state.
Key takeaway
Safety stock is the quantity kept on top of the forecast need to absorb the ups and downs of demand and lead time. Classic formula: the service coefficient multiplied by the standard deviation of demand over the replenishment lead time, with a coefficient of 1.65 to target a 95% service level and 2.33 for 99%. Its limit: it works on historical standard deviations and therefore never covers exceptional events, which are a matter of decision speed, not of stock.
What is safety stock?
Safety stock is the quantity kept on top of the forecast need, to absorb the ups and downs: demand stronger than expected, a supplier that delivers late, a production reject. The definition retained by the planning frameworks says the same thing: the stock held to protect against the uncertainty of demand and supply during the replenishment lead time. Without it, the slightest variation turns into a stockout. With it, the company buys reaction time. It is a cushion, and like any cushion it has a cost: every unit of safety stock is money tied up that bears the inventory carrying rate, often a fifth to a third of its value per year.
The classic safety stock formula
The most used formula relies on the variability of demand during the replenishment lead time: safety stock = service coefficient multiplied by the standard deviation of demand over that lead time. The coefficient, often called z, reflects the service level you target, and it reads off the table of the normal distribution. The usual values are 1.28 for 90% service, 1.65 for 95%, 2.05 for 98%, 2.33 for 99% and 3.09 for 99.9%. The higher you aim, the bigger the cushion grows, and the relationship is not linear at all: going from 95 to 99% availability costs far more than going from 90 to 95%. The example that follows applies these coefficients to a reference whose standard deviation of demand over the lead time is 60 units.
| Target service level | Service coefficient (z) | Corresponding safety stock |
|---|---|---|
| 90% | 1.28 | 77 units |
| 95% | 1.65 | 99 units |
| 97% | 1.88 | 113 units |
| 98% | 2.05 | 123 units |
| 99% | 2.33 | 140 units |
| 99.9% | 3.09 | 185 units |
A step-by-step calculation example
Take a reference whose average demand is 100 units per week, with a standard deviation of 30 units, and a replenishment lead time of 4 weeks. The standard deviation of demand over the lead time is 30 multiplied by the square root of 4, that is 60 units. For a target service level of 95%, the safety stock is 1.65 times 60, that is 99 units, about one week of demand. If the same company aims for 99%, the cushion rises to 140 units, that is 40% more stock for four points of service. This calculation is redone reference by reference, because variability differs from one product to another.
The full formula, with supplier lead-time variability
The short formula assumes a fixed supplier lead time, which is rarely true. The full version, the one in inventory management textbooks, combines the two sources of uncertainty: safety stock = z multiplied by the square root of (average lead time times variance of demand plus average demand squared times variance of lead time). Back to the previous example, with an average demand of 100 units per week, a demand standard deviation of 30, an average lead time of 4 weeks and a lead-time standard deviation of 1 week. The demand term is 4 times 900, that is 3,600, and the lead-time term is 10,000 times 1, that is 10,000. The square root of 13,600 gives about 117 units, and at 95% service the safety stock rises to 1.65 times 117, that is about 192 units, almost double the 99 units obtained without lead-time variability. This example, illustrative, shows where the real risk often hides: a one-week standard deviation on the lead time weighs more here than all the variability of demand.
Safety stock and reorder point: how they fit together
Safety stock triggers nothing on its own, it enters the calculation of the reorder point, sometimes called alert stock. The reorder point is the stock level that triggers a replenishment: it equals the average demand during the lead time, plus the safety stock. In our example, the demand over the lead time is 100 times 4, that is 400 units, and the reorder point is 400 plus 99, that is 499 units at 95% service. The two notions are often confused in discussions, when they answer two distinct questions: when to order, for the reorder point, and how much to keep in reserve, for the safety stock. A reorder point calculated with an inflated safety stock makes you order too early, reference by reference, and it is one of the most discreet sources of excess stock.
Calculating safety stock in Excel, step by step
The calculation fits in a spreadsheet, one row per reference. First build a series of demand per period, in weeks or months, over at least a year to capture seasonality, and calculate its mean with AVERAGE and its standard deviation with STDEV.S. Then enter the replenishment lead time in the same unit as the series, followed by the target service level. The coefficient z is obtained without a table thanks to NORM.S.INV(service level): 0.95 returns 1.645. The final formula reads z times standard deviation times SQRT(lead time), and if you have the history of supplier lead times, add the full version described above. Two precautions make the result usable: remove the outliers from the history, an exceptional order that inflates the standard deviation for two years, and recalculate everything each quarter, because a demand series ages fast.
The other safety stock calculation formulas
The statistical formula has rivals, and it is not always the best suited. The empirical method, which sets the safety stock at a number of days of coverage multiplied by the average daily demand, stays very common because it requires no history: it suits the launch of a reference, provided it is revised. The maximum-average method compares the worst scenario with the average, it protects critical references well but often oversizes. Finally, the full variant also integrates supplier lead-time variability, indispensable when it is the supplier that is unstable rather than demand.
| Method | Calculation principle | Data required | When to use it |
|---|---|---|---|
| Empirical | Days of coverage × average daily demand | Average demand only | Launch of a reference, no history |
| Maximum-average | (Max consumption × max lead time) minus (average consumption × average lead time) | History of extremes | Critical references, line stoppage unacceptable |
| Normal law, demand | z × standard deviation of demand over the lead time | Standard deviation of demand | Variable demand, reliable supplier lead time |
| Normal law, demand and lead time | z × combined standard deviation of demand and lead time | Standard deviation of both | Unstable or distant supplier |
What the formula does not say
All these formulas assume that tomorrow's ups and downs resemble yesterday's, since they work on historical standard deviations. Yet the events that hurt most are not in the history. A supplier that fails for several weeks, an exceptional order, a stopped line: no reasonable safety stock covers these cases, and covering them with stock would cost more than enduring them. Reality will always end up overflowing the forecast, and safety stock will never be an all-risk insurance. Beyond the cushion, what protects margin is the speed and quality of the decision when the uncertainty exceeds the cushion.
Sizing without over-covering
The most common trap is the safety stock sized once and then never reviewed, or inflated after each incident as a precaution. Reference by reference, the good practice is to recalculate regularly from recent variability, to differentiate service levels according to the criticality of products, and to put a figure on what each additional point of service costs. This costing puts the discussion back in the right place: safety stock covers ordinary variations, the fast decision covers the rest. Confusing the two makes you pay the price of stock for a risk it does not cover.
This article starts from a conviction: the perfect forecast doesn't exist, what matters is the decision that follows.
- What is safety stock?
- The classic safety stock formula
- A step-by-step calculation example
- The full formula, with supplier lead-time variability
- Safety stock and reorder point: how they fit together
- Calculating safety stock in Excel, step by step
- The other safety stock calculation formulas
- What the formula does not say
- Sizing without over-covering
Clevizio
Clevizio is the decision layer that plugs into your existing tools: it detects disruptions, simulates your options and keeps a record of every trade-off. See how the decision copilot works.
Frequently asked questions
How do you calculate safety stock?
Multiply the service coefficient z by the standard deviation of demand during the replenishment lead time, that is 1.65 times this standard deviation for 95%. The standard deviation over the lead time is obtained by multiplying the standard deviation per period by the square root of the lead time. When the supplier lead time varies too, the full formula adds a term for its variance.
What is the safety stock formula?
Safety stock = z times standard deviation of demand times square root of the lead time, with z equal to 1.65 for 95%. The other usual coefficients are 1.28 for 90%, 2.05 for 98%, 2.33 for 99% and 3.09 for 99.9%. The progression is not linear: the last points of service cost proportionally far more in stock.
Does safety stock protect against every disruption?
No, it covers the ordinary variations of demand and lead time, the ones that appear in the history, and nothing beyond. Exceptional events, a prolonged supplier failure or an out-of-the-ordinary order, exceed any reasonable cushion, and the answer then plays out in the speed of the decision.
Finally put a number on what disruptions cost you every year.
Let's start by estimating what your disruptions really cost you. It's free, it takes 30 minutes, and you leave with a figure nobody in your company knows today.

