Business

Safety Stock Calculator

Calculate the buffer inventory you need at any service level using the Z-score formula.

Quick Answer

Safety Stock = Z × σ_demand × √Lead Time. Z=1.645 for 95% service level, 2.33 for 99%. Higher service = more buffer capital tied up.

Inputs

Safety Stock
93 units
Reorder Point
793 units
Days of Buffer
1.8 days

Z-score used: 1.645

Formula: 1.645 × √14 × 15 = 93 units

Reorder Point: (50 × 14) + 93 = 793 units

About This Tool

The Safety Stock Calculator implements the standard supply chain Z-score formula used in operations textbooks and ERP systems. Safety stock is the inventory buffer you hold to absorb demand variability and lead time variability between replenishment orders. Without enough safety stock, you stock out and lose sales. With too much, you tie up working capital and incur carrying costs unnecessarily. This tool finds the right balance for any service level.

The Z-Score Approach

The classical safety stock formula assumes demand follows a normal distribution. The Z-score corresponds to the percentile of demand you want to cover. A Z of 1.645 covers 95% of demand variation — meaning in 95% of replenishment cycles, the safety stock will be enough to prevent stockouts. Higher Z covers more cases: Z=2.33 hits 99%, Z=3.09 hits 99.9%. Each step up costs more capital because the buffer grows non-linearly.

Why √Lead Time?

Variability over a longer period scales by the square root of time, not linearly. A product with σ=10 units/day has σ=10×√14 ≈ 37 units variability over 14 days, not 140. This is the central insight of the safety stock formula — protecting against demand variability across a lead time window grows sub-linearly with lead time. Reducing lead time has a measurable but smaller-than-expected effect on required buffer.

Choosing the Right Service Level

95% service level is the default for most consumer goods. It accepts roughly one stockout per 20 cycles, which translates to 2-3 stockout events per year for monthly-replenished SKUs. Premium brands targeting customer experience often run 98-99%. High-margin SKUs justify 99%+ because each lost sale costs more. Slow movers and commodity SKUs can run at 90% to free working capital for faster movers. The right level balances stockout cost (lost sale + customer disappointment) against carrying cost (typically 20-30% of inventory value annually).

Lead Time Variability Matters Too

The simple formula assumes lead time is constant. In reality, especially for overseas suppliers, lead time varies significantly — a 30-day lead time might range from 21 to 45 days. The full formula adds a lead time variability term: Safety Stock = Z × √(L × σ_d² + d̄² × σ_L²). For products sourced from variable suppliers, lead time variability often dominates demand variability and drives the bulk of the buffer requirement.

Related Tools

See also our reorder point calculator, days of inventory calculator, ABC inventory analyzer, AOV calculator, and dropshipping margin calculator.

Frequently Asked Questions

What is safety stock?
Safety stock is the buffer inventory held to prevent stockouts caused by demand variability or supplier lead time variability. It is calculated using the Z-score formula: Safety Stock = Z × σ_demand × √Lead Time. Higher service level requirements mean higher Z-scores and more buffer inventory. A 95% service level uses Z=1.645, while 99% uses Z=2.33 — meaning 99% requires roughly 40% more buffer than 95%.
What service level should I target?
Most ecommerce and B2B businesses target 95-98% service level. 95% means you accept stockout in roughly 1 of every 20 replenishment cycles. 99% reduces that to 1 in 100 but requires 40% more capital tied up in buffer. Premium brands and high-margin products target 98-99%. Commodity products and slow movers can run at 90% to free up working capital. The right level balances stockout cost (lost sale, customer churn) against carrying cost.
How do I calculate demand standard deviation?
Pull at least 30 days of daily sales data. Calculate the standard deviation in your spreadsheet using STDEV.S. For weekly data, multiply by √7 to get daily-equivalent. The more historical data the better — 90 days minimum for stable products, 12+ months for seasonal. If demand is highly seasonal, calculate σ separately for peak vs off-peak periods and run two safety stock numbers.
Should I include lead time variability?
If your supplier's lead time varies significantly, yes. The full formula accounts for both demand and lead time variability: Safety Stock = Z × √(Lead Time × σ_demand² + avg_demand² × σ_leadtime²). For overseas suppliers with 4-8 week lead times, this is critical — lead time variability often dominates demand variability. For local suppliers with stable lead times, the simpler formula is fine.
How does safety stock relate to reorder point?
Reorder Point = (Average Daily Demand × Lead Time) + Safety Stock. When inventory drops below this level, place a new order. Safety stock is the buffer; the reorder point is the trigger. A product with 50/day demand, 14-day lead time, and 75 units of safety stock has a reorder point of 775 units. Order when stock reaches 775 to maintain service level through the next replenishment cycle.