Safety Stock Formula: How to Calculate Safety Stock (With Examples)

Inventory manager in a high-visibility vest checking stock levels on a tablet in a warehouse aisle

Safety stock is extra inventory you keep on hand to cover surprises: sales that run higher than expected, or a supplier shipment that arrives late. It sits on top of the stock you expect to sell while waiting for a reorder, and it is what stops a normal bad week from turning into a stockout.

This guide gives the safety stock formulas, from the simplest to the statistical one, with worked examples, shows how safety stock connects to the reorder point, and explains what changes when you sell on Amazon, Walmart and other marketplaces. All examples use made-up numbers, so replace them with your own sales and lead time data.

What is safety stock?

Every reorder has two periods of risk. First, lead time: the days between placing an order and having the stock ready to sell. Second, demand during that time, which is never exactly what you forecast. Safety stock is the buffer for both. Too little and you run out and lose sales. Too much and you tie up cash and pay to store stock that is not moving. For the opposite problem see avoiding overstock and stockouts.

Safety stock formulas

MethodFormulaUse it when
Days of coverAverage daily sales × days of bufferYou want a quick rule of thumb
Max-minus-average(Max daily sales × max lead time) − (average daily sales × average lead time)You have sales and lead time history but little statistics
Statistical, demand variesZ × standard deviation of daily demand × √lead time (days)Lead time is steady, demand varies
Statistical, both varyZ × √(lead time × demand variance + average demand² × lead time variance)Both demand and lead time vary

Z is the service level factor: how sure you want to be of not running out during lead time. Common values are 1.28 for 90%, 1.65 for 95% and 2.33 for 99%. A higher service level needs more safety stock, and the cost grows quickly as you approach 99%.

Example 1: the max-minus-average method

InputValue
Average daily sales20 units
Highest daily sales30 units
Average lead time14 days
Longest lead time21 days

Safety stock = (30 × 21) − (20 × 14) = 630 − 280 = 350 units.

This method covers the worst case it saw on both measures at once, so it gives a generous buffer. It is easy to run, but if your worst case is rare it will hold more stock than you need.

Example 2: statistical, when demand varies

Average daily sales are 20 units with a standard deviation of 6 units per day. Lead time is a steady 14 days. You want a 95% service level (Z = 1.65).

Safety stock = 1.65 × 6 × √14 = 1.65 × 6 × 3.74 = about 37 units.

Much smaller than 350, because it covers a chosen probability instead of the worst case ever seen. To get the standard deviation, take your daily (or weekly) sales for the last few months and use the STDEV function in a spreadsheet. If you use weekly numbers, use lead time in weeks.

Example 3: statistical, when lead time varies too

Same demand as above, but your supplier’s lead time has a standard deviation of 3 days around the 14-day average.

Safety stock = 1.65 × √(14 × 6² + 20² × 3²) = 1.65 × √(504 + 3,600) = 1.65 × 64.1 = about 106 units.

Look at where the number comes from: an unreliable supplier adds far more to safety stock than variable demand does. Improving lead time reliability, for example by finding a more dependable supplier or a closer warehouse, is often the cheapest way to cut safety stock.

Safety stock and the reorder point

Reorder point = (average daily sales × lead time) + safety stock

It is the stock level at which you place a new order. Using Example 2: 20 × 14 = 280 units sold on average during lead time, plus 37 units of safety stock, so you reorder when stock falls to 317 units.

MethodSafety stockReorder point
Max-minus-average (Example 1)35020 × 14 + 350 = 630
Statistical, demand varies (Example 2)3720 × 14 + 37 = 317
Statistical, both vary (Example 3)10620 × 14 + 106 = 386

Also remember the order size. Your supplier’s minimum order quantity can be larger than the quantity you want to reorder. See MOQ meaning.

How to set safety stock in practice

  1. Start with your best sellers. They hurt most when they stock out, and you have the most data on them.
  2. Measure real lead time. Count from the day you place the order to the day the stock is ready to sell, including inbound check-in for marketplace warehouses.
  3. Pick a service level per product, for example 95% for most items and 99% for key items.
  4. Calculate safety stock and the reorder point with one of the formulas above.
  5. Review monthly. Update the numbers when demand, seasons or suppliers change.
  6. Track what happens. Count stockouts and excess stock, and adjust the service level accordingly.

Safety stock when you sell on marketplaces

  • Include inbound time in lead time. For Amazon FBA and Walmart WFS, the clock does not stop when the shipment leaves you. It stops when the units are received and available to sell.
  • Plan for peak seasons. Demand variation is larger in the fourth quarter, so recalculate before it starts instead of using last spring’s numbers.
  • Decide whether channels share stock. If Amazon, Walmart and your own store draw from one pool, keep one safety stock for the pool. If each channel has its own warehouse stock, each needs its own.
  • Watch for slow stock too. Safety stock for a product that stops selling becomes dead stock, so review items with no sales and see what is real-time inventory for keeping counts accurate.
  • Keep counts correct. A buffer calculated on wrong inventory numbers is no buffer. See cycle counting for how to keep records accurate.

Keep safety stock and sales channels in sync

A safety stock number only helps if the stock count behind it is right on every channel. Crazy Vendor inventory management keeps one stock count per SKU and updates Amazon, Walmart, eBay, Etsy and Shopify when a quantity changes, so you are not selling stock you no longer have. Plans start at $29/month with a 21-day free trial. See pricing.

Related: how to calculate inventory turnover, what is a backorder and Amazon wholesale.

Frequently asked questions

What is safety stock?

Safety stock is extra inventory kept to cover unexpected demand or supplier delays, so you do not run out between placing an order and receiving it.

What is the safety stock formula?

The simplest is average daily sales multiplied by the days of buffer you want. A common version is (max daily sales × max lead time) − (average daily sales × average lead time). The statistical version is Z × standard deviation of demand × the square root of lead time.

How do I calculate the reorder point?

Multiply average daily sales by lead time in days, then add safety stock. When stock falls to that number, place a new order.

What service level should I use?

Many sellers use around 95% for regular items and higher for key items. A higher level means more stock and cost. Choose it by comparing the cost of a lost sale with the cost of holding extra stock.

What is the difference between safety stock and reorder point?

Safety stock is the buffer. The reorder point is the stock level that triggers an order, and it includes the buffer plus the expected sales during lead time.

Can safety stock be too high?

Yes. Extra buffer ties up cash, takes up storage and can become slow or dead stock if the product stops selling.

Updated November 15, 2026.

You can also follow us on social media for more e-commerce insights and updates