Enter your demand and lead time figures to calculate your statistical safety stock
Optimal Safety Stock
--
Buffer Units
The extra inventory to hold on top of your average demand during lead time, protecting you against demand spikes and supplier delays at your chosen service level.
📊 Your Demand, Lead Time, and Target Service Level
Demand Profile
The mean number of units customers buy per day.
How much daily demand swings around that average.
Supplier Lead Time
The mean days between placing an order and receiving it.
How much your supplier's delivery time varies.
Target Service Level
The probability of not running out of stock during a replenishment cycle. A higher level means more buffer stock.
Risk Breakdown: Where Your Buffer Is Going
Your safety stock exists to cover two sources of variability. The bars below show how much of your total inventory risk comes from each one, so you know exactly which operational problem to fix to lower your holding costs.
Risk from Demand Fluctuation
--
Risk from Supplier Delays
--
Enter your figures above to see which risk is driving your buffer stock.
Avg. Demand During Lead Time
--
Average daily demand times average lead time
Std. Dev. of Lead Time Demand
--
Combined variability, the square root of total variance
Managing inventory more broadly? See also the Inventory Turnover Ratio Calculator to measure how fast your stock sells, and the COGS Calculator to find the true cost of the goods you are buffering.
📖 Key Terms Explained
Safety Stock
The extra inventory you hold beyond your expected demand during lead time. It is a buffer that absorbs the surprises of higher than average sales or slower than average deliveries, protecting you from stockouts.
Service Level
The probability that you will not run out of stock during a single replenishment cycle. A 95 percent service level means that in 95 of every 100 cycles you expect to meet all demand without a stockout.
Z-Score (Service Factor)
A multiplier from the normal distribution that converts your target service level into the number of standard deviations of buffer you must hold. Higher service levels map to higher Z-scores and therefore more stock.
Standard Deviation
A measure of how spread out a set of numbers is around its average. In inventory, it quantifies how unpredictable your daily demand or your supplier's lead time really is. A larger standard deviation means more variability and more buffer needed.
Demand Variability
The day to day swing in how much customers buy. Even with a steady average, demand that jumps around forces you to carry more safety stock to avoid running short during a busy stretch.
Lead Time Variability
The inconsistency in how long your supplier takes to deliver. A supplier whose lead time bounces between 10 and 20 days creates far more risk than one who reliably delivers in 14 days, even if both average the same.
Reorder Point
The inventory level that triggers a new purchase order. It equals your average demand during lead time plus your safety stock, so that fresh stock arrives just as your buffer is reached.
Normal Distribution in Supply Chain
The bell-shaped curve that demand and lead time variation often approximate. It lets planners map a target service level to a precise Z-score, which is the statistical foundation of the safety stock formula.
Holding Cost
The ongoing cost of keeping inventory on hand, including warehousing, insurance, obsolescence, and the cash tied up in stock. Higher safety stock raises holding cost, which is why chasing extreme service levels gets expensive.
Stockout
The event of running out of a product when a customer wants it. Stockouts cost lost sales, damage customer trust, and can send buyers to competitors. Safety stock is the insurance you buy to make stockouts rare.

The Complete Guide to Statistical Safety Stock

The simplest reorder rule, average demand multiplied by average lead time, quietly assumes the future will always be average. It never is. Some weeks customers buy in bursts, and some shipments arrive late. Statistical safety stock is the buffer that absorbs those surprises, sized precisely with the Z-score method so you hold enough to hit your target service level without drowning in excess inventory. This guide explains the formula behind the calculator above, how to read the risk breakdown, and how to choose a service level that fits your product.

How to Use This Safety Stock Calculator

Work through the three panels. In the Demand Profile panel, enter your Average Daily Demand and the Standard Deviation of Daily Demand, both measured in units. In the Supplier Lead Time panel, enter your Average Lead Time and the Standard Deviation of Lead Time, both in days. In the Target Service Level panel, choose how confident you want to be that you will not run out of stock; the matching Z-score is applied automatically. Everything recalculates instantly as you type, with no submit button to press. The hero shows your Optimal Safety Stock, the risk breakdown reveals whether demand swings or supplier delays are driving that number, and the secondary cards give you the reorder point that puts the buffer to work.

The Safety Stock Formula, Step by Step

This tool uses the standard formula for safety stock when both demand and lead time vary. It combines two independent sources of risk under the square root, because variances add while standard deviations do not:

Demand Variability Risk = Average Lead Time times (Standard Deviation of Daily Demand squared)
Lead Time Variability Risk = (Average Daily Demand squared) times (Standard Deviation of Lead Time squared)
Total Variance = Demand Variability Risk + Lead Time Variability Risk
Safety Stock = Z-Score times the square root of Total Variance

The final safety stock is rounded up with the ceiling function, because you cannot stock a fraction of a unit and rounding down would leave you slightly under-protected. The reorder point is then your average demand during lead time, which is average daily demand times average lead time, plus this safety stock.

A Worked Example

Suppose you sell 50 units per day on average with a demand standard deviation of 12, and your supplier delivers in 14 days on average with a lead time standard deviation of 3 days, targeting a 95 percent service level (Z-score 1.65). The Demand Variability Risk is 14 times 12 squared, which is 2,016. The Lead Time Variability Risk is 50 squared times 3 squared, which is 22,500. The Total Variance is 24,516, and its square root is about 156.58. Multiply by the 1.65 Z-score to get about 258.4, which rounds up to 259 units of safety stock. Notice that the lead time risk of 22,500 dwarfs the demand risk of 2,016, so roughly 92 percent of your buffer exists to cover unreliable supplier delivery, not customer demand swings. The fastest way to cut this inventory would be to find a more consistent supplier, not to forecast demand more precisely.

Reading the Risk Breakdown

The two bars are the most actionable part of this tool. They split your Total Variance into the share caused by demand fluctuation and the share caused by supplier delays. When supplier delays dominate, the lever that lowers your inventory is supplier reliability: shorter, more consistent lead times, dual sourcing, or contractual delivery windows. When demand fluctuation dominates, the lever is forecasting and demand smoothing: better promotions planning, tighter sales data, or pooling demand across locations. Carrying expensive buffer stock without knowing which problem you are paying for is how working capital quietly disappears.

Choosing a Service Level

Because safety stock is directly proportional to the Z-score, the cost of reliability climbs steeply as you approach certainty. The table below shows the common service factors used in this calculator:

Service LevelZ-ScoreRelative Buffer vs 95%
90%1.28About 22% less
95%1.65Baseline
97%1.88About 14% more
99%2.33About 41% more
99.9%3.09About 87% more

For most products, a service level between 95 and 98 percent strikes the best balance between availability and holding cost. Reserve 99 percent and above for items where a stockout is genuinely costly, such as a critical spare part, a medical supply, or a component that would halt an entire production line. The last few points of reliability are the most expensive inventory you will ever buy.

Frequently Asked Questions

The basic reorder point formula is average daily demand multiplied by average lead time. It answers a simple question: how much stock will I sell, on average, while I wait for my next delivery to arrive. The problem is that it assumes the future is perfectly average, with demand and supplier lead times never varying. Reality is messier. Some weeks customers buy far more than usual, and some shipments arrive late. If you only order up to the average demand during lead time, then roughly half the time you will run out before the new stock lands, because half of all outcomes fall above the average. Statistical safety stock is the buffer you add on top of that average to protect against this variability. Instead of assuming the average always holds, it uses the standard deviation of your demand and the standard deviation of your lead time to measure how much things actually swing, then multiplies that combined variability by a Z-score that reflects how confident you want to be. The full reorder point then becomes average demand during lead time plus this statistical safety stock. In short, the basic formula tells you the average, and safety stock pays for the insurance against everything that is not average.
A Z-score, also called a service factor, is a number from the normal distribution that translates your desired service level into how many standard deviations of buffer you need to hold. Because demand and lead time variation tend to follow a roughly bell-shaped normal distribution, statisticians can map any target probability to an exact multiplier. A 90 percent service level corresponds to a Z-score of about 1.28, 95 percent to about 1.65, 97 percent to about 1.88, 99 percent to about 2.33, and 99.9 percent to about 3.09. The higher your target service level, the larger the Z-score, and the larger the Z-score, the more buffer stock you must hold. The Z-score is the single dial that converts a business decision, namely how often you are willing to risk a stockout, into a precise mathematical quantity of extra inventory. This calculator looks up the correct Z-score the moment you choose a service level, so you never have to find it in a statistical table yourself.
Safety stock does not grow in a straight line as your service level rises, because the normal distribution has thin tails. Moving from a 95 percent service level, which uses a Z-score of about 1.65, to a 99.9 percent service level, which uses a Z-score of about 3.09, nearly doubles the Z-score, and since safety stock is directly proportional to the Z-score, your buffer nearly doubles too. The reason is that each additional slice of protection covers a rarer and rarer event. Protecting against the demand spikes that happen one time in twenty (95 percent) is relatively cheap, but protecting against the extreme spikes that happen one time in a thousand (99.9 percent) means carrying stock that will almost never be needed and will mostly sit on your shelf tying up cash. This is the law of diminishing returns in inventory: the last few percentage points of reliability are by far the most expensive. For most products, chasing 99.9 percent is only worth it when a stockout is catastrophic, such as a critical medical item or a component that halts an entire production line. For everything else, 95 to 98 percent usually strikes the best balance between availability and holding cost.
Standard deviation measures how spread out your daily demand is around its average. To calculate it, gather a representative history of daily sales, for example the units sold on each of the last 30, 60, or 90 days. First find the average daily demand by adding all the daily figures and dividing by the number of days. Next, for each day, subtract the average from that day's demand and square the result, which removes negative signs and emphasizes larger swings. Add all those squared differences together, divide by the number of days to get the variance, and finally take the square root of the variance to return to your original units. The result is the standard deviation of daily demand, which you enter into this calculator. A spreadsheet makes this effortless: list your daily demand in a column and use the STDEV.P function for a full population of days or STDEV.S for a sample. Use the same approach with your historical lead times, measuring the number of days each past order actually took to arrive, to find the standard deviation of lead time. The more days of clean history you use, the more reliable your safety stock estimate will be.
No. Every calculation runs entirely inside your own browser using client-side JavaScript. The demand figures, variability, lead times, and service level you enter are never transmitted, saved, or shared with any server. Nothing you type leaves your device, so your inventory and supply chain numbers stay completely private.