The safety stock formula is: Safety Stock = Z × σd × √LT, where Z is the service-level factor, σd is the standard deviation of daily demand, and LT is the lead time in days. In plain terms, it tells you how much extra stock to hold so that normal swings in demand and delivery times do not leave you out of stock before the next replenishment arrives. This guide explains how to calculate safety stock step by step, works through a clear example, and shows how the result feeds into your reorder point.
Before we go further, be clear about what safety stock is and what it is not. It is a buffer, not your everyday working stock. You hold it for surprises: a sudden order spike, a delivery that arrives a few days late, or a forecast that turns out slightly low. Everyday demand is covered by cycle stock, the stock you plan to use up between deliveries. Good inventory management keeps the two separate.
Why Safety Stock Matters
Demand is rarely smooth, and supply is rarely perfect. Even a reliable supplier can hit a delay, and even a steady product can have a busy week. Without a buffer, one small surprise can turn into a stockout, a missed shipment, or a production stop. With too large a buffer, on the other hand, cash sits on shelves and warehouse management becomes harder, because space fills up with stock that may not move for weeks.
Safety stock is therefore a balance: a little extra stock against the risk of running out. The formula below helps you make that trade deliberately, instead of guessing. Your numbers will differ from anyone else’s, because your demand pattern, lead times, and service goals are your own.
The Safety Stock Formula, Term by Term
The standard statistical version of the safety stock formula is:
Safety Stock = Z × σd × √LT
Each part of the formula answers a different question. Let us take them one at a time.
Z: the service level factor
Z converts your chosen service level into a number. The service level is the probability you want of not running out during a replenishment cycle. A higher service level means a higher Z, and therefore more safety stock. The standard textbook values for common service levels are: 90% = 1.28, 95% = 1.65, and 99% = 2.33. Note the cost rises steeply at the top end, so very high service levels suit only your most critical items.
σd: demand variability
The symbol σd stands for the standard deviation of daily demand. In simple words, it measures how much daily demand swings around its average. Steady demand has a small standard deviation and needs little buffer. Spiky demand has a large one and needs a lot. Calculate it in a spreadsheet from daily sales or usage history; longer, cleaner history gives a more trustworthy figure.
LT: lead time in days
LT is the lead time, the number of days between placing an order and receiving it. Use average lead time, and keep units consistent: if demand is measured per day, lead time must be in days. The square root in the formula matters too. It means doubling the lead time does not double safety stock; it increases it by about 41%. Shortening lead times is therefore one of the most effective ways to cut buffer stock.

Safety Stock Formula: A Worked Example
Now let us put the formula to work. Please note: all numbers in this example are purely illustrative. They are made-up figures chosen to show the arithmetic clearly, not data from any real company.
Suppose you stock a fast-moving spare part with the following illustrative inputs:
Average daily demand: 40 units. Standard deviation of daily demand: 12 units. Average lead time: 9 days. Target service level: 95%, so Z = 1.65.
Step 1: take the square root of the lead time. The square root of 9 is 3.
Step 2: multiply the three terms together. Safety Stock = 1.65 × 12 × 3 = 59.4 units.
Step 3: round up, because you cannot hold part of a unit in practice. Your safety stock is 60 units.
That is the whole calculation. With a 60-unit buffer, this illustrative item is protected against normal demand swings during a 9-day lead time at a 95% service level, under the formula’s assumptions. Small changes in inputs produce visible changes in the answer, which is why clean data matters more than fancy software. If demand were steadier, with a standard deviation of only 6 units, the buffer would halve to about 30 units.
How to Calculate Safety Stock Without Standard Deviation Data
Not every business has tidy daily demand data, especially for new or slow-moving items. In that case, a simpler method can serve as a starting point. It is called the maximum-minus-average method:
Safety Stock = (Maximum Daily Demand × Maximum Lead Time) − (Average Daily Demand × Average Lead Time)
For example, using purely illustrative figures: if maximum daily demand is 55 units, maximum lead time is 11 days, average daily demand is 40 units, and average lead time is 9 days, then safety stock = (55 × 11) − (40 × 9) = 605 − 360 = 245 units. This method is cautious, since it plans for the worst day and longest delay together. Treat it as a starting point until you have enough history for the statistical formula.
How the Safety Stock Formula Connects to the Reorder Point
Safety stock on its own does not tell you when to order. That is the job of the reorder point. The reorder point combines what you expect to sell while waiting for delivery with the buffer you hold for surprises:
Reorder Point = (Average Daily Demand × Lead Time) + Safety Stock
Returning to our illustrative example: average daily demand is 40 units, lead time is 9 days, and safety stock is 60 units. Lead time demand is therefore 40 × 9 = 360 units. Add the buffer, and the reorder point is 360 + 60 = 420 units. In other words, when stock falls to 420 units, you place a new order. If demand and delivery behave as expected, 360 units will be used in transit and the 60-unit buffer will remain untouched. If either runs worse than expected, the buffer absorbs the difference.
This connection is why the two numbers should always be reviewed together. Raising safety stock without updating the reorder point leaves the trigger too low, and lowering the reorder point without checking the buffer leaves you exposed. In a well-run supply chain planning routine, both are recalculated whenever demand patterns or supplier lead times change in a lasting way.

Common Mistakes When Calculating Safety Stock
Most safety stock problems come from the inputs, not the arithmetic. Here are the mistakes to watch for.
Using one service level for everything
A 99% service level for every item ties up far more stock than most businesses need. A better approach is to set higher service levels for critical, fast-moving items and lower ones for slow or easily substituted items. This is also where procurement priorities matter: the items that stop production or lose key customers deserve the strongest protection.
Mixing up time units
If demand variability is weekly but lead time is in days, the answer will be wrong. Keep everything in the same time unit, usually days, and convert before you calculate.
Treating safety stock as set-and-forget
Demand changes, suppliers change, and seasons change. A buffer calculated a year ago may now be far too high or far too low. Review safety stock regularly, for example each quarter, and after any major change such as a new supplier or a new sales channel. Systems built around just-in-time inventory management and kanban still need this review, because their pull signals depend on realistic buffers and lead times.
Using safety stock to hide bigger problems
A growing buffer can mask unreliable suppliers, poor forecasting, or inaccurate stock records. Before raising safety stock, ask whether the real problem is data quality or supplier performance. Fixing the cause is usually cheaper than holding more stock forever.
Watch: Safety Stock Explained on Video
The video below walks through inventory control concepts including the reorder point, safety stock, and kanban, with a worked example.
Frequently Asked Questions About the Safety Stock Formula
What is safety stock?
Safety stock is extra inventory held above expected demand to protect against stockouts caused by demand spikes, supplier delays, or forecast errors. It is a buffer, not regular working stock, and it should only be used when actual demand or lead time turns out worse than expected.
How do you calculate safety stock?
The standard statistical method is Safety Stock = Z × σd × √LT, where Z is the service-level factor, σd is the standard deviation of daily demand, and LT is the lead time in days. If you do not have standard deviation data yet, the simpler maximum-minus-average method can be used as a starting point.
What is the difference between safety stock and reorder point?
Safety stock is how much buffer you hold. The reorder point is the stock level that triggers a new order, calculated as expected demand during lead time plus safety stock. Safety stock is one part of the reorder point, not a replacement for it.
How do I choose a service level?
Choose it by item importance. Critical items that would halt production or lose a key customer justify a higher service level, such as 95% or 98%. Low-value, easily substituted items can sit at 85% or 90%. Each extra point of service costs progressively more stock, so set the level deliberately.
Can safety stock be zero?
Yes, in some cases. If demand is highly predictable, lead times are short and reliable, and a short stockout carries little cost, zero or near-zero safety stock can be the right choice. Zero safety stock is a decision, though, not an accident: it should follow from the formula and the service-level trade-off, not from simply forgetting to set a buffer.
How often should I recalculate safety stock?
Recalculate whenever your inputs change in a lasting way, and review at least quarterly as a routine. Seasonal businesses should use data from comparable periods rather than a full-year average, because mixing peak and quiet seasons together understates variability in the peak.
Putting It All Together
Start with clean data: demand history, lead times, and a deliberate service level per item. Apply the formula, add the result to lead time demand for your reorder point, and review both regularly. Done this way, safety stock stops being a guess: enough buffer to protect service, without tying up more stock than the risk justifies.

