E-commerce Safety Stock Calculator

Calculate optimal safety stock levels using the Z-score method. Enter demand variability and lead time to protect against stockouts.

Daily demand variability
Lead time variability
$
%
Lost margin + penalty
$
Safety Stock (Basic)
50 units
Demand variability only | 2 buffer days
Safety Stock (Combined)
134 units
Demand + lead time variability | 5.4 buffer days
Reorder Point (Combined)
484 units
LT demand 350 + SS 134
SS Inventory Value
$2,010.00
Annual carrying: $502.50
Stockout Probability
5%
~1.3 stockouts/yr
Expected Stockout Cost
$1,950.00
vs $502.50 carrying cost
Basic vs Combined Safety Stock
Basic
50 units
Combined
134 units
Service Level Comparison
Service LevelZ-ScoreBasic SSCombined SSInventory ValueAnnual Carrying
85% Service Level1.043284$1,260.00$315.00
90% Service Level1.2839104$1,560.00$390.00
95% Service Level1.6550134$2,010.00$502.50
97.5% Service Level1.9659159$2,385.00$596.25
99% Service Level2.3370189$2,835.00$708.75
99.5% Service Level2.5878209$3,135.00$783.75
Lead Time Sensitivity
Lead TimeSafety StockReorder PointSS Inventory Value
7 days129 units304 units$1,935.00
14 days134 units484 units$2,010.00
21 days138 units663 units$2,070.00
30 days144 units894 units$2,160.00
45 days153 units1,278 units$2,295.00
60 days161 units1,661 units$2,415.00
Carrying Cost vs Stockout Cost Trade-off
Carrying Cost
$502.50/yr
Stockout Cost
$1,950.00/yr

Carrying cost is less than expected stockout cost - safety stock is justified.

Formula Breakdown
ComponentValueDescription
Z-score1.65Service level factor
Demand Std Dev (sigma_d)8 units/dayDaily demand variability
Lead Time (LT)14 daysAverage supplier lead time
Lead Time Std Dev (sigma_LT)3 daysLead time variability
Avg Daily Demand (d)25 unitsAverage daily sales rate
Basic SS50 unitsZ x sigma_d x sqrt(LT)
Combined SS134 unitsZ x sqrt(LT x sigma_d^2 + d^2 x sigma_LT^2)
Planning notes, formulas, and examples

About the E-commerce Safety Stock Calculator

Safety stock is the extra inventory kept on hand to protect against stockouts caused by demand variability and supply chain disruptions. Without safety stock, any deviation from forecast demand or supplier lead time results in empty shelves and lost sales.

The statistical approach to safety stock uses the Z-score (service level factor) multiplied by the standard deviation of demand during lead time. This method balances the cost of holding extra inventory against the cost and probability of a stockout.

This calculator implements the standard safety stock formula using your desired service level, demand variability (standard deviation), and lead time. Higher service levels require more safety stock but reduce stockout risk.

When This Page Helps

Guessing at safety stock levels either wastes money on excess inventory or exposes you to costly stockouts. This calculator uses proven statistical methods to determine the exact buffer needed for your desired service level, saving money while protecting sales.

How to Use the Inputs

  1. Enter the standard deviation of your daily demand (measure demand variability).
  2. Enter the lead time in days from your supplier.
  3. Select your desired service level (95% is standard, 99% for critical items).
  4. Review the calculated safety stock in units.
  5. Add this safety stock to your lead time demand to set your reorder point.
  6. Recalculate when demand patterns or lead times change significantly.
Formula used
Safety Stock = Z × σ_demand × √(Lead Time) Where: Z = service level Z-score (1.65 for 95%, 2.33 for 99%) σ_demand = standard deviation of daily demand Lead Time = supplier lead time in days

Example Calculation

Result: Safety Stock: 49 units

With daily demand standard deviation of 8 units, 14-day lead time, and 95% service level: Z = 1.65. Safety Stock = 1.65 × 8 × √14 = 1.65 × 8 × 3.74 = 49.4, rounded to 49 units.

Tips & Best Practices

  • Use at least 8–12 weeks of daily sales data to calculate a reliable standard deviation.
  • Set 95% service level for standard items and 99% for critical bestsellers.
  • Include lead time variability for an even more robust safety stock calculation.
  • Higher safety stock means fewer stockouts but more carrying cost — find the right balance.
  • Recalculate safety stock quarterly as demand patterns shift with seasons.
  • For new products without historical data, use conservative estimates and adjust after 30–60 days.

Service Level and Stockout Cost Trade-off

Moving from 95% to 99% service level roughly doubles the required safety stock. This makes sense when stockout costs are high (damaged Amazon rankings, lost loyal customers), but not for low-margin commodities where customers easily switch suppliers.

Advanced Safety Stock Models

The basic Z-score model assumes normally distributed demand. For products with seasonal patterns, use separate safety stock calculations per season. For items with intermittent demand, consider Croston's method which handles zero-demand periods more accurately.

Safety Stock and FBA Implications

Amazon FBA sellers must balance safety stock against long-term storage fees. Keep enough safety stock to maintain your IPI score and avoid stockouts that tank BSR, but avoid excess that incurs monthly and long-term storage surcharges. Consider splitting inventory between FBA and a 3PL for overflow.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • The Z-score represents the number of standard deviations from the mean needed to achieve your desired service level. A 95% service level uses Z = 1.65, meaning you cover 95% of demand scenarios. Higher service levels use higher Z-scores.