Library · Demand and stock

Service level and fill rate

The cycle service level is the probability that demand is fully met in a period. The fill rate is the share of units demanded that are delivered from stock. They are different numbers, and for slow items they can be far apart.

By , published

Definition

Both are called service level in practice, which causes misunderstandings between a planner and a software vendor. With D the demand over the period covered by the stock S:

cycle service level = P( D ≤ S )    fill rate = E[ min(D, S) ] ÷ E[ D ]

The first counts periods, the second counts units. Silver, Pyke and Thomas call them P1 and P2. A period with a shortage of one unit out of fifty is a failure for the first and a success at 98 % for the second.

Worked example

Demand per period follows a Poisson distribution. For a fast item (mean 20) and a slow item (mean 0.2), we compute both measures for several stock levels.

import numpy as np
from scipy import stats

def measures(mean, S):
    k = np.arange(0, 200)
    pmf = stats.poisson.pmf(k, mean)
    csl = pmf[k <= S].sum()
    fill = (np.minimum(k, S) * pmf).sum() / mean
    return csl, fill

for mean, levels in [(20, (20, 24, 28)), (0.2, (0, 1, 2))]:
    for S in levels:
        csl, fill = measures(mean, S)
        print(f"mean demand {mean:>4}   stock {S:2d}   cycle service level = {csl:.3f}   fill rate = {fill:.3f}")

Output, produced by running the code above when this page was built:

mean demand   20   stock 20   cycle service level = 0.559   fill rate = 0.911
mean demand   20   stock 24   cycle service level = 0.843   fill rate = 0.976
mean demand   20   stock 28   cycle service level = 0.966   fill rate = 0.996
mean demand  0.2   stock  0   cycle service level = 0.819   fill rate = 0.000
mean demand  0.2   stock  1   cycle service level = 0.982   fill rate = 0.906
mean demand  0.2   stock  2   cycle service level = 0.999   fill rate = 0.994

For the fast item the fill rate is above the cycle service level at every stock level. For the slow item, with no stock at all, 82 % of periods have no stock-out, because 82 % of periods have no demand, and the fill rate is zero.

Where it misleads

  • A target on the cycle service level can be met on a slow item by holding nothing. Any target below the share of periods without demand is empty.
  • The stock needed for a 95 % fill rate and for a 95 % cycle service level differ, in a direction that depends on the item. A contract or a specification has to say which one is meant.
  • Averaged over a catalogue, the fill rate is dominated by the fast items. A good overall figure can coexist with slow items that are never available.
  • Both are computed from demand. Where only sales are recorded, shortages hide part of the demand, see censored demand.

A target on the cycle service level translates into a quantile of the demand distribution, scored with the pinball loss. A target on the fill rate needs the whole right tail of the distribution.

In our work

In our preregistered study we simulate stock for each method and report both measures. A target of 0.95 on the probability of no stock-out gave much lower fill rates on the slowest items, for the reason shown above.

References

  1. Silver, E. A., Pyke, D. F., Thomas, D. J. (2017). Inventory and production management in supply chains, 4th edition. CRC Press, Boca Raton. doi:10.1201/9781315374406
  2. Teunter, R. H., Syntetos, A. A., Babai, M. Z. (2011). Intermittent demand: linking forecasting to inventory obsolescence. European Journal of Operational Research, 214(3), 606-615. doi:10.1016/j.ejor.2011.05.018
  3. Chadeffaud, M. (2026). Evaluating intermittent demand forecasts: a preregistered study on four public datasets. Zenodo, preprint. doi:10.5281/zenodo.24248568

Have a question like this one on your own data? Tell us what you need in a few lines.

Send us the brief

Related pages

  • Safety stock and the normal approximationSafety stock is the stock held above the expected demand over the lead time. The textbook formula assumes that this demand is normally distributed. For slow items it is not, and the service obtained differs from the target.
  • The newsvendor model and the critical ratioThe newsvendor model answers one question: how much to order once, before an uncertain demand. The answer is a quantile of the demand distribution, at a probability set by the two unit costs.
  • Pinball loss (quantile loss)The pinball loss, or quantile loss, is the measure for a quantile forecast, such as the stock level that covers demand 90 % of the time. It is minimised by the true quantile and by nothing else.
All library pages