In supply chain engineering and operations management, inventory is a double-edged sword. Maintain too little inventory, and you risk stockouts, production bottlenecks, and disgruntled customers. Accumulate too much, and your capital becomes tied up in warehousing costs, insurance, depreciation, and obsolescence.

To resolve this trade-off, industrial engineers and logistics professionals rely on a foundational mathematical model: Economic Order Quantity (EOQ). First developed by Ford W. Harris in 1913, the EOQ formula provides a systematic approach to identifying the optimal order size that minimizes total inventory costs.

In this technical guide, we will break down the mathematics of the EOQ model, derive its formula, walk through a practical engineering example, and demonstrate how you can instantly solve these equations using the free DigiCalcs Inventory EOQ Calculator.


The Mathematics of Inventory Control

To understand the EOQ model, we must first analyze the two primary competing costs in inventory management: Ordering Costs and Holding Costs.

1. Ordering Costs ($S$)

Ordering costs (or setup costs) are incurred every time you place an order with a supplier. These costs are independent of the order size ($Q$) and include:

  • Administrative labor for purchase order creation.
  • Shipping, handling, and freight fees.
  • Quality inspection and receiving labor.

If your annual demand is $D$ and you order in batches of size $Q$, the number of orders placed per year is $\frac{D}{Q}$. Therefore, the total annual ordering cost is:

$$\text{Annual Ordering Cost} = \frac{D}{Q} \times S$$

2. Holding Costs ($H$)

Holding costs (or carrying costs) represent the expense of storing unsold inventory over a given period. These are typically expressed per unit, per year ($H$), and include:

  • Warehousing rent and utilities.
  • Insurance and security.
  • Opportunity cost of capital tied up in inventory.
  • Material degradation, shrinkage, or obsolescence.

Assuming inventory is depleted at a constant rate and replenished instantaneously, your average inventory level is $\frac{Q}{2}$. Thus, the annual holding cost is:

$$\text{Annual Holding Cost} = \frac{Q}{2} \times H$$

Sometimes, holding cost is expressed as a percentage ($i$) of the unit cost ($C$), where $H = i \times C$.

The Total Cost Curve

The total annual inventory cost ($TC$) is the sum of these two components:

$$TC = \left(\frac{D}{Q} \times S\right) + \left(\frac{Q}{2} \times H\right)$$

If you plot this equation with $TC$ on the y-axis and $Q$ on the x-axis, you get a U-shaped curve. The minimum point of this curve represents the Economic Order Quantity (EOQ)—the exact point where holding costs equal ordering costs.


Deriving the EOQ Formula

For engineers and analytical professionals, seeing the derivation of the EOQ formula provides critical context. To find the order quantity $Q$ that minimizes the total cost function $TC$, we take the first derivative of $TC$ with respect to $Q$, set it to zero, and solve for $Q$.

Given: $$TC = \frac{DS}{Q} + \frac{QH}{2}$$

Find the first derivative: $$\frac{d(TC)}{dQ} = -\frac{DS}{Q^2} + \frac{H}{2}$$

Set the derivative to zero to find the local minimum: $$-\frac{DS}{Q^2} + \frac{H}{2} = 0$$

$$\frac{H}{2} = \frac{DS}{Q^2}$$

Multiply both sides by $Q^2$: $$Q^2 \times \frac{H}{2} = DS$$

Solve for $Q^2$: $$Q^2 = \frac{2DS}{H}$$

Taking the square root yields the classical EOQ formula:

$$EOQ = \sqrt{\frac{2DS}{H}}$$


Practical Example: Microcontroller Procurement

Let's apply this mathematical framework to a real-world engineering scenario. Imagine you are an operations manager at an embedded systems manufacturing plant.

Step 1: Identify the Parameters

  • Annual Demand ($D$): Your production line requires 12,000 microcontrollers per year.
  • Ordering Cost ($S$): Every time you place an order, the freight, customs clearance, and administrative processing cost a flat fee of $50.00.
  • Holding Cost ($H$): Due to climate-controlled cleanroom storage requirements and capital costs, storing one microcontroller for a year costs $2.40.

Step 2: Calculate the EOQ

Using the EOQ formula:

$$EOQ = \sqrt{\frac{2 \times 12,000 \times 50}{2.40}}$$

$$EOQ = \sqrt{\frac{1,200,000}{2.40}}$$

$$EOQ = \sqrt{500,000}$$

$$EOQ \approx 707.11 \text{ units}$$

Rounding to the nearest whole integer, your optimal order size is 707 units.

Step 3: Analyze the Total Cost

Let's calculate the total cost at this optimal quantity to see why it is efficient:

  • Annual Orders: $12,000 / 707 \approx 16.97$ orders per year.
  • Annual Ordering Cost: $16.97 \times $50 = $848.50$
  • Annual Holding Cost: $(707 / 2) \times $2.40 = $848.40$
  • Total Cost: $$848.50 + $848.40 = $1,696.90$

Notice how the annual ordering cost and annual holding cost are almost perfectly balanced. If you ordered 1,500 units at a time instead, your holding costs would skyrocket to $1,800, bringing your total cost to $2,200. By utilizing the EOQ, you save hundreds of dollars per year on this single component alone.


Assumptions and Limitations of the EOQ Model

While the classical EOQ model is an incredibly powerful tool, it operates under several mathematical assumptions that may not always hold true in complex supply chains:

  1. Constant Demand: The model assumes demand is uniform throughout the year. If your product is highly seasonal, you may need dynamic inventory models.
  2. Constant Lead Time: It assumes the time between placing an order and receiving it is constant and predictable.
  3. Instantaneous Replenishment: The model assumes the entire order quantity arrives in a single batch, rather than being delivered incrementally over time (for incremental delivery, use the Economic Production Quantity - EPQ model).
  4. No Quantity Discounts: The unit purchase price is assumed to be constant regardless of the order size.

Despite these assumptions, the classical EOQ serves as an excellent baseline calculation. It provides a benchmark from which supply chain engineers can adjust for safety stock and lead times.


Streamline Your Logistics with DigiCalcs

Calculating optimal order sizes manually or setting up custom spreadsheets for hundreds of SKUs is time-consuming and prone to syntax errors.

With the DigiCalcs Inventory EOQ Calculator, you can run these calculations in seconds. Simply input your annual demand, ordering cost, and unit holding cost to instantly view:

  • The mathematically optimal order size (EOQ).
  • Your total annual holding and ordering costs.
  • The exact number of orders you should place annually.

Keep your capital working efficiently and your warehouse optimized. Try our free Inventory EOQ Calculator today to eliminate the guesswork from your supply chain operations.