Safety Stock Calculator
Calculate Your Safety Stock
What Is Safety Stock?
Safety stock is the buffer inventory a business holds above its expected lead-time demand to protect against two types of uncertainty: demand running higher than average during the replenishment window, and the supplier delivering later than expected.
Without safety stock, a replenishment policy based only on average demand and average lead time will result in a stockout roughly 50% of the time — because half of all actual demand observations fall above the average. Safety stock raises the trigger threshold to cover a chosen percentile of demand outcomes, which is what the service level represents.
Safety stock is the key input that links the service level target to the Reorder Point: ROP = (average daily demand × lead time) + safety stock. EOQ answers how much to order; ROP answers when to order; safety stock answers how much of a buffer to keep at the trigger point.
How to Use This Safety Stock Calculator
Select a service level and enter two required inputs — results update instantly as you type.
- Service Level — the target in-stock rate. Select 95% as a starting point for most standard products. The calculator converts the percentage to the appropriate Z-score automatically. Use Custom Z if you already know the exact z-score for your target.
- Demand Std Dev (σd, units/day) — the standard deviation of your daily demand. Calculate this from your sales history: find the standard deviation of daily units sold over the last 90–180 days. A higher σd means more demand variability and therefore more safety stock required.
- Lead Time (days) — the observed average replenishment lead time in days. Use actual measured lead time (from PO placement to goods received), not the supplier's quoted figure.
- Avg Daily Demand (optional) — your average units sold per day. Providing this enables the calculator to show how many days of demand your safety stock represents.
The Safety Stock Formula
The standard formula uses the service-level z-score, demand standard deviation, and lead time to calculate the buffer needed at a given in-stock rate.
| Variable | Symbol | Unit | What it represents |
|---|---|---|---|
| Service-level z-score | Z | dimensionless | The number of standard deviations above the mean needed to achieve the target service level. Derived from the standard normal distribution: 90% → 1.28, 95% → 1.65, 98% → 2.05, 99% → 2.33. |
| Daily demand std dev | σd | units / day | The standard deviation of daily demand over a representative historical period. Measures how much demand varies from its average each day. Higher variability = more safety stock required. |
| Lead time | LT | days | The replenishment lead time in days. The √LT term scales the single-day demand variability (σd) to cover the entire lead-time window, using the statistical property that the variance of the sum of independent daily demands scales linearly with the number of days. |
This formula assumes lead time is fixed and known. When lead time also varies, the extended formula is: SS = Z × √(LT × σd² + d² × σLT²), where d is average daily demand and σLT is the standard deviation of lead time. For the full derivation, see the Safety Stock formula guide.
Safety Stock Calculation Example
A distributor has a component with a daily demand standard deviation of 20 units and a 5-day supplier lead time. They target a 95% service level (Z = 1.65).
How to Interpret Your Safety Stock Result
Safety stock is the minimum floor inventory that should never be consumed under normal operations. When on-hand stock falls into safety stock territory, it signals either that demand ran higher than expected during lead time, or that the supplier delivered late.
| Situation | Meaning | Action |
|---|---|---|
| Safety stock result is higher than expected | High demand variability (σd) or long lead time is driving a large buffer requirement | Investigate whether σd can be reduced through better demand forecasting, or whether lead time can be shortened by switching suppliers or using safety lead time instead. |
| Inventory regularly dips below safety stock | Either the safety stock is too low, demand has increased, or lead times have lengthened since the last calculation | Recalculate with updated σd and LT inputs. Consider temporarily increasing the service level to rebuild the buffer. |
| Safety stock is never touched | The buffer may be set too high relative to actual variability, or the service level target is higher than necessary for this item | Recalculate with recent σd data. If variability has decreased, reduce safety stock to free up working capital. Consider whether 95% service level is warranted versus 90%. |
Safety Stock Assumptions and Limitations
The Z-score approach assumes daily demand follows a normal distribution. For products with highly skewed demand — large, infrequent orders or lumpy demand patterns — the normal distribution underestimates tail risk. Use a larger safety factor or consider a simulation-based approach for such items.
The basic formula (SS = Z × σd × √LT) treats lead time as a constant. When supplier lead time also varies, safety stock must be higher. Use the extended formula: SS = Z × √(LT × σd² + d² × σLT²), or add a separate safety lead time buffer on top of this result.
The √LT scaling of daily variability assumes each day's demand is statistically independent of the previous day. If demand is auto-correlated — a high-demand day predicts another high-demand day — the formula understates true variability over the lead time window.
The standard deviation of daily demand should be calculated from a period representative of current conditions — typically the last 90–180 days. Using σd from a period with unusually high or low volatility (a promotional spike, a supply disruption) will produce a safety stock that is either too high or too low for normal operations.
Frequently Asked Questions
What is the safety stock formula?
The safety stock formula is SS = Z × σd × √LT, where Z is the service-level z-score, σd is the standard deviation of daily demand in units per day, and LT is the lead time in days. The √LT term scales the single-day demand variability over the full replenishment window. When lead time also varies, use: SS = Z × √(LT × σd² + d² × σLT²).
What is a good safety stock level?
There is no universal benchmark — safety stock depends on your demand variability, lead time, and target service level. A safety stock that achieves your target in-stock rate while minimizing excess inventory is the right level for your operation. Compare it against your historical stockout frequency rather than an industry average, and segment your SKUs by margin and criticality to assign differentiated service level targets.
What service level should I use?
Service level choice depends on the cost of a stockout versus the cost of holding extra inventory. A 95% service level (Z = 1.65) is a common starting point for standard products. Use 98–99% for high-margin or critical items where stockouts cause significant lost revenue. Use 85–90% for low-margin, easily substituted items where holding cost outweighs stockout risk.
What is the difference between safety stock and reorder point?
Safety stock is the buffer inventory held to absorb variability. Reorder point is the total inventory level that triggers a new order — it equals lead-time demand plus safety stock: ROP = (average daily demand × lead time) + safety stock. Safety stock sets the floor; ROP sets the trigger. Use this calculator to find safety stock, then enter it into the Reorder Point Calculator.
How often should I recalculate safety stock?
Recalculate safety stock whenever demand variability, lead time, or your service level target changes materially. As a baseline, review quarterly. High-velocity or high-value SKUs warrant monthly review. A 20% increase in demand standard deviation (σd) increases safety stock by 20% — making it worth recalculating immediately when demand patterns shift.
