Operations
How To Calculate The Economic Order Quantity
The economic order quantity answers a practical question: how much should you order at once so that the cost of placing orders and the cost of holding stock balance? It turns annual demand, a fixed cost per order and an annual holding cost per unit into a single reorder size. This page works through the square-root formula, the cost trade-off behind it and the assumptions that limit it.
Last updated
Quick Answer
EOQ = sqrt(2 x D x S / H)
- D
- Annual demand in units
- S
- Fixed cost of placing one order
- H
- Annual holding cost for one unit
- EOQ
- The optimal order size in units
Multiply annual demand by the cost per order, double the result and divide by the annual holding cost per unit; the square root is the order size that minimises the two relevant costs. With 12,000 units a year, 60 per order and 9 per unit held for a year, the economic order quantity is 400 units. That implies 30 orders a year and a combined ordering and holding cost of 3,600.
What Is The Economic Order Quantity?
Economic order quantity, usually shortened to EOQ, is the reorder size that minimises the sum of ordering costs and holding costs for an item with steady, known demand. Instead of choosing an order size by habit, you let the numbers decide: order too little and you pay the ordering cost again and again, order too much and you pay to carry the stock. The formula finds the point where those two costs just balance. It is a classic inventory result that dates back to the early twentieth century and is still taught because the logic is transparent. In our default case the answer is 400 units per order.
Every order you place consumes resources: raising a purchase order, checking the delivery, processing the invoice and perhaps paying a fixed freight charge. Those costs are largely independent of how many units arrive, so spreading them over a larger order reduces the cost per unit. The other side of the trade-off is the cost of keeping stock: storage space, insurance, obsolescence and the capital tied up in unsold goods. Holding more units on average means paying that cost for longer. EOQ is the quantity where a small increase in order size saves exactly as much in ordering cost as it adds in holding cost.
The classic expression is Q star equals the square root of two D S over H. D is annual demand in units, S is the cost of placing one order and H is the annual cost of holding one unit for a year. The square root is what makes the model gentle: demand must rise fourfold before the optimal order size merely doubles. With D of 12,000, S of 60 and H of 9, the quantity under the radical is 160,000 and its square root is exactly 400. Keep the units consistent, because a monthly holding cost must be annualised before it is used.
The term two D S over H is worth reading slowly. Annual ordering cost is D divided by Q, multiplied by S, while annual holding cost is Q divided by two, multiplied by H. Setting the derivative of their sum to zero gives Q squared equals two D S over H, hence the square root. At the optimum the two cost components are equal: in the default case each is 1,800, giving a total relevant cost of 3,600. That equality is a useful sanity check on any answer you calculate.
In practice the hardest part is often estimating H rather than doing the arithmetic. A common convention is to express holding cost as a percentage of unit value, so an item worth 60 with a 15 per cent annual carrying rate has an H of 9. If the finance team quotes a monthly figure, multiply by twelve before entering it. S should include only costs that vary with the act of ordering, not the purchase price of the goods themselves. Getting these two estimates right matters more than carrying the square root to many decimal places.
The textbook EOQ is deliberately simple and rests on a stack of assumptions that rarely hold all at once. Demand is assumed constant and known throughout the year, replenishment is instantaneous, and no quantity discounts or promotions exist. Lead time is either zero or perfectly predictable, so a new order arrives exactly as the old stock runs out. There are no stockouts, no safety stock and no capacity limits in the warehouse. Treat the answer as a teaching benchmark and a starting point for discussion, not as a literal instruction to order exactly that number.
Real inventory systems add layers on top of this base. When a supplier offers a price break, the total cost curve develops steps and the cheapest option may be a larger order than the plain EOQ. When demand is uncertain, a safety stock and a reorder point are calculated separately from the order size. When production is gradual rather than instantaneous, the economic production quantity modifies the holding term. The same model also connects to inventory turnover: dividing annual demand by average stock of Q over two gives 30 turns a year in the default case.
One of the most useful properties of the square-root rule is its insensitivity to small errors. If you double annual demand from 12,000 to 24,000 while holding the other inputs fixed, the optimal order rises only by a factor of the square root of two, from 400 to about 565.685. If you double the ordering cost from 60 to 120, the same factor applies and the answer is again about 565.685. Because the curve is flat near its minimum, rounding 565.685 to 560 or 570 barely changes total cost. Managers therefore often round to a convenient pack size or a full pallet without losing much.
Use EOQ for stable, independent items with predictable annual usage and a well understood ordering cost, such as routine consumables or fast-moving spares. It is far less helpful for seasonal fashion goods, one-off projects or items with a short shelf life, where holding cost and obsolescence dominate. Service businesses can borrow the logic for bulk purchases of supplies, but should not pretend that a purchase order costs the same as a factory setup. The value of the model is that it forces the two cost streams into the open and makes the trade-off explicit. That clarity is why a steady-demand teaching model still earns a place in operations courses and planning meetings.
Formula
EOQ = sqrt(2 x D x S / H)
Formula page →Double the product of annual demand and the fixed cost per order, divide by the annual holding cost per unit and take the positive square root. The result is the order size that minimises the sum of the two relevant annual costs.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| D | Annual demand | units/year | Total units consumed over one year; 12,000 in the default calculation. |
| S | Cost per order | currency/order | The fixed cost incurred each time an order is placed, excluding the price of the goods; 60 by default. |
| H | Annual holding cost per unit | currency/(unit x year) | The cost of keeping one unit for a full year, including capital, storage and insurance; 9 by default. |
TC = (D / Q) x S + (Q / 2) x H
Formula page →The first term is the cost of placing D divided by Q orders in a year. The second is the average stock of Q over two units multiplied by the annual holding cost. At the optimal Q the two terms are equal.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| TC | Total relevant annual cost | currency/year | Ordering cost plus holding cost, 3,600 at the default inputs. |
| Q | Order quantity | units | Units received per order; 400 at the optimum in the default case. |
| D / Q | Orders per year | orders/year | Annual demand divided by the order size, which is 30 at the default optimum. |
EOQ(2D) = sqrt(2) x EOQ(D)
Formula page →Doubling annual demand while leaving the costs unchanged multiplies the optimal order size by the square root of two. With a baseline of 400 units, doubled demand gives about 565.685 units.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| EOQ(2D) | Order quantity at doubled demand | units | The recalculated optimum when annual demand is multiplied by two; 565.685424949238 by default. |
| EOQ(D) | Baseline order quantity | units | The optimum at the original demand level, 400 units in the worked case. |
How To Calculate The Economic Order Quantity
- 1
Fix the annual demand
Start with D, the number of units the business expects to consume in one year. Use a consistent period: if your records are monthly, multiply a typical month by twelve and note any seasonality separately. The default figure is 12,000 units, which is a steady teaching assumption rather than a forecast. Do not divide this number by twelve at a later stage, because the holding cost you will enter is also annual.
- 2
Price the costs that actually vary
Set S to the fixed cost of one order, such as clerical time, freight and inspection, and exclude the unit purchase price. Set H to the annual cost of holding one unit, combining capital, storage, insurance and shrinkage. If H is quoted as a percentage of value, multiply it by the unit price first. In the default case S is 60 and H is 9, both expressed per year where relevant.
- 3
Build the term under the square root
Compute two times D times S divided by H. With the default inputs this is 2 x 12,000 x 60 / 9, which equals 160,000. Watch the order of operations: multiply the annual demand and the order cost first, double that product, then divide by the holding cost. A misplaced bracket here changes the answer dramatically and is easy to miss when checking a spreadsheet.
- 4
Take the square root and interpret the size
The positive square root of the term you just built is the economic order quantity. The square root of 160,000 is exactly 400, so the model recommends 400 units per order. Demand of 12,000 divided by 400 gives 30 orders a year. Read that as a planning quantity: in practice you may order a full carton or pallet close to the calculated figure.
- 5
Check the cost balance and round sensibly
Verify that annual ordering cost, 30 x 60, equals annual holding cost, 200 x 9, because both should be 1,800. Their sum is the total relevant cost of 3,600. If the two sides are not equal, recheck the inputs before trusting the answer. Because the cost curve is flat near its minimum, a small rounding of 400 units costs almost nothing and buys operational convenience.
Examples
Example 1: Baseline case — 12,000 units a year
- annualDemand
- 12000
- orderCost
- 60
- holdingCost
- 9
| Step | Calculation | Result |
|---|---|---|
| Term under the radical | 2 x 12000 x 60 / 9 | 160000 |
| Square root | sqrt(160000) | 400 |
| Orders per year | 12000 / 400 | 30 |
| Annual ordering cost | 30 x 60 | 1800 |
| Annual holding cost | 400 / 2 x 9 | 1800 |
| Total relevant cost | 1800 + 1800 | 3600 |
Result: 400 units per order, 30 orders a year and 3600 in total relevant cost.
Example 2: Lower demand — 3,000 units a year
- annualDemand
- 3000
- orderCost
- 60
- holdingCost
- 9
| Step | Calculation | Result |
|---|---|---|
| Term under the radical | 2 x 3000 x 60 / 9 | 40000 |
| Square root | sqrt(40000) | 200 |
| Orders per year | 3000 / 200 | 15 |
| Annual ordering cost | 15 x 60 | 900 |
| Total relevant cost | 900 + 900 | 1800 |
Result: 200 units per order, 15 orders a year and 1800 in total relevant cost.
Example 3: Higher ordering cost — 120 per order
- annualDemand
- 12000
- orderCost
- 120
- holdingCost
- 9
| Step | Calculation | Result |
|---|---|---|
| New term under the radical | 2 x 12000 x 120 / 9 | 320000 |
| Orders at the new quantity | 12000 / sqrt(320000) | about 21.21 |
| Annual ordering cost | (12000 / sqrt(320000)) x 120 | about 2545.58 |
| Annual holding cost | (sqrt(320000) / 2) x 9 | about 2545.58 |
| Economic order quantity | sqrt(320000) | 565.685424949238 |
Result: 565.685424949238 units per order (about 565.69), roughly 1.414 times the 400-unit baseline, with about 21.21 orders a year and about 5091.17 in total relevant cost.
Calculator
Economic order quantity (units)
400
- Orders per year
- 30
- Total relevant annual cost
- 3600
- EOQ at double the demand (units)
- 565.685424949238
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the The Economic Order Quantity calculator page.
Common Mistakes
Mixing up monthly and annual costs
Demand and holding cost must both be annual. Entering a monthly demand of 1,000 alongside an annual holding cost of 9 understates the order size. Annualise the demand or the holding rate before substituting, and label every input with its period.
Treating the unit price as the holding cost
H is the cost of carrying a unit for a year, not what it costs to buy. If the item is worth 60 and the annual carrying rate is 15 per cent, H is 9. Using 60 directly would make the square root far too small.
Forgetting the square root
The quantity 2DS/H is only the term under the radical. In the default case it is 160,000, but the answer is 400 units. Reporting 160,000 units is a classic slip that an order-of-magnitude check would catch immediately.
Including the purchase price in the ordering cost
S should capture costs that occur because an order is placed, not the invoice value of the goods. Adding the unit price inflates S and pushes the calculated order size upward without any real saving.
Assuming the answer is exact under real conditions
The plain model ignores discounts, lead times, stockouts and capacity limits. A supplier offering a quantity break can make a larger order cheaper than the textbook answer. Always compare the practical options before committing to a single figure.
Confusing doubled demand with doubled order size
Because of the square root, doubling demand from 12,000 to 24,000 raises the optimum only from 400 to about 565.685, not to 800. Believing the relationship is linear leads to systematically oversized orders.
FAQ
What does the economic order quantity actually minimise?
It minimises the sum of annual ordering cost and annual holding cost, often called the total relevant cost. It does not minimise the purchase price of the goods or the total cost of every inventory activity. At the optimum in the default case, ordering cost and holding cost are each 1,800, giving 3,600 in total.
How is a holding cost per unit estimated?
Most organisations express it as a percentage of the item's value, covering capital, storage, insurance, handling and obsolescence. An item worth 60 with a 15 per cent annual carrying rate has an H of 9 per unit per year. If the rate is monthly, multiply it by twelve before using the formula.
Why does the formula contain a square root?
Annual ordering cost falls as Q rises, while annual holding cost rises with Q. Balancing the two by differentiation gives Q squared equals 2DS over H, so the solution is the positive square root. This also explains why large changes in demand produce only modest changes in the best order size.
What happens to EOQ if demand doubles?
It is multiplied by the square root of two, about 1.414. With the default inputs, annual demand of 12,000 gives 400 units, while 24,000 gives about 565.685 units. The same factor applies if the cost per order doubles instead, because both appear in the numerator.
Can I round the calculated figure?
Yes. The total cost curve is shallow around its minimum, so ordering 560 or 570 rather than 565.685 units changes the annual cost only slightly. Rounding to a full carton, pack size or pallet is normally sensible and easier for the warehouse to manage.
When should I not use this model?
Avoid relying on it for seasonal goods, short shelf-life products, uncertain demand or suppliers with quantity discounts and long, variable lead times. It also assumes instantaneous replenishment and no stockouts. Use it as a teaching benchmark and a starting point, then adapt it to the realities of your supply chain.
References
- [1], Economic order quantity — https://en.wikipedia.org/wiki/Economic_order_quantity
- [2], Inventory — https://en.wikipedia.org/wiki/Inventory
- [3], Inventory control — https://en.wikipedia.org/wiki/Inventory_control
