Safety stock calculator
Free · No signup · Guide approved 18 November 2026 by Nirav Italiya, founder · How we check guides
How do I calculate safety stock?
Basic method: safety stock = (highest daily sales × longest lead time) − (average daily sales × average lead time). Service-level method: safety stock = Z × standard deviation of daily sales × √lead time, where Z is 1.65 for 95% or 2.33 for 99%. Enter your numbers to see the buffer stock and the reorder point it gives.
Safety stock
220 units
Covers your worst recent day and longest delivery
Stock at the moment you reorder
- Sales during lead time 200 units
- Safety stock 220 units
Reorder point = average daily sales × lead time + safety stock. Safety stock = (highest daily sales × longest lead time) − (average daily sales × average lead time).
Fewer returns, better margin
Show buyers the real fit and colour
Returns and RTO eat profit. On-model photos that match what buyers receive help them choose right the first time.
- First 2K photo free, no card
- Ready in about 3 minutes
- Full commercial rights


How to use it
- Choose the basic or service-level method.
- Enter average daily sales and lead time.
- Enter maximum sales and lead time, or the standard deviation and target service level.
- Read the safety stock and use it in your reorder point.
Who this is for
This calculator is for sellers deciding how much buffer to keep per product: the best seller that runs out every peak season, the item with an unreliable supplier, or the slow line where you suspect too much cash is sitting on the shelf. It helps you choose a buffer deliberately and see what a higher service level costs in extra stock.
It offers two methods. The basic one needs only your average and worst sales and lead times. The service-level method needs the standard deviation of daily sales and lets you trade stock against the chance of running out.
What the service level actually promises
In this formula the service level is the chance of not running out during one replenishment lead time. At 95%, you would expect to run short in about 1 of every 20 reorder cycles. It is not the share of orders you can fill, which is usually higher, because a stockout late in a cycle may only miss a few orders.
The calculator offers 90% (Z 1.28), 95% (1.65), 97.5% (1.96), 98% (2.05) and 99% (2.33). Z grows faster near the top, so each extra point of service costs more stock than the last.
Worked example: what each extra point of service costs
A hypothetical product sells 40 a day with a standard deviation of 12 and a 9-day lead time, so √9 = 3. Safety stock = Z × 12 × 3, rounded up. Holding cost is assumed at 2 per unit per year (25% of a unit cost of 8).
| Service level | Safety stock | Change vs 95% | Yearly holding cost |
|---|---|---|---|
| 90% | 47 | −13 | 94 |
| 95% | 60 | — | 120 |
| 97.5% | 71 | +11 | 142 |
| 98% | 74 | +14 | 148 |
| 99% | 84 | +24 | 168 |
Lead time works on a square root
Safety stock rises with the square root of lead time, not in proportion to it. Doubling the lead time in the example from 9 to 18 days raises the 95% buffer by about 1.41 times, from 60 to 85 units, not to 120. Shorter lead times still help, but halving one does not halve the buffer.
If you only have weekly sales figures, you can estimate the daily standard deviation as the weekly one ÷ √7 (about 2.65), assuming days are independent. A weekly standard deviation of 31.7 gives about 12 a day. Enter the daily figure; the field expects daily units.
Keep outliers out of the basic method
The basic method multiplies your highest day by your longest lead time, so one unusual day changes everything. With 40 a day on average, a 9-day average lead time and a 12-day longest, a busiest normal day of 60 gives safety stock of 60 × 12 − 40 × 9 = 360. If a one-off flash sale day of 90 goes in instead, safety stock becomes 1,080 − 360 = 720, double the buffer, all year.
Use your busiest normal day and plan stock for known promotions separately.
Service levels and Z-scores
A 90% service level uses Z = 1.28, 95% uses 1.65, 98% uses 2.05 and 99% uses 2.33. Higher service levels protect against more stockouts but tie up more cash in stock, and the cost rises steeply near 100%.
Finding the standard deviation
Export daily unit sales for the last few months into a spreadsheet and use =STDEV(range). Use the same period as your average.
Which items deserve more buffer
Best sellers and items with long or unreliable lead times need more safety stock; slow movers and items you can restock quickly need less.
Common mistakes
- Entering a weekly or monthly standard deviation in the daily field, which multiplies the buffer several times over.
- Including days you were out of stock when you work out the average and standard deviation; those zeros are not real demand.
- Using one service level for every product instead of higher levels for best sellers and lower ones for slow or easy-to-restock lines.
- Treating safety stock as normal selling stock. It is meant to be used only when sales spike or delivery is late, then rebuilt.
- Keeping a large buffer on seasonal or fashion lines, where leftover stock at the end of the season is the bigger risk.
What this tool can’t do
- The service-level method covers demand swings only and treats lead time as fixed. Unreliable suppliers need extra margin on top.
- It assumes daily demand is roughly normally distributed. For items that sell a few units a week, the result is a rough guide.
- It does not include a review period. If you check stock weekly, use lead time + 7 days.
How this guide was made: drafted with AI assistance from the tool’s own calculations and behaviour, then checked against our editorial policy and approved by the founder before publishing.
Questions
- What is safety stock?
- Extra inventory kept to cover sales spikes and supplier delays, so you do not run out while waiting for a new order.
- What is the safety stock formula?
- Basic: (max daily sales × max lead time) − (average daily sales × average lead time). Statistical: Z × σ(daily demand) × √lead time.
- What Z-score should I use?
- 1.65 for a 95% service level is a common choice for important items.
- Can safety stock be too high?
- Yes. It ties up cash and storage, and risks unsold stock, especially for seasonal or fashion items.
- How is safety stock used?
- It is added to lead-time demand to set the reorder point.
- How much safety stock should I keep?
- Enough to cover your worst realistic delay and demand spike. For key items many sellers aim for a 95% service level.
- What is a safety stock example?
- If you sell 20 a day on average and 30 at most, with lead times of 10 and 14 days, safety stock = 30 × 14 − 20 × 10 = 220 units.
- What is the safety stock formula with service level?
- Safety stock = Z × standard deviation of daily demand × √lead time in days. Z is 1.65 for 95%.
Add this calculator to your website
Run a blog, seller community or agency site? Paste this code where you want the Safety stock calculator to appear. It is free, has no ads, and works on WordPress, Shopify, Wix, Blogger and plain HTML.
?theme=dark to the address for a dark version.