Economic Order Quantity (EOQ) Calculator

Economic Order Quantity (EOQ) Calculator

Popular AI Skill PRO

Enter Calculation

Formula

EOQ=2·Annual Demand·Order CostHolding Cost\text{EOQ} = \sqrt{\dfrac{2 \cdot \text{Annual Demand} \cdot \text{Order Cost}}{\text{Holding Cost}}}

Example

EOQ=2·10000·505≈447.21\text{EOQ} = \sqrt{\dfrac{2 \cdot 10000 \cdot 50}{5}} \approx 447.21
Usage stats

Advertisement

Results

Economic Order Quantity
447.21
units per order
Orders per year 22.36
Order cycle 16.32 days
Annual ordering cost 1,118.03
Annual holding cost 1,118.03
Total annual inventory cost 2,236.07

Report an error on this page

What Is the Economic Order Quantity (EOQ)?

The Economic Order Quantity (EOQ) is the order size that minimizes the total cost of managing inventory. It balances two opposing costs: ordering cost (which falls when you order in large batches less often) and holding cost (which rises when you keep more stock on hand). EOQ pinpoints the sweet spot where these two costs are equal and their total is lowest. The model is universal and applies to any business or supply chain, regardless of country or currency.

Cost curves showing holding cost rising, ordering cost falling, and total cost U-shape minimized at EOQ
EOQ is the order quantity where total inventory cost (holding plus ordering) is minimized.

How to Use the Calculator

Enter three numbers: your annual demand (how many units you sell or use per year), your order cost (the fixed cost of placing one order — paperwork, shipping, setup), and your holding cost (the cost to store one unit for a full year — warehousing, insurance, capital). The calculator returns the optimal order quantity along with how many orders you'll place per year, the days between orders, and your annual ordering, holding, and total inventory costs.

The Formula Explained

$$\text{EOQ} = \sqrt{\dfrac{2 \cdot D \cdot S}{H}}$$ Doubling the product of demand and order cost increases EOQ, while a higher holding cost shrinks it. The optimal order quantity grows with the square root of demand, not linearly — so a 4× jump in demand only doubles the ideal order size.

Advertisement
Sawtooth inventory level over time peaking at order quantity Q with average level Q over 2
Inventory rises to the order quantity Q on each delivery and depletes to zero, giving an average level of \(Q/2\).

Worked Example

Suppose annual demand \(D = 10{,}000\) units, order cost \(S = \$50\), and holding cost \(H = \$5\) per unit per year. $$\text{EOQ} = \sqrt{\dfrac{2 \times 10{,}000 \times 50}{5}} = \sqrt{\dfrac{1{,}000{,}000}{5}} = \sqrt{200{,}000} \approx 447.21 \text{ units}$$ You would place about 22.36 orders per year (one roughly every 16.3 days), with ordering and holding costs each near $1,118 — a total annual inventory cost of about $2,236.

How EOQ Changes Across Scenarios

The table starts from a baseline of D = 10,000 units per year, S = $50 per order and H = $5 per unit per year. It then changes one input at a time. EOQ is \(\sqrt{2DS/H}\), orders per year is \(D/Q\), and total annual cost (ordering plus holding, excluding purchase price) is \(\sqrt{2DSH}\).

Scenario D S ($) H ($) EOQ (units) Orders per year Total annual cost ($)
Baseline 10,000 50 5 447.21 22.36 2,236.07
Demand 4× 40,000 50 5 894.43 44.72 4,472.14
Order cost doubled 10,000 100 5 632.46 15.81 3,162.28
Holding cost doubled 10,000 50 10 316.23 31.62 3,162.28
Holding cost halved 10,000 50 2.50 632.46 15.81 1,581.14

Because of the square root, quadrupling demand only doubles EOQ and total cost. Doubling order cost or halving holding cost raises EOQ by a factor of \(\sqrt{2} \approx 1.414\) in both cases. Doubling holding cost lowers EOQ by \(1/\sqrt{2} \approx 0.707\).

Key Terms and Variables

  • Annual demand (D): the number of units used or sold in one year. Unit: units per year.
  • Order (setup) cost (S): the fixed cost of placing one order or starting one production run, such as administration, shipping and setup labor. It does not depend on order size. Unit: currency per order.
  • Holding (carrying) cost (H): the cost of keeping one unit in stock for a year, such as capital cost, storage, insurance and obsolescence. It is often estimated as a percentage of unit value. Unit: currency per unit per year.
  • Order quantity (Q): the number of units in each order. EOQ is the value of Q that minimizes total cost. Unit: units per order.
  • Orders per year: \(D/Q\). Unit: orders per year.
  • Cycle time: the time between orders, \(Q/D\) years. Multiply by 365 for days, or by 12 for months. Unit: years, days or months.
  • Total inventory cost: annual ordering cost \((D/Q)\,S\) plus annual holding cost \((Q/2)\,H\). At EOQ it equals \(\sqrt{2DSH}\). Purchase cost is excluded unless it is added separately. Unit: currency per year.
  • Reorder point and safety stock: these are related to EOQ but separate concepts. EOQ says how much to order. The reorder point says when to order, typically demand during lead time plus safety stock. Safety stock is a buffer against demand or lead-time variability. Unit: units.
Advertisement

Interpreting Your EOQ Result

EOQ is the order size at which annual ordering cost equals annual holding cost:

$$\frac{D}{Q}\,S = \frac{Q}{2}\,H \;\Rightarrow\; Q^* = \sqrt{\frac{2DS}{H}}$$

At that point each cost is half of the total, so total annual cost is \(\sqrt{2DSH}\). In the baseline (D = 10,000, S = $50, H = $5), ordering cost is about $1,118.03 and holding cost is about $1,118.03. Together they come to about $2,236.07.

Sensitivity to small deviations

If you order \(kQ^*\) instead of \(Q^*\), total cost is multiplied by \(\tfrac{1}{2}\left(k + \tfrac{1}{k}\right)\). Ordering 20% more than EOQ (k = 1.2) gives \(\tfrac{1}{2}(1.2 + 0.8333) \approx 1.0167\), about 1.7% higher. Ordering 20% less (k = 0.8) gives \(\tfrac{1}{2}(0.8 + 1.25) = 1.025\), about 2.5% higher. In the baseline, Q = 536.66 gives ordering cost of about $931.70 plus holding cost of about $1,341.64, a total of about $2,273.35 against $2,236.07 at EOQ. The cost curve is flat near the optimum.

Rounding to practical sizes

Because the curve is flat, rounding EOQ to a whole unit, a case, a pallet or a truckload usually changes cost very little. To check a specific size, compute \((D/Q)\,S + (Q/2)\,H\) for it and compare with \(\sqrt{2DSH}\).

Model assumptions

  • Demand is constant and known.
  • Ordering and holding costs are constant per order and per unit, with no quantity discounts and a fixed unit price.
  • Replenishment is instantaneous, or the lead time is known and fixed.
  • No stockouts or backorders are allowed.
  • The whole order arrives at once, and a single item is considered.

When demand is seasonal or uncertain, when suppliers offer price breaks, or when storage capacity or shelf life is limited, the basic EOQ is only a starting benchmark. The result is only as accurate as the S and H estimates, so these are worth checking.

FAQ

What if my holding cost is a percentage? Multiply the unit's value by the annual holding rate (e.g., 20% of a $25 item = $5) and enter that dollar figure.

Does EOQ account for discounts or lead time? The basic EOQ assumes constant demand and no quantity discounts. Use it as a strong baseline, then adjust for bulk-discount tiers or safety stock separately.

Why are ordering and holding costs equal at the EOQ? The EOQ is mathematically the point where annual ordering cost equals annual holding cost, which is exactly where total cost is minimized.

Last updated:

Most popular in Business and Marketing

View all Business and Marketing calculators