Articles

How do you calculate the economic order quantity (EOQ)?

The square-root formula worked on one part number, the cost curve around it, and why the inputs matter more than the formula.

The economic order quantity is EOQ = √(2 × D × S ÷ H): twice the annual demand times the cost of placing one order, divided by the cost of holding one unit for a year, square-rooted. For part AF-7, with 95,680 units a year, 385 EUR an order and 3.8324 EUR to hold a unit for a year, the EOQ is 4,384.5 units, about 22 orders a year, at a minimum annual cost of 16,803.18 EUR.

Worked in full in Supply Chain Management by Julian R. Sterling, with every figure reproduced in a free workbook.See the book on Amazon →

The formula balances two costs that pull in opposite directions. Order often in small batches and ordering cost climbs; order rarely in large batches and the stock carried, and its cost, climbs instead. The EOQ is the batch where the sum of the two is lowest. The formula is a century old and still right. What goes wrong in practice is the inputs.

The assumptions

Part AF-7, a filter element bought in, from the Aldermere Filtration case. Figures in EUR.
InputValue
Mean weekly demand1,840 units
Annual demand D (52 weeks)95,680 units
Cost of placing one order S385
Purchase cost delivered28.60
Cost of capital7.4%
Storage3.1%
Obsolescence2.25%
Insurance0.65%
Holding rate, total13.4%
Holding cost per unit per year H3.8324

The calculation, step by step

At that batch the company places 95,680 ÷ 4,384.5 = 21.82 orders a year, one every 2.4 weeks. Ordering costs 21.82 × 385 = 8,401.59 EUR. The average cycle stock is half a batch, 2,192 units worth 62,698 EUR, and holding it costs 2,192 × 3.8324 = 8,401.59 EUR. Total: 16,803.18 EUR a year.

The two costs are equal at the EOQ, and that is not a coincidence of these numbers: it is where the minimum of the curve always lies. It gives a two-second test of any existing batch. If the annual ordering cost is well above the holding cost of the cycle stock, the batch is too small; if well below, too large.

What if: ordering more or less

Annual cost in EUR at other batch sizes, same inputs.
Batch (units)Orders a yearOrderingHoldingTotalAbove minimum
2,00047.818,4183,83222,25132.4%
3,00031.912,2795,74918,0287.3%
4,38521.88,4028,40216,8030.0%
6,00015.96,13911,49717,6375.0%
8,00012.04,60515,33019,93418.6%
10,0009.63,68419,16222,84636.0%

The curve is flat around its minimum. The penalty of ordering x times the EOQ is ½(x + 1/x) − 1, whatever the part: 2.5 per cent at 1.25 times, 8.3 per cent at 1.5 times, 25.0 per cent at double or half. The curve is not symmetric, though: 0.75 times costs 4.2 per cent, so an error on the low side hurts more than the same error on the high side. That flatness is a licence to round. AF-7 ships on pallets of 600, and seven pallets, 4,200 units, cost 16,819 EUR a year: 16 EUR, or 0.09 per cent, above the theoretical minimum. Nobody should order 4,384.5 units.

The common mistakes

Holding cost as the cost of capital alone. Finance often supplies the 7.4 per cent cost of capital and nothing else. H falls to 2.1164, the EOQ rises to 5,900 units, 1.35 times the right answer, and the true annual cost rises by 746 EUR, 4.4 per cent. Storage, obsolescence and insurance all grow with the stock; leaving them out tells the model that stock is cheaper than it is.

Order cost loaded with fixed overhead. The cost of an order is what changes when one more order is placed: the receiving, inspection, invoice handling and transport that scale with orders. If the buyer's salary and the warehouse rent are divided by the number of orders, S can easily reach 960 instead of 385. The EOQ then becomes 6,924, 1.58 times too large, and costs 1,784 EUR a year more, 10.6 per cent. Because the formula takes a square root, an S that is two and a half times too large still only moves the batch by 1.58 times, which is why this error survives for years without being noticed.

Setting the batch on its own. The EOQ ignores the shortage cost. A larger batch means fewer cycles a year and therefore fewer exposures to a stock-out, so strictly the batch and the safety stock should be set together. The companion files for AF-7 do this: set jointly with the 98 per cent service level, the batch rises to 5,840.71 units and the year costs 683.37 EUR less than setting the two separately.

Takeaway

The free workbook for this case at the Supply Chain Management companion page computes AF-7's order quantity, its service level table and the cost curve, with every input in a blue cell. The buffer that sits under the cycle stock is worked in how to calculate safety stock when lead time varies.

Questions readers ask

Why are ordering cost and holding cost equal at the EOQ?

Because at the minimum of D/Q times S plus Q/2 times H, the slopes of the two lines cancel, which happens exactly where the two costs are equal. For part AF-7 both are 8,401.59 EUR a year at 4,384.5 units. A quick check of any order quantity: if ordering cost is well above holding cost, the batch is too small, and the reverse.

How sensitive is total cost to ordering more or less than the EOQ?

Not very. The cost penalty of ordering x times the EOQ is half of (x plus 1/x) minus one. Ordering 25 per cent too much costs 2.5 per cent more, 50 per cent too much 8.3 per cent. Rounding AF-7's 4,384.5 units to seven pallets of 600 costs 0.09 per cent, 16 EUR a year.

What holding cost rate should go into the EOQ formula?

Every cost that rises with the stock held: cost of capital, storage, obsolescence and insurance. For AF-7 these are 7.4, 3.1, 2.25 and 0.65 per cent, 13.4 per cent in all, or 3.8324 EUR per unit per year. Using the cost of capital alone gives an EOQ of 5,900 and a true annual cost 746 EUR higher.

Read the whole case

This article is one calculation from Supply Chain Management. The book takes the same case from first principles to the decision, chapter by chapter, and every figure it prints is a live formula in the free companion workbooks.

Get the book on Amazon →Free companion files

Also on Amazon UK · Amazon Germany · Amazon France · Amazon Canada

Also on this site

Reading guide: business operations: cost, contracts, pricing and supply chain → · All 453 articles →

If this book helped, or didn’t, a few lines on Amazon are worth more than they look: they are what the next reader goes on. Write a review. The workbook stays free either way.