Safety Stock Calculator
Work out the buffer that holds a service level against demand variability from service-level z score, daily demand standard deviation, lead time (days). Safety stock = z × σ of daily demand × √lead time, and the page prints the substitution so the result can be checked by hand.
Safety Stock Calculator
Work out the buffer that holds a service level against demand variability from service-level z score, daily demand standard deviation, lead time (days). Safety stock = z × σ of daily demand × √lead time, and the page prints the substitution so the result can be checked by hand.
How this page computes
Safety stock = z × σ of daily demand × √lead time
Independent daily deviations add in quadrature, so a lead time four times longer needs twice the buffer, not four times. The root is the whole point of the formula.
The z score is the service level's normal quantile: 1.282 for 90%, 1.645 for 95%, 2.326 for 99%.
The calculation runs entirely in this browser tab; nothing is uploaded.
Safety Stock Calculator computes the buffer that holds a service level against demand variability. Safety stock = z × σ of daily demand × √lead time. The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.
Independent daily deviations add in quadrature, so a lead time four times longer needs twice the buffer, not four times. The root is the whole point of the formula. Pressed with service-level z score 1.645, daily demand standard deviation 12, lead time 7, it answers: Safety stock = 52.2271 units
How to use Safety Stock Calculator
Enter service-level z score 1.645, daily demand standard deviation 12, lead time 7, then press Run: the page evaluates the buffer that holds a service level against demand variability and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.
Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.
With service-level z score 1.645, daily demand standard deviation 12, lead time 7, the answer is Safety stock = 52.2271 units.
Why the square root
Independent daily deviations add in quadrature, so a lead time four times longer needs twice the buffer, not four times. The root is the whole point of the formula.
The z score is the service level's normal quantile: 1.282 for 90%, 1.645 for 95%, 2.326 for 99%.
What to Expect
Best for
- Working out the buffer that holds a service level against demand variability without a spreadsheet
- Checking a figure someone else quoted
- Seeing the formula behind an answer
Not ideal for
- A z score at or below zero is refused, with the common values printed.
- A quantity the page cannot compute, which it refuses instead of estimating
- Rounding an answer that has an exact form
What this tool keeps
- Safety stock = z × σ of daily demand × √lead time
- Every input exactly as typed
What may need cleanup
- Nothing: the printed answer is the final output
- A unit conversion, if the inputs were entered in different units
Common errors
- A z score at or below zero is refused, with the common values printed.
- An empty field is refused with the field's name
Example use cases
- Work out the buffer that holds a service level against demand variability for one set of inputs
- Check the result against the formula by hand
- See which input the answer is most sensitive to
Sample input
Safety Stock Calculator: service-level z score 1.645, daily demand standard deviation 12, lead time 7
Sample output
Safety stock = 52.2271 units — Safety stock = z × σ of daily demand × √lead time = 1.645 × 12 × √7 = 52.227131
Who this is for
- Students checking a formula
- Anyone who needs the number and the working
Frequently asked questions
What formula does this page use?
Safety stock = z × σ of daily demand × √lead time. The page prints the substitution as well, so the answer can be checked against the rule.
What does Safety Stock Calculator refuse?
A z score at or below zero is refused, with the common values printed.
What does the default example give?
Service-level z score 1.645, daily demand standard deviation 12, lead time 7 gives Safety stock = 52.2271 units. Every line below that restates the same arithmetic.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.