Safety stock formula: how to calculate it, with a worked example
Safety stock is the extra stock you keep so that a busy week or a late delivery does not leave the shelf empty. The amount depends on three things: how much demand jumps around, how much the delivery time jumps around, and how often you are willing to run out. Here is the formula and a full example.
What safety stock protects against
When you place an order, you still have to sell from the shelf until the delivery arrives. On an average day the stock you hold is enough. Safety stock covers the days that are not average: more customers than usual, or a supplier who arrives two days late. It is not stock you plan to sell. It is stock you plan to still have when the truck arrives.
The formula
The standard method assumes demand per day and lead time both vary around an average, roughly like a bell curve. It combines the two sources of uncertainty into one standard deviation, then multiplies by a z-score that matches the service level you want.
If your supplier always delivers on time, σL is zero and the formula shrinks to the version most textbooks start with: z × σd × √L.
Worked example: a hardware item
A shop sells a type of wall plug. Over the last three months it sold 40 boxes a day on average, with a standard deviation of 12 boxes. The supplier takes 6 days on average, give or take 1.5 days. The owner wants a 95% chance of not running out during each delivery cycle.
Step 1: variability from demand
L × σd² = 6 × 12² = 6 × 144 = 864.
Step 2: variability from lead time
d² × σL² = 40² × 1.5² = 1,600 × 2.25 = 3,600.
Step 3: combine and take the square root
√(864 + 3,600) = √4,464 = 66.81 boxes. This is the standard deviation of demand during the lead time.
Step 4: multiply by z
Safety stock = 1.645 × 66.81 = 109.9, so 110 boxes. Average demand during the lead time is 40 × 6 = 240, so the reorder point is 240 + 110 = 350 boxes.
What moves the number
Two comparisons from the same example show where the stock really goes:
- Late deliveries cost more than uneven demand here. If the supplier were always on time, safety stock would be 48.3 boxes instead of 109.9. The 1.5-day wobble in delivery more than doubles the buffer. A firmer delivery date from the supplier is worth asking for.
- The last few percent of service are expensive. At 90% the buffer is 85.6 boxes, at 95% it is 109.9, and at 99% it jumps to 155.4. Going from 95% to 99% adds 45.5 boxes that sit on the shelf all year.
Pick a high service level for items that lose you a customer when missing, and a lower one for items people will happily wait for.
The rule-of-thumb method, and why I avoid it
A common shortcut is (maximum daily sales × maximum lead time) − (average daily sales × average lead time). With a worst day of 60 boxes and a worst delivery of 9 days that gives 540 − 240 = 300 boxes, almost three times the statistical answer. It plans for the worst day and the worst delivery happening together, which rarely happens, and it gives you no way to choose a service level. It is fine when you have no data at all. Once you have a few months of sales, use the formula.
Common mistakes
- Units that do not match. If demand is per day, lead time must be in days and so must its standard deviation. Weekly demand with a lead time in days is the most common error I see.
- Adding the two standard deviations instead of the variances. Variability combines under the square root. Adding σd and σL directly overstates the buffer.
- Confusing service level with fill rate. A 95% cycle service level means 1 in 20 delivery cycles may run short, not that 5% of units go unsold.
- Using stale data. Recalculate when the season changes or the supplier changes. A buffer sized for summer can be twice what you need in winter.
- Using one buffer for every item. Fast, steady items need little safety stock relative to sales. Slow, erratic ones need much more.
Run your own numbers
The free Safety Stock & Reorder Point Calculator does this math as you type and shows each step. No sign-up, and your numbers stay in your browser.
Frequently asked questions
What is the safety stock formula?
Safety stock = z × √(L × σd² + d² × σL²), where d is average daily demand, σd its standard deviation, L the average lead time, σL its standard deviation and z the z-score for your service level. If lead time never varies, it becomes z × σd × √L.
What z-score should I use?
The z-score comes from the normal distribution: 1.28 for 90%, 1.645 for 95%, 1.96 for 97.5% and 2.33 for 99%. Most shops use 90% to 95% for ordinary items and 98% to 99% for items whose absence loses a customer.
How do I get the standard deviation of demand?
List daily (or weekly) sales for at least 8 to 12 weeks and use STDEV.S in Excel or Google Sheets on that list. Use the same time unit as your lead time.
Is safety stock the same as the reorder point?
No. The reorder point is demand during the lead time plus safety stock. In the example, safety stock is 110 boxes and the reorder point is 350.
Can safety stock be zero?
Only if neither demand nor lead time varies, which almost never happens with real data. A very small buffer is normal for items you can restock the same day.