Economic Order Quantity Formula: Batch & Holding
The economic order quantity (EOQ) formula, √(2 × D × S / H), finds the batch size where annual ordering cost equals annual holding cost, minimizing relevant cost.
The economic order quantity (EOQ) formula is EOQ = √(2 × D × S / H), where D is annual demand in units, S is fixed ordering or setup cost per order, and H is annual holding cost per unit. It locates the exact order size where annual ordering cost equals annual holding cost, minimizing total relevant inventory cost.
What is the basic EOQ model and its formula?
The basic EOQ model is a deterministic inventory lot-sizing equation that calculates the single replenishment quantity minimizing combined annual ordering and holding expenses over an infinite horizon with no shortages. Developed by Ford W. Harris in 1913 and later extended in practice by R. H. Wilson and K. Andler, the formula balances fixed transaction costs against ongoing storage and capital charges.
Core variables and first-derivative derivation
In the NC State University Supply Chain Resource Cooperative EOQ tutorial, Total Relevant Cost (TRC) is defined as yearly holding cost plus yearly ordering cost—labeled relevant because both terms change with the order quantity Q. Under constant annual demand D (denoted λ in MIT 2.853/2.854 Introduction to Manufacturing Systems), ordering Q units each cycle produces a cycle duration T = Q / D years and D / Q orders per year.
Because inventory depletes linearly from Q to zero before instantaneous replenishment, average cycle inventory equals Q / 2. Annual ordering cost is therefore (D / Q) × S and annual holding cost is (Q / 2) × H, giving:
TRC(Q) = (D / Q) × S + (Q / 2) × H
Taking the first derivative with respect to Q and setting it equal to zero gives H / 2 − (D × S) / Q² = 0, which rearranges directly to the optimal order quantity:
Q* = √(2 × D × S / H)
Scroll horizontally to see all columns.
| Symbol | Standard Name | Operational Scope | Role in Annual Relevant Cost |
|---|---|---|---|
| D (or λ) | Annual demand | Total units consumed or sold over one year | Drives annual order frequency D / Q |
| S (or K) | Fixed ordering or setup cost | Per-order processing, handling, receiving, or line setup cost | Multiplied by D / Q to yield annual ordering cost |
| H (or h) | Annual holding cost per unit | Yearly storage, capital, insurance, maintenance, and risk cost per unit | Multiplied by average cycle stock Q / 2 |
| Q* (EOQ) | Economic order quantity | Cost-minimizing replenishment lot size in units | Point where annual ordering cost equals annual holding cost |
| T* | Optimal order cycle length | Q* / D expressed in years (or scaled to months or weeks) | Time between consecutive replenishments |
When unit purchase price P is constant and annual holding cost H is expressed as a fixed per-unit amount rather than a tiered function of order size, Q* depends only on D, S, and H because annual purchase spending (P × D) does not vary with batch size.
Underlying assumptions of the classical model
Both MIT 2.853/2.854 and the NC State tutorial highlight strict operating conditions behind the classical equation:
- Constant, known demand rate: Inventory depletes uniformly with no randomness or seasonality.
- Fixed ordering and holding costs: Per-order cost S and annual per-unit holding cost H remain unchanged across all batch sizes.
- Fixed unit purchase price: Suppliers offer no all-units or incremental quantity discounts.
- No stockouts or backlogs: Every unit of demand is met immediately on hand.
- Zero or constant lead time with single-batch delivery: Each replenishment arrives in full at once, either instantaneously or after a fixed known lead time L.
Within our Analysis archive and the Trade and Supply Chains guide, pair EOQ batch sizing with packaging batch size and changeover cost when evaluating internal machine setups, or variable cost formula packaging-line examples to separate per-unit run expenses from fixed order fees.
What is the purpose of EOQ in balancing ordering and holding costs?
EOQ exists to resolve the inverse cost trade-off between placing many small orders—which inflates fixed transaction, receiving, and setup spending—and placing a few oversized orders—which ties up working capital, warehouse space, and perishable stock. Even when real operating conditions diverge from textbook assumptions, NC State’s tutorial notes that EOQ provides a practical benchmark for testing whether current batch sizes are reasonable.
Incremental ordering costs versus fixed procurement overhead
Ordering cost S covers expenses triggered every time a replenishment order is issued regardless of order size: creating and validating a purchase order, processing paperwork, shipping and handling fees fixed per shipment, and receiving and inspecting incoming goods. It excludes the variable purchase cost of the goods themselves (P × Q).
A frequent modeling failure in plant procurement is allocating fixed buyer salaries or annual ERP license fees into S by dividing department payroll by last year’s purchase-order count. Unless adding or removing orders genuinely changes overtime, freight drops, inspection hours, or machine changeover downtime, fixed salaries do not drop when Q rises—inflating S artificially pushes EOQ upward and bloats warehouse stock.
Carrying cost components and flat-bottom cost sensitivity
Inventory carrying cost captures every recurring burden of holding stock across a year. MIT 2.853/2.854 groups manufacturing inventory costs into financial outlay paid before customer revenue arrives, demand risk (obsolescence, time-sensitive value decay, or style shifts), physical warehouse space, and shrinkage from damage, theft, spoilage, or loss. MIT ESD.273J / 1.270J Logistics and Supply Chain Management illustrates typical annual carrying-rate percentages as 2% insurance cost, 6% maintenance cost, and 7% to 10% opportunity cost of alternative investment.
Because the total relevant cost curve is flat near its minimum, small practical adjustments to match pallet layers or case counts barely affect annual cost. MIT ESD.273J / 1.270J reports the exact relative cost ratio C(γQ*) / C(Q*) when actual order size equals γ times the optimal EOQ:
Scroll horizontally to see all columns.
| Order Size Multiplier (γ) | Relative Relevant Cost Ratio C(γQ*) / C(Q*) | Operational Interpretation |
|---|---|---|
| 0.5× EOQ | 1.25 | Cutting batch size in half adds a steep ordering-cost penalty |
| 0.8× EOQ | 1.025 | Ordering at 0.8× EOQ remains inside the flat-bottom cost zone |
| 0.9× EOQ | 1.006 | Trimming to 0.9× EOQ leaves relevant cost virtually unchanged |
| 1.0× EOQ | 1 | Exact minimum where annual ordering cost equals annual holding cost |
| 1.2× EOQ | 1.017 | Rounding up to 1.2× EOQ carries a smaller penalty than 0.8× |
| 1.5× EOQ | 1.083 | Ordering at 1.5× EOQ begins to build noticeable holding drag |
| 2× EOQ | 1.25 | Doubling batch size matches the 0.5× penalty in total relevant cost |
Notice the asymmetry: deviating upward to 1.2× EOQ (ratio 1.017) penalizes relevant cost less than deviating downward to 0.8× EOQ (ratio 1.025), because the ordering term (D × S) / Q rises steeply toward zero whereas the holding term (H × Q) / 2 rises linearly.
How do you work through an economic order quantity formula example?
To calculate EOQ step by step, verify that demand D and holding cost H share the same annual period, compute annual per-unit holding cost H by combining physical storage with capital carrying charges, enter D, S, and H into √(2 × D × S / H), and verify that annual ordering cost equals annual holding cost at the resulting batch size.
Worked 10,000-unit example with off-optimum cost checks
Using the standard reference schedule expressed in unnamed currency units—annual demand D = 10,000 units, fixed cost per order K = 40, unit purchase cost P = 50, annual storage cost of 4 per unit, and a 2% market interest rate—first combine storage and capital cost into annual holding cost per unit:
H = 4 + (50 × 2%) = 5 per unit per year
Next substitute D = 10,000, K = 40, and H = 5 into the EOQ equation:
Q* = √(2 × 10,000 × 40 / 5) = 400 units per order
At Q* = 400 units, the buyer places 10,000 ÷ 400 = 25 orders per year. Adding purchase cost (50 × 10,000), annual ordering cost (40 × (10,000 ÷ 400)), and annual holding cost (5 × (400 ÷ 2)) gives a minimum total annual cost of 502,000. Comparing neighboring batch sizes confirms that any shift away from 400 units raises annual expense:
Scroll horizontally to see all columns.
| Candidate Order Size (Q) | Ordering Term Expression | Holding Term Expression | Total Annual Cost (Purchase + Ordering + Holding) |
|---|---|---|---|
| 300 units | 40 × (10,000 ÷ 300) | 5 × (300 ÷ 2) | 502,083.33 |
| 400 units (EOQ) | 40 × (10,000 ÷ 400) | 5 × (400 ÷ 2) | 502,000 |
| 500 units | 40 × (10,000 ÷ 500) | 5 × (500 ÷ 2) | 502,050 |
Ordering 500 units instead of 400 raises total annual cost from 502,000 to 502,050, while cutting batch size to 300 units raises total annual cost to 502,083.33—again confirming the steeper penalty on the under-ordering side.
Cross-check with NC State’s 16,000-unit tutorial problem
NC State’s Supply Chain Resource Cooperative provides a second practical setup: a mail-order gym-equipment business faces annual demand of 16,000 units, an annual holding cost of 2.50 per unit, and a fixed ordering cost of 50 per order (expressed in unnamed currency units). Entering those three inputs into √(2 × D × S / H) gives:
EOQ = √(2 × 16,000 × 50 / 2.50)
Whenever you solve a plant SKU in a spreadsheet, check both sides after computing Q*: annual ordering cost (D / Q*) × S must match annual holding cost (Q* / 2) × H before any case-pack rounding.
How does EOQ differ from supplier minimum order quantity (MOQ)?
EOQ is an internal, buyer-calculated target designed to minimize total ordering and carrying expenses, whereas Minimum Order Quantity (MOQ) is an external floor imposed by a supplier outside the buyer’s direct control. When a vendor’s MOQ is lower than or equal to EOQ, the buyer simply orders at EOQ; when MOQ exceeds EOQ, the supplier’s rule overrides the unconstrained formula and pushes carrying costs higher.
Quantifying an uneconomical MOQ and quantity discount tiers
Comparing EOQ against MOQ gives purchasing teams a concrete way to spot uneconomical vendor terms before signing a contract. If a supplier requires an MOQ equal to twice the buyer’s calculated EOQ (γ = 2), MIT ESD.273J / 1.270J’s sensitivity schedule shows that total relevant cost rises to 1.25 times the unconstrained minimum—while peak warehouse space and cash outflow double at receipt.
Before accepting an elevated MOQ or a bulk price break, test whether unit-price savings actually beat the added holding cost. MIT ESD.273J / 1.270J distinguishes two formal quantity-discount structures that modify the basic EOQ model:
- All-units discounts: Once order size reaches break threshold q, the lower unit price c2 applies to every unit in the order, shifting total order cost from K + c1Q down to K + c2Q.
- Incremental discounts: Units up to q stay at unit price c1 while only units above q receive the lower price c2, producing order cost K + c1q + c2(Q − q).
Scroll horizontally to see all columns.
| Dimension | Economic Order Quantity (EOQ) | Minimum Order Quantity (MOQ) | Quantity Discount Breakpoint (q) |
|---|---|---|---|
| Who sets the number | Buyer’s internal cost calculation | Supplier’s commercial or setup floor | Supplier’s tiered price schedule |
| Optimization goal | Minimize combined ordering and holding cost | Cover vendor setup, tooling, or margin threshold | Trade lower unit price against higher carrying cost |
| Effect when active above Q* | Unconstrained baseline (γ = 1) | Forces Q = MOQ, inflating average stock and holding cost | Justified only if total annual cost (purchase + TRC) falls |
| Buyer lever | Lower fixed ordering cost S or verify true holding rate H | Negotiate split deliveries, SKU consolidation, or alternate vendor | Evaluate all-units versus incremental total cost at each tier |
When a steep MOQ stretches payment timing well ahead of customer receipts, pair this batch check with mapping the peak cash gap on a manufacturing order so working-capital strain is visible before committing.
How do EOQ and reorder point (ROP) work together?
EOQ answers how much to order each time a replenishment is triggered, while the reorder point (ROP) answers when to place that order so new stock arrives before inventory runs dry. Together they form the continuous-review (s, Q) replenishment policy—also written as a (Q, R) policy—that governs day-to-day warehouse ordering.
Deterministic lead-time trigger versus continuous-review (s, Q) policy
MIT 2.853/2.854 notes that when supplier lead time L is greater than zero but demand and delivery remain completely deterministic, nonzero lead time creates no theoretical problem: the buyer simply triggers order Q* early enough to cover demand during lead time. Real operating complexity begins when demand during lead time is random or supplier delivery dates vary.
In MIT ESD.260J Logistics Systems: Probabilistic Demand, continuous-review inventory control tracks Inventory Position (IP) rather than raw shelf count alone:
IP = Inventory on Hand (IOH) + Inventory on Order − Backorders − Committed Stock
Under an (s, Q) policy, the buyer places a fixed order of quantity Q—normally calculated from EOQ—whenever IP drops to or below reorder point s. Reorder point s adds a safety stock buffer (k × σL) on top of forecast lead-time demand xL:
s = xL + k × σL
Here k is the safety factor determined by the firm’s service objective or stockout-cost trade-off, and σL is the root mean square error (RMSE) of forecast demand over lead time L. When converting annual demand error across n equal shorter periods (such as 52 weeks per year), MIT ESD.260J shows that expected demand scales linearly by n while standard deviation scales by the square root of n: σS = σL / √n. Compared against periodic review, continuous review places replenishments dynamically and achieves the same service level with less safety stock, whereas periodic review helps coordinate multi-item orders and stabilize review workload.
Cycle service level versus item fill rate in MIT’s 228-unit example
MIT ESD.260J illustrates the complete EOQ-plus-ROP workflow on a single SKU with 13,000 units of annual demand, a 2-week lead time, annual forecast RMSE of 1,316 units, ordering cost A = 50 per order, annual carrying rate r = 10%, and unit value v = 250 (unnamed currency units), producing an EOQ of 228 units.
The framework contrasts two standard ways of setting safety factor k:
- Cycle Service Level (CSL, P1): Probability of zero stockouts during a replenishment cycle, equal to 1 − P[Stockout] = P[xL ≤ s]. CSL is independent of order size Q.
- Item Fill Rate (IFR, P2): Fraction of unit demand filled directly from inventory on hand, equal to (Q − Expected Units Short) / Q. Because Q controls how many replenishment cycles—and thus stockout exposures—occur each year, IFR depends on both s and Q.
Scroll horizontally to see all columns.
| Service Target | Safety Stock Under CSL (units) | Safety Stock Under IFR (units) | Buffer Comparison |
|---|---|---|---|
| 80% | 217 | 148 | Lower buffer under IFR |
| 90% | 330 | 252 | Lower buffer under IFR |
| 95% | 423 | 348 | Lower buffer under IFR |
| 99% | 601 | 513 | Lower buffer under IFR |
Across every service tier in MIT’s 228-unit EOQ example, IFR requires substantially less safety stock than CSL for the same nominal percentage—because a brief end-of-cycle stockout counts as a full cycle failure under CSL even when most units in the 228-unit cycle were fulfilled immediately.
When do EOQ assumptions break down in real operations?
Static EOQ loses accuracy whenever demand varies sharply from period to period, goods arrive gradually from an internal line rather than all at once, planned backorders are economical, or supply chain disruptions destabilize lead times and shipping rates. Recognizing which assumption failed determines which replacement model fits.
Time-varying demand: EOQ versus POQ, Silver-Meal, and Wagner-Whitin
When monthly demand fluctuates over a known finite horizon, ordering a constant EOQ forces leftover batches across low-demand months and misaligns receipts with consumption. MIT ESD.260J Logistics Systems: Time Varying Demand tests four lot-sizing policies on a 2,000-unit annual schedule with ordering cost A = 500 per order, unit cost v = 50, and annual carrying rate r = 24% (unnamed currency units):
Scroll horizontally to see all columns.
| Lot-Sizing Method | Ordering Rule Under Time-Varying Demand | Annual Holding Cost | Annual Ordering Cost | Total Relevant Cost |
|---|---|---|---|---|
| Static EOQ | Order fixed EOQ whenever period demand exceeds on-hand stock | 1,900 | 2,500 | 4,400 |
| Periodic Order Quantity (POQ) | Round EOQ cycle time T* = 0.204 years (2.45 months) to 3 months; order exact 3-month demand | 2,000 | 2,000 | 4,000 |
| Silver-Meal Heuristic | Add each subsequent period’s demand while average relevant cost per period declines | 1,350 | 2,500 | 3,850 |
| Wagner-Whitin (Dynamic Programming) | Compute globally optimal dynamic replenishment schedule over the horizon | 1,750 | 2,000 | 3,750 |
In MIT’s schedule, switching from static EOQ (4,400) to Periodic Order Quantity (4,000) trims excess annual holding and ordering spend, while the Silver-Meal heuristic (3,850) approaches the Wagner-Whitin dynamic optimum (3,750).
Finite production rates, planned backorders, and supply disruptions
Additional extensions address structural breaks in the basic formula:
- Finite internal production rate (EPQ): When a plant manufactures items internally at production rate P greater than demand rate D, inventory builds gradually rather than jumping instantaneously to Q. MIT ESD.273J / 1.270J replaces EOQ with the Economic Production Quantity (EPQ) model to account for simultaneous production and consumption during each run.
- Planned backorders and order-up-to control: Where temporary shortages incur a known shortage penalty per unit of time rather than lost sales, planned-backorder EOQ permits controlled negative inventory before replenishment. For high-impact Class A items or variable transaction sizes, MIT 2.853/2.854 and ESD.260J highlight the (s, S) order-up-to policy: whenever inventory position reaches s, order enough to raise it back to target level S.
- Supply disruptions, shrinkage, and multi-item constraints: MIT 2.853/2.854 flags random delivery times, random delivery quantities, vanishing inventory (shrinkage and scrap), and warehouse capacity limits as conditions that break single-item EOQ. During volatile demand or supplier disruptions, keeping static inputs stale creates alternating stockouts and excess inventory; inputs must be recalculated whenever demand, shipping, or carrying rates shift meaningfully.
Economic order quantity recalculation checklist
Verify each input on one consistent annual time base and currency unit before updating ERP order quantities or negotiating supplier MOQs:
Scroll horizontally to see all columns.
| Input or Gate | Data Required | Validation Check Before Applying EOQ |
|---|---|---|
| Annual demand (D) | Full-year unit consumption or forecast | Confirm demand is reasonably uniform; switch to POQ or Silver-Meal if strongly seasonal |
| Incremental ordering cost (S) | PO processing, fixed freight, receiving, inspection, or setup fee | Exclude fixed buyer salaries and sunk software licenses that do not vary per order |
| Annual holding cost (H) | Capital opportunity cost + storage + insurance + maintenance + risk | Confirm H is per unit per year (or unit value v × annual carrying rate r) |
| Equilibrium check | Compare (D / Q*) × S against (Q* / 2) × H | Both annual components must be equal at Q* before rounding |
| Supplier MOQ & pack rounding | Vendor minimum batch and case/pallet multiple | Rounding within 0.8× to 1.2× Q* stays near minimum cost (ratio 1.017 to 1.025); audit total cost if MOQ > EOQ |
| Reorder point & safety stock | Lead time L, demand RMSE σL, and CSL or IFR target | Trigger replenishment on Inventory Position (IP), not shelf on-hand count alone |
Frequently asked questions
Why does annual ordering cost equal annual holding cost at the EOQ?
At the cost-minimizing quantity Q*, the slope of total relevant cost TRC(Q) = (D / Q) × S + (Q / 2) × H equals zero, giving H / 2 = (D × S) / Q² and therefore (Q* / 2) × H = (D / Q*) × S. Any smaller batch pushes ordering cost up faster than holding cost falls, while any larger batch pushes holding cost up faster than ordering cost drops.
Should salaried purchasing wages be included in ordering cost S?
Only incremental expenses that actually rise or fall with the number of orders placed belong in S—such as per-order processing, fixed delivery charges, receiving labor, inspection, or machine setup. Spreading fixed buyer salaries across purchase orders overstates S, inflates EOQ, and increases real warehouse carrying costs without reducing payroll.
How sensitive is total inventory cost if you round EOQ to full cases or pallets?
Total relevant cost is remarkably flat around Q*. In MIT’s sensitivity table, ordering 0.9× EOQ yields a cost ratio of 1.006 and ordering 1.2× EOQ yields 1.017, making minor rounding to case packs or pallet tiers practically negligible compared with halving (0.5×) or doubling (2×) Q* at ratio 1.25.
What should a buyer do when a supplier’s MOQ is higher than EOQ?
First quantify the carrying-cost penalty using the ratio γ = MOQ / EOQ and include obsolescence and storage limits. Compare full annual cost—purchase spending plus ordering and holding cost—across options: accept the MOQ only when a lower unit price outweighs the added holding burden, or negotiate split shipments, combined SKUs, or an alternative supplier.
Why does continuous-review ROP track inventory position instead of on-hand stock?
Tracking only shelf on-hand inventory ignores orders already in transit from the supplier and stock already committed to open customer orders or backorders. Using Inventory Position (IOH + Inventory on Order − Backorders − Committed) prevents placing duplicate replenishment orders while a prior shipment is still on the way.
Sources
- Massachusetts Institute of Technology OpenCourseWare, MIT 2.853/2.854 Introduction to Manufacturing Systems — Inventory (Stanley B. Gershwin, 2016 PDF)
- Massachusetts Institute of Technology OpenCourseWare, ESD.273J / 1.270J Logistics and Supply Chain Management — Inventory and EOQ Models (Fall 2009 PDF)
- Massachusetts Institute of Technology OpenCourseWare, ESD.260J Logistics Systems — Inventory Management, Probabilistic Demand (Chris Caplice, PDF)
- Massachusetts Institute of Technology OpenCourseWare, ESD.260J Logistics Systems — Inventory Management, Time Varying Demand (Chris Caplice, PDF)
- NC State University Supply Chain Resource Cooperative, Economic Order Quantity (EOQ) Model: Inventory Management Models Tutorial
- English Wikipedia, Economic order quantity