Safety Stock Formula: How Much Buffer Stock to Hold

How to calculate safety stock for ecommerce, which formula to use, and how much buffer to hold.

Safety stock is the extra stock you keep so that a busier-than-expected week or a late container doesn’t leave you out of stock. Too little and you run out. Too much and cash sits on a shelf.

This guide explains two practical ways to calculate it, works through the numbers, and covers when to adjust it, including for seasonal products.

Why you need safety stock

Your reorder point is built on a forecast of demand during the lead time. Forecasts are never exact, and lead times vary. Safety stock covers that gap:

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

Without safety stock, you’d run out roughly half the time: whenever demand during the lead time is higher than average.

Method 1: the simple max-minus-average formula

This is a common rule-of-thumb method that needs only your sales and lead time history:

Safety stock = (max daily sales × max lead time) − (average daily sales × average lead time)

Worked example

A candle sells:

Safety stock = (20 × 38) − (12 × 30) = 760 − 360 = 400 units

Pros and cons

It’s easy to understand and needs no statistics. But it’s driven by your single worst day and worst delivery, so it often produces a large buffer, especially for products with one unusual spike. Strip out one-off events such as a viral post before using it.

Method 2: the statistical formula (Z × σ × √L)

The statistical method links safety stock to the chance of not running out during a lead time, which is called the service level.

Safety stock = Z × σ × √L

Service level Z-score
85% 1.04
90% 1.28
95% 1.645
97.5% 1.96
99% 2.33

These are standard values from the normal distribution; you can check them with =NORM.S.INV(0.95) in Excel or Google Sheets, which returns about 1.645.

OmniRestock uses a 95% service level by default, which you can change per product, group, supplier or account.

Worked example

Same candle, now using daily sales for the last eight weeks (in-stock days only):

Safety stock = 1.645 × 4 × √30 √30 ≈ 5.477 Safety stock = 1.645 × 4 × 5.477 ≈ 36 units

Reorder point = (12 × 30) + 36 = 396 units

That’s far lower than the 400 units of safety stock from Method 1, because the statistical formula assumes daily ups and downs partly cancel out over a 30-day lead time.

Calculating σ in a spreadsheet

If column B holds one row per in-stock day with units sold:

Remember to remove stockout days first. A day with zero sales because you had no stock makes demand look more variable and lower than it is.

Adding lead time variability

The formula above assumes the lead time is fixed. If your supplier’s delivery times vary a lot, a fuller version accounts for both:

Safety stock = Z × √(L × σ_d² + d² × σ_L²)

Worked example

Candle again: d = 12, σ_d = 4, L = 30, and the last several deliveries varied with σ_L = 5 days.

Lead time variation nearly triples the buffer. Often, the cheapest way to cut safety stock is not a better forecast but a more reliable supplier or shipping route.

Which method should you use?

Situation Suggested method
Just starting out, little data Max-minus-average, sanity-checked
Steady sellers with 8+ weeks of data Z × σ × √L
Suppliers with unreliable delivery Full formula with lead time variability
Lumpy, slow sellers Treat with care; consider a fixed minimum in units
New products Borrow a similar product’s pattern, then review after 4–8 weeks

When to raise or lower safety stock

Raise it when:

Lower it when:

Setting service levels by group helps: 98% for your top sellers, 90% for long-tail products, and a lower level for anything marked to stop reordering.

Safety stock for seasonal products

Seasonal products break the “average demand” assumption. A Christmas jumper’s December demand looks nothing like its March demand.

Practical approach:

  1. Forecast the season itself using the same period last year scaled by growth, rather than a flat average.
  2. Calculate σ from the same season last year, not the whole year.
  3. Time the buffer. Hold safety stock in the run-up and peak, then let it run down. Carrying the same buffer into January leaves you with dead stock.
  4. Set active date ranges so the product isn’t reordered off-season.

Worked example: seasonal

A gift set sells 5/day most of the year but 40/day in the six weeks before Christmas, with σ = 12 in that period. Lead time is 45 days.

Using the off-season figure in November means you’d almost certainly run out. Using the peak figure in February ties up cash.

Safety stock with multiple warehouses and FBA

Each place you hold sellable stock needs its own safety stock, calculated from its own demand and lead time:

Don’t just add the two buffers into one supplier order on top of each other’s forecasts. See FBA replenishment from your own warehouse.

Common mistakes

Frequently asked questions

Is safety stock the same as minimum stock?

Not quite. Safety stock is a buffer calculated from variability. A minimum stock level is often a fixed number set by hand. Some sellers use the higher of the two.

What service level should I choose?

95% is a common starting point and OmniRestock’s default. Push it higher for best-sellers where stockouts are costly, lower for slow or easily replaced items. Each step up costs more stock.

Does a 95% service level mean I’m in stock 95% of the time?

Not exactly. In this formula it means a 95% chance of not running out during each replenishment lead time. Your overall in-stock rate is usually higher.

Can safety stock be negative?

No. If a calculation gives a negative number, something is off in the inputs. Treat it as zero and check your data.

How do I handle products with very little data?

Use a fixed buffer or borrow a similar product’s history, then switch to the statistical method once you have around 8 weeks of in-stock sales.

Next steps

See what runs out next

14-day free trial. No card needed. Or get a free stockout report first.