Before any formula: what inventory is, why every business keeps some, and the three costs that every inventory model trades against each other. A single running example, a campus stationery shop, carries through Parts 1 and 2.
You need: nothing beyond arithmetic.
Why hold stock at all
Inventory is stock bought before it is needed, and it exists because buying exactly what is needed, exactly when it is needed, is either impossible or too expensive.
Every model in this course answers one of two questions about it: how much to order at a time, and when to order.
Your kitchen at home: you buy a 5 kg bag of rice once a month instead of 170 g every day, because each trip to the shop costs you time.
Meet the Banyan Store, a stationery shop on a university campus. It sells about 200 notebooks a month, steadily, all year: 2400 notebooks per year. The notebooks come from a wholesaler in the city, by van.
The shop could ask the van to bring 7 notebooks every day. It does not, because every delivery has a cost of its own: the van trip, the paperwork, someone at the counter to check and shelve the boxes. So the shop orders a bigger batch less often, and the notebooks sit on the shelf until students buy them. That shelf of notebooks is the shop's inventory.
Four reasons to hold stock
- Batching. Each order carries a fixed cost, so it pays to order many units at once. The stock that results is used up between orders; it is called cycle stock. This is the reason behind the EOQ (Part 2) and Wagner–Whitin (Part 3).
- Uncertainty. Demand next week is not known exactly. Extra units kept against a surprise are safety stock. This is the world of the newsvendor (Part 4) and Part 5.
- Seasons. A factory with limited capacity builds stock before a festival rush that it could not produce in the rush itself.
- Lead time. Orders take time to arrive, so goods already ordered but still on the road are stock too.
A bakery keeps 30 extra loaves every morning because it never knows whether a school will place a bulk order. Which reason for stock is this?
The picture every model starts from
Take the simplest possible world: demand is constant and known, an order arrives the moment it is placed, and the shop never runs out. Suppose the shop orders $Q = 400$ notebooks at a time. On delivery day the shelf jumps to 400. Students take 200 a month, so the shelf falls in a straight line and is empty after 2 months. At that instant the next 400 arrive, and the pattern repeats.
Drawn over time, the stock level looks like the teeth of a saw: the sawtooth pattern. Three numbers describe it:
- Notation for Parts 1 and 2
- $D$
- demand rate: units per unit time (Banyan Store: 2400 notebooks per year, or 200 per month)
- $Q$
- order quantity: units in each delivery
- $T$
- cycle length: time between deliveries, $T = Q/D$
Because the stock falls in a straight line from $Q$ to $0$, its average level over a cycle is halfway: the average inventory is $Q/2$. With $Q=400$ the shelf holds 200 notebooks on average. The shop places $D/Q = 2400/400 = 6$ orders a year.
Drag the slider to change the order quantity. Watch three things move together: the height of each tooth ($Q$), how many teeth fit in a year ($D/Q$ orders), and the dashed line of average stock ($Q/2$).
The Banyan Store doubles its order size from 400 to 800 notebooks. What happens to the average number of notebooks on the shelf?
The Banyan Store orders $Q=300$ notebooks at a time ($D = 2400$ per year, 52 weeks in a year). How many orders does it place per year, how long does each batch last, and how many notebooks are on the shelf on average?
Orders per year: $D/Q = 2400/300 = 8$.
Each order brings 300 and the year needs 2400, so it takes 8 deliveries to cover the year.
Cycle length: $T = Q/D = 300/2400 = 1/8$ year, which is $52/8 = 6.5$ weeks.
300 notebooks at 2400 per year last one eighth of a year.
Average inventory: $Q/2 = 150$ notebooks.
The stock falls in a straight line from 300 to 0, so its time average is the midpoint.
A pharmacy sells 1200 boxes of a vitamin per year at a steady rate and orders 200 boxes at a time. How many orders does it place per year?
Each order covers $Q$ boxes; the year needs $D$.
$D/Q = 1200/200 = 6$ orders per year.
Same pharmacy ($D=1200$ per year, $Q=200$). How many months does each batch last?
$T = Q/D$ in years; then convert to months.
$T = 200/1200 = 1/6$ year $= 12/6 = 2$ months.
Same pharmacy. What is its average inventory, in boxes?
The sawtooth falls in a straight line from $Q$ to 0.
$Q/2 = 200/2 = 100$ boxes.
In the sawtooth picture, what does the slope of each falling edge represent?
Which of these holds in the basic sawtooth model?
A shop orders twice as often but keeps the same yearly demand. What happens to its average inventory?
- Fix the time unit first (year, month, week) and express $D$ and every cost in that unit.
- Read $Q/2$ as "the average shelf", and $D/Q$ as "how many deliveries".
- Treating all stock as waste. Cycle stock exists because orders have a fixed cost, and safety stock because demand is uncertain; both can be worth paying for.
- Mixing a yearly demand with a monthly cycle length.
- Stock exists for batching, uncertainty, seasons and lead time.
- Under constant demand the stock follows a sawtooth: height $Q$, slope $-D$, cycle length $T=Q/D$.
- Average inventory is $Q/2$; the number of orders per unit time is $D/Q$.
Stock that exists because each order has a fixed cost is called…
$D = 600$ per year and $Q = 150$. Orders per year?
Same numbers ($D = 600$ per year, $Q = 150$). Average stock?
The three costs that pull against each other
Every inventory decision balances a cost for placing orders against a cost for keeping stock, with a third cost lurking for running out.
Once you can price each of them, "how much should we order?" stops being a matter of taste and becomes arithmetic.
Shopping for groceries once a year would save trips but fill your flat with food that spoils; shopping every hour would keep the fridge empty but eat your whole day.
1. The ordering cost $K$: paid per order
Each time the Banyan Store orders, it pays for the van trip, the paperwork and an hour of staff time to receive the boxes: about ₹300, whether the order is for 50 notebooks or 2000. A cost paid once per order, independent of its size, is a fixed cost or ordering cost. In a factory the same role is played by the set-up cost of a production run.
If the shop orders $Q$ at a time, it places $D/Q$ orders per year, so
$$\text{ordering cost per year} = K\cdot\frac{D}{Q}.$$2. The holding cost $H$: paid per unit, per unit of time
A notebook costs the shop $C=$ ₹40. While it sits on the shelf, that ₹40 is tied up instead of earning interest elsewhere; it also takes space, needs insurance, and may get damaged or go out of fashion. Shops usually express all of this as a percentage of the unit cost per year. At 10% per year, holding one notebook for a year costs
$$H = 0.10 \times 40 = 4 \text{ rupees per notebook per year}.$$This is the holding cost. On average $Q/2$ notebooks sit on the shelf, so
$$\text{holding cost per year} = H\cdot\frac{Q}{2}.$$Which change makes the holding cost per notebook larger?
3. The shortage cost: paid when you run out
If a student asks for a notebook and the shelf is empty, two things can happen. The student may wait and be served when the next delivery comes (a backorder), which costs goodwill and perhaps a discount. Or the student may leave and buy elsewhere (a lost sale), and the shop loses the profit on that notebook. Either way, the price of being short is a shortage cost.
In the EOQ of Part 2 demand is known exactly, so a sensible plan never runs out and this cost plays no role. It becomes central in Part 4, when demand is uncertain.
And the unit cost $C$?
The shop also pays ₹40 per notebook: $C\cdot D = 40 \times 2400 = 96{,}000$ rupees per year. As long as the price per notebook does not depend on the order size, this amount is the same for every $Q$, so it cannot change which $Q$ is best. Models keep it in the formula when it is convenient and drop it when it is not. (Quantity discounts, where the price does depend on $Q$, are in Part 5.)
Large orders mean few deliveries (low ordering cost) but a full shelf (high holding cost). Small orders mean an emptier shelf (low holding cost) but many deliveries (high ordering cost). The yearly cost to minimise is
$$\underbrace{K\frac{D}{Q}}_{\text{ordering}} + \underbrace{H\frac{Q}{2}}_{\text{holding}}.$$| Order size $Q$ | Orders per year | Ordering ₹/yr | Average stock | Holding ₹/yr | Total ₹/yr |
|---|---|---|---|---|---|
| 200 | 12 | 3600 | 100 | 400 | 4000 |
| 400 | 6 | 1800 | 200 | 800 | 2600 |
| 600 | 4 | 1200 | 300 | 1200 | 2400 |
| 800 | 3 | 900 | 400 | 1600 | 2500 |
| 1200 | 2 | 600 | 600 | 2400 | 3000 |
Move $Q$ and watch the two bars. Find the order size where the total is smallest, and look at the two bars when you are there.
In the table, the cheapest order size was $Q=600$. Look at its ordering and holding columns. What do you notice?
At the best order size, the yearly ordering cost and the yearly holding cost are equal. Part 2 proves that this always happens for the cost $KD/Q + HQ/2$, and turns it into a formula for the best $Q$.
Compute the Banyan Store's yearly ordering-plus-holding cost if it orders $Q=400$ notebooks at a time ($D=2400$ per year, $K=$ ₹300, $H=$ ₹4 per notebook per year).
Orders per year: $D/Q = 2400/400 = 6$, so ordering costs $6 \times 300 = ₹1800$.
Each order costs $K$ regardless of its size.
Average stock: $Q/2 = 200$ notebooks, so holding costs $200 \times 4 = ₹800$.
On average 200 notebooks sit on the shelf all year, each costing ₹4 per year.
Total: $1800 + 800 = ₹2600$ per year.
Ordering is three times holding here, so orders are too small: the shop pays for too many trips.
Banyan Store again ($D=2400$, $K=300$, $H=4$). What is the yearly ordering-plus-holding cost if it orders $Q=800$ at a time?
Orders per year $D/Q$, average stock $Q/2$.
Ordering: $3 \times 300 = 900$. Holding: $400 \times 4 = 1600$. Total ₹2500.
Same shop, $Q = 200$. Yearly ordering-plus-holding cost?
Twelve orders a year.
Ordering $12\times300=3600$; holding $100\times4=400$; total ₹4000. Small orders make ordering dominate.
If the shop's yearly holding rate rose from 10% to 15% of the ₹40 unit cost, what would $H$ be?
$H$ = rate × unit cost.
$0.15 \times 40 = ₹6$ per notebook per year.
The van company starts charging ₹500 per delivery instead of ₹300. Which parameter changed?
Is the new charge paid per delivery or per notebook?
It is paid once per delivery whatever the size, so it is the ordering cost $K$.
Why can the yearly purchase cost $C\cdot D$ be left out when choosing $Q$ in the basic model?
As $Q$ grows, the yearly ordering cost $KD/Q$…
A customer finds the shelf empty, leaves, and buys from a competitor. This is…
- Ask of every cost: is it paid per order, per unit, or per unit per unit time? That decides where it goes in the formula.
- Express $H$ in the same time unit as $D$.
- Using the unit price $C$ as the holding cost. $H$ is a cost per unit per unit time, often a percentage of $C$.
- Charging holding cost on the peak stock $Q$ instead of the average $Q/2$.
- Ordering cost $K$ is paid per order; yearly it is $KD/Q$.
- Holding cost $H$ is paid per unit per unit time; yearly it is $HQ/2$.
- The best $Q$ balances the two; the unit cost $C$ does not affect it when the price is fixed.
Rent for the stockroom, charged per square metre of stock stored, belongs to…
$K = 100$, $D = 1000$, $Q = 250$. Yearly ordering cost?
When ordering cost per year is larger than holding cost per year, the order size is probably…
A warehouse receives 900 units every 3 months and demand is steady. What is its yearly demand rate?
Same warehouse, $K =$ ₹500 per order and $H=$ ₹2 per unit per year. Yearly ordering plus holding cost?
In that warehouse, ordering costs ₹2000 a year and holding ₹900. To lower the total, it should…
Which stock exists mainly because demand is uncertain?