Skip to content
LeanSuite

Free tool

Safety stock calculator

Safety stock is the extra inventory that covers variation in demand and in supplier lead time, so you do not run out between placing an order and receiving it. The common formula multiplies a z-score for your service level by the variation in demand over the lead time. Add the safety stock to the demand during the lead time and you have the reorder point.

Safety stockequalsZ × √( L × σd² + d² × σL² )

Reorder pointequalsd × L + Safety stock

Z is the z-score for the service level, d the average daily demand, σd its standard deviation, L the average lead time in days and σL its standard deviation. With a fixed lead time (σL = 0) it reduces to Z × σd × √L.

Share of order cycles with no stockout

Average use per day

How much daily demand swings (STDEV of daily use)

Order placed to stock available

0 if the supplier is always on time

Pre-filled with the worked example. Use the same unit (pieces, kg, cases) for demand and for the result. Safety stock is rounded up to whole units.

Safety stock

99 units

Extra stock held for a 95% service level (z = 1.64).

Reorder point

999 units

Lead-time demand + safety stock

Lead-time demand

900 units

Daily demand × lead time

Z-score

1.64

From the service level

Email me my results

Optional. Get these inputs and results in your inbox, with a link back to this calculator.

We may follow up about LeanSuite. See our Privacy Notice.

Next step

Want to track this every week?

Bring this result to a 45-minute demo and we will show where it fits in LeanSuite's Loss & Cost Management.

How to calculate it

Five inputs, each from data you already have

Service level is the chance you want of getting through a replenishment cycle with no stockout. 95% gives z = 1.645, 98% gives 2.054 and 99% gives 2.326.

Average daily demand and its standard deviation come from the item's recent daily use. In a spreadsheet, the AVERAGE and STDEV of the daily figures give both.

Average lead time and its standard deviation come from the last several orders: days from order placed to stock available. A supplier who is always on time has a standard deviation of 0, but check the receiving dates, not the promised ones.

Lead time variation is multiplied by daily demand, so on a fast-moving part even a small swing in supplier lead time adds a lot of safety stock. Shortening and steadying lead time is how a lean plant holds less stock for the same service, and the result feeds the size of each kanban loop.

Worked example

Illustrative numbers, not a benchmark

A part used at 100 units a day on average, with a daily standard deviation of 20 units. The supplier takes 9 days and is always on time. You want a 95% service level.

  1. Step 1

    Z for 95% = 1.645.
  2. Step 2

    Safety stock = 1.645 × 20 × √9 = 1.645 × 20 × 3 = 98.7, rounded up to 99 units.
  3. Step 3

    Demand during the lead time = 100 × 9 = 900 units.
  4. Step 4

    Reorder point = 900 + 99 = 999 units.
Safety stock 99 units, reorder point 999. If the supplier's lead time varied by 1 day (standard deviation), safety stock would be 1.645 × √(9 × 400 + 10,000 × 1) = 192 units: the supplier's variation roughly doubles it.

Embed this calculator

Teaching this, or writing about it? Paste this code into your site, course page or intranet and the calculator works right there. It is free, with no sign-up.

<iframe src="https://www.theleansuite.com/tools/safety-stock-calculator/embed" title="Safety stock calculator by LeanSuite" width="100%" height="1020" style="border:0;max-width:1000px" loading="lazy" allow="clipboard-write"></iframe>
<p style="font:13px/1.4 sans-serif"><a href="https://www.theleansuite.com/tools/safety-stock-calculator">Safety stock calculator</a> by LeanSuite</p>

FAQ

Safety stock calculator: common questions

  1. Multiply the z-score for your service level by the square root of (lead time × demand variance + average demand² × lead time variance). If lead time never varies, this reduces to z × demand standard deviation × √lead time. At 95% service (z = 1.645), a daily demand standard deviation of 20 units and a 9-day lead time, safety stock is 1.645 × 20 × 3 = 98.7, so 99 units.

  2. The reorder point is the stock level at which you place the next order: average demand during the lead time plus the safety stock. With 100 units a day and a 9-day lead time, demand during the lead time is 900, so with 99 units of safety stock the reorder point is 999 units.

  3. The service level here is the chance of getting through a replenishment cycle without a stockout, not the share of units delivered. Higher levels cost more stock at an increasing rate: moving from 95% to 99% raises the z-score from 1.645 to 2.326, about 41% more safety stock. Choose by what a stockout costs you for that item, and use lower levels for low-value, easily replaced items.

  4. Take the daily use of the item over a recent stable period, 30 or more days if you have them, and use the STDEV function in a spreadsheet. Use the same unit and time bucket as the average. If your demand is weekly, enter weekly demand and lead time in weeks instead.

  5. It assumes demand is roughly normally distributed and independent from day to day. For very lumpy or intermittent demand (long stretches of zero, then big orders) and for items with a trend or strong seasonality, the result can be far off. Treat it as a starting point, and review it when demand or lead time changes.

  6. A kanban loop is sized from demand, replenishment lead time and a safety factor, so safety stock is part of the number of cards. Cutting lead time and its variation is the lean way to hold less safety stock, because both feed the formula.

More free lean tools

All tools

Pass it on

We want LeanSuite to be the best place on the internet for lean help. If this was useful, send it to someone on your team or in your network who needs it.