Home / Blog / What Is Safety Stock? Formula, Examples, and When You Need It

March 18, 2026 · Alertr Team

What Is Safety Stock? Formula, Examples, and When You Need It

Safety stock is extra inventory held to prevent stockouts when demand spikes or suppliers run late. Learn how to calculate it and when it's worth holding.

Safety stock is extra inventory you keep on hand beyond what you expect to sell — a buffer against the unexpected. When a supplier ships late, a TikTok video sends demand through the roof, or your lead time estimates turn out to be wrong, safety stock is what keeps your store from going out of stock while you scramble to fix it.

It's not the same as your regular cycle stock (the inventory you plan to sell through before your next order). Safety stock is specifically for uncertainty — and if you're running a DTC brand on Shopify, there's plenty of that to go around.

Why Safety Stock Matters for Ecommerce Brands

Most merchants don't think about safety stock until they've experienced a painful stockout. A bestseller goes out of stock two weeks before the holidays. A supplier in Vietnam takes an extra ten days to ship. A product goes viral and you sell through three weeks of inventory in 48 hours.

By then, you're losing sales, disappointing customers, and scrambling to place emergency orders at higher costs.

Safety stock doesn't eliminate these situations — but it buys you time. A stockout becomes a two-day scramble instead of a two-week crisis. That buffer is often the difference between a fixable problem and a permanently lost customer.

For stores with predictable sales and reliable suppliers, safety stock requirements are relatively low. For stores with seasonal spikes, international suppliers, or trending products, they can be substantial.

The Basic Safety Stock Formula

The simplest safety stock formula used in practice is:

Safety Stock = (Maximum Daily Sales × Maximum Lead Time) − (Average Daily Sales × Average Lead Time)

Let's walk through a real example.

Say you sell a skincare serum. Your numbers look like this:

  • Average daily sales: 15 units
  • Maximum daily sales (your busiest day in the last 90 days): 28 units
  • Average lead time from your supplier: 14 days
  • Maximum lead time you've experienced: 20 days

Safety Stock = (28 × 20) − (15 × 14) Safety Stock = 560 − 210 = 350 units

That's how much buffer stock you'd want to hold to handle both a demand spike and a supplier delay happening at the same time. For a high-velocity product with an unpredictable supplier, that number isn't unreasonable.

For a slow-moving product with a reliable domestic supplier, your safety stock might be five units. The formula scales to your actual situation.

A More Precise Formula: The Statistical Approach

The formula above is practical and easy to calculate, but it's conservative — it assumes your worst-case demand and worst-case lead time happen simultaneously, which is unlikely. If you want a more statistically grounded number, use this formula:

Safety Stock = Z × σ_LT × √LT

Where:

  • Z = service level factor (e.g., 1.65 for 95% service level, 2.05 for 98%)
  • σ_LT = standard deviation of demand during lead time
  • √LT = square root of average lead time in days

This is what supply chain software typically uses under the hood. For most Shopify merchants, the simpler formula gets you 80% of the way there without needing a statistics degree. But if you're carrying high-margin products or operating in a category where stockouts destroy relationships (like B2B or subscription), the statistical approach is worth the extra effort.

What Goes Into Your Safety Stock Calculation

Before you run the numbers, you need clean data on a few key variables:

Lead time variability: How consistent is your supplier? A supplier who delivers in 12-16 days creates far more uncertainty than one who's always exactly 14 days. Track this per supplier, not just overall.

Demand variability: Look at your daily sales distribution over the last 60-90 days. A product that sells 10-12 units per day is easy to plan for. One that sells anywhere from 3 to 45 units depending on promotions, seasonality, or press coverage needs a larger buffer.

Service level target: What percentage of the time do you want to have stock available? 95%? 98%? Higher service levels require more safety stock. For most DTC brands, 95% is a reasonable target — you'll have a minor stockout event roughly once a month, which most stores can manage.

Product margin: High-margin products can afford larger safety stock positions. Low-margin products where holding costs eat into profitability need tighter buffers.

Safety Stock vs. Reorder Point: What's the Difference?

These two concepts work together but aren't the same thing.

Your reorder point is the inventory level at which you place a new order — calculated as:

Reorder Point = (Average Daily Sales × Lead Time) + Safety Stock

Safety stock is the floor — the minimum you want to have when your new stock arrives. The reorder point is the trigger that gets you to place the order in time to maintain that floor.

Using the skincare serum example above: if average daily sales are 15 units and lead time is 14 days, you'd normally want to reorder when you have 210 units left (15 × 14). Add the 350-unit safety stock buffer and your reorder point becomes 560 units.

That's when you place the order — not when you're nearly out.

When You Actually Need Safety Stock (And When You Don't)

Safety stock isn't free. It ties up cash, takes up warehouse space, and creates risk of obsolescence for products with a shelf life. The goal isn't to hold as much safety stock as possible — it's to hold the right amount for your specific situation.

You need meaningful safety stock if:

  • Your supplier lead times vary by more than 20% between orders
  • You have seasonal demand spikes (holiday, back-to-school, summer, etc.)
  • You carry products that go viral or get press coverage unpredictably
  • You sell products with long supplier lead times (30+ days, especially overseas)
  • Stockouts directly damage customer relationships (subscriptions, B2B accounts)

You can keep safety stock lean if:

  • You have domestic suppliers with 3-5 day lead times
  • Your sales are highly predictable week over week
  • You can air-freight emergency stock affordably if needed
  • Your products have short shelf lives or are prone to obsolescence

For a store doing 300-500 orders a month with a handful of core SKUs, safety stock calculation is worth doing manually every quarter. For stores with 50+ SKUs and variable demand, you need a system — otherwise, you're either over-stocked on slow movers or constantly scrambling on fast ones.

Tracking Safety Stock Without a Spreadsheet

Once you have more than a dozen active SKUs, managing safety stock manually becomes untenable. You need visibility into which products are approaching their safety stock buffer — and ideally, you want an alert before you hit it, not after.

This is where tools like Alertr become genuinely useful. Rather than checking a spreadsheet every day, you can set configurable low stock thresholds per SKU and receive alerts via email or Slack when inventory drops below your defined safety stock level. Alertr also tracks your sell rate and gives you a days-of-stock estimate, which makes it much easier to know whether a low stock alert is urgent (3 days of stock) or manageable (12 days of stock).

For stores in the 100-2000 SKU range, that kind of automated visibility is the difference between proactive reordering and reactive firefighting.

Common Safety Stock Mistakes to Avoid

Using the same safety stock for every SKU: A bestselling SKU that does 50 units a day needs a very different buffer than a slow-mover doing 2 units a week. Calculate safety stock at the SKU level, not as a blanket policy.

Not updating calculations after supplier changes: If you switch suppliers or your current supplier's reliability changes, your safety stock numbers are wrong. Rebuild them when anything significant changes in your supply chain.

Treating safety stock as a set-and-forget number: Your demand patterns change with seasons, promotions, and product lifecycle. Safety stock levels should be reviewed at least quarterly.

Ignoring lead time variability entirely: Many merchants calculate safety stock based on average lead time but don't account for the fact that lead time itself varies. If your supplier averages 14 days but has hit 25 days twice in the last year, your safety stock based on a 14-day lead time isn't actually protecting you.

Holding safety stock on dead SKUs: If a product is being phased out or sales have dropped significantly, your safety stock position should drop with it. Dead inventory is a hidden cost that adds up fast.

A Practical Starting Point for Shopify Merchants

If you've never formally calculated safety stock before, here's a straightforward process to get started:

  1. Pull your last 90 days of sales data by SKU
  2. Calculate average daily sales and maximum daily sales for each SKU
  3. Get your average and maximum lead times from each supplier
  4. Apply the basic formula: (Max Daily Sales × Max Lead Time) − (Avg Daily Sales × Avg Lead Time)
  5. Compare your results to what you're actually holding — you'll likely find some SKUs over-stocked and others dangerously under-buffered
  6. Set reorder alerts at your reorder point level so you're notified before you hit safety stock

That process, done once properly, will immediately surface your highest-risk SKUs and give you a defensible number to work with going forward.


Running a Shopify store means constant uncertainty — in demand, in supply chains, and in what's going to sell next month. Safety stock is how you build a margin of safety into your inventory without just guessing.

If you want automated visibility into which SKUs are approaching their safety stock floor without managing a spreadsheet daily, Alertr offers a free tier for up to 50 SKUs. For stores growing past that, the Pro plan is currently in beta at $19/month. It won't calculate safety stock for you, but it will make sure you know the moment a product is getting close — before it becomes a problem.

Stop Guessing, Start Tracking

Alertr monitors sell rates, forecasts stockouts, and sends reorder alerts automatically. Inventory forecasting and reorder alerts. Free tier available, no credit card required.

Join Waitlist