b2KIT

Economic Order Quantity (EOQ) Calculator

Calculate optimal order quantity to minimize total inventory costs with holding costs, ordering costs, and demand rate inputs.

Tested tool guide Tested browser tools Checked August 16, 2026

What Economic Order Quantity (EOQ) Calculator does, with a checked example

Enter demand, the fixed cost of placing an order, and the cost of holding one unit for the same time period. The Economic Order Quantity Calculator estimates the replenishment quantity that minimizes the combined ordering and cycle-stock holding costs under the standard EOQ assumptions. A frequent error is supplying a holding-cost percentage directly. It must first be converted to a currency amount per unit per period, such as dollars per unit per year.

Worked example

A concrete input and expected output from the current implementation.

Input

Annual demand: 800 units
Ordering cost: $25 per order
Holding cost: $4 per unit per year

Expected output

Economic order quantity: 100 units

EOQ = sqrt((2 x 800 x 25) / 4) = sqrt(10000) = 100. This produces 8 orders per year, with $200 in annual ordering cost and $200 in annual cycle-stock holding cost.

How the result is produced

1

EOQ formula

The calculation is Q = sqrt((2 x D x S) / H), where D is demand per period, S is the fixed cost of placing one order, and H is holding cost per unit for that same period. Because the inputs appear under a square root, doubling demand or ordering cost does not double the suggested order quantity.

2

Cost balance

For an order quantity Q, expected orders per period are D / Q and average cycle stock is Q / 2. Ordering cost is therefore (D / Q) x S, while holding cost is (Q / 2) x H. At the unrounded EOQ, these two cost components are equal, and their sum is minimized.

Good uses

  • Choosing a standard replenishment quantity for a steadily consumed warehouse item.
  • Comparing current purchasing batch sizes with the cost-minimizing EOQ for a raw material.
  • Testing how changes in supplier order fees or storage costs affect an inventory policy.

Limits and checks

  • Demand and per-unit holding cost must use the same period, such as a year; ordering cost is specified per order.
  • The basic result assumes steady demand, immediate replenishment, and no shortages; it does not determine safety stock or a reorder point.
  • A single EOQ does not account for quantity discounts, minimum-order rules, case packs, storage limits, or varying unit prices.

Common questions

Should the item's purchase price be included?

Not when the unit price stays constant at every order quantity. That purchase cost is the same in the basic comparison and does not change the EOQ. Price still matters if holding cost is expressed as a percentage of item value. If suppliers offer quantity discounts, compare the total cost at each feasible price tier separately.

Can I round the EOQ to whole units or cases?

Yes. EOQ is a continuous mathematical result, while actual orders may require whole units, cartons, pallets, or supplier minimums. Check the feasible quantities immediately below and above the result and compare their ordering and holding costs. The rounded value closest to EOQ is often suitable, but pack sizes or price breaks can change the choice.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools