An EOQ (Economic Order Quantity) calculator online finds the continuous order quantity that minimizes annual ordering and holding cost, using Q* = √(2DS/H).
Use the EOQ Calculator to enter annual demand, fixed cost per order, and annual holding cost per unit. It calculates in your browser and presents the EOQ, expected orders per year, average days between orders, annual ordering cost, annual holding cost, and combined relevant cost; the resulting metrics can also be copied.
Basic EOQ is a first-order inventory-sizing model for one item, not a purchasing instruction. It assumes a stable operating environment and excludes lead-time timing, safety stock, discounts, and several practical constraints, so its mathematical result should be reviewed against feasible order quantities and current operating facts.

What the Online EOQ Result Contains
Here, D is annual demand, S is the fixed cost of placing one order, and H is the annual holding cost for one unit. EOQ minimizes relevant cost rather than total spend because purchase cost is omitted when the unit price does not change with quantity.
| Input or metric | Definition | Method or meaning |
|---|---|---|
| Annual demand, D | Units required per year | Positive input for one inventory item |
| Ordering or setup cost, S | Fixed currency cost per order | Positive input in one consistent currency |
| Holding cost, H | Currency per unit per year | Positive annual carrying-cost estimate |
| Continuous EOQ, Q* | Optimal mathematical quantity | √(2DS/H) |
| Expected orders per year | Orders placed during an annual period | D/Q |
| Average days between orders | Modeled cycle length | 365Q/D |
| Annual ordering cost | Currency per year | DS/Q |
| Annual holding cost | Currency per year | HQ/2 |
| Combined relevant cost | Currency per year | DS/Q + HQ/2 |
Keep both cost inputs in one currency. The calculator does not infer or convert currencies, and it reports output costs in the consistent currency entered. Because the formula finds a continuous optimum, the displayed EOQ may contain a fraction even when actual stock must be ordered in whole units, cases, or pallets.
Calculate EOQ Online
- Choose one item and an annual planning basis. The basic model evaluates one inventory item. Establish the annual period for the demand estimate and make sure the cost estimates fit that same operating period.
- Enter annual demand D. Use the number of units required per year, not a weekly or monthly figure unless you first annualize it. This input is measured in units per year.
- Enter fixed ordering or setup cost S. Use the best estimate of the fixed cost incurred each time the item is replenished. Express it as currency per order rather than as a percentage.
- Enter annual holding cost H per unit. Express it as currency per unit per year and use the same currency as S. If holding cost is supplied as a percentage of unit price, convert it to an annual currency amount per unit before entry; the calculator does not perform that conversion. Zero, negative, non-finite, and excessively large inputs are rejected.
- Calculate and read the metrics. Review the continuous EOQ, expected orders per year, average days between orders, annual ordering cost, annual holding cost, and combined relevant cost. Read the visible assumptions before treating the result as an operating baseline.
- Compare feasible quantities and retain the result. Test whole-unit, case, pallet, minimum-order, and supplier pack-multiple quantities immediately below and above the formula result using TC(Q) = DS/Q + HQ/2. Copy the metrics when useful for review or scenario comparison.
Why Ordering and Holding Costs Balance
The relevant-cost equation is TC(Q) = DS/Q + HQ/2. The first term represents annual ordering cost: ordering a larger quantity means fewer orders, so this term falls as Q rises. The second term represents annual holding cost: average cycle inventory is Q/2, so this term rises as Q rises.
EOQ is the point at which these opposing movements produce the lowest combined relevant cost. At the continuous optimum, annual ordering cost equals annual holding cost. This balance explains the mathematical result; it does not create a purchase commitment or determine the calendar date on which to reorder.
SUNY New Paltz operations-management materials independently present the same square-root formula and cost balance. For a longer manual comparison outside the calculator, review Calculate EOQ and Total Cost of Inventory Step by Step.
Check One EOQ Calculation
For one item, suppose D = 1,200 units per year, S = 5 per order, and H = 1.20 per unit per year, with both costs expressed in the same currency. Substitution gives:
Q* = √[(2 × 1,200 × 5) ÷ 1.20] = √10,000 = 100 units.
The 100-unit result is the mathematical baseline. If the supplier sells only fixed-size cases, compare feasible pack quantities around the result before choosing an order. Large pack constraints can make blind rounding inappropriate, even though the total-cost curve is often relatively flat near its minimum.
Know When Basic EOQ Applies
The online calculation is most reliable when its core assumptions resemble the item being planned. These boundaries determine whether the result is a useful baseline or merely a starting point for a different model.
| Condition | Basic EOQ treatment | Planning implication |
|---|---|---|
| Demand | Constant and known | Recalculate when the forecast changes; seasonal demand requires another approach. |
| Ordering and holding costs | Constant and known | Update estimates when administration, warehouse, insurance, shrinkage, or capital costs change. |
| Replenishment | Instantaneous and complete | Production limits, supplier constraints, or partial deliveries need an extended model. |
| Shortages and safety stock | Excluded | Service-level targets require a safety-stock and replenishment extension. |
| Purchase price and discounts | Purchase cost is omitted when unit price is constant | Quantity discounts require a discount model and a broader cost comparison. |
| Operational constraints | Not embedded in the EOQ result | Check minimum quantities, packs, capacity, shelf life, and cash separately. |
| Lead time | Not an EOQ input | Use a reorder-point model for ordering timing. |
Basic EOQ does not cover seasonal demand, uncertain lead times, perishability, obsolescence, production replenishment, discounts, or service-level targets. Use an extended inventory model for those situations. EOQ answers how much to order; a reorder point answers when to order and is based on demand during lead time plus any justified safety stock.
Turn EOQ Into a Responsible Order Decision
Treat the calculated EOQ as one input to a purchasing review rather than an automatic order instruction. Before acting on it, responsible operations staff should check the following:
- Validate demand: Confirm that annual demand reflects a current, supportable forecast rather than a stale or seasonally distorted figure.
- Review holding cost: Consider whether warehouse expense, insurance, shrinkage, and capital costs are represented correctly in the annual per-unit estimate.
- Confirm ordering cost: Check whether S captures the fixed administrative and processing work that occurs whenever a replenishment order is placed.
- Check supplier feasibility: Compare the continuous EOQ with whole units, cases, pallets, minimum quantities, and supplier pack multiples using the total-cost equation.
- Assess surrounding risks: Review cash limits, shelf life, lead-time risk, and required service levels before committing funds or inventory.
- Rerun realistic scenarios: Recalculate when forecasts or cost estimates change. Comparing several plausible scenarios is more informative than preserving one precise EOQ based on stale inputs.
The EOQ calculator is suitable for coursework, a first inventory baseline, or sensitivity exploration. It can show the balance created by the basic model, but a feasible order decision still depends on validated data, real supplier terms, and the operating conditions surrounding the item.