StatGardenREF. DESK
Calculators/Finance/Economic Order Quantity (EOQ)
Finance

Economic Order Quantity (EOQ) calculator

Order size that minimises combined ordering and holding costs for inventory.

Published 9 August 2026 · Updated 22 September 2026

What this calculator does

Ordering in large batches means fewer orders but more stock sitting in the warehouse. Ordering in small batches means less stock but more orders to place. The economic order quantity is the size that balances the two.

At that balance point, annual ordering cost and annual holding cost are exactly equal. Ordering 671 units at a time gives $1,341.64 of each, and that equality is not a coincidence: it is the mathematical signature of the optimum.

The formula

FormulaEOQ = √(2·D·S / H), where D = annual demand, S = cost per order, H = annual holding cost per unit

The optimal quantity is the square root of twice the annual demand times the cost per order, divided by the annual holding cost per unit. Annual demand divided by that quantity gives the number of orders.

TermMeaning
Economic order quantityThe order size that minimises total inventory cost.
Ordering costThe fixed cost of placing an order, regardless of its size.
Holding costThe annual cost of keeping one unit in stock, including capital, storage and obsolescence.

The inputs explained

FieldWhat to enter
Annual demand (units)Annual demand in units.
Cost per order ($)The fixed cost of placing one order, regardless of quantity.
Annual holding cost per unit ($)The cost of holding one unit in stock for a year.

When to use it

Setting a reorder quantity

The optimal batch size follows directly from demand and the two cost figures.

Justifying a change in ordering frequency

The total cost curve shows what moving away from the optimum actually costs.

Assessing a bulk discount

A supplier discount for larger orders has to beat the extra holding cost it creates.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How does the ordering cost change the batch size?

Three levels of cost per order.

12,000 units annual demand, $4 holding cost per unit
Cost per orderEconomic order quantityTotal annual inventory cost
$25387 units$1,549.19
$75671 units$2,683.28
$2001,095 units$4,381.78
At $25 per order the optimal batch is 387 units, ordered about 31 times a year. At $200 per order it rises to 1,095 units. In every row the annual ordering cost exactly equals the annual holding cost, which is what identifies the optimum.

Questions

Why are ordering and holding costs equal at the optimum?

Because the total cost curve is minimised where the two opposing costs balance. Ordering more often raises one and lowers the other, and the lowest total occurs precisely where they meet.

What assumptions does EOQ make?

Constant demand, instant replenishment, no stockouts, and costs that do not change with order size. Real supply chains violate all of these, which is why EOQ is a starting point rather than a rule.

How sensitive is the answer?

Not very, which is the model's most useful property. The cost curve is flat near the optimum, so ordering 20 per cent above or below the ideal quantity raises total cost by only about 2 per cent.

What about bulk discounts?

They break the basic model, since the unit price is no longer constant. The usual approach is to calculate total cost at the EOQ and at each discount break point, then choose whichever is cheapest overall.

For how fast stock moves, see the turnover ratios calculator. For the cash tied up in that stock, see the cash conversion cycle calculator.