Do you regularly find yourself empty-handed while orders pour in, or conversely with boxes full of slow-moving stock that only takes up storage space? Then chances are your safety stock is incorrect. In this guide, you will learn step-by-step how to calculate safety stock for your webshop, using formulas, a calculation example, and the pitfalls to avoid.
What is safety stock and why do you need it?
Safety stock is the extra buffer you maintain on top of your normal inventory to absorb fluctuations in demand and lead times. Do you normally sell 50 units per week, but could that suddenly become 80 due to a peak? Then your safety stock ensures that you can continue to deliver, even if your supplier delivers just slightly later than planned.
Without this buffer, you run into a lost sale for every small bump in demand or supply. With too much buffer, you run into a different problem: capital tied up in shelves full of inventory that isn't selling fast enough.
Safety stock versus reorder point: the difference
These two terms are often confused, but they are not the same.
- Ordering point: the stock level at which you place a new order with your supplier.
- Safety stock: the buffer that forms part of that reorder point, intended to absorb uncertainty.
You calculate the reorder point roughly as: (average demand x lead time) + safety stock. Your working stock is the portion of your inventory that you normally consume between two ordering moments. In theory, you never touch safety stock, unless something goes wrong.
What does it cost you if you do not calculate a safety stock?
Too little buffer means lost sales: customers who cannot order a product because it is “sold out.” That costs not only that one sale but often the customer as well, because some switch to a competitor. When this happens repeatedly, it hits your revenue and reviews hard.
Having too much buffer also comes at a price, though it is less visible. Capital tied up in inventory cannot be used for marketing, personnel, or new products. Additionally, you pay storage costs for space you do not actually need, and you run the risk of obsolescence or spoilage for products with an expiration date or those sensitive to trends.
Tip: Calculate not only the costs of lost sales, but also the costs of a shelf full of excess inventory in storage and working capital. Both sides of the coin belong in your decision.
Which factors determine your safety stock
Calculating safety stock for your webshop revolves around estimating uncertainty. The greater the uncertainty, the larger the required buffer. Four factors play a key role in this.
Variation in demand. Some products sell approximately the same number every week, while others skyrocket during a season, a campaign, or because they suddenly go viral on social media.
Variation in delivery time. A supplier who delivers in 5 days one time and in 15 days the next due to customs issues results in a very different risk assessment than a local supplier with a fixed lead time of 3 days.
Desired service level. This is the core of the choice: what percentage of the time do you want to be able to deliver without lost sales? A 95% service level means that you accept a shortage in 5% of the order cycles.
Value and turnover rate. An expensive, slow-moving product deserves a different approach than a cheap bestseller. You elaborate on this using an ABC classification, which we will discuss later.
Measuring demand variation with historical sales data
Look back at your sales data for at least 6 to 12 months and calculate the standard deviation of demand per week or month for each SKU. Pay attention to seasonal patterns: if you only use the last three months, you will completely miss the December peak, for example. If you want to dive deeper into this, webshop inventory management tips is a good follow-up article.
Mapping delivery time variation per supplier
For each supplier, keep track of the promised delivery time and the actual delivery time over the last 10 to 20 orders. Calculate the average delivery time and the standard deviation from this. Suppliers from abroad involving customs clearance deserve extra attention here, as they often show the greatest spread.
Calculating safety stock: the formulas
There are two commonly used methods: a simple min-max method and a statistical method with standard deviation. Which one you choose depends on how much data you have and how accurate you want to be.
The simple method (min-max)
This formula is quick to apply and does not require advanced data:
Safety stock = (maximum consumption x maximum lead time) minus (average consumption x average lead time)
Example: You sell a maximum of 120 units per week, with a maximum lead time of 3 weeks. On average, you sell 80 units per week with an average lead time of 2 weeks.
- Maximum consumption x maximum delivery time = 120 x 3 = 360
- Average consumption x average lead time = 80 x 2 = 160
- Safety stock = 360 minus 160 = 200 pieces
This method is rough, but fine as a starting point for smaller assortments.
The statistical method with standard deviation
If you want to calculate more accurately and explicitly manage your service level, use the statistical formula:
Safety stock = Z x √(lead time x standard deviation demand² + average demand² x standard deviation lead time²)
The Z-score represents the desired service level. The higher the service level, the higher the Z-score, and therefore the larger your buffer.
| Service level | Z score |
|---|---|
| 90 % | 1,28 |
| 95 % | 1,65 |
| 98 % | 2,05 |
| 99 % | 2,33 |
Step-by-step plan with calculation example
Suppose you have the following data for a product:
- Average daily demand: 20 pieces
- Standard deviation of demand: 5 units
- Average delivery time: 7 days
- Standard deviation of the delivery time: 2 days
- Desired service level: 95% (Z = 1,65)
Calculate as follows:
- Calculate the first part under the square root: delivery time x standard deviation demand² = 7 x 5² = 175
- Calculate the second part: average demand² x standard deviation lead time² = 20² x 2² = 400 x 4 = 1.600
- Add up: 175 + 1.600 = 1.775
- Take the square root: √1.775 ≈ 42,1
- Multiply by Z-score: 1,65 x 42,1 ≈ 69,5, rounded to 70 pieces
This approach takes into account both demand variation and lead time variation, making it more accurate than the min-max method.
Determine safety stock per product category
Not every product deserves the same buffer. A uniform safety stock for your entire assortment is one of the fastest ways to waste money or, conversely, create shortages on your most important items.
Applying ABC analysis to your product range
Divide your assortment based on sales contribution:
- A-products: approximately 20% of your SKUs, accounting for 70-80% of revenue. A high service level (98-99%) is justified here, because a lost sale hurts the most here.
- B-products: mid-range, service level around 95%.
- C-products: low turnover, slow turnover. A service level of 90% is often sufficient; an extra buffer costs relatively too much here.
| Categories | Share of revenue | Recommended service level | Z score |
|---|---|---|---|
| A | 70-80% | 98-99% | 2,05 - 2,33 |
| B | 15-25% | 95 % | 1,65 |
| C | 5-10% | 90 % | 1,28 |
Dealing with seasonal and promotional products
For seasonal products and promotional items, the standard formula does not work well because historical averages underestimate the peak. Base your calculation here on last year's peak period, not the annual average. If you are running a major promotion or Black Friday is approaching, check your stock levels in time, for example using the tips from " Being well prepared for Black Friday starts now".
Common mistakes when calculating safety stock
Even with the right formula in hand, things often go wrong in practice. These are the most common pitfalls:
- Based on averages without taking peaks into account. An average hides exactly the outliers for which you need a buffer.
- Use outdated sales data. Data from two years ago says little about the current trend.
- Maintain the same buffer for all products. As described above, each category deserves its own approach.
- Do not take delivery time from abroad into account. Customs processes and international delays cause a greater spread than you would expect on paper.
- Never recalculate safety stock. After a promotion, a new supplier, or a change in the product range, the underlying data changes, so you need to recalculate.
Warning: A one-time calculated safety stock is a snapshot. If your demand pattern or supplier changes, that calculation must change accordingly.
Automate safety stock with software
Limits of manual calculation in Excel
For an assortment of ten to twenty SKUs, an Excel sheet with formulas works perfectly fine. However, as you grow to hundreds or thousands of SKUs, with various suppliers and varying delivery times, manual tracking becomes error-prone and time-consuming. Your sales data changes continuously, and a sheet updated once a quarter quickly falls behind reality.
What automation saves you in time and accuracy
A WMS or inventory management system can automatically calculate safety stock and reorder points per SKU based on current sales data and lead times, without you having to manually update formulas. You get real-time insight into inventory levels and a notification as soon as you are moving towards your reorder point.
Lyra WMS, for example, provides insight into inventory levels and reorder points per SKU, so you don't have to continuously maintain spreadsheets yourself. If you want to know what a system can do, check out the Lyra WMS features.
Safety stock in practice: step-by-step plan
Do you want to get started today? Follow these five steps:
- Collect data. Retrieve historical sales and delivery time dates per SKU, going back at least 6 to 12 months.
- Determine your service level. Determine for each product category (A, B, C) how much risk of a lost sale you accept.
- Choose your plan. Use the min-max method for a quick estimate, or the statistical method for greater accuracy.
- Calculate and implement reorder points. Convert the calculated safety stock into concrete reorder points per product.
- Monitor and recalculate. Review your calculations periodically, for example every quarter or immediately after a major peak such as Black Friday.
Tip: Schedule your recalculation in your calendar, for example, every quarter. Waiting until you have a lost sale is always too late.
Frequently asked questions
What is the difference between safety stock and reorder point?
The reorder point is the stock level at which you place a new order. Safety stock is the buffer that is part of that reorder point and serves to absorb uncertainty in demand and lead time. Without safety stock, your reorder point would be based solely on average consumption during the lead time, without room for setbacks.
How much safety stock should I maintain as an online shop?
There is no fixed percentage that works for every webshop. It depends on your desired service level, the variation in demand and delivery time, and the value of the product. Use an ABC analysis: maintain a higher service level (98-99%) for your revenue drivers, and a lower level (90%) for slow, less important items.
How often should I recalculate my safety stock?
A quarter is a good fixed rhythm for most webshops. Additionally, always recalculate immediately after major peaks such as Black Friday, after engaging a new supplier, or after a structural change in your demand pattern.
Can I calculate safety stock in Excel?
Yes, for a small assortment with a limited number of suppliers, Excel works fine. As your assortment grows to hundreds of SKUs with varying lead times per supplier, maintaining all those formulas becomes error-prone and time-consuming. At that point, it pays to look into automated inventory calculation.
What happens if I don't maintain a safety stock?
Without a buffer, you run the risk of a lost sale with every unexpected peak in demand or delivery delay. This costs you not only the lost revenue at that moment, but also customers switching to a competitor and negative reviews damaging your reputation.
Would you like to know how to handle this in your warehouse? Schedule a no-obligation discovery call and we'll go through it together.
Schedule a discovery call →


