← All guides

StockSense guide

How to calculate safety stock with the worst-case formula

By Chad Norris, Founder, Orbitloft · Updated October 11, 2026

Safety stock is the extra inventory you keep for the weeks when things don't go to plan. Too little and you sell out. Too much and your cash is stuck. This guide shows a simple way to calculate it, works through a full example, and covers the mistakes that make the number wrong. To run the four inputs on your own products, use the safety stock calculator.

What safety stock actually protects against

Every reorder has a gap between placing the order and the stock arriving. During that gap you keep selling. If sales run hotter than usual, or the shipment shows up late, you run out before it lands. Safety stock is the cushion that covers those two surprises.

  • Demand risk: A busy week, a mention on social media, a holiday rush
  • Supply risk: A supplier who ships late, a delay in transit, a short shipment
  • Not covered: A product that is permanently selling faster. That needs a new forecast, not a bigger buffer.

Safety stock is one half of the reorder decision. The other half is the stock you expect to sell while you wait. Together they make your reorder point, which is covered in how to calculate a reorder point.

Worst case minus normal case

Here's a common formula. Multiply your busiest daily sales by your longest lead time. Then subtract your average daily sales, multiplied by your average lead time. What's left is your safety stock.

  • Worst case: Max daily sales × max lead time
  • Normal case: Avg daily sales × avg lead time
  • Safety stock: Worst case − normal case

It's popular because you only need four numbers, and you can pull all of them from your order history and your purchase records. It is also cautious, because it treats your busiest sales and your slowest delivery as if they happen together. That can overstate the buffer for a slow mover. A statistical formula, a service factor times the standard deviation of daily demand times the square root of lead time, lets you choose how often you are willing to stock out, but it needs a clean daily sales history. A new product has no history, so start from a similar product and review the buffer after a few weeks of real sales.

Safety stock calculator

Same formula as this guide. Enter average and peak daily sales, plus your normal and slowest lead times, to see the buffer.

Safety stock

240 units

Worst case 450 units, minus normal case 210 units.

Reorder point with this buffer

450 units

Average daily sales × average lead time, plus the safety stock above.

Runs in your browser. Nothing you enter is stored or sent.

Work it through

For example. On your best days you sell seven units, and the slowest delivery took twenty days. That's one hundred forty. Normally you sell four a day, with a fourteen day lead time. That's fifty-six. Your safety stock is eighty-four units.

  • Worst case: 7 a day × 20 days = 140
  • Normal case: 4 a day × 14 days = 56
  • Safety stock: 140 − 56 = 84 units

Two products, two very different answers

The same formula gives very different results for products with different patterns. Here is Harbor Goods Co. comparing its best seller with a steady accessory from a reliable supplier.

Linen Crew TeeCanvas Tote
Max daily sales125
Max lead time30 days16 days
Avg daily sales64
Avg lead time21 days14 days
Worst case36080
Normal case12656
Safety stock234 units24 units

The tee needs almost ten times the buffer of the tote, even though average sales are not that far apart. The gap comes from spiky demand and a supplier whose delivery times swing by more than a week.

Getting the inputs right

The answer is only as good as the four numbers you put in. A few habits make a big difference.

  • Use a sensible window: The last 90 days of sales is a common starting point. A full year can bury a recent trend, and two weeks is too noisy.
  • Ignore true outliers: A single wholesale order or a one-off viral day can inflate your maximum. Leave it out if you would not plan for it again.
  • Measure lead time from your own records: Count from the day you placed the order to the day stock was ready to sell, not the supplier's quoted time. See how to measure supplier lead time.
  • Watch for stockout days: Days when you were sold out show zero sales, which drags your average down. Leave them out of the average.

If you are not sure what your daily sales figure should be, calculating sales velocity walks through it.

Not one size fits all

Don't use one number for every product. Your best sellers, and anything with a slow or unreliable supplier, deserve more buffer. Slow movers need less. Review it each season, as demand shifts.

  • More: Best sellers, unreliable suppliers
  • Less: Slow movers
  • Review: Every season

Holding too much has a cost too. Every unit of safety stock is cash on a shelf, and some of it may never sell. Overstock vs stockout cost helps you decide which way to lean.

Checking that your buffer is working

After a season, look back. If you dipped into safety stock now and then but never sold out, the number is about right. If you never touched it, it is probably too high. If you sold out anyway, check whether the lead time or the peak sales were worse than the figures you used, and update them.

Frequently asked questions

What is the safety stock formula?

Safety stock equals maximum daily sales multiplied by maximum lead time, minus average daily sales multiplied by average lead time. For example, 7 units on the busiest days and a 20-day slowest lead time, against 4 units on a normal day and a 14-day normal lead time, gives 140 minus 56, which is 84 units.

What is a good safety stock level?

There is no single right level. It depends on how much your daily sales swing and how reliable your supplier's lead time is. Products with steady demand and a dependable supplier need little buffer, while best sellers with long or unpredictable lead times need much more.

Is safety stock the same as a reorder point?

No. Safety stock is the buffer. The reorder point is the stock level that tells you to order, and it equals your expected sales during the lead time plus your safety stock.

How often should I recalculate safety stock?

At least once a season, and any time a supplier changes or a product's sales trend shifts. A buffer set before a busy period can be far too small during it.

Should new products have safety stock?

New products have no sales history, so the formula has little to work with. Start with a small buffer based on a similar product, then recalculate once you have a few weeks of real sales.

Running this across your whole catalog

Working this out by hand for a few products is fine, but the inputs drift every week for every SKU. StockSense calculates this for every product, from your real order history. It builds lead-time-aware safety stock into each forecast, and gives you a reorder point, a quantity, and a date. See StockSense.

Doing this for a whole catalog or every order?

See how StockSense handles it for you.

Explore StockSense →

Get guides like this in your inbox

One practical Shopify fix per week — written for store owners, not growth hackers.

No spam, no list-selling — unsubscribe in one click.

Related guides

Related tools

Compare apps

More guides: Inventory →