SC
AshToolbox Supply Chain Inventory & Operations Suite
Intermediate Category: Inventory Optimization • ~7 min read

Economic Order Quantity (EOQ & EPQ) Engine

Calculate optimal lot sizes, production batch runs, planned backorders, and all-units/incremental price breaks with robustness analysis.

Client-Side Privacy Guarantee

All inventory figures, SKU demand matrices, cost parameters, and trade data entered are processed strictly in your local browser and are never uploaded, logged, or tracked.

Q:

What is Economic Order Quantity (EOQ) and how does it optimize replenishment batch sizes?

The Economic Order Quantity (EOQ) formula calculates the exact purchase batch size Q* that balances fixed ordering setup costs against annual inventory carrying costs. Ordering in larger batches reduces order frequency and setup fees but inflates warehouse holding costs; EOQ identifies the exact minimum point of this total cost curve (Q* = √(2DS / H)).

Your data never leaves your browser (100% client-side)

Parameters

Scenario Manager (0/5)
Optimal Batch Q*
707
Units / Pcs per order
Orders / Year
14.14
replenishments
Cycle Time
17.7
working days
Total Annual Cost
$101,414
incl. purchase

Managerial Recommendation

Basic EOQ balance achieved.

Annual Cost Breakdown

Ordering / Setup$707
Holding / Storage$707
Annual Purchase$100,000
Peak Stock (Imax)707 Units / Pcs

EOQ Flatness & Robustness AnalysisCost penalty for lot-size deviations

Order Size DeviationActual Q (Units / Pcs)Total Annual CostCost Penalty (%)
-50%354$101,768+0.35%
-30%495$101,505+0.09%
-20%566$101,450+0.03%
-10%636$101,422+0.01%
0%707$101,414Optimum (0.00%)
+10%778$101,421+0.01%
+20%848$101,438+0.02%
+30%919$101,463+0.05%
+50%1,061$101,532+0.12%

One-Way Sensitivity Analysis (Tornado Chart)

Impact on Total Annual Cost when inputs swing between low and high limits while holding other factors constant.

Annual Demand (D ±20%)81,265 → 121,549 (Δ 40,284)
Unit Purchase Cost (C ±20%)81,265 → 121,549 (Δ 40,284)
Order Setup Cost (S ±20%)101,265 → 101,549 (Δ 284)
Cross-Tool Workflow: Send Results to...

Seamlessly pipe calculated figures from this tool into the next phase of your supply chain workflow (zero server upload).

The Mathematical Foundation of Lot Sizing

Originally developed by Ford Whitman Harris in 1913 and popularized by R. H. Wilson, the Economic Order Quantity (EOQ) model remains the foundational pillar of modern inventory control, material requirements planning (MRP), and warehouse optimization. At its core, the model resolves a fundamental commercial conflict:

  • Ordering Costs (S): Every purchase order triggers administrative labor, requisition processing, invoice reconciliation, shipping dock receiving, and inbound inspection. To minimize annual ordering overhead, purchasing agents naturally favor placing massive, infrequent orders.
  • Inventory Holding Costs (H): Storing surplus stock consumes capital interest, insurance premiums, warehouse footprint leasing, climate control energy, security, obsolescence risk, and shrinkage. To minimize holding overhead, warehouse supervisors prefer ordering in lean, frequent micro-batches.

By formulating Total Relevant Annual Cost (TC) as a function of lot size Q:

TC(Q) = (D / Q) × S + (Q / 2) × H + D × C

Taking the first derivative with respect to Q, setting it to zero (first-order condition for unconstrained optimization), and solving yields the classic square-root formula:

dTC/dQ = -DS/Q² + H/2 = 0 ⇒ Q* = √(2DS / H)

Because the second derivative d²TC/dQ² = 2DS/Q³ > 0 for all positive Q, the cost function is strictly convex, guaranteeing that Q* is a global minimum.

Advanced Models: EPQ, Backorders & Price Breaks

While the textbook EOQ assumes instantaneous replenishment, real-world manufacturing and wholesale procurement require specialized adjustments:

1. Economic Production Quantity (EPQ / Non-Instantaneous Receipt)

When an item is produced internally on a production line or delivered continuously over time at daily rate P, units are consumed simultaneously at demand rate D (P > D). As a result, the maximum warehouse inventory accumulation never reaches batch size Q, but rather peaks at I_max = Q × (1 - D/P). This dampens holding cost, yielding a larger production run size:

Q_EPQ* = √[ (2DS) / (H × (1 - D/P)) ]

2. Quantity Discount Decision Algorithm

Suppliers frequently offer volume price breaks. Because unit price C decreases at higher tiers, total purchase cost D × C must be included in the comparison. The step-by-step algorithm executed by our engine is:

  1. Calculate raw EOQ for each price tier using that tier's holding cost H_j = i × C_j.
  2. Check feasibility: If raw EOQ falls within the tier's range [Q_min, Q_max], it is feasible. If raw EOQ is below Q_min, round up to Q_min. If raw EOQ exceeds Q_max, the tier is infeasible.
  3. Compute Total Annual Cost TC(Q) = (D/Q)S + (Q/2)H_j + D × C_j for each feasible Q.
  4. Select the batch size yielding the absolute lowest total annual cost.

Worked Numerical Example

Industrial Pump Assembly Component:

Annual Demand (D): 10,000 units
Order Setup Cost (S): $50.00 / order
Unit Purchase Cost (C): $10.00 / unit
Holding Rate (i): 20% / year (H = 0.20 × 10 = $2.00 / unit / year)
Working Days: 250 days / year
Q* = sqrt((2 × 10,000 × 50) / 2.00) = sqrt(500,000) = 707.11 ≈ 707 units
Orders per Year = 10,000 / 707 ≈ 14.14 orders/yr
Cycle Time = (707 / 10,000) × 250 = 17.7 working days
Annual Ordering Cost = 14.14 × $50 = $707.10
Annual Holding Cost = (707 / 2) × $2.00 = $707.00
Annual Purchase Cost = 10,000 × $10.00 = $100,000.00
Total Annual Cost = $707.10 + $707.00 + $100,000 = $101,414.10

Notice that at the exact economic optimum, Annual Ordering Cost ($707.10) virtually equals Annual Holding Cost ($707.00). This parity is an inherent mathematical property of the classic EOQ model.

The Robustness of EOQ: Why Being "Close Enough" Works

One of the most valuable insights in operations research is the flatness of the EOQ total cost curve around Q*. Even if actual batch size deviates significantly from Q*, the percentage cost penalty is surprisingly minimal. Analytically, if actual lot size is Q = k × Q*, the ratio of total relevant costs is:

TC(k Q*) / TC(Q*) = 0.5 × (k + 1/k)

For instance, ordering 20% too much (k = 1.20) or 20% too little (k = 0.80) results in a mere 1.67% penalty in total inventory management costs. This mathematical robustness allows procurement teams to round batch sizes to full carton quantities, pallet multiples, or container loads without financial ruin.

Frequently Asked Questions (Answer-First)

How does holding cost rate (i) differ from absolute holding cost (H)?

Holding cost rate (i) is an annual percentage (typically 15% to 35%) reflecting capital interest, storage overhead, insurance, and obsolescence. Absolute holding cost (H) is the dollar cost to hold one unit for one year, calculated as H = i × C, where C is unit purchase cost.

Why is production rate P required to be greater than demand D in EPQ?

In the Economic Production Quantity model, if production rate P ≤ D, manufacturing output cannot keep up with customer consumption. The production line would have to run continuously without ever accumulating cycle inventory, rendering batch sizing irrelevant.

What is the difference between all-units and incremental quantity discounts?

All-units discounts apply the lower price to every single item in the order once the qualification threshold is met. Incremental discounts apply the discounted rate only to units purchased beyond the break threshold, leaving previous units at their standard tier prices.

How does shelf-life limit the Economic Order Quantity?

For perishable goods or chemicals with expiration dates, maximum order quantity is capped by Q_max = (ShelfLifeDays / WorkingDays) × D. If the unconstrained EOQ exceeds this limit, items will spoil before consumption; thus, the batch size must be truncated to Q_max.

Can EOQ be used for unpredictable or seasonal demand?

Classic EOQ assumes constant, deterministic demand. For highly seasonal or erratic demand, dynamic lot-sizing algorithms like the Wagner-Whitin algorithm, Silver-Meal heuristic, or Part-Period Balancing are mathematically superior to static EOQ.

!
Supply Chain Engineering Disclaimer: These models are intended for analytical planning, operational research, and scenario evaluation. Customs tariffs, tax regulations, and freight rates are user-supplied estimates and do not constitute legal customs clearance filings. AshToolbox is not affiliated with, sponsored by, or endorsed by APICS, ASCM, CSCMP, or the ICC.

Recommended Next Steps in Supply Chain Workflow