Back to inventory management

Inventory management

Safety Stock Formula for Distributors

Safety stock is extra stock that covers demand spikes and late deliveries until the next order arrives. The simplest formula is (highest daily demand × longest lead time) − (average daily demand × average lead time), for example (20 × 13) − (18 × 12) = 44 units.

By , Co-founder of Lark

Safety stock calculator

Two common ways to size the buffer. Both start from this guide's example.

Covers your busiest month’s daily demand and your slowest recent delivery happening together.

Safety stock

44 units

Max demand × max lead time 20 × 13 = 260 units

Minus average demand × average lead time 260 − 216 = 44 units

Prefer a spreadsheet? Download the free reorder point template (Excel). Its Safety stock tab has both methods.

Safety stock sets how often normal swings in demand and supply turn into a stockout. Too little, and one big order or one late delivery leaves customers waiting. Too much, and you pay to finance and store stock that rarely moves. This guide sizes it two ways for one item that averages 18 units a day on a 12-day lead time.

What is safety stock?

Safety stock is the stock you expect to have left when a replenishment order arrives, if demand and lead time run at their averages. It covers two risks while you wait: customers buying more than usual and the supplier delivering late. Oracle’s NetSuite help center defines safety stock level the same way: stock kept on hand to cover swings in demand so you don’t run out.

Keep known events out of it. A promotion, a new customer program or a planned project order belongs in the forecast. Safety stock is for the swings you can’t predict item by item.

Safety stock formula

There are two common formulas. Both give the units to hold on top of the demand you expect during the lead time.

Max and average

Safety stock = (highest daily demand × longest lead time) − (average daily demand × average lead time)

Service level

Safety stock = service factor × standard deviation of daily demand × √lead time in days

The inputs come from your own records:

  • Average daily demand: units sold over a recent period, divided by the days in it. Count the days with no sales.
  • Highest daily demand: a realistic high, such as the daily average in your busiest month of the last year. One record day overstates it.
  • Average and longest lead time: days from sending the PO to having stock ready to ship, taken from recent receipts rather than supplier quotes.
  • Standard deviation of daily demand: how far daily sales swing around the average. The calculator calls it daily demand variation.
  • Service factor: 1.28 for 90%, 1.65 for 95%, 1.96 for 97.5% and 2.33 for 99%.

Keep every input in the same time unit. If sales are counted per working day, count lead time in working days too.

Safety stock example

Take an item that averages 18 units a day. Its supplier averages 12 days from PO to shelf. Its busiest month last year averaged 20 units a day, and its slowest recent delivery took 13 days. Its daily sales have a standard deviation of 7.6 units.

Max and average

  • Highest demand × longest lead time: 20 × 13 = 260 units
  • Average demand × average lead time: 18 × 12 = 216 units
  • Safety stock: 260 − 216 = 44 units

Service level at 95%

  • Service factor: 1.65
  • Square root of the lead time: √12 = 3.46
  • Safety stock: 1.65 × 7.6 × 3.46 = 43.4, rounded up to 44 units

Both methods give 44 units here. Real items won’t always agree this neatly. When the answers are far apart, find the input driving the gap, such as one odd month or one slow delivery.

Note what max and average implies for the reorder point: it always equals highest demand × longest lead time. Here that is 20 × 13 = 260, the same as 216 + 44. The method plans for your busiest demand and your slowest delivery to hit in the same cycle.

How to calculate safety stock with a service level

Use this method for items that sell most days and have a few months of daily sales history.

  1. Pick the service level. It is the share of order cycles that should end without running out. MIT’s logistics course notes define this cycle service level as the probability of no stockout per replenishment cycle. At 95%, expect to run out in about 1 of every 20 cycles.
  2. Look up the service factor. NIST’s normal distribution table lists 1.282 for 90%, 1.645 for 95%, 1.960 for 97.5% and 2.326 for 99%. The calculator rounds them to two decimals. In Excel, =NORM.S.INV(0.95) returns about 1.645.
  3. Measure the standard deviation of daily demand. Pull daily sales for a recent period, including the zero days. Then use =STDEV.S. For the example item it is 7.6 units.
  4. Scale it to the lead time. Daily swings partly cancel out, so variation grows with the square root of the days. Stanford’s supply chain course notes show the variance of lead-time demand as the lead time × the daily variance when days are independent. Over 12 days, that gives 7.6 × √12 = 26.3 units.
  5. Multiply and round up. 1.65 × 26.3 = 43.4, so 44 units.

Each step up in service costs more stock. For the example item:

Service levelService factorSafety stockReorder point
90%1.2834 units250 units
95%1.6544 units260 units
97.5%1.9652 units268 units
99%2.3362 units278 units

Going from 95% to 99% adds 18 units, about 40% more buffer, to cut expected stockouts from about 1 cycle in 20 to 1 in 100.

A 95% service level is a different measure from a 95% fill rate. Fill rate counts the units or lines shipped from stock, and a cycle that runs short does so near its end, after most of its demand has shipped. MIT’s notes make the same point: for the same safety stock, item fill rate is usually much higher than cycle service level.

Which safety stock method to use

Max and average fits when you need a number today from rough history, or when a supplier’s lead times swing, since the longest lead time is built in. Its weakness is over-buffering. It assumes your busiest demand and your slowest delivery land in the same cycle, which is unlikely. One odd month or one late delivery keeps the buffer high until it leaves the history you use. It also has no service target, so you can’t see what the extra stock buys.

Service level fits items with steady daily sales and clean history. It lets you set targets by item group: higher for items customers can’t wait for, lower for items that are easy to substitute or costly to hold. Its limits:

  • It assumes lead time stays steady. If lead times move, it understates the buffer. Stanford’s notes give the version for a variable lead time:
    Service level with a variable lead time

    Safety stock = service factor × √(average lead time × demand SD² + average daily demand² × lead time SD²)

    SD means standard deviation, with demand in units a day and lead time in days. With a lead time SD of zero, this is the standard formula.

  • It assumes demand roughly follows a bell curve. For slow, lumpy items that sell a few times a month, set the buffer by hand, such as one typical customer order, and review it.
  • It counts every swing in sales as uncertainty. If an item has a trend or a season, use the standard deviation of forecast error instead, as MIT’s notes do. Lark’s guide to demand forecasting methods covers the options.

Safety stock vs reorder point

Safety stock is one part of the reorder point. The other part is the demand you expect while the order is on its way.

Reorder point

Reorder point = average daily demand × lead time + safety stock

For the example item, that is 18 × 12 = 216 units of lead-time demand plus 44 units of safety stock, a reorder point of 260. If the order arrives on time and demand runs at its average, about 44 units are left when it lands. NetSuite’s help center uses the same arithmetic when safety stock is set as a quantity: average lead time days × demand, plus the safety stock quantity.

Setting the reorder point at the safety stock level is a costly mix-up: the order goes out with only 44 units left to cover 12 days of demand. The reorder point guide covers the trigger in detail, and the EOQ guide covers how much to order.

How often to review safety stock

Recalculate safety stock on a schedule and whenever an input changes.

  • Monthly: fast movers, high-value items and items with recent shorts.
  • Quarterly: stable items.
  • Right away: a supplier’s recent receipts run late, a customer adds or drops a program, the item is being replaced, the season turns or you change the service target.

Then check the results. At a 95% target, about 1 order cycle in 20 should run short. If shorts come far more often, an input is out of date. If stock hasn’t dipped into the buffer for months, the buffer may be too high, which shows up as carrying cost and later as excess inventory.

Where Lark fits

Recalculating safety stock by hand across a full catalog takes time. Lark’s demand forecasting agent can help. It forecasts every item from sales history and compares 14, 30 and 90-day demand so spikes stand out. It recommends reorder points, safety stock and max quantities, with the numbers behind each one.

The inventory monitoring agent flags stockout risks, mismatched records and overstock, and explains why. The purchasing agent identifies shortages and recommends order quantities that match demand and lead time. It drafts one PO per vendor, and within limits your team approves, it enters POs in the ERP. Your team approves the workflows and sets the limits, and the ERP stays the system of record.

Frequently asked questions

What is the safety stock formula?

The simplest is (highest daily demand × longest lead time) − (average daily demand × average lead time). The service-level version is service factor × standard deviation of daily demand × √lead time in days. For this guide’s example item, which averages 18 units a day on a 12-day lead time, both give 44 units.

What service level should I use for safety stock?

Set it by item: higher for items customers can’t wait for or buy elsewhere, lower for items that are easy to substitute or costly to hold. The calculator starts at 95%, which means running out in about 1 of every 20 order cycles. For the example item, 90% needs 34 units of safety stock and 99% needs 62.

How do I calculate safety stock in Excel?

With daily sales in A2:A91 and a 12-day lead time, use =ROUNDUP(NORM.S.INV(0.95)*STDEV.S(A2:A91)*SQRT(12),0). NORM.S.INV(0.95) returns about 1.645, the 95% service factor. For max and average, put highest demand, longest lead time, average demand and average lead time in B1 to B4 and use =ROUNDUP(B1*B2-B3*B4,0). The free reorder point template has both.

Should safety stock be set in units or days?

Either works. Units are easy to check on the shelf. Days follow demand: NetSuite, for example, multiplies safety stock days by daily demand to get units. The example item’s 44 units are about 2.4 days of average sales. A units figure won’t change when demand does, so recheck it when demand shifts.

Is safety stock the same as the min in a min/max system?

Usually not. In min/max, stock falling to the min triggers an order up to the max, so the min works as a reorder point. It should cover lead-time demand plus safety stock: a min of 260 for the example item, with 44 of it as safety stock.

Make the next replenishment decision easier to trust.

See how Lark can help your team review demand, inventory, and purchasing together.

Book a meeting