Contact us
Back to knowledgebase

Safety Stock

Safety stock is the quantity added to expected demand during replenishment lead time to set an inventory target. The usual formula sizes this buffer for a chosen probability of avoiding a stockout.

Lokad rejects safety stock as a replenishment method. Unsafe stock better describes a policy that can buy loss-making inventory while leaving profitable purchases unfunded. Units bought for safety still expire, lose value, and tie up cash.

The Excel workbook includes calculations for the normal formula, delivery delays, and two products competing for a budget.

Why safety stock is unsafe

Safety-stock calculations set a target for each SKU separately, although those SKUs share cash, shelf space, trucks, and production capacity. When the resulting orders need 105% of a truck, the buyer must decide what to remove. The target supplies no basis for that choice.

A 95% service target also needs a justification. At the end of a fashion season, extra availability can mean dead stock. A shortage of a cheap component can stop an expensive production line. ABC classes assign different percentages but do not price these consequences.

Contractual service targets need the same scrutiny. The penalty, the measurement period, and performance so far determine what avoiding the next shortage is worth. Copying the contract’s percentage into every SKU’s safety-stock field does not calculate that value. Safety Stocks Aren’t Safe examines these cases in detail.

Better forecasts do not repair this allocation problem. Introduction to Supply Chain, section 3.2.3 explains why treating SKUs separately is a more fundamental defect than the formula’s statistical assumptions.

What the stock target means

In a simple continuously reviewed replenishment model, an order is triggered when the inventory position reaches the reorder point. Inventory position counts stock on hand plus stock already ordered, minus backorders. Counting incoming goods avoids ordering them twice; their arrival dates still matter if an earlier shortage is possible.

Let \(X\) be demand during the lead time, \(r\) the reorder point, and \(S\) the safety stock. The conventional decomposition is:

$$r=E[X]+S$$

Here, \(E[X]\) is the mean lead demand. Safety stock is the difference between the threshold and that mean. The equation says nothing about order quantity: the same threshold can trigger an order of 10 units or 100.

With constant consumption and batches of \(q\) units, average cycle stock is \(q/2\). It measures the average stock attributable to batching. Mean lead demand, the reorder point, and average stock on hand are different quantities.

The classical safety stock formula

Suppose lead demand follows a normal distribution with mean \(\mu_X\) and standard deviation \(\sigma_X\). For a target cycle service level \(p\), the formula is:

$$S=z_p\sigma_X,\qquad r=\mu_X+z_p\sigma_X,\qquad z_p=\Phi^{-1}(p)$$

The inverse standard normal cumulative distribution, \(\Phi^{-1}\), converts the target probability into a multiplier. For 95%, \(z_p\approx1.645\). If mean lead demand is 100 units and its standard deviation is 20, safety stock is about 33 units and the reorder point is 133 after rounding up.

In the normal model, mean lead demand is 100 units and the 95 percent threshold is about 133. The 33-unit gap is the safety stock.

A. Under the normal assumption, 95% of lead-demand outcomes fall in the green area. The bracket measures the 33-unit addition to the mean.

This service level is a probability of avoiding a stockout over the modeled replenishment cycle. It is neither the percentage of units delivered nor the percentage of customers satisfied. Those measures can diverge sharply when orders vary in size or require several products together.

What the formula assumes

The usual daily version takes a fixed lead time \(L\) and independent, identically distributed daily demand with mean \(\mu_D\) and standard deviation \(\sigma_D\):

$$\mu_X=L\mu_D,\qquad \sigma_X=\sigma_D\sqrt{L}$$

These formulas for the mean and variance hold without normal daily demand. Using a normal quantile is a further assumption. Correlated daily errors also invalidate the square-root adjustment.

If the number of lead-time days is random and independent of the daily demand sequence, the corresponding variance is:

$$\operatorname{Var}(X)=E[L]\sigma_D^2+\operatorname{Var}(L)\mu_D^2$$

Including lead-time variance does not turn a mixture of short and long waits into a bell curve. If demand and delays rise together, this variance formula also fails. The lead-demand article works through that dependence.

Match the forecast horizon

Use the same time unit throughout. With weekly ordering, demand must be covered until the next ordering opportunity and its subsequent receipt; replacing that horizon with lead time alone leaves a gap. Estimate uncertainty from forecasts tested against subsequent demand, at the horizon actually faced. The spread of historical sales also contains seasonality, promotions, and stockout censoring; it is not automatically the forecast-error standard deviation.

A 95% target that delivers 90%

Suppose demand is exactly 10 units per day. A supplier delivers after 3 days with 90% probability, or after 13 days with 10% probability because it must first replenish. Lead demand is therefore 30 or 130 units. Its mean is 40 and its standard deviation is 30.

The normal formula gives \(r=40+1.645\times30\approx89.3\), rounded up to 90 units. That quantity covers the short wait and fails to cover the long one. Its actual coverage is 90%, despite the 95% input.

Lead demand is 30 units with 90 percent probability or 130 with 10 percent probability. A 90-unit threshold covers only the first outcome; 130 covers both.

B. Lead demand has two possible values. The thresholds below use the same quantity axis: 90 units cover the short wait; 130 cover both. Coverage jumps from 90% to 100%.

There is no threshold that gives exactly 95% here. The smallest one meeting at least 95% is 130. A distributional forecast exposes this jump; a normal approximation smooths it away. Whether those extra 40 units are worth buying is a separate economic question.

The mean of 40 units also covers 90% of outcomes. An unbiased forecast need not split outcomes into two equally likely halves.

In practice, the long wait varies too, and some orders never arrive. Buyers learn to distrust the calculated buffer and inflate it, sometimes by asking the software for a service level above the one they actually want. The same inflation then spreads to products with different risks. Stockouts coexist with excess stock. Why Safety Stock Is Unsafe describes this failure: the model understates risk, and its manual correction creates further losses.

Combining order sizes and delivery times

A customer order may contain one, two, or four units; some days bring no orders at all. Delivery can also follow distinct paths: shipment from stock, or shipment after the supplier has manufactured or replenished the item. The average wait may fall between these paths, when delivery is unlikely.

Take customer orders arriving independently at an average of two per day, with a Poisson count. Each order contains 1, 2, or 4 units, with probabilities 20%, 30%, and 50%. Independently, delivery takes 2 days with probability 65%, or 12 days with probability 35%. These assumptions define a compound demand distribution: add the quantities in all customer orders received before delivery.

Customers buy 1, 2, or 4 units, and delivery takes 2 or 12 days. The resulting lead demand has two separated peaks. A normal curve with the same mean and variance puts probability between them and below zero.

C. Order sizes and delivery times produce the two-peaked distribution below. Green and purple distinguish the delivery paths. The dashed normal approximation has the same mean and variance; hatching marks impossible negative demand. Bars and curve show probability per one-unit interval.

The two peaks occur around very different quantities. The bell curve fills the gap between them and assigns probability to negative demand. Matching the mean of 30.8 units and the standard deviation of about 28.6 does not preserve the risks. Its 95% threshold rounds up to 78 units, which actually cover about 92.3% of outcomes. The smallest threshold reaching 95% is 83.

Basket sizes and the supplier’s stock position change the shape of demand over the wait. A mean and standard deviation lose those distinctions. An exact distribution fixes the probability calculation; the value of buying 83 units still depends on their cost, their selling price, and competing purchases.

Two products, one purchasing budget

Consider a final purchase before a season. Products A and B each have 10 units on hand. For each product, remaining demand is 10 or 20 units, with equal probabilities. An additional lot contains 10 units, costs $100, and arrives before sales begin. Unsold units have no residual value. There are no further purchases, handling costs, substitution effects, or shortage penalties in this example.

A sells for $30 per unit and B for $50. Either extra lot lifts the product’s modeled probability of satisfying all demand from 50% to 100%. Both lots require $200, but only $100 is available.

Additional purchase Spending Profit if the extra lot sells Profit if it does not sell Expected extra profit
Nothing $0 $0 $0 $0
10 units of A $100 $200 −$100 $50
10 units of B $100 $400 −$100 $150
Both lots $200 — — $200; exceeds the budget

These are incremental profits: the revenue from the first 10 units, already on hand, is unchanged by the choice. For A, expected extra profit is \(0.5\times200+0.5\times(-100)=50\). For B it is $150. Funding B earns $100 more in expectation with the same commitment of cash.

The same 100-unit cash budget can fund one lot of A or B. A returns an expected extra profit of 50; B returns 150, although both purchases offer the same improvement in service probability.

D. Each row spends the same 100. The two profit outcomes are equally likely; the diamond marks their average. B offers the higher expected return. Amounts can be read in any one currency.

Both purchases eliminate the modeled stockout risk. B earns three times as much for the same outlay.

The return on each additional unit

A product has no opening stock and is bought once, before the selling period, for $10 per unit. It sells for $20. Unsold stock is worthless at the end. There are no further orders, shortage penalties, or other costs. The probabilities of selling the first through sixth units are 90%, 75%, 60%, 45%, 30%, and 15%. Thus the first unit earns an expected \(0.90\times20-10=8\) dollars; the fourth earns \(0.45\times20-10=-1\).

Divide each expected gain by its $10 investment to obtain its marginal rate of return (RoR): 80%, 50%, 20%, −10%, −40%, and −70%. These returns cover the same selling period. If a purchase ties up cash for twice as long, that delay must also enter the comparison.

For six successive units, marginal expected returns fall from 80 to minus 70 percent. A 95 percent service target buys all six, earning 3 on 60 invested. Buying the first three earns 15 on 30 invested.

E. Left: the service target buys six units. Right: the economic choice buys three. Both use the same demand probabilities. Solid bars are purchased units; dashed outlines are units not bought. Below: spending, expected profit, and return on that spending.

Five units cover 85% of demand outcomes; six cover 100%. An exact 95% service target therefore buys all six, spending $60 for an expected profit of $3. Buying three spends $30 and earns $15. The last three units cost another $30 and destroy $12 of expected profit. The target has bought availability at a loss, even with a correct forecast.

Three units maximize this product’s expected profit. Buying only one would give a higher percentage return but forgo the profit on units two and three. With a limited budget, those gains must also be compared with what other SKUs offer.

The next best unit often belongs to another SKU

Keep the same $10 cost, $20 selling price, and selling period. Add products B and C with the marginal returns shown below. There is $60 to spend, enough for six units in total. For now, units can be ordered separately, without shared costs or interactions between products.

Three rows show declining marginal returns for SKUs A, B, and C. With a six-unit budget, the best purchase alternates between A, B, and C, buying two of each for an expected profit of 34.

F. Each row is one SKU; each column is another unit. The numbered badges show the purchase sequence, repeated in the strip below. Two of each product cost 60 and earn an expected 34.

A’s first unit earns 80%, but its second earns only 50%. B’s first at 70% and C’s first at 60% therefore come ahead of A’s second. Each additional purchase changes which SKU offers the best next unit.

Two units of each product earn $34 in expectation on the $60 investment. Separate 95% service targets call for six A, six B, and five C: $170 of purchases. They provide no rule for allocating the $60 actually available. Proportional cuts may remove a profitable unit while keeping a less profitable one.

Unit ranking works here because each unit costs $10 and the products do not affect one another’s sales. Shared freight, minimum lots, substitution, and products needed together require orders to be valued in combination.

Choosing a profitable truckload

Independently triggered orders can leave a truck half empty or require a second truck for one extra pallet. A capacity check will flag the problem, but it cannot choose which orders to change.

Suppose a truck holds ten equal-sized pallets and costs $1,000 to dispatch. A wave of six replenishment pallets contributes an expected $1,200 after buying the goods and paying other variable costs, but before freight. Four additional pallets, chosen from other SKUs, add $500. An eleventh adds only $80. Assume cash is available for these purchases and each dispatched truck incurs the full charge.

A ten-pallet truck costs 1,000. Six pallets earn 200 after freight; a selected ten-pallet load earns 700. Eleven pallets require two trucks and lose 220.

G. Blue: six pallets triggered by stock targets. Green: four additional pallets worth loading. Orange: an eleventh pallet that needs a second truck. Below each load: expected contribution less freight, then expected profit.

Filling the first truck raises expected profit from $200 to $700. Sending the eleventh pallet on another truck turns that into a $220 loss: it adds $80 before freight and costs $1,000 to ship.

Waiting, using a part-load tariff, changing supplier, or dropping a low-value pallet may be more profitable. Filling space with unwanted stock can cost more than the freight it saves. Choosing a load requires valuing these alternatives under uncertain demand and delivery.

An MOQ changes the value of the whole order

Return to the three-SKU example. A’s supplier now requires a minimum order quantity (MOQ) of six. B and C can still be ordered one unit at a time. The budget remains $60.

A's six-unit minimum lot combines expected gains of 8, 5, and 2 with losses of 1, 4, and 7, leaving a profit of 3. Spending the same 60 on three B and three C earns 23.

H. Expected profit per unit of A. The bracket makes all six units one purchase. The lower panels compare orders costing 60: six A, or three B and three C.

A still has the most attractive first unit, at 80%. That unit cannot be bought on its own. The complete lot earns only $3, while three B and three C earn $23. Rounding A’s three profitable units up to its MOQ buys the three loss-making units too. Rejecting the undersized order avoids that mistake but still does not choose the better purchase.

The buyer must compare the whole lot with other orders and with waiting. Discounts, delivery dates, and shared freight can change the answer. An MOQ check confirms that an order is allowed; it says nothing about what that order earns.

Replace the safety-stock policy

For each feasible order, estimate the sales, shortages, write-offs, and costs across possible demand, delivery, and return outcomes. Compare its expected profit and cash requirements with other orders and with waiting. The same reasoning applies to production, transfers, allocations, and prices.

A faster supplier, reserved capacity, or a transfer may protect against shortages for less than the cost of carrying extra stock. Safety Stock Is the Wrong Kind of Insurance compares these ways of paying for protection.

Before replacing an ERP’s replenishment rule, check how it uses safety stock, reservations, and incoming deliveries. Run the new ordering calculation in parallel and inspect the differences before switching.

The aim is to generate sound orders without somebody repairing thousands of SKU-level numbers every day. Automating the buffer calculation leaves that repair work intact. Supply chain scientists should maintain the numerical recipe as the business changes; buyers should spend their time on suppliers and commercial decisions. The discussion of probabilistic forecasting in practice shows how distributions support these purchasing choices.

Exploring the calculations in Excel

The workbook has three calculation sheets: the normal formula, the two arrival modes, and the competing purchases. Blue cells are editable. Change the probability of the long wait or B’s selling price; the results and charts update. These are teaching examples with specified probabilities, rather than forecasts fitted to sales history.

In Excel, =NORM.S.INV(0.95) gives the multiplier used in the first example. The function calculates a normal quantile. It supplies no evidence that demand follows this distribution or that 95% is worth paying for.

For the textbook treatment of the classical model, see Inventory Management and Production Planning and Scheduling, Edward A. Silver, David F. Pyke, and Rein Peterson, 3rd edition, 1998.