Inc. 5000 Fastest-Growing Company in the US

Inc. 5000 logo
Home
Breadcrumb arrow
Blog
Breadcrumb arrow
What Is Safety Stock? Formula, Examples and How to Calculate It

What Is Safety Stock? Formula, Examples and How to Calculate It

Safety stock is the extra inventory a business keeps on hand to cover unexpected demand spikes and supplier delays during the replenishment lead time. It protects service levels when forecasts or lead times miss, and is usually calculated from average demand, lead time and how much both vary.

Getting the number right is a balancing act. Too little and you run out when a customer order spikes or a shipment slips. Too much and you tie up working capital, warehouse space and carrying costs in stock that sits on the shelf. At a business level, safety stock is a tradeoff between protecting customer service and protecting working capital.

This guide covers how to choose a method, the formulas, a worked example you can follow line by line, the mistakes we see most often, and how Microsoft Dynamics 365 handles safety stock in practice.

Why safety stock matters

Stockouts usually come from one of four places:

  • Demand changes: seasonal peaks, promotions or a large one-off order, all common in consumer packaged goods.
  • Forecast error: the forecast is wrong because of limited history, a new product or poor data.
  • Supplier delays: late shipments, production bottlenecks at the vendor or transport disruptions.
  • Internal delays: machine breakdowns or bottlenecks in your own production line.

For manufacturers and distribution warehouses, a stockout costs more than the lost sale. Customers who can’t get what they ordered look elsewhere, and repeated misses strain relationships with both customers and supply chain partners. The buffer exists to absorb most of these surprises, not every one of them. The goal is to protect a chosen service level at a cost the business can accept.

Safety stock vs. reorder point

The two are related but not the same. Safety stock is the buffer you hope not to use. The reorder point is the inventory level that triggers a new order, and it includes the safety stock:

Reorder point = (Average daily demand × Average lead time in days) + Safety stock

In other words, the reorder point covers the demand you expect during the lead time, and safety stock covers the demand and delays you don’t expect.

Safety stock is also different from cycle stock, the inventory you order to cover expected demand between replenishments. Cycle stock is used up and refilled every order cycle, while safety stock sits underneath it and should only be drawn down when demand or lead time doesn’t go to plan.

Which safety stock method should you use?

SituationRecommended method
Little or no history, new productsFixed days of coverage, reviewed once data builds up
Low-value items where a simple rule is enoughFixed days of coverage or max-average
Variable demand, reliable supplierDemand variability (Z × σd × √L)
Stable demand, unreliable delivery datesLead time variability (Z × σLT × Davg)
High-value or critical items with good dataCombined formula

Not every item deserves the same effort or the same service level. An ABC analysis is a practical way to decide where to spend it: statistical methods and higher service levels for A items, simpler rules for C items.

Safety stock formulas

There is no single formula that fits every item. These are the five most common methods, from the simplest to the most complete.

1. Fixed days of coverage

Safety stock = Average daily demand × Days of coverage

You decide how many days of extra demand to hold, for example three days. It is quick and easy to explain, but it ignores how much demand or lead time actually varies.

2. Max-average method

Safety stock = (Maximum daily demand × Maximum lead time) − (Average daily demand × Average lead time)

This covers the worst case seen in your history. It needs no statistics, but one unusual week can push the result very high.

3. Demand variability (normal distribution)

Safety stock = Z × σd × √L

Where Z is the service level factor, σd is the standard deviation of daily demand and L is the average lead time in days. Use it when demand moves around but your supplier delivers on time.

4. Lead time variability

Safety stock = Z × σLT × Davg

Where σLT is the standard deviation of lead time in days and Davg is average daily demand. Use it when demand is steady but delivery dates are not.

5. Combined demand and lead time variability

Safety stock = Z × √(L × σd² + Davg² × σLT²)

This method accounts for both demand and lead-time variability, but it also requires the most reliable data.

Service level and Z values

The Z factor turns the service level you want (the share of replenishment cycles without a stockout) into a number of standard deviations:

Service levelZ value
90%1.28
95%1.65
98%2.05
99%2.33

Note how the curve steepens: going from 95% to 99% raises Z from 1.65 to 2.33, which means about 41% more buffer for the same item.

Worked example: calculating safety stock step by step

Take a hypothetical SKU with the following history. These numbers are illustrative, not from a real customer.

InputValue
Average daily demand (Davg)40 units
Maximum daily demand60 units
Average lead time (L)10 days
Maximum lead time14 days
Standard deviation of daily demand (σd)8 units
Standard deviation of lead time (σLT)2 days
Target service level95% (Z = 1.65)

Here is the result with each method:

MethodCalculationSafety stock
Max-average(60 × 14) − (40 × 10) = 840 − 400440 units
Demand variability1.65 × 8 × √10 = 1.65 × 8 × 3.1642 units
Lead time variability1.65 × 2 × 40132 units
Combined1.65 × √(10 × 8² + 40² × 2²) = 1.65 × √7,040 = 1.65 × 83.9139 units

With the combined method, the reorder point for this item is (40 × 10) + 139 = 539 units. When on-hand plus on-order inventory drops to 539, it is time to reorder.

Three things stand out in this example:

  • The max-average result (440) is more than three times the combined result (139). It plans for the worst day and the worst delivery happening together, which is why it tends to overstock.
  • For this SKU, lead time variability drives most of the buffer: 132 units versus 42 from demand. Working with the supplier on delivery reliability would cut the buffer more than improving the forecast.
  • Rounding up is normal. You can’t stock 138.4 units.

Common safety stock mistakes

  • One rule for every item. A blanket “two weeks of stock” policy overstocks slow movers and understocks the items that matter most.
  • Mixing time units. If σd is weekly, lead time must be in weeks too. Mixing a weekly standard deviation with a lead time in days gives a wrong answer that still looks reasonable.
  • Ignoring lead time variability. As the example shows, late deliveries can matter more than demand swings.
  • Defaulting to 99% or higher. Each extra point of service level costs more stock than the last. Set the target per item class and write down why.
  • Setting it once and never reviewing it. Demand patterns, suppliers and lead times change. The buffer should be recalculated on a regular schedule.
  • Using safety stock as working stock. If you dip into the buffer every cycle, the reorder point or order quantity is wrong, not the buffer.
  • Counting stock you don’t own. If a supplier keeps consignment or vendor-owned inventory at your site, decide whether it counts toward your buffer before you set the number.

How Dynamics 365 handles safety stock

The formulas tell you what the number should be. Your ERP is where that number turns into purchase and production orders. Here is how the two Dynamics 365 products handle it.

Dynamics 365 Supply Chain Management

In Dynamics 365 Supply Chain Management, safety stock is the Minimum value on the Item coverage page, set per item and coverage dimensions such as site and warehouse. Master planning uses it together with the item’s coverage code (for example Min/Max, Period or Requirement) to generate planned orders.

What the Minimum value represents depends on the item’s coverage code, so safety stock should be configured as part of the broader replenishment strategy, not in isolation.

To keep the minimum current, the safety stock journal (Master planning > Master planning > Run > Safety stock calculation) proposes new values from historical issue transactions over a period you choose. It offers two methods:

  • Use average issue during lead time: based on average consumption, with a multiplication factor to add a buffer (for example 1.1 for 10% extra).
  • Use service level: calculates a proposed minimum using the selected service level and historical issue variability.

The journal shows how each proposal would change inventory value before anything is updated. Planners can override any line, and posting the journal updates the minimums on item coverage. Because it can run as a batch job on a schedule, recalculation does not have to depend on someone remembering to export data to a spreadsheet.

Dynamics 365 Business Central

In Business Central, you set Safety Stock Quantity and Safety Lead Time on the Item Card or at the stockkeeping unit (SKU) level. When projected available inventory falls below the safety stock quantity, the planning worksheet suggests a supply order to refill it. Safety lead time adds buffer days to replenishment, and Microsoft recommends setting the default safety lead time to at least one day so supply doesn’t arrive too late for demand with a known date but unknown time. The formulas above are how you decide what to enter in those fields.

If your safety stock levels still live in spreadsheets, or were set at go-live and never revisited, our team can help you set up coverage and recalculation in Dynamics 365. 

Learn how we help with Dynamics 365 Supply Chain Management.

Frequently asked questions

What is the formula for safety stock?

The most complete formula is Z × √(L × σd² + Davg² × σLT²), which covers both demand and lead time variability. Simpler options include Z × σd × √L when only demand varies, and (maximum daily demand × maximum lead time) − (average daily demand × average lead time) when you don’t have statistical data.

What is the difference between safety stock and reorder point?

Safety stock is the extra buffer held for unexpected demand or delays. The reorder point is the level that triggers a new order, calculated as average daily demand × average lead time + safety stock. Safety stock is one part of the reorder point.

What is the difference between safety stock and cycle stock?

Cycle stock is the inventory you order to meet expected demand between replenishments, and it is used up and refilled every order cycle. Safety stock is held on top of it to cover demand and delays you don’t expect, and in a well-planned cycle it stays mostly untouched.

Is safety stock the same as buffer stock?

The terms are often used interchangeably. Some planners use buffer stock more broadly, including stock built up on purpose ahead of a known event such as a seasonal peak, while safety stock covers uncertainty you can’t predict.

What service level should I use for safety stock?

It depends on the item’s value and the cost of a stockout. Many businesses target 90% to 98%, with higher levels for critical or high-margin items and lower levels for C items. Above 98%, the extra stock needed for each additional point grows quickly.

What is the purpose of safety stock?

Safety stock protects your service level when demand or supply doesn’t go to plan. It absorbs demand spikes, forecast errors and supplier or internal delays during the replenishment lead time, so you can keep filling orders without holding excess inventory on every item.

Related reading

Share

Table of Contents