Case 62: How much safety stock should a distributor hold?
A teaching case on stocking a fast seller: balance the cost of holding extra stock against running out, and see why variable lead times change the answer.
Every shelf holds a bet on tomorrow's demand. Stock too little and a customer finds the shelf empty, which loses a sale and sometimes a customer. Stock too much and money sits on the shelf, paying for space, insurance, spoilage and the interest on the cash that bought it. The extra stock that protects against running out is called safety stock, and the skill is in sizing it. It is a question about uncertainty: if demand and delivery times were perfectly predictable, no safety stock would be needed. This case follows a distributor that has been setting safety stock by rule of thumb, "two weeks of sales", and asks what the right number is. You will practise turning variability into a safety stock, balancing the cost of holding against the cost of stockouts, finding the service level that minimises total cost, and seeing what happens when the variability of delivery times is ignored.
This is a composite case. Annapurna Distributors, its people and its figures are invented for teaching, built on patterns common among Indian fast-moving goods distributors. No real company is described, and no number here should be quoted as a fact about any real firm.
The decision
Vikram Joshi, supply chain manager at Annapurna Distributors, which supplies packaged flour to about 4,000 retail shops across a region, is reviewing the stock policy for its best-selling product. For years the rule has been "hold two weeks of average sales as a buffer". The warehouse is full and the cash is tight, and the finance head asks to cut the buffer. The sales head says stockouts are already losing shops to a competitor and wants it raised. Vikram must say what the buffer should be, and he wants an answer that rests on how sales and deliveries actually behave.
Background
How the product sells. Weekly demand for the product is on average 50,000 units, but it varies from week to week. The standard deviation of weekly demand, a measure of how much it typically swings, is 12,500 units.
How ordering works. Vikram orders from the manufacturer once a week. An order takes two weeks to arrive. So each order must cover demand during the next three weeks (the two weeks of waiting plus the week until the next order can arrive): this is the protection period. Demand over three weeks averages 150,000 units. The week-to-week swings partly cancel out over a longer period, so the standard deviation over three weeks is 12,500 × √3 = about 21,650 units.
Costs.
Each unit costs ₹80. Holding stock costs 24 per cent a year of its value (cost of cash, storage, handling and spoilage), which is ₹19.2 per unit per year.
A unit demanded but not available is a lost sale: it costs about ₹50 in lost margin and goodwill, and the shop may switch brand.
The buffer rule. Two weeks of average sales is 100,000 units. That is a large buffer, but it is not related to the variability of demand or to the protection period, and Vikram wants to see what a more reasoned number looks like.
The numbers
Exhibit 1: the cost of different levels of safety stock
Safety stock is set as a multiple z of the standard deviation over the protection period: safety stock = z × 21,650. A higher z means a higher chance of not running out during a cycle (the service level). For each z, the table gives the safety stock, its holding cost, the expected number of units short each year and the cost of those, and the total.
z · Chance of not running out in a cycle · Safety stock · Holding cost a year · Units short a year · Cost of shortages a year · Total a year0 · 50.0% · 0 · ₹0.00 lakh · 449,100 · ₹224.57 lakh · ₹224.57 lakh
1.00 · 84.1% · 21,650 · ₹4.16 lakh · 93,800 · ₹46.90 lakh · ₹51.06 lakh
1.28 · 90.0% · 27,700 · ₹5.32 lakh · 53,500 · ₹26.74 lakh · ₹32.06 lakh
1.64 · 94.9% · 35,500 · ₹6.82 lakh · 23,800 · ₹11.90 lakh · ₹18.72 lakh
2.00 · 97.7% · 43,300 · ₹8.31 lakh · 9,600 · ₹4.78 lakh · ₹13.09 lakh
2.33 · 99.0% · 50,450 · ₹9.69 lakh · 3,800 · ₹1.89 lakh · ₹11.57 lakh
2.58 · 99.5% · 55,900 · ₹10.72 lakh · 1,800 · ₹0.88 lakh · ₹11.60 lakh
3.00 · 99.9% · 65,000 · ₹12.47 lakh · 430 · ₹0.22 lakh · ₹12.69 lakh
The total cost falls steeply and then flattens. It is lowest at a z of about 2.3 to 2.6, a service level of about 99 per cent, with a safety stock of about 50,000 to 56,000 units: about one week of average sales, not two. Holding the two weeks of sales that the rule gives (100,000 units, z of 4.6) would cost ₹19.2 lakh a year in holding alone, nearly double the optimum of ₹11.6 lakh, to prevent almost no further shortages.
Exhibit 2: the quick answer from a ratio
There is a shortcut to the same result. The best service level depends on the ratio between the cost of a shortage and the cost of a surplus. Over one weekly cycle, holding one extra unit costs ₹19.2 ÷ 52 = ₹0.37, and being one unit short costs ₹50. The critical ratio is 50 ÷ (50 + 0.37) = 0.9927, so the best chance of not running out in a cycle is about 99.3 per cent, which is a z of about 2.45. The answer agrees with the table: the stakes are very uneven, so the best policy is to almost never run out.
Exhibit 3: when delivery times vary
The first calculation assumed that deliveries always take exactly two weeks. In practice they do not. Suppose the lead time is two weeks on average but varies, with a standard deviation of half a week. Then the uncertainty over the protection period has two parts: the variation in weekly demand and the variation in how long the order takes. The combined standard deviation is
√(3 × 12,500² + 50,000² × 0.5²) = √(468.75 million + 625 million) = about 33,070 units,
not 21,650. Lead-time variability matters because a delay of half a week at average demand of 50,000 means 25,000 units of extra cover is needed.
Policy · Safety stock · Chance of not running out · Holding cost · Shortage cost · Total a yearSized for fixed lead time (z 2.33 on 21,650) when lead times vary · 50,450 · 93.6% · ₹9.69 lakh · ₹23.78 lakh · ₹33.47 lakh
Sized for the real variability (z 2.33 on 33,070) · 77,060 · 99.0% · ₹14.80 lakh · ₹2.88 lakh · ₹17.68 lakh
A buffer that ignored the variability of deliveries would save ₹5.1 lakh of holding cost and lose ₹20.9 lakh in extra shortages. The cost of getting the variability wrong is almost twice the total cost of getting it right.
Questions to consider
1. Why is the rule "two weeks of average sales" a poor way to set safety stock? What does it ignore?
2. Why is the total cost curve so steep on the left and so flat on the right? What does that tell you about the risk of holding too little against holding too much?
3. Why is the best service level so high (about 99 per cent)? What would make it lower?
4. What does variability in delivery times do to the buffer, and what could Vikram do about it?
5. How would the answer change for a slow-selling product, or one that is perishable?
6. What would you recommend to Vikram, and how would you keep the number right over time?
Analysis
Step 1: safety stock protects against variability, not against average demand
The average demand of 50,000 units a week is planned for by the order itself. An order that covers expected demand over the protection period leaves a 50 per cent chance of running out, because half the time demand will be above average. The safety stock is the extra cushion that covers the swings above the average. Its size depends on how large the swings are, not on how large the average is.
That is why the two-weeks-of-sales rule fails. It links the buffer to the average, so a product that sells 50,000 a week with small swings gets the same buffer as one with large swings. It would be too much for the first and too little for the second. A product with stable demand needs a small buffer, and one with erratic demand a large one.
Step 2: the best level balances two costs
The table shows the two costs moving in opposite directions. Holding cost rises in proportion to safety stock. Shortage cost falls, quickly at first and then slowly, because each extra unit of buffer protects against a smaller and smaller chance of running out.
At a z of 1, the chance of a stockout in a cycle is about 16 per cent, and the shortage cost is ₹46.9 lakh, which dominates the holding cost of ₹4.2 lakh. Raising z from 1 to 2 costs an extra ₹4.2 lakh in holding and saves ₹42.1 lakh in shortages. Raising it from 2.33 to 3 costs an extra ₹2.8 lakh and saves only ₹1.7 lakh. The best point is where the next unit of safety stock costs as much as the shortage it prevents, here at a z of about 2.45.
Step 3: why the answer is a high service level
A service level of 99 per cent looks extreme until you see the costs. A lost sale costs ₹50. A unit held for a week costs 37 paise. The ratio is more than 100 to 1. When running out is so much more expensive than holding, the best policy is to hold enough that running out is a rare event.
The ratio is the reason that different products deserve different service levels. For a product with a low margin and a cheap substitute, the shortage cost might be ₹5 against a holding cost of ₹0.37, a ratio of about 14, and the best service level would be about 93 per cent. For a product whose absence would lose the customer entirely, it might be higher. Service levels should be set product by product from the costs, not as a single number for the whole range.
Step 4: the buffer is sensitive to lead-time variability
Exhibit 3 shows the most expensive mistake in the case. The first calculation treated the lead time as exactly two weeks. The real lead time varies by half a week, and that adds a large amount of uncertainty: 33,070 units of standard deviation, against 21,650. A buffer sized for the smaller number protects only 93.6 per cent of cycles, and the shortages cost ₹23.8 lakh, more than double the holding cost.
Vikram can respond in several ways.
Measure the lead time properly. Take the last 50 deliveries and compute the average and the standard deviation. Managers often remember the typical lead time and forget the bad ones.
Reduce the variability, by working with the manufacturer on reliability, agreeing delivery windows and monitoring performance. Cutting the standard deviation of the lead time from 0.5 to 0.25 weeks reduces the protection-period standard deviation from 33,070 to about 25,000, and cuts the optimal safety stock by about 18,800 units, saving ₹3.6 lakh a year in holding cost.
Shorten the lead time, for example by ordering from a nearer depot. Cutting the lead time from two weeks to one reduces the protection period from three weeks to two.
Order more often. A shorter review period shortens the protection period.
Dual sourcing. A second supplier reduces the risk of a long delay from either.
Step 5: other things that change the answer
Perishable goods. Flour has a shelf life of months. For a product that spoils in days, holding cost per unit-week is far higher and the best buffer is much smaller, with more frequent orders.
Slow sellers. For a product with demand of 50 units a week and low variability, the maths is the same but the stakes are small, and a simple rule is good enough.
Seasonality. If demand has a seasonal pattern, the mean and the standard deviation change through the year, and the buffer should too. Ahead of a festival, the buffer needs to rise.
Demand that is not bell-shaped. The calculation assumes demand is roughly normally distributed. For products with occasional large orders, the real distribution has a longer tail, and the buffer should be larger.
Substitution. If a shop that finds one brand out of stock buys another, the cost of a stockout is the margin difference, not the whole sale. If it switches suppliers, the cost is much larger.
Forecast errors. The standard deviation used should be that of forecast errors, not of raw demand, if the company forecasts demand. A better forecast shrinks it, and with it the buffer.
Step 6: the recommendation
Vikram might say: "Replace the two-week rule with a calculated buffer for each product. For this product, with weekly demand of 50,000 and a standard deviation of 12,500, a lead time of two weeks with a standard deviation of half a week and a weekly review, the right buffer is about 77,000 units at a 99 per cent service level, costing about ₹14.8 lakh a year in holding. That is less than the 100,000 units the rule gives, and it protects far better against late deliveries. Measure the lead time and its variability for every supplier, set service levels from the cost of a shortage for each product, and review the buffer each quarter. Work with the manufacturer to cut the lead-time variability: halving it would save about ₹3.6 lakh a year on this product alone."
What happened
This part of the case is an illustrative epilogue, not a real outcome.
Annapurna measured the lead times of its last 60 deliveries and found an average of 2.1 weeks with a standard deviation of 0.6 weeks, a little worse than assumed. It set the buffer for the flour at 82,000 units and cut the buffer on four slow-selling lines. Stockouts of the main product fell from eleven days in the previous year to two, and total inventory fell by about 9 per cent because the buffers for slow lines were cut more than those for fast lines were raised. After a year of joint planning with the manufacturer, the standard deviation of the lead time fell to 0.35 weeks, and the buffer was lowered to 66,000 units.
Key takeaways
Safety stock protects against variability, not against average demand. Link it to the standard deviation over the protection period, not to a fixed number of weeks of sales.
Total cost has a minimum: holding cost rises with the buffer and shortage cost falls. Here it was lowest at a z of about 2.3 to 2.6, a 99 per cent chance of not running out, at a cost of about ₹11.6 lakh a year.
The best service level comes from the ratio of the shortage cost (₹50) to the holding cost (₹0.37 a week): a critical ratio of about 0.993.
Ignoring variable lead times cost nearly twice the total of getting the buffer right (₹33.5 lakh against ₹17.7 lakh). Measure lead-time variability.
Reduce the buffer you need by cutting lead-time variability, shortening lead times, ordering more often and improving the forecast.
Set service levels product by product from the economics.
Consider perishability, seasonality, substitution and the shape of demand.
Try this
Size the buffer for a product of your own. Set aside forty-five minutes.
1. Choose a product or supply you stock. Collect twenty or more weeks of demand and compute the average and standard deviation. Find the lead time and, from past deliveries, its variability.
2. Compute the standard deviation of demand over the protection period, including lead-time variability.
3. Estimate the cost of holding a unit for a year and the cost of a unit short.
4. Compute total cost for six values of z and find the best, and check it against the critical ratio. Use the simulator pattern.
5. Test what happens if the lead-time variability is ignored, and if it is halved.
6. Write a five-sentence plan: the buffer, the service level, the cost, the measurement you will keep and one way to reduce the variability.
A good result is a measured standard deviation, a cost table by z, a critical ratio, a test of lead-time variability and a plan to reduce it. Case 63 turns to a decision about where stock is held and who handles it: whether to run your own warehouse.
Tags: Case study Inventory Safety stock Service level Supply chain