# Economic Order Quantity (EOQ) Calculator

Find the optimal order quantity that minimizes total inventory holding costs and ordering costs for smarter, more efficient purchasing.

---

- **Canonical URL:** https://dothecalculation.com/calculators/eoq-calculator
- **Category:** Business tools
- **Publisher:** Do The Calculation (https://dothecalculation.com)
- **Cost:** Free, no account or sign-up required
- **Privacy:** Runs entirely in the browser; inputs are never sent to a server
- **Methodology:** https://dothecalculation.com/methodology

---

## Economic Order Quantity (EOQ) Calculator

Find the ideal order quantity that minimizes the total costs of inventory management, balancing ordering and holding costs.

- Minimize total inventory costs
- Balance ordering vs. holding expenses
- Optimize order frequency

## Mastering Economic Order Quantity (EOQ)

The Economic Order Quantity (EOQ) is a cornerstone formula in inventory management and supply chain logistics. It calculates the ideal order quantity a company should purchase to minimize inventory costs such as holding costs, shortage costs, and order costs. The primary goal of the EOQ model is to ensure that the right amount of inventory is ordered per batch so a company does not have to make orders too frequently and there is not an excess of inventory sitting on hand.

Inventory costs generally fall into two opposing categories: ordering costs and holding costs. Ordering costs are expenses incurred to create and process an order to a supplier (e.g., administrative time, shipping fees, setup costs). These costs decrease per unit as the order size increases because you order less frequently. Holding costs (or carrying costs) are expenses associated with storing unsold inventory (e.g., warehousing rent, insurance, depreciation, opportunity cost of capital). These costs increase as the order size increases because you have more inventory sitting idle. EOQ finds the exact point where the sum of these two costs is at its absolute minimum.

The EOQ formula assumes a constant and known demand rate, constant ordering costs, and constant holding costs. While real-world scenarios are rarely this perfect, EOQ provides a critical baseline for purchasing decisions. It prevents the common pitfalls of ordering in tiny batches (which drives up administrative and shipping costs) or ordering massive bulk quantities (which ties up cash and warehouse space).

Implementing EOQ can have a profound impact on a company’s working capital. By optimizing the order size, businesses free up cash that would otherwise be trapped in excess inventory, while simultaneously ensuring they have enough stock to meet customer demand without incurring excessive shipping or setup fees. It is a vital tool for maximizing profitability in retail, manufacturing, and distribution.

## Mathematical Formulation of the EOQ Model

The Economic Order Quantity formula is mathematically expressed as: EOQ = √ [(2 * D * S) / H]. Let’s define these variables. 'D' represents the Annual Demand quantity of the product (in units). 'S' represents the Fixed Cost per Order (setup cost). 'H' represents the Annual Holding Cost per Unit. The result is the optimal number of units to order each time an order is placed.

Let’s walk through a practical example. "Bicycle Parts Co." sells 10,000 units of a specific gear annually (D = 10,000). Every time they place an order with their manufacturer, it costs them $50 in administrative and processing fees (S = $50). It costs them $2.50 per year to store one unit of this gear in their warehouse (H = $2.50). We plug these into the formula: EOQ = √ [(2 * 10,000 * 50) / 2.5]. This simplifies to EOQ = √ [1,000,000 / 2.5] = √ 400,000. The square root of 400,000 is approximately 632. Therefore, Bicycle Parts Co. should order about 632 gears every time they place an order.

Once the EOQ is known, a business can calculate other useful metrics. The Number of Orders per Year = Annual Demand (D) / EOQ. For Bicycle Parts Co., this is 10,000 / 632 ≈ 15.8 orders per year. The Order Cycle Time (time between orders) = 365 days / Number of Orders per Year, which is 365 / 15.8 ≈ 23 days. This tells the company they should order about 632 units roughly every 23 days to minimize their total inventory costs.

We can also verify that EOQ minimizes total costs. Total Annual Cost = Total Ordering Cost + Total Holding Cost. Total Ordering Cost = (D / EOQ) * S. Total Holding Cost = (EOQ / 2) * H. Using our example: Ordering Cost = (10,000 / 632) * 50 ≈ $791. Holding Cost = (632 / 2) * 2.5 ≈ $791. Total Cost ≈ $1,581. Notice that at the EOQ point, the total annual ordering cost equals the total annual holding cost almost exactly — that equality is what confirms 632 units is the true minimum-cost order size, not just a round number.

## Strategic Application and Model Limitations

While the EOQ formula is powerful, it is based on several assumptions that must be managed strategically. It assumes demand is constant and predictable, which is rarely true for seasonal products or items with erratic sales trends. If demand fluctuates heavily, relying strictly on EOQ can lead to stockouts during peak periods or excess inventory during slow periods. Businesses often modify EOQ with a "safety stock" buffer to mitigate the risk of fluctuating demand.

Another limitation is the assumption of constant purchase prices. The basic EOQ formula does not account for quantity discounts. A supplier might offer a 10% discount if you order 1,000 units, even if your EOQ is 632. In this scenario, the business must calculate the total cost at the EOQ versus the total cost at the discount quantity (factoring in the lower purchase price against the higher holding costs) to determine which is truly the most economical decision.

In modern supply chains, technology helps overcome these limitations. Advanced ERP and inventory management systems run dynamic EOQ calculations. They can recalculate the optimal order quantity daily based on moving averages of demand, adjusted holding costs (perhaps factoring in current interest rates for the cost of capital), and updated supplier ordering costs. This shifts EOQ from a static annual calculation to a dynamic tool for continuous optimization.

Finally, EOQ is highly sensitive to accurate cost estimation. If a company underestimates its holding costs (by ignoring the opportunity cost of capital or the risk of obsolescence), the EOQ will be artificially high, leading to over-ordering. Conversely, underestimating ordering costs leads to ordering too frequently. Therefore, the strategic value of EOQ relies entirely on the rigorous and accurate accounting of the S and H variables in the formula.

## How to Use This Calculator

Enter your annual demand in units, the fixed cost incurred each time you place an order, and the annual cost to hold one unit in inventory.

The calculator plugs these into the EOQ formula to return the optimal order size, then derives how many orders you'd place per year and the total annual cost (ordering plus holding) at that quantity.

## Related Calculators

Once you know your ideal order size, check whether you're holding a costly buffer above it with the [inventory carrying cost calculator](/calculators/inventory-carrying-cost-calculator) and the [safety stock calculator](/calculators/safety-stock-calculator), or see how quickly that inventory turns with the [inventory turnover calculator](/calculators/inventory-turnover-calculator).

## Frequently asked questions

### What is Economic Order Quantity (EOQ)?

EOQ is the ideal order quantity a company should purchase to minimize its total inventory costs, which include holding costs, ordering costs, and shortage costs.

### What is the formula for EOQ?

The formula is the square root of [(2 * Annual Demand * Order Cost) / Annual Holding Cost per Unit].

### What are ordering costs?

Ordering costs are the expenses incurred every time an order is placed, regardless of the size. This includes administrative time, processing, communication, and sometimes flat shipping fees.

### What are holding (or carrying) costs?

Holding costs are the costs of storing unsold inventory. This includes warehouse space, insurance, security, depreciation, obsolescence risk, and the opportunity cost of the capital tied up in the inventory.

### What happens if I order less than the EOQ?

If you order less than the EOQ, your holding costs will decrease, but you will have to place orders more frequently, causing your total annual ordering costs to rise higher than the savings, increasing total costs.

### What happens if I order more than the EOQ?

If you order more than the EOQ, your ordering costs will decrease (fewer orders per year), but you will hold more inventory, causing your holding costs to rise higher than the savings, increasing total costs.

### Does EOQ account for seasonal demand?

No, the basic EOQ model assumes a constant, steady demand rate throughout the year. For highly seasonal items, the formula must be adapted or calculated for specific seasons.

### How do quantity discounts affect EOQ?

The standard EOQ does not factor in volume discounts. If a supplier offers a discount for ordering a quantity larger than the EOQ, you must calculate if the price savings outweigh the increased holding costs.

### Is EOQ still relevant with Just-In-Time (JIT) inventory?

JIT aims to reduce holding costs to near zero, which inherently drives order sizes down (approaching an EOQ of 1). However, EOQ principles still apply to determine the feasibility and true cost of implementing JIT.

### How do I calculate the holding cost per unit?

Holding cost is often expressed as a percentage of the inventory value. If capital costs 10% and warehousing/insurance costs 5%, the holding cost is 15% of the unit cost.

### What is the relationship between ordering and holding costs at the EOQ?

At the exact Economic Order Quantity, total annual ordering costs will equal total annual holding costs. This intersection is the point of minimum total cost.

### Why is accurate data critical for EOQ?

If your estimates for demand, ordering costs, or holding costs are inaccurate, the resulting EOQ will not minimize your costs and could lead to significant operational inefficiencies.

## Related guides

- [Understanding Calculator Formulas: How DTC Turns Inputs into Results](https://dothecalculation.com/blog/site-guides/understanding-calculator-formulas) — Understand how Do The Calculation formulas are presented, what the explanation blocks mean, and how to verify calculator logic before using a result in a real decision.

## Related calculators

- [Inventory Carrying Cost & Storage Optimization Calculator](https://dothecalculation.com/calculators/inventory-carrying-cost-calculator) — Calculate total inventory holding costs as a percentage of value and optimize reorder points to reduce storage expenses and free up cash.
- [Cost of Goods Sold (COGS) Calculator](https://dothecalculation.com/calculators/cogs-calculator) — Calculate cost of goods sold using beginning and ending inventory plus direct costs for accurate accounting and profitability reporting.
- [Cash Conversion Cycle (CCC) Calculator](https://dothecalculation.com/calculators/cash-conversion-cycle-calculator) — Calculate DIO, DSO, and DPO to see the days it takes to convert inventory investments into cash flow and improve working capital.
- [Cohort Customer Lifetime Value (LTV) Calculator](https://dothecalculation.com/calculators/customer-lifetime-value-detailed-calculator) — Model customer lifetime value using discount rate, average order value, purchase frequency, and retention rate for cohort-based forecasting.
- [Interchange Plus Pricing Calculator](https://dothecalculation.com/calculators/interchange-plus-calculator) — Calculate true merchant account processing costs and effective rates under interchange plus pricing to compare card payment fees accurately.
- [Safety Stock Calculator](https://dothecalculation.com/calculators/safety-stock-calculator) — Calculate the optimal safety stock level needed to prevent stockouts based on lead time variability and fluctuating customer demand.

---

_This calculator is for educational and business planning purposes only. Verify all rates, margins, and contract terms before making operational business decisions._

---

_Source: [Do The Calculation](https://dothecalculation.com/calculators/eoq-calculator). Quote freely with attribution and a link to this page._
