Inventory Optimisation and Safety Stock: From Service Level to Cost
Safety stock is the inventory held to cover uncertainty, not expected demand. Set it too low and customers wait; set it too high and cash sits on shelves. The calculation is well established, but two choices around it decide whether it works: which service measure you target, and whether the statistical assumption behind the formula fits your data. This article walks through both with a worked example.
Service level is not fill rate
The two terms are often used interchangeably, and they are not the same.
- Cycle service level (CSL) is the probability of not stocking out during a replenishment cycle. A 95 percent CSL means that, on average, in 95 cycles out of 100 there is no shortage, however small.
- Fill rate is the share of demand met from stock. A 99 percent fill rate means 99 units in every 100 requested are supplied immediately.
An order cycle with a one-unit shortage counts as a failure for CSL and an almost complete success for fill rate. Customers and contracts often care about fill rate, while the simple safety stock formula targets CSL. Converting between them requires the order quantity: larger orders mean fewer cycles, so the same CSL gives a higher fill rate.
The safety stock formula
By convention, assuming demand over the lead time is normally distributed:
Safety stock = z x sigma_LTD
sigma_LTD = sqrt( L x sigma_d^2 + d^2 x sigma_L^2 )
Reorder point = d x L + Safety stock
where z is the normal quantile for the target CSL (1.645 for 95 percent), d is mean demand per period, sigma_d its standard deviation per period, L the mean lead time and sigma_L its standard deviation, in the same period units. If lead time is fixed, sigma_L is zero and the second term drops out. The formula assumes demand in different periods is independent and that demand and lead time are unrelated.
For fill rate, the standard approximation per order cycle, assuming unmet demand is backordered, is:
Fill rate = 1 - sigma_LTD x G(z) / Q
G(z) = phi(z) - z x (1 - Phi(z))
where Q is the order quantity, phi and Phi are the normal density and distribution function, and G is the normal loss function (expected shortage per standard deviation).
Illustrative example with synthetic data
Take one item with mean demand of 200 units a week, a weekly standard deviation of 60, a lead time of 3 weeks with a standard deviation of 0.8 weeks, an order quantity of 800, and a holding cost of 4 currency units per unit per year. All of these are assumptions we planted.
Demand alone gives a lead-time standard deviation of sqrt(3) x 60 = 103.9 units. Adding lead time variability gives sqrt(3 x 60^2 + 200^2 x 0.8^2) = sqrt(10,800 + 25,600) = 190.8 units. The lead time term contributes more than twice as much variance as demand does.
Figure 1. Ignoring lead time variability understates safety stock by almost half. Synthetic data.
At a 95 percent CSL, z is 1.645 and safety stock is 314 units, against 171 if lead time variability is ignored. The reorder point is 600 + 314 = 914 units. Here is how the targets compare:
| CSL target | z | Safety stock (units) | Fill rate (Q = 800) | Annual holding cost of safety stock |
|---|---|---|---|---|
| 90% | 1.282 | 245 | 98.87% | 978 |
| 95% | 1.645 | 314 | 99.50% | 1,255 |
| 98% | 2.054 | 392 | 99.82% | 1,567 |
| 99% | 2.326 | 444 | 99.92% | 1,775 |
Two things stand out. First, the cost curve is steep at the top: moving from a 95 percent to a 99 percent CSL adds 130 units and about 520 currency units a year for this one item. Second, a 95 percent CSL here delivers a 99.5 percent fill rate, because an 800-unit order covers four weeks of demand and cycles are few. If the commitment is “99 percent of units shipped from stock”, a z of about 1.34 meets it, which is a CSL of 91.0 percent and 256 units of safety stock. Choosing the wrong measure would have cost 58 extra units for this item.
Figure 2. Safety stock rises steeply as the cycle service level target approaches 100 percent. Synthetic data.
The cost trade-off
Each extra unit of safety stock costs its holding cost every year, and each unit short costs a lost margin, an expedite or a relationship. The economic choice sits where the cost of the last unit held equals the expected shortage cost it avoids. In practice, shortage costs are hard to state, so a common approach is to set service targets by item class (for example, tighter for critical or high-margin items) and use the cost curve to see what each step up costs. Showing planners the curve in Figure 2, item by item, is often more useful than debating a single target.
Where the normal assumption fails
The formula assumes lead-time demand is roughly normal. That is reasonable for fast sellers summed over several periods, and poor for:
- Intermittent or lumpy demand, where most periods are zero and a few are large.
- Short lead times, where the central limit effect has little to work with.
- Heavily skewed demand, such as promotions or project orders.
To see the effect, we simulated an item whose weekly demand is exponential with mean 200 (standard deviation 200), over a fixed 3-week lead time, with 200,000 simulated lead times. Lead-time demand has a mean of 600 and a standard deviation of 346. The normal formula at 95 percent gives a reorder point of 1,170. The actual 95th percentile of the simulated demand is 1,258, and the normal-based reorder point achieved a CSL of 93.1 percent, not 95. As a check, the same simulation with normally distributed weekly demand (mean 200, standard deviation 60) achieved 95.0 percent.
Figure 3. For skewed demand the normal-based reorder point falls short of the true 95th percentile. Synthetic data.
The remedy is to use empirical quantiles of simulated or historical lead-time demand, or a distribution that fits better, such as a gamma or negative binomial.
Multi-echelon in brief
Single-location formulas treat each stock point alone. In a network with a central warehouse and regional stores, holding stock at the centre pools uncertainty across locations and usually needs less in total than holding it all at the edge. Multi-echelon optimisation chooses safety stock at every tier together, taking into account the lead time between tiers. It is worth the extra complexity when you have several tiers, shared items and meaningful transfer lead times.
What goes wrong
- Using raw demand variability instead of forecast error. Use the error of the forecast over the lead time, not the spread of raw demand, if replenishment is driven by a forecast.
- Using supplier-promised lead times. Measure actual receipt dates, and include their variance.
- One service target for everything. It over-serves tail items and under-serves critical ones.
- Ignoring order quantity. Safety stock, order size and fill rate interact.
- Stale parameters. Demand and lead time change; recompute on a schedule.
How to start
- Choose one product family and pull 52 weeks of demand and receipts.
- Compute mean and standard deviation of demand and of actual lead time.
- Apply the formula, then check it against the empirical lead-time demand distribution.
- Define the service measure in writing (CSL or fill rate) and agree it with sales.
- Show the cost curve for the top items and set targets by class.
An illustrative project
A hypothetical manufacturer holds one blanket safety stock rule of two weeks of cover on every item. A team measures real lead times, finds that a handful of imported components dominate variability, and recalculates safety stock item by item using lead-time demand quantiles. Stock is lowered for stable local items and raised where lead time varies. The outcome is judged on fill rate and inventory value over two quarters. This is a synthetic scenario, not client work. Platforms such as SLICE Optimise, a module of StratLytics Intelligent Chain Engine (SLICE), are one way to run this calculation across a large range.