Contact us
Back to knowledgebase

Service Level

The cycle service level is the probability of meeting all demand during an inventory cycle without a shortage. At 95%, a shortage is expected in 5% of cycles. The percentage says nothing about how many units will be missing or what those shortages will cost. Nor is it the percentage of units supplied, orders completed, or customers satisfied.

Lokad rejects service-level targets as the basis for inventory optimization. Whether to buy another unit, stock another product, or pay for faster delivery depends on what each choice is likely to earn or cost. A service percentage cannot settle those decisions. Quantiles connect a service target to a stock quantity. Probability distributions also describe the size and likelihood of the shortages that remain.

The Excel workbook accompanies the quantile, shortage, and purchasing examples below.

What does the percentage count?

“Service level” can refer to several different measures. Before comparing percentages, establish what is counted, where, and over which period.

Measure What counts as success? What is counted?
Cycle service level No demand goes unfilled during the cycle Cycles
Unit fill rate A requested unit is supplied immediately Requested units
Complete-order rate Every requested item and quantity is supplied Orders
On-time, in-full rate The entire order meets its promised delivery conditions Orders due
On-shelf availability The product is available when the shelf is checked Observations or elapsed time

Consider ten cycles, each starting with ten units and containing one order. Nine orders request one unit each; the tenth requests thirty. Partial fulfillment is allowed. Nine cycles have no shortage: 90% cycle service. Yet only nineteen of the thirty-nine requested units are supplied: 49% unit fill rate. The complete-order rate is also 90% here because there is exactly one order per cycle.

Nine small orders are filled, while a thirty-unit order receives ten units. This gives 90 percent complete cycles but only 49 percent of requested units supplied.

A. Green squares are supplied units; orange outlines are missing units. The bottom panels count complete cycles on the left and supplied units on the right. In the cycle count, the thirty-unit order weighs no more than a one-unit order.

The fill rate counts units, but still gives each unit the same weight. An inexpensive missing component can prevent an expensive assembly from shipping; a missing color variant may have an acceptable substitute. Neither measure distinguishes between these losses.

A stock threshold is a quantile

Let \(X\) be demand over the period the stock must cover. In a simple model with \(s\) units available at the start, no receipts during the period, and no expiry or reservations, all demand is met when \(X\leq s\). The service probability is:

\[ F(s)=P(X\leq s) \]

The function \(F\) is the cumulative distribution: it adds up the probabilities of demand quantities up to \(s\). To meet a target probability \(p\), take the smallest quantity whose cumulative probability reaches it. That quantity is the quantile:

\[ q_p=\min\{s\in\mathbb{Z}_{\geq0}:F(s)\geq p\} \]

For example, demand might be 0, 2, 5, or 6 units, with probabilities of 20%, 30%, 40%, and 10%. Two units cover 50% of outcomes; five cover 90%; six cover 100%. Thus the 50th percentile is 2 and the 90th percentile is 5. The 95th percentile is 6, whose actual coverage is 100%, not 95%. No fixed stock quantity gives exactly 95% in this example.

Demand probabilities at zero, two, five, and six units accumulate to 20, 50, 90, and 100 percent. Quantiles select the first stock quantity reaching a chosen probability.

B. The upper chart gives the probability of each demand quantity. The lower staircase adds them. Read a quantile by moving from the target percentage to the first step that reaches it, then down to the quantity axis.

Mean demand is 3.2 units. Rounding it up to four units still covers only 50% of outcomes: four units complete no more orders than two when the next possible order is five. A quantile forecast estimates the stock threshold directly, without fitting a bell curve around a mean. Even zero inventory has 20% coverage here, because cycles with no demand count as successes.

The period and the stock must match

With continuous review and a fixed delivery delay, the threshold concerns demand during lead time. With weekly ordering, stock may have to cover the review interval plus delivery time. When deliveries are uncertain, lead demand must combine demand and arrival uncertainty, including any dependence between them.

An ERP’s inventory position includes quantities on order, but those units cannot fill an order before they arrive. The calculation must track when stock arrives, expires, or becomes available after reservations. Counting everything on order as immediately available can produce a reassuring service percentage while customers wait.

What one quantile conceals

Two demand distributions can have the same 90th percentile and very different shortages. Keep the probabilities above, but compare two possibilities for the largest order: 6 units in A, 30 units in B. With five units available, both have exactly 90% service. When a shortage occurs, A is short by one unit; B is short by twenty-five.

Across all cycles, expected unfilled demand is therefore 0.1 unit for A and 2.5 units for B: twenty-five times as much, behind the same service percentage.

Two distributions share a five-unit 90th percentile. Their ten-percent shortage events miss one unit and twenty-five units respectively, giving expected shortages of 0.1 and 2.5 units.

C. Both charts use the same scales. The orange outcome occurs in 10% of cycles: one unit is missing in A, twenty-five in B. Multiplying by that probability gives the expected shortage per cycle. The green line marks the five units in stock.

A probability distribution describes both the size and probability of each outcome. From it, one can calculate expected lost sales, leftover stock, or profit for each purchase quantity. Several quantiles can approximate this distribution, provided they describe the costly extremes as well as the common outcomes.

The same missing unit can have different costs: a customer may accept a partial order, wait, buy a substitute, or abandon the purchase. The assortment and delivery promise also influence what customers order in the first place.

Customers need combinations

Suppose a maintenance job requires components A and B. Each is available for nine of ten jobs. If both shortages happen on the same job, nine jobs can proceed. If their shortages hit different jobs, only eight can proceed. The component-level service figures are identical.

Each component is available for nine of ten jobs. Coincident shortages allow nine complete kits; shortages on different jobs allow only eight.

D. Each column is one job requiring both A and B. A check means available; a cross means missing. The bottom row shows whether the complete kit is available. The timing of failures changes customer service without changing either component’s percentage.

Multiplying 90% by 90% gives 81%, which is valid only if the two availabilities are independent. A shared supplier, shipment, or maintenance requirement can make that assumption wrong. Separate forecasts for A and B need to be joined by a forecast of when both will be needed and available.

Substitution reverses the requirement. A customer who accepts either product needs at least one available; a customer assembling a kit needs both. The inventory decision must account for which products work together and which can replace each other.

Let the purchase determine the service level

Return to demand of 0, 2, 5, or 6 units. A shop makes one purchase before a selling period. Each unit costs $2 and sells for $5; unsold units have no residual value. The shop starts with no stock and receives no further deliveries. Customers buy up to the available quantity; unfilled demand is lost, with no substitution or additional penalty.

The first two units each have an 80% chance of selling. Units three through five each have a 50% chance; the sixth has only 10%. The expected profit from the next unit is its sale probability times $5, minus its $2 purchase cost. Buying the sixth unit raises service from 90% to 100% but reduces expected profit by $1.50.

For the same demand distribution, expected profit peaks at five units and 90 percent service. Buying six units reaches 100 percent service but lowers expected profit from 5.50 to 4 dollars.

E. The upper chart shows expected profit; the lower chart shows service. The shaded columns follow the same purchases through both charts: five units in green, six in orange. The sixth unit costs $2 and earns only $0.50 in expected revenue.

Purchase Cash spent Expected profit Cycle service
2 units $4 $4.00 50%
5 units $10 $5.50 90%
6 units $12 $4.00 100%

Five units maximize expected profit here. Buying two earns a higher percentage return on the cash spent, but leaves three profitable units unbought. Whether to fund those units depends on what else the business could do with that money over the same period. Neither the highest service percentage nor the highest return percentage for one SKU answers that question.

When an economic calculation reduces to a quantile

In this model, unit \(k\) sells only if demand reaches \(k\). With selling price \(v\) and purchase cost \(c\), it adds expected profit:

\[ \Delta\Pi_k=vP(X\geq k)-c \]

Buying while the next unit adds profit leads to the newsvendor quantile \(p^*=1-c/v\). With $2 cost and $5 revenue, \(p^*=60\%\). The smallest quantity reaching 60% is five, which covers 90% of outcomes. The costs give a 60% threshold; the resulting purchase gives 90% service. Neither percentage was chosen as a management target.

The more general formula is \(p^*=C_u/(C_u+C_o)\), with positive, constant costs per unit: \(C_u\) for a shortage and \(C_o\) for an excess. The shortage cost is the lost margin plus any per-unit penalty; the excess cost is purchase cost minus residual value. Both must cover the same period. Using lost revenue instead of lost margin would overstate the cost of a shortage. The formula requires neither normal demand nor a continuous distribution.

The restrictive assumptions concern the purchase: one buying opportunity, units that can be bought and valued separately, and costs proportional to excess or shortage. Truck charges, minimum order quantities, shared budgets, assemblies, and customers who reject partial orders violate these assumptions. Improving the forecast does not make those purchasing constraints disappear.

Why ABC targets do not solve the allocation problem

Assigning 98% to A items, 95% to B items, and 90% to C items makes the targets easy to administer. But revenue rank says little about the return on the next purchase. An infrequently sold component can be essential to a lucrative job; a bestseller can be expensive to replenish and close to obsolescence.

A warehouse-wide average has another defect: gains on easy-to-supply products can conceal shortages of essential ones. Purchase decisions need to reflect margins, substitutes, complete orders, contractual penalties, and limited capacity. The safety-stock article works through shared budgets, truckloads, and minimum order quantities.

Expiry and the end of a season

It can be profitable to let a product sell out near the end of its season. Maintaining a fixed service target until the last day buys stock that may arrive too late to sell. For perishables, each batch’s age and arrival date determine how much time remains to sell it. Raising an annual carrying-cost percentage does not capture those deadlines.

For a cheap consumable whose absence would stop an expensive operation, holding ample stock may be the best purchase. Near-100% coverage can then be a worthwhile result. The mistake is choosing the percentage before comparing the costs.

The 100% in the example covers four possible demand quantities. It does not cover an order larger than the model allows, a late receipt, or unusable stock. Where demand has no upper bound, no finite inventory can guarantee the absence of shortages.

A contract is different from an internal target

A commitment to deliver complete orders by a date must be honored. Its terms specify which orders qualify, what counts as timely and complete, and what happens after a failure. A stockout probability for each SKU does not describe that promise.

An internal 98% setting is a planning choice, open to revision. A contract binds the business, but still leaves choices about how to fulfill it: stock, expedited transport, reserved capacity, or an agreed substitute. Compare those costs, including penalties and the risk of losing the customer. If the promise is too costly, renegotiate it before accepting the next order.

Check the forecast against what happened

A forecast of 95% coverage should be checked against subsequent fulfillment, using the same period, stock quantity, and fulfillment rules. Check the coverage predicted for the quantity actually chosen: in a discrete distribution, it can exceed the target quantile, as in the example above.

Break the results down by product, supplier, season, and lead time; an overall average can hide recurring failures. A quiet month provides little evidence about rare disruptions. Retain the original forecasts and decisions so that a revised model is not judged using hindsight.

Sales alone do not reveal demand during a stockout. Zero sales can mean no interest or no available product. Backorders, rejected order lines, shelf observations, and substitution records help reconstruct what happened. Keep estimated lost demand separate from observed fulfillment: replacing it with zero overstates service, while calling a forecast an observed lost sale invents evidence.

Lokad uses probabilistic forecasts of demand, arrival times, and other relevant uncertainties to calculate the expected gains and losses of feasible purchases, allocations, and delivery choices. Supply chain scientists maintain these calculations and check their economic results, rather than adjust thousands of service-level targets. Service measures remain useful for investigating failures and reporting contractual performance.

Explore the examples

The Excel workbook contains the demand probabilities, the two shortage examples, and the one-period purchase calculation. Change a probability, the largest order, or the unit cost to see how the quantiles, shortages, and best purchase change. The workbook uses the simplified assumptions described above.

For the broader argument, see The Hidden Cost of Service Levels, the lecture Probabilistic Forecasting for Supply Chain, and Introduction to Supply Chain. The companion articles on lead demand and safety stock develop the timing and purchasing constraints used here.