b2KIT

Safety Stock Calculator

Calculate safety stock levels based on demand variability, lead time, and service level targets with stockout probability curves.

Tested tool guide Tested browser tools Checked August 16, 2026

What Safety Stock Calculator does, with a checked example

Safety stock is the buffer that sits between forecast and reality, and this calculator sizes it from demand variability, lead time, and the service level you commit to. You enter average demand, its standard deviation, lead time, and a service level target, and it returns safety stock in units, a reorder point, and a stockout-probability curve showing how the risk falls as the buffer grows. The surprise: safety stock scales with the square root of lead time, so doubling lead time grows the buffer by only about 40 percent, while moving from 95 to 99 percent service adds roughly 40 percent more units.

Worked example

A concrete input and expected output from the current implementation.

Input

Mean demand: 100 units/day | Demand standard deviation: 20 units/day | Lead time: 7 days (constant) | Service level: 95%

Expected output

Safety stock: 87 units. Reorder point: 787 units (700 units of average lead-time demand plus 87 units of buffer). Stockout probability at this reorder point: 5% per replenishment cycle.

A 95 percent service level corresponds to a z-score of 1.645, and with a constant lead time the formula reduces to SS = 1.645 x 20 x sqrt(7) = 87 units. Adding the 700 units of average demand during the 7-day lead time gives the 787-unit reorder point.

How the result is produced

1

Service level to z-score

The service level is converted to a z-score of the standard normal distribution: 90 percent gives 1.28, 95 percent gives 1.645, 99 percent gives 2.33. The z-score is how many standard deviations of lead-time demand the buffer must span, and stockout probability per cycle is exactly 1 minus the service level: 5 percent at 95 percent. The stockout-probability curve is the tail area of the same distribution.

2

Combining two sources of variability

The model pools demand and lead-time uncertainty into one term: SS = Z x sqrt(LT x sd_d^2 + d^2 x sd_LT^2), where d is mean demand, sd_d its standard deviation, LT mean lead time, and sd_LT lead-time spread. With a constant lead time this collapses to Z x sd_d x sqrt(LT), which is why the buffer grows with the square root of lead time rather than in proportion to it.

Good uses

  • Set reorder points for SKUs with swingy demand: a retailer entering a holiday season enters mean weekly demand, its standard deviation, supplier lead time, and a 95 percent service target, and gets the reorder point to load into the purchasing system.
  • Price the cost of service: run the same demand profile at 95, 97, and 99 percent service and compare the units (and implied holding cost) each step adds before committing to a vendor SLA.
  • Quantify supplier unreliability: when lead times wander, include their standard deviation and see how much extra buffer the formula assigns, instead of guessing a flat cushion.

Limits and checks

  • Time-base consistency: a daily demand standard deviation with a lead time entered in weeks, or a standard deviation entered as a percentage of mean demand, quietly corrupts the result. The formula multiplies and roots these terms, so every input must share the same period and unit.
  • Service level is per cycle, not per year: at 95 percent with 12 orders a year, expect about 0.6 stockouts per year, or roughly one in every 20 cycles. The stockout-probability curve is a per-cycle statement, and a stockout can still land in the 5 percent.
  • Normal-distribution assumptions: the z-score method assumes demand is roughly bell-shaped and independent across periods. Lumpy or highly skewed demand (spare parts, project-based products) understates the real buffer, and the result is a planning target, not a guarantee.

Common questions

If I pick 95 percent service, do I get a stockout only 5 percent of the year?

No. The 5 percent is the chance of a stockout in each replenishment cycle, not in a year. With 12 cycles a year you would expect about 0.05 x 12 = 0.6 stockouts per year on average. If your business needs a different annual exposure, raise the per-cycle service level accordingly and re-run the calculation.

My demand is steady; why does the calculator still produce a buffer?

With constant demand and a fixed lead time the variability terms are zero and the formula returns no safety stock, because steady demand needs cycle stock (ordering earlier), not buffer stock. Safety stock exists only to absorb spread: the wider the demand or lead-time variation you enter, the larger the buffer. A long but reliable lead time raises the reorder point, not the safety stock.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools