Free Safety Stock Calculator

Calculate your optimal inventory buffer using the Z-score method

Quick presets — click to load example data:

Your Product Data

Units sold per day
How much sales vary
Supplier delivery time
How much it varies
Target availability
For cost estimate

0 units

Safety Stock

Reorder Point

0 units

Days of Coverage

0 days

Holding Cost

Demand During LT

0 units

Z-Score Reference Table

Higher service levels require more safety stock — the cost grows exponentially

Service LevelZ-ScoreMeaningBest For
90%1.28In stock 9 out of 10 timesLow-margin, slow-moving items
95%1.65In stock 19 out of 20 timesMost products (recommended)
97%1.88In stock 32 out of 33 timesHigh-demand or perishable items
99%2.33In stock 99 out of 100 timesCritical items, high-margin products

What Is a Safety Stock Calculator?

A safety stock calculator is a free tool that tells you exactly how many extra units of a product to keep on hand to prevent stockouts. Instead of guessing your buffer inventory, you enter real data — your average sales, how much they vary, and your supplier's lead time — and get a precise number backed by statistics. This calculator uses the Z-score method, which is the industry standard for linking your inventory buffer to a specific service level target.

How Does the Safety Stock Formula Work?

The Z-score safety stock formula accounts for both demand variability and lead time variability:

Safety Stock = Z × √(LT × σd² + d² × σLT²)

Where Z is the Z-score for your target service level, LT is your average lead time in days, σd is the standard deviation of daily sales, d is your average daily sales, and σLT is the standard deviation of lead time. This formula creates a buffer that protects you against both unpredictable customer demand and unreliable suppliers.

What Is a Good Service Level for Ecommerce?

For most ecommerce products, a 95% service level strikes the best balance between availability and cost. This means you'll have stock available 19 out of every 20 times a customer tries to buy. Going from 95% to 99% roughly doubles your safety stock — a significant cash commitment that's only justified for your highest-margin, most critical products. Start with 95% for your top sellers and use 90% for slow-moving items. Learn more about preventing stockouts in our guide to understanding safety stock.

How Do I Find My Standard Deviation?

Standard deviation measures how much your daily sales (or lead times) vary from the average. In a spreadsheet, export your daily sales for the last 30-90 days into a column and use =STDEV.P(A1:A30). A high number means volatile, unpredictable sales; a low number means steady demand. If you sell on multiple channels like Shopee, Lazada, or Shopify, pull consolidated data across all platforms for the most accurate picture. Tools like OneCart centralise this data automatically.

Safety Stock vs Reorder Point — What's the Difference?

Safety stock is your buffer — the extra units you hold just in case. The reorder point is the trigger — the inventory level at which you place a new order. The reorder point formula is: Reorder Point = (Average Daily Sales × Average Lead Time) + Safety Stock. When your stock drops to the reorder point, you order more. The safety stock portion ensures you don't run out while waiting for the new shipment. Use our lead time calculator to get accurate lead time data for this formula.

Common Safety Stock Mistakes to Avoid

The biggest mistake is using the same safety stock level for every product. Your bestsellers and slow-movers have completely different risk profiles. Use ABC analysis: calculate safety stock at 95% for your A-items (top 20% by revenue), 90% for B-items, and consider holding zero safety stock for C-items. The second most common mistake is never recalculating — review your safety stock quarterly, or monthly for seasonal products. Read our full guide on safety stock formulas and strategies for more detail.

Need automated safety stock across all channels?

OneCart syncs your inventory across Shopee, Lazada, Shopify, and more — giving you real-time data for accurate safety stock planning.

Try OneCart Free