Free tool
Safety stock calculation: formula & calculator
Safety stock calculation sizes the stock held above expected lead-time demand from how much demand and supplier lead time vary and the cycle service level you target, for inventory planners and online sellers. Enter the averages, their standard deviations and a service level to see the buffer and the reorder point.
- Free to use
- No sign-up
- Formula shown
- Updated as you type
Your demand and lead time
The service level below is a cycle service level: the chance a single order cycle does not stock out before the next delivery arrives. It is not fill rate, which measures the share of units shipped on time instead of the share of cycles that stock out.
Estimated safety stock
106 units
- Z (service level)
- 1.64
- Demand-only safety stock
- 37 units
- Reorder point
- 386 units
This combines demand variability and lead-time variability (the King/ASCM formula). The demand-only figure ignores lead-time variability and understates the buffer whenever lead time is not perfectly reliable.
Use this in the free planning spreadsheet
What is safety stock?
Safety stock is the extra stock you hold above the demand you expect during a supplier's lead time, so a normal swing in sales or a late delivery does not become a stockout.
It is not a minimum you never touch: in a cycle where sales run high or the delivery runs late, the buffer is drawn down, and that is what it is for. It is also not free. Every unit of safety stock is cash held all year with its carrying cost, and the service level you choose sets how much: moving from a 95% to a 99% cycle service level raises Z from 1.645 to 2.326, about 41% more buffer for the same variability. Size it per SKU, because a steady best seller and a volatile new line need very different buffers.
Safety stock formula with lead-time variability
Safety stock = Z × SQRT(average lead time × demand SD^2 + average demand^2 × lead-time SD^2), which adds the supplier's lead-time swings to the demand swings instead of assuming every delivery lands on time.
Take daily demand averaging 20 units with a standard deviation of 6, a 30-day lead time with a standard deviation of 7 days, and a 95% cycle service level, so Z = 1.645. The demand term is 30 × 6^2 = 1,080 and the lead-time term is 20^2 × 7^2 = 19,600. Safety stock is 1.645 × SQRT(20,680) = 236.5, rounded up to 237 units. The demand-only formula, Z × demand SD × SQRT(lead time), gives 54 units, a quarter of that, because here the late deliveries are the bigger risk. The formula assumes demand and lead time are independent and roughly normal. Look up Z for any target with the service level calculator.
Safety stock vs reorder point
Safety stock is the buffer; the reorder point is the trigger to order, equal to expected demand over the lead time plus that buffer.
In the example above, expected demand over the 30-day lead time is 20 × 30 = 600 units, so the reorder point is 600 + 237 = 837 units. When inventory position, on hand plus on order, falls to 837, you place the order; if the next 30 days go to plan, about 237 units are left when the delivery lands. Changing the service level moves both, because the buffer is inside the trigger. The reorder point formula page works through what to change when a supplier's lead time moves.
Buffer stock formula
Buffer stock = Z × SQRT(lead time × demand SD^2 + demand^2 × lead-time SD^2), where Z is set by the service level you target.
Buffer stock and safety stock are the same quantity: stock held above expected demand over the lead time. The rule-of-thumb version, maximum daily demand × maximum lead time minus average daily demand × average lead time, needs no standard deviations but gives no stated service level.
Watch: Reorder Point and Safety Stock Explained (How to Calculate)
Safety stock formula: Z × combined demand and lead-time variability
Z = NORM.S.INV(service level), the inverse standard normal CDF
Safety stock = Z × SQRT(lead time × demand SD^2 + demand^2 × lead-time SD^2)
Reorder point = average demand × average lead time + safety stock
- Z
- How many standard deviations of buffer the target cycle service level needs.
- Demand SD
- How much demand varies from one period to the next around its average.
- Lead time
- Average days between placing an order and receiving it.
- Lead-time SD
- How much the supplier's lead time varies from one order to the next.
- Cycle service level
- The probability a single order cycle does not stock out before the next delivery, not the share of units shipped on time (fill rate).
Worked example
- A store sells an average of 20 units a day (SD 6) from a supplier whose lead time averages 14 days (SD 3), and wants a 95% cycle service level, which gives Z = 1.64.
- Ignoring lead-time variability, demand-only safety stock is 1.64 × 6 × SQRT(14) = 37 units.
- The combined formula also accounts for lead-time variability: 1.64 × SQRT(14 × 6^2 + 20^2 × 3^2) = 106 units, nearly 3× the demand-only figure.
- Reorder point is 20 × 14 + 106 = 386 units.
When it applies
- Reorder-point systems where an order fires whenever stock falls to a trigger, not on a fixed calendar day.
- Items with demand and lead time you can estimate an average and a spread for, not just a single guess.
- Suppliers whose delivery times are not perfectly fixed, where the combined formula's lead-time term matters.
When it breaks down
- Extremely short product lifecycles with no demand history to compute a standard deviation from.
- Demand that is not roughly bell-shaped, such as intermittent or lumpy demand with many zero-demand periods; the normal-distribution assumption behind Z understates the tail risk there.
- A fixed review-cycle system (order every Monday, regardless of stock level), which calls for a par level or a min/max sized to the review period, not a reorder point.
Common mistakes
Reading service level as fill rate
A 95% cycle service level does not mean 95% of units ship on time. Fill rate is volume-weighted and reads higher for the same stock; treating the two as the same number understates how exposed a lower service level actually is.
Mixing periods
A weekly demand standard deviation paired with a lead time in days silently miscalculates the buffer. Convert everything to one period first. This calculator does it for you, but a spreadsheet copy usually will not.
Ignoring lead-time variability
The demand-only formula assumes a lead time that never moves. When a supplier's lead time actually varies, skipping that term understates the safety stock this page's own worked example by roughly three times.
Questions
What does a safety stock calculator tell me?
A safety stock calculator tells you how many extra units to hold above the demand you expect during a supplier's lead time, so that an ordinary swing in sales or a late delivery does not become a stockout. Enter average demand and its standard deviation, average lead time and its standard deviation, and the cycle service level you want. It converts the service level into a Z-score and multiplies it by the combined variability of demand and lead time, then adds the buffer to lead-time demand for the reorder point. The result assumes roughly normal demand; it is a starting point per SKU, not a catalog-wide rule.
How do you calculate safety stock?
Safety stock is the buffer held above expected demand over the lead time, sized to absorb variability in demand and delivery so a normal-range fluctuation does not turn into a stockout. The statistical method multiplies a Z-score for the target service level by the combined variability of demand and lead time: Z × SQRT(lead time × demand SD^2 + demand^2 × lead-time SD^2). A simpler rule of thumb, max demand × max lead time minus average demand × average lead time, needs no distribution but carries no stated service level.
What is a good safety stock level?
There is no universal figure. It depends on the service level the item needs to hit, how variable its demand and lead time actually are, and what a stockout costs versus what holding the extra unit costs. Set it per SKU from that item's own demand and lead-time variability rather than applying one buffer size across a whole catalog.
Should safety stock use cycle service level or fill rate?
This calculator sets Z from cycle service level: the probability that an order cycle ends without a stockout. Fill rate is the share of demand units shipped from stock. For the same buffer, fill rate reads higher, because a cycle that runs short usually still ships most of its units. If your target is stated as a fill rate, a lower cycle service level may meet it; converting between the two needs the expected shortage per cycle and the order quantity, which this page does not compute. Say which one you mean when you set a target, or two people will size the same buffer differently.
Can safety stock be negative?
Not as this formula computes it: the service level here runs from 50% to 99.9%, which keeps Z at zero or above, so Z × the variability term can only be zero or positive. A Z below zero would need a service level under 50%, which this calculator does not allow. On-hand stock dropping below the safety-stock line is normal, though: that is the buffer being drawn down during a cycle, not the safety-stock figure itself going negative.
Does safety stock affect EOQ?
No. EOQ is a separate trade-off between ordering cost and holding cost for cycle stock, and safety stock is not one of its inputs. Safety stock does raise average inventory and its holding cost, since it sits on top of cycle stock, but it does not change the order quantity EOQ recommends.
Related
- Min/max inventory calculator
- Reorder point formula & reorder point calculator
- Inventory service level calculator
- Par level calculator
- Order quantity calculator: how much inventory to order
- ABC analysis calculator: classify inventory A, B, C
- Reorder points and safety stock
- How to prevent stockouts
- Stock and reorder alerts
- Let Skuvelo tell you what to count
- What Skuvelo uses to plan
- Skuvelo vs Prediko
- Skuvelo vs Netstock
- Skuvelo for retail stores
Published by Skuvelo. Results are estimates computed from the figures you enter, not a reading of your own sales or stock.
A calculator answers once. Skuvelo keeps answering.
This tool computes one number from what you type. Skuvelo computes it continuously, for every SKU, from your own sales and stock.