Economic Order Quantity (EOQ) Calculator
Find the order size that balances ordering and holding costs under a steady-demand model. Compare it with your current batch size before considering practical constraints.
Jump to calculatorFree to use. Inputs stay in your browser and are not saved or sent anywhere.
Calculate with your figures
The calculator is loading. You can read the worked example while you wait.
Read the worked exampleUse one stock item and keep the unit consistent. Enter the fixed cost of placing one order and the annual holding cost of one unit in the same currency. If you know the holding rate, multiply it by the unit cost first.
Input limits and rounding
Enter numbers without thousands separators. Use a decimal point or the Arabic decimal separator. Arabic and Persian digits are accepted. Annual demand can be zero. Each positive input must be from 1e-12 to 1e15 with up to 24 significant digits. Money usually shows two decimal places. Very large or tiny values use up to 12 significant digits, and whole-unit counts are preserved. The ≈ sign marks rounding.
Formula and method
EOQ = √(2 × annual demand × cost per order ÷ annual holding cost per unit)
Average orders per year = annual demand ÷ order quantity
Average cycle inventory = order quantity ÷ 2
Annual relevant cost = (annual demand ÷ order quantity × cost per order) + (order quantity ÷ 2 × annual holding cost per unit)
Modelled cost reduction = comparison relevant cost − EOQ relevant cost
Worked example
Hypothetical packaging demand is 3,600 units a year. Each order costs 50 to process and each unit costs 4 a year to hold. EOQ is 300 units: 12 orders cost 600 and average inventory of 150 costs 600, giving 1,200 a year. Ordering 600 at a time costs 1,500 on the same basis. The modelled reduction is 300 a year, before constraints or omitted costs.
Compare whole packs of 80
Suppose your supplier sells only in packs of 80. Keep annual demand at 3,600 units, cost per order at 50 and annual holding cost per unit at 4. Enter 240 in Comparison order quantity and calculate. Repeat with 320. Read Annual ordering + holding cost at comparison quantity each time.
Three packs (240 units) cost 1,230 a year: 750 for ordering and 480 for holding. Four packs (320 units) cost 1,202.50: 562.50 for ordering and 640 for holding. The four-pack order costs 27.50 less per year than the three-pack order under the same assumptions. The unconstrained 300-unit result still costs 1,200 in the model.
For order timing and safety stock, see the guide to choosing a practical order size.
Assumptions and limits
- Demand is steady, replenishment arrives as a full batch, and shortages and safety stock are excluded.
- Ordering cost is fixed per order; holding cost is constant per unit per year. Both must be positive. Zero demand returns zero orders, cycle stock and relevant costs.
- This is a continuous, repeating-cycle model. Fractional quantities and orders per year are averages, not a supplier order or a calendar schedule.
- Purchase costs, quantity discounts, capacity limits, minimum orders, pack sizes and changes in supplier terms are excluded. EOQ is not a reorder point.
- Use consistent annual periods and units. A holding percentage must first be converted to a cost per unit per year. Savings are a model comparison, not guaranteed cash savings.
Understand your result
Should I round the EOQ up?
Compare feasible nearby quantities using the comparison field. A whole-unit or pack-size constraint changes the decision; simply rounding up is not always the lowest-cost choice.
Why are purchase costs excluded?
With constant unit prices and the same annual demand, purchase cost is unchanged by batch size. A quantity discount breaks that assumption, so compare the full purchase and inventory costs separately.
Related calculators
If you are deciding whether to make a component or buy it, use the Make-or-Buy Cost Comparison Calculator to compare relevant costs for the same quantity and period. EOQ answers how much to order.