EOQ Calculator (Economic Order Quantity)

Find the order size that minimizes the combined cost of ordering and holding inventory. Get the number of orders per year, time between orders and total annual cost, and optionally test a supplier quantity discount.

Your numbers

Units you expect to use or sell in a year.

Fixed cost of placing and receiving one order: admin, shipping, handling.

Storage, insurance, capital cost and shrinkage for one unit held for a year.

Typical range is 15% to 30% of unit cost per year. Requires a unit cost below.

Optional for the basic EOQ. Needed for total cost with purchases, % holding cost and discounts.

Use 365, or your working days (for example 250) to get the cycle in working days.

Optional quantity-discount check.

Results

Want it built around your own numbers?

Need an inventory model for hundreds of SKUs, with ABC analysis, reorder alerts and dashboards in Excel or Python? I build Excel and Google Sheets models, Python automation and simulations for real businesses.

How it works and the formulas

The EOQ model balances two opposing costs. Ordering large batches means fewer orders (low ordering cost) but more stock on the shelf (high holding cost). Ordering small batches does the opposite. The total of the two is lowest where they are equal.

EOQ = √( 2 · D · S / H ) Orders per year = D / EOQ Ordering cost = (D / Q) · S Holding cost = (Q / 2) · H Total annual cost = D·unit cost + ordering + holding Cycle time (days) = EOQ / D × days per year

D is annual demand, S the cost per order, H the holding cost per unit per year and Q the order quantity. If you enter holding cost as a percentage, H = rate × unit cost.

Quantity discounts: because total cost is lowest at the EOQ and rises on both sides, the best quantity for a discount tier is the tier’s own EOQ if it is at least the minimum quantity, otherwise the minimum quantity itself. The calculator compares total annual cost at the normal price against the discounted option, including the extra holding cost of larger orders.

Worked example

A shop sells 1,000 units a year. Each order costs $10 to place and holding one unit costs $0.50 per year. Units cost $12.

  • EOQ = √(2 × 1,000 × 10 / 0.5) = 200 units.
  • Orders per year = 1,000 / 200 = 5, one every 73 days.
  • Ordering cost = 5 × $10 = $50. Holding cost = (200 / 2) × $0.50 = $50. Together $100, with the two halves equal as expected.
  • Total annual cost including purchases: $12,100.

Discount check: with holding cost at 5% of price, a normal price of $10, and a supplier offering $9.50 for orders of at least 500 units, the normal-price total is $10,100.00 per year, while buying 500 at a time costs $9,638.75. The discount is worth taking (saving $461.25 a year).

Frequently asked questions

What is the EOQ formula?

EOQ = square root of (2 × annual demand × ordering cost per order / holding cost per unit per year). It gives the order quantity that minimizes the sum of annual ordering and holding costs.

What counts as ordering cost and holding cost?

Ordering cost is everything that is incurred per order regardless of size: purchasing admin, transport, receiving and inspection. Holding cost is everything incurred per unit stored per year: capital tied up (interest), warehouse space, insurance, obsolescence and damage or theft. Holding cost is commonly 15% to 30% of the item value per year.

What are the assumptions of the EOQ model?

Demand is constant and known, lead time is constant, the whole order arrives at once, there are no stockouts, and costs do not change with order size. Real demand is rarely this steady, so combine EOQ with safety stock, and round the result to practical pack or pallet sizes.

Should I order exactly the EOQ?

Not necessarily. The cost curve is very flat near the minimum: ordering 10% more or less than the EOQ changes total cost by well under 1%. Rounding to case, pallet or container sizes is usually fine.

How do quantity discounts change the answer?

A lower unit price reduces purchase cost but forces larger orders, which raises holding cost. Enter the discount minimum quantity and price in the optional fields and the calculator shows which option has the lower total annual cost.

How do I find when to reorder, not just how much?

EOQ only answers the quantity question. To decide when to place the order, use the reorder point: expected demand during lead time plus safety stock. See the safety stock and reorder point calculator on this site.

Step-by-step guides

More free calculators