Tool

Safety stock

How much stock to keep against uneven demand and a supplier who is sometimes late, when to reorder, and what "95% service" actually promises.

Type your demand and the supplier's lead time. The buffer on the right follows as you type.

Demand

Averageunits a month
Spreadstandard deviation of monthly demand; paste past months below to compute it

The supplier

If you have measured it: the average lead time and its standard deviation.

Lead timeaverage days from order to goods on your shelf
Lead time spreadstandard deviation of the lead time; 0 if it never varies

How you reorder

You order a fixed quantity as soon as stock falls to the reorder point.

Order quantityunits per order; Order quantity finds it
Unit priceto value the buffer

Target

The share of order cycles in which you never run out. What most calculators mean by "service level".

Target

The buffer

436units of safety stock

Reorder when stock falls to 1,126: 690 for the 21 days of lead time, plus the buffer. The buffer holds €3,486 of stock.

Two kinds of 95%

95% cycle service level
436units: your target
95% fill rate
139units

Your buffer of 436 gives 95% of order cycles without a stockout and ships 99.45% of demand from stock. About 11.9 cycles a year:a cycle that runs out usually runs out late and briefly, so it misses little demand. That is why the fill rate is higher than the cycle service level for this buffer, and why "95%" needs saying which.

Where the buffer comes from

The supplier's ± 5 days cost 94 units (€752). Halving that spread would free 68 units (€546).

Uncertainty over 21 days
± 265√(21 × 45.3² + 32.9² × 5²)
Factor
z = 1.645Φ⁻¹(0.95)
Safety stock
4361.645 × 265

The price of the last percent

020040060080090%95%98%99%99.5%99.9%targetcycle servicelevelfill rate
  • Cycle service level: share of order cycles with no stockout
  • Fill rate: share of demand shipped from stock
  • Your target
Safety stock in units for each target, by measure
TargetCycle service levelFill rate
90%33910
95%436139
98%544277
99%616366
99.9%819606

95% of what?

You sell 1,000 units a month, give or take 250, and the supplier delivers in 21 days, give or take 5. Ask for 95% and most calculators give 436 units of safety stock. That 95% is the cycle service level: in 95 of 100 order cycles you never run out.

A customer who hears "95% service" usually means something else: 95 of every 100 units they order arrive on time. That is the fill rate, and it is much cheaper. A cycle that runs out usually runs out in its last days and misses a few units, not the whole order. Ordering 1,008 at a time, a 98% fill rate needs 277 units, which would score only 85.2% as a cycle service level. Decide which one you promise before you size the buffer.

The other lesson is where the buffer comes from. Of the 436 units, 94 are there only because the lead time varies by ± 5 days. A more reliable supplier is worth that much stock.

How the numbers are made

Uncertainty over the lead time

Monthly demand d and its standard deviation are turned into days (a month is 365 ÷ 12 days; the spread scales with the square root of time, assuming days vary independently). Over the protection interval T, the lead time L, or L plus the days between checks when you order on a fixed day, the standard deviation of demand is σ = √(T × σ_d² + d² × σ_L²), with σ_L the spread of the lead time. The first term is uneven demand, the second the uncertain delivery date (Chopra, Reinhardt and Dada, 2004, after Silver and Peterson). The tool shows both. Textbooks write σ_L for the spread of lead-time demand; here σ_L is the spread of the lead time itself, and σ the spread of demand over it.

Lead time from a quote

Few buyers know the standard deviation of their supplier's lead time, but most know the range. Given the shortest a, the usual m and the longest b, the tool reads the quote as a triangular distribution: mean (a + m + b) ÷ 3, variance (a² + b² + m² − ab − am − bm) ÷ 18. Without a usual value it uses a uniform one: mean (a + b) ÷ 2, standard deviation (b − a) ÷ √12. For 14 / 21 / 35days that is 23.3 ± 4.4 days, or 24.5 ± 6.1 from the range alone. Both treat the range as the edge of every delivery. A delivery that came later than the "longest" means the spread is larger than this; widen the range, or measure the spread from past orders.

Cycle service level

Safety stock = z × σ, where z is the point of the normal distribution below which the target share falls: 1.282 for 90%, 1.645 for 95%, 2.326 for 99%. The reorder point is d × L + safety stock; on a fixed-day cycle, the order-up-to level is d × (L + R) + safety stock.

Fill rate

The units you expect to be short in one cycle are σ × G(k), where G is the standard normal loss function, G(k) = φ(k) − k × (1 − Φ(k)). The fill rate is 1 − σ × G(k) ÷ Q, with Q the order quantity (on a fixed-day cycle, the demand between checks). The tool solves for k and sets safety stock = k × σ. If k comes out below zero the order size alone already gives that fill rate, and the buffer is zero.

When not to trust it

Everything above assumes demand over the lead time follows a normal curve. That fails for slow movers and for very uneven demand, and the tool warns instead of pretending precision: when demand over the lead time varies by more than half its mean (a common rule of thumb), when fewer than about 10 units are sold over it (Axsäter, 2013), and when a pasted history has demand in fewer than one period of every 1.32 (the intermittent-demand cut-off of Syntetos, Boylan and Croston, 2005). Seasonal or trending demand needs a forecast first: the spread should be the forecast error, not the swing of the season. The fill-rate formula is the standard backorder approximation (Silver, Pyke and Peterson's G(k)); it slightly understates the true fill rate, so it errs on the side of more stock.

Disclaimer

A planning aid, not advice. Your inputs and any history you paste stay in your browser (in the page address and local storage so you can come back to them; the pasted history is not stored); nothing you type is sent to this site. See the privacy notice and Impressum.

Questions

What is the safety stock formula?

Safety stock = z × σ, where σ is the standard deviation of demand over the lead time and z the factor for the service level (1.645 for 95%). With both demand and lead time varying, σ = √(L × σ_d² + d² × σ_L²): L the lead time, d and σ_d the average and spread of daily demand, σ_L the spread of the lead time.

How do I calculate the reorder point?

Reorder point = average demand during the lead time + safety stock. With 1,000 units a month and a 21-day lead time that is 690 + 436 = 1,126 units for a 95% cycle service level.

What is the difference between service level and fill rate?

The cycle service level is the share of replenishment cycles with no stockout at all; the fill rate is the share of demand shipped from stock. With orders as large as in the example here, the same buffer scores much higher on fill rate (with very small orders it can be the other way round): 95% cycle service level needs 436 units of safety stock, a 98% fill rate only 277, which is a 85.2% cycle service level.

How do I estimate the lead time spread if I only know the shortest and longest delivery?

Read the range as a distribution. With a usual lead time as well, a triangular one: a quote of 14 / 21 / 35 days gives a mean of 23.3 days and a standard deviation of 4.4. With only the range, a uniform one: (longest − shortest) ÷ √12 = 6.1 days. Both assume no delivery falls outside the range. The tool does this when you pick "Shortest, usual, longest".

How do I find the standard deviation of demand?

Take at least 6, better 12 or more, past periods of demand and compute the sample standard deviation (STDEV.S in Excel). Paste them into the tool and it does this for you, in your browser. Weekly figures are converted to a month assuming the weeks vary independently.

Keep reading

  • Safety stock: 95% of what? Cycle service level vs fill rate95% of order cycles without a stockout needs 436 units of safety stock; a 98% fill rate needs 277. The same stock scores 95% on one measure and 99.5% on the other.
  • What is a reorder point?The reorder point is the stock level at which you place the next order: the demand expected during the lead time plus safety stock. 690 + 436 = 1,126 units in the example.
  • What is fill rate in inventory?Fill rate is the share of demand shipped straight from stock. It is not the cycle service level: in the example a buffer for 95% of cycles fills 99.5% of demand.
  • What is safety stock?Safety stock is the stock kept on top of expected demand to cover demand above the forecast and late deliveries until the next order arrives. Formula and a worked example: 436 units.