Skip to content
Blog/How-To

How to Calculate Safety Stock (Formula + Calculator)

Safety stock is the buffer inventory that protects you from stockouts when demand spikes or a supplier ships late. Use the Z-score formula — or the free calculator below — to size it in seconds.

7-day free trial · cancel anytime
How-ToBy Cory ChamberlainMarch 17, 2026 · Updated June 26, 20269 min read

Safety stock is the buffer that keeps you from running out when demand spikes or a supplier ships late. The fastest way to size it is to plug your own numbers into the calculator below — then read on for the formula behind it.

Free calculator— no signup, runs right here
Your Numbers
Units sold per day, on average
Days from when you order to when it arrives
How often you want to be in stock when customers ask
How much your daily sales jump around week to week
Your Result
Safety Stock Buffer
27units
Extra units to keep on hand above normal usage to absorb demand spikes and supplier delays.
Reorder Point
167units
When stock drops to this level, place your next order. Don't wait — this is your trigger.
SS = Z × (CV × D) × √L
    = 1.65 × (0.30 × 20) × √7
    = 27 units
ROP = (D × L) + SS
      = (20 × 7) + 27
      = 167 units

What Is Safety Stock?#

Safety stock is extra inventory you keep on hand to protect against uncertainty. It's your buffer between what you expect to happen (steady demand, on-time deliveries) and what actually happens (a sudden spike in orders, a supplier shipping three days late).

Without safety stock, any deviation from your forecast results in a stockout. With too much safety stock, you're tying up cash in inventory that sits on shelves.

The goal is to find the right amount — enough to cover realistic variability without over-investing.

Why Safety Stock Matters#

Consider a business that sells 20 units per day of a key product, with a 7-day supplier lead time. Under perfect conditions, you'd need exactly 140 units to cover the lead time (20 x 7 = 140). Set your reorder point at 140, and you're fine — as long as:

  • Demand stays at exactly 20 per day (it won't)
  • The supplier delivers in exactly 7 days (they won't)

In reality, some days you sell 15 units and some days you sell 30. Sometimes the supplier delivers in 5 days, sometimes in 10. Safety stock covers the gap between the plan and reality.

The cost of getting it wrong:

  • Too little safety stock — stockouts — lost sales, expedited shipping costs, unhappy customers
  • Too much safety stock — excess carrying costs (typically 20-30% of inventory value per year), risk of obsolescence, cash flow strain

The Standard Safety Stock Formula#

The statistical approach uses standard deviation to quantify variability:

```

Safety Stock = Z x σLT

```

Where:

  • Z = service level factor (Z-score)
  • σLT = standard deviation of demand during lead time

Breaking Down Each Variable

Z (Service Level Factor)

The Z-score corresponds to your desired service level — the probability of not stocking out during any given replenishment cycle.

Service LevelZ-ScoreMeaning
90%1.28Stock out ~10% of cycles
95%1.65Stock out ~5% of cycles
97.5%1.96Stock out ~2.5% of cycles
99%2.33Stock out ~1% of cycles
99.9%3.09Almost never stock out

For most small businesses, 95% is a reasonable starting point for A items (your highest-revenue products). B and C items can often use 90% since stockouts have less impact. Industries with high-value items like automotive parts or manufacturing components often target 97.5% or higher.

Going from 95% to 99% doesn't sound like much, but it requires roughly 40% more safety stock. That's a real cost — make sure it's justified.

σLT (Standard Deviation of Demand During Lead Time)

If lead time is constant and demand varies:

```

σLT = σD x sqrt(LT)

```

Where:

  • σD = standard deviation of daily demand
  • LT = lead time in days

If both demand and lead time vary (common in practice):

```

σLT = sqrt(LT x σD^2 + D^2 x σLT^2)

```

Where:

  • D = average daily demand
  • σLT = standard deviation of lead time in days
  • σD = standard deviation of daily demand
  • LT = average lead time in days

Worked Example: Constant Lead Time

Situation: You sell an average of 25 units per day. Standard deviation of daily demand is 5 units. Supplier lead time is consistently 6 days. You want a 95% service level.

Step 1: Calculate σLT

```

σLT = σD x sqrt(LT) = 5 x sqrt(6) = 5 x 2.449 = 12.25 units

```

Step 2: Apply the formula

```

Safety Stock = Z x σLT = 1.65 x 12.25 = 20.2 ≈ 21 units

```

Result: Keep 21 units of safety stock. Your reorder point would be (25 x 6) + 21 = 171 units.

Worked Example: Variable Lead Time and Demand

Situation: Average daily demand is 25 units (σD = 5). Average lead time is 6 days (σLT = 2 days — your supplier sometimes delivers in 4 days, sometimes 8). You want a 95% service level.

Step 1: Calculate σLT with both variabilities

```

σLT = sqrt(LT x σD^2 + D^2 x σLT^2)

σLT = sqrt(6 x 25 + 625 x 4)

σLT = sqrt(150 + 2500)

σLT = sqrt(2650) = 51.48 units

```

Step 2: Apply the formula

```

Safety Stock = 1.65 x 51.48 = 84.9 ~ 85 units

```

Result: 85 units of safety stock — four times more than the constant lead time scenario. Notice how much impact lead time variability has. If you can get your supplier to deliver more consistently, you can dramatically reduce safety stock (and the cash tied up in it).

The Simple Alternative Formula#

If you don't have standard deviation data (many small businesses don't, especially starting out), use this practical formula:

```

Safety Stock = (Max Daily Sales x Max Lead Time) - (Avg Daily Sales x Avg Lead Time)

```

Worked Example

Situation:

  • Average daily sales: 20 units
  • Maximum daily sales (busiest day in last 3 months): 35 units
  • Average lead time: 7 days
  • Maximum lead time (longest delivery in last 6 months): 12 days

```

Safety Stock = (35 x 12) - (20 x 7)

Safety Stock = 420 - 140

Safety Stock = 280 units

```

Important note: This formula tends to produce higher safety stock numbers than the statistical method because it's designed around worst-case scenarios. That's fine if your worst cases are realistic, but if that one-time 12-day lead time was caused by a freak weather event, you might be over-buffering.

Practical adjustment: Instead of absolute maximums, use the 90th percentile — the level that covers 9 out of 10 scenarios. In the example above, if the 90th percentile lead time is 9 days instead of 12:

```

Safety Stock = (35 x 9) - (20 x 7) = 315 - 140 = 175 units

```

That's 37% less inventory for a coverage level that's still very good.

Want to see your numbers? Try the free safety stock calculator — plug in your daily sales, lead time, and service level.

Common Mistakes in Safety Stock Calculations#

Using Average Lead Time Without Accounting for Variability

If your supplier usually delivers in 5 days but occasionally takes 14 days, using "5 days" in your formula will leave you exposed. Always account for the variance, not just the average.

Setting It and Forgetting It

Safety stock should change when your business conditions change:

  • Seasonal demand — increase safety stock before your peak season, reduce it after
  • New supplier — lead times may be less predictable initially
  • Product lifecycle — a growing product needs more buffer; a declining one needs less
  • Supplier reliability changes — if deliveries have become more or less consistent

Review safety stock levels at least quarterly. Monthly is better for A items.

Same Safety Stock for Everything

Different items deserve different service levels. Your top-selling, highest-margin product might warrant 99% service level. A slow-moving C item that's easy to substitute? 85% might be fine.

Applying one formula across all items either over-invests in C items or under-protects A items.

Ignoring the Cost

Safety stock isn't free. If you carry 200 units of safety stock at $50 each, that's $10,000 in inventory. At a 25% annual carrying cost, you're spending $2,500 per year to hold that buffer for one SKU.

For each item, compare the cost of carrying safety stock against the cost of a stockout (lost sales, lost customers, expediting costs). Sometimes accepting an occasional stockout on a low-margin item is the financially sound choice.

Using Too Short a Data Window

Calculating standard deviation from two weeks of sales data isn't enough. You need at least 3-6 months to capture normal variability, and a full year to account for seasonal patterns.

When to Adjust Your Safety Stock#

Review and adjust when:

  • Demand trend changes — if monthly sales have increased by 20% over the past quarter, your safety stock formula inputs are stale
  • Lead time changes — supplier moved warehouses, shipping route changed, new freight carrier
  • Service level goal changes — a product becomes more or less critical to your business
  • Carrying cost changes — warehouse space got more expensive, or your cost of capital increased
  • Before peak season — build safety stock in advance, not during the rush
  • After peak season — draw down to avoid excess carrying costs

Connecting Safety Stock to Reorder Points#

Safety stock is one component of your reorder point formula:

```

Reorder Point = (Average Daily Demand x Lead Time) + Safety Stock

```

Using the first worked example:

```

Reorder Point = (25 x 6) + 21 = 171 units

```

When your stock hits 171 units, place a new order. The 150 units cover normal demand during the lead time. The 21 units of safety stock protect you if demand runs higher or the delivery runs late.

Try it free

Stop tracking inventory in spreadsheets

InventoryQuick tracks stock, locations, and reorder points across your whole catalog — with low-stock alerts so you never get caught short. Plans from $19/mo, flat.

7-day free trial · cancel anytime

Worked Examples: Three Real Scenarios#

Scenario 1: Stable retail SKU (phone cases)

A phone case shop sells 20 units/day with little variation. Supplier delivers in 7 days. Target 95% service level.

```

Z = 1.65 (95% service level)

CV = 0.15 (stable demand — "Stable" setting)

D = 20 units/day

L = 7 days

Safety Stock = 1.65 x (0.15 x 20) x sqrt(7) = 1.65 x 3 x 2.65 = 13.1, round up to 14 units

Reorder Point = (20 x 7) + 14 = 154 units

```

Order when stock hits 154. The 14-unit buffer handles normal fluctuation.

Scenario 2: Volatile SKU (seasonal/promo-driven)

A gift shop sells an average of 30 units/day, but Black Friday weeks spike to 80+. Supplier lead time is 10 days. Target 99% in-stock.

```

Z = 2.33 (99% service level)

CV = 0.50 (volatile demand — "Volatile" setting)

D = 30 units/day

L = 10 days

Safety Stock = 2.33 x (0.50 x 30) x sqrt(10) = 2.33 x 15 x 3.16 = 110.5, round up to 111 units

Reorder Point = (30 x 10) + 111 = 411 units

```

111 units of safety stock seems like a lot — but for a volatile, high-value item with 10-day lead time, that's the buffer that prevents a $5,000 stockout during your busiest week.

Scenario 3: Long-lead import SKU (container shipping)

An electronics distributor imports components from overseas. Average demand is 50 units/day. Lead time is 45 days (container shipping). Normal variability. Target 95% in-stock.

```

Z = 1.65 (95% service level)

CV = 0.30 (normal demand — "Normal" setting)

D = 50 units/day

L = 45 days

Safety Stock = 1.65 x (0.30 x 50) x sqrt(45) = 1.65 x 15 x 6.71 = 166.0, round up to 167 units

Reorder Point = (50 x 45) + 167 = 2,417 units

```

Long lead times amplify safety stock needs dramatically. At 45 days, even normal demand variability requires 167 units of buffer — compared to just 14 units at 7-day lead time with stable demand.

Common Safety Stock Formula Variations#

Basic Z-score formula (recommended)

```

Safety Stock = Z x (CV x D) x sqrt(L)

```

Uses a service-level Z-score and coefficient of variation. Best for most businesses with 30+ days of sales data. This is what our free calculator uses.

Full variability formula (demand + lead time uncertainty)

```

Safety Stock = Z x sqrt(L x sigma_d^2 + D^2 x sigma_L^2)

```

Accounts for BOTH demand variability (sigma_d = standard deviation of daily demand) AND lead-time variability (sigma_L = standard deviation of lead time). Use this when your supplier's delivery times swing wildly — e.g., 7 days one month, 14 days the next.

Fixed percentage method (simple but imprecise)

```

Safety Stock = Average Daily Demand x Lead Time x Safety Factor (e.g., 0.5)

```

Multiply your expected demand during lead time by a flat percentage (50% is common). No statistics, no Z-scores. Useful for businesses that don't have enough data for statistical methods or have very simple, predictable demand. The trade-off: you'll either carry too much or too little because the buffer isn't calibrated to your actual variability.

Getting safety stock right is one of the most impactful calculations in inventory management. Too little and you stock out. Too much and you burn cash. The formulas above give you a data-driven starting point — and regular reviews keep it calibrated.


InventoryQuick starts at $19/moStart your 7-day free trial

Related: Inventory management software · Free safety stock calculator · Reorder point formula · Free reorder point calculator · Inventory best practices

Common questions

What is safety stock?

Safety stock is the buffer inventory you hold beyond expected demand to absorb demand spikes and late supplier deliveries. Without it, any week that sells above average or any shipment that arrives late becomes a stockout; with it, you set a service level (like 95%) and size the buffer so you only stock out about that often.

How do I calculate safety stock?

Use the Z-score formula: Safety Stock = Z x standard deviation of demand over lead time. Pick a service level (95% is the common default, Z = 1.65), estimate how variable your daily demand is, and multiply by the square root of your lead time in days. The free calculator in this guide does the math from three inputs.

What Z-score should I use for safety stock?

Match it to your target service level: 90% = 1.28, 95% = 1.65, 99% = 2.33. A 95% service level means you stock out in roughly 5% of replenishment cycles. Reserve 99% for A items where a stockout is expensive; carrying 99% service on everything ties up cash in buffer you rarely use.

How does safety stock relate to my reorder point?

Safety stock is one of the two ingredients: Reorder Point = (Average Daily Sales x Lead Time) + Safety Stock. The first term covers expected demand while you wait for the shipment; the safety stock covers the unexpected. InventoryQuick stores a reorder point per item and sends a low-stock alert when quantity hits it, on every plan from $19/mo.

How much safety stock is too much?

If an item's buffer regularly goes untouched across many replenishment cycles, you're paying carrying cost for protection you don't need — lower the service level or re-estimate variability with recent sales. The opposite signal: repeated stockouts mean demand variability or lead time is larger than your inputs assume.

Ready to try
InventoryQuick?

7-day free trial. Cancel anytime. Plans from $19/mo.

View Pricing

7-day free trial · No card required to start · Cancel anytime