EOQ Calculator: Economic Order Quantity, Discounts and EPQ
By FindMySum · Last reviewed
This EOQ calculator finds the economic order quantity: the order size that keeps the combined yearly cost of placing orders and holding stock as low as possible. Enter annual demand, the cost per order and the holding cost (as a percentage of the unit cost or in dollars), and it shows the EOQ, how many orders that means a year and how often, the annual ordering and holding costs, and a chart of how total cost changes with order size. It can also check quantity discounts and switch to the economic production quantity (EPQ) for items you make yourself.
Worked example
The calculator opens with a business that sells 12,000 units a year, spends $50 to place and receive each order, pays $10 a unit and carries stock at 20% of its value a year.
- Holding cost per unit. H = 20% × $10 = $2 a unit a year.
- EOQ. √(2 × 12,000 × $50 ÷ $2) = √600,000 ≈ 774.6 units.
- Orders a year. 12,000 ÷ 774.6 ≈ 15.5 orders, or one every 16.1 working days over 250 days.
- Costs. Ordering 15.49 × $50 = $774.60 and holding 774.6 ÷ 2 × $2 = $774.60, a total of $1,549.19 a year. The purchases themselves add $120,000.
Ordering 1,000 at a time instead would cost $600 in ordering and $1,000 in holding, $1,600 in total, only $51 more: the cost curve is flat near the EOQ, so rounding to a convenient case or pallet size costs little.
The trade-off behind the formula
Every inventory decision balances two costs. Placing orders has a fixed cost each time: purchasing time, paperwork, freight minimums and receiving. Holding stock has a cost that grows with how much sits on the shelf: money tied up, space, insurance, shrinkage and obsolescence. Large, infrequent orders save on the first and spend on the second; small, frequent orders do the opposite.
If demand is steady and each order arrives all at once, stock falls in a sawtooth from Q to zero, so the average on hand is Q ÷ 2. Annual ordering cost is (D ÷ Q) × S and annual holding cost is (Q ÷ 2) × H. Adding them and finding the minimum gives Ford Harris's 1913 result, EOQ = √(2DS ÷ H). The square root explains a useful rule of thumb: doubling demand raises the best order size by only about 41%, and cutting the ordering cost by three-quarters halves it.
Quantity discounts
Suppliers often charge less per unit for larger orders. With all-units discounts, where the whole order gets the lower price, the cheapest plan may be to order more than the EOQ. The calculator follows the textbook method: for each price break it works out the EOQ at that price, raises it to the break's minimum quantity if it falls below, rejects prices whose EOQ is above their range, then compares the total annual cost including the purchase price. In Heizer and Render's example of 5,000 units a year with a $49 order cost and a 20% carrying rate, buying 1,000 at a time at $4.80 costs $24,725 a year, less than ordering the EOQ of 700 at $5.00 ($25,700) or 2,000 at $4.75 ($24,822.50).
Economic production quantity
When a business makes the item itself, stock builds up gradually while production runs and is used at the same time, so it never reaches the full batch size. With production rate p and demand rate d, the peak is Q × (1 − d ÷ p), and the best batch is EPQ = √(2DS ÷ (H × (1 − d ÷ p))), where S is now the setup cost of a run. Making 8 units a day while using 4, with a $10 setup and $0.50 holding cost and 1,000 units a year, gives a batch of about 283 units.
Using the result
EOQ answers "how much"; it doesn't answer "when". Combine it with a reorder point (daily demand × lead time, plus safety stock), which the lead-time calculator works out. Revisit the numbers when demand, prices or costs change, and treat the result as a guide: the model assumes steady, known demand and no stockouts, which real businesses only approximate.
More questions
Who came up with the EOQ formula?
Ford W. Harris, an engineer at Westinghouse, published it in 1913 in an article titled "How many parts to make at once". It was later popularised by the consultant R. H. Wilson, so it is sometimes called the Wilson formula.
Is EOQ still used with just-in-time inventory?
Yes, as a way of thinking. Just-in-time systems cut the ordering or setup cost S, through supplier partnerships, electronic ordering and quick changeovers, and the EOQ formula shows why that matters: when S falls, the best order size falls with its square root, so small, frequent deliveries become economical.
What if my demand is seasonal?
The basic EOQ assumes steady demand. For seasonal items, calculate an EOQ for each season with that season's demand rate expressed per year, or use a lot-sizing method such as Wagner-Whitin or period order quantity that works period by period.
How do I estimate my carrying rate?
Add the cost of capital (your borrowing rate or required return), storage and handling as a share of inventory value, insurance and taxes, and losses from damage, theft and obsolescence. Many businesses land between 15% and 30% a year; fast-obsolescing goods like electronics or fashion can be much higher.
Why are ordering and holding costs equal at the EOQ?
Annual ordering cost DS/Q falls as Q grows and annual holding cost QH/2 rises in a straight line. The total is lowest where the slope of one cancels the other, and for these two particular curves that point is exactly where they cross. Solving DS/Q = QH/2 gives the EOQ formula directly.
Sources
- Harris, F. W. How Many Parts to Make at Once. Factory, The Magazine of Management 10(2), 1913 (reprinted in Operations Research 38(6), 1990)
- Heizer, Render and Munson, Operations Management: Sustainability and Supply Chain Management, ch. 12 Inventory Management (Pearson)
- Chartered Institute of Procurement & Supply: Economic order quantity (EOQ)
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.