✦ Integer Demand

Safety Stock Calculation for eCommerce & Retail

Safety stock is buffer inventory that protects against demand variability and supply uncertainty. Learn the formulas, methods, and best practices for calculating optimal safety stock levels for every SKU.

What Is Safety Stock?

Safety stock is extra inventory held as a buffer against two sources of uncertainty: demand variability (customers buy more or less than forecast) and supply variability (suppliers ship late or deliver short). Without safety stock, any deviation from the plan causes a stockout.

Safety stock is not a fixed number — it should be calculated per SKU based on that item's actual demand variability, forecast accuracy, and lead time uncertainty. Integer Demand computes optimal safety stock automatically for every item in your catalog.

The Standard Safety Stock Formula

The most widely used formula for safety stock accounts for both demand and lead time variability:

Safety Stock = Z × √(Lead Time × σdemand² + Avg Demand² × σlead time²)

For brands with stable lead times (σlead time ≈ 0), the formula simplifies to: Safety Stock = Z × σdemand × √Lead Time

Safety Stock by Service Level Target

90% Service Level (Z=1.28)

1 in 10 replenishment cycles may stockout. Appropriate for C-class slow-movers with low margin impact.

95% Service Level (Z=1.65)

Industry standard for B-class items. Balances cost of carrying extra inventory against cost of stockouts.

99% Service Level (Z=2.33)

Recommended for A-class best-sellers. Higher carrying cost is offset by not losing revenue on top SKUs.

99.9% Service Level (Z=3.09)

For mission-critical items where a stockout would cause severe customer or business impact. Expensive to maintain.

Safety Stock Calculation Methods

Safety Stock for Seasonal and Intermittent Demand

Standard safety stock formulas assume relatively stable demand. Two common exceptions require special treatment:

Integer Demand detects intermittent demand patterns automatically and adjusts safety stock calculation accordingly.

Reorder Point and Its Relationship to Safety Stock

Safety stock feeds directly into the reorder point (ROP) — the inventory level that triggers a new purchase order:

Reorder Point = (Average Daily Demand × Lead Time in Days) + Safety Stock

Integer Demand's Inventory Projection table shows the projected stock level week by week against the reorder point, so you can see exactly when each SKU will breach the threshold and when a PO needs to be sent.

Start Forecasting Smarter

Join eCommerce brands using Integer Demand to reduce stockouts, cut excess inventory, and protect margins with AI-powered demand planning.

Try Integer Demand Free