The EOQ calculation is Q* = √(2DS/H), the order quantity that minimizes annual ordering cost plus annual holding cost in the basic EOQ model. Here, D is annual demand in units, S is the fixed cost per order, and H is the annual holding cost per unit.

The result is a continuous baseline for one inventory item. Real purchasing may still require whole units, cases, pallets, minimum quantities, or supplier pack multiples, so the mathematical result must be checked against operational constraints.

calculation for eoq
Calculation for EOQ: Inputs, Formula, and Limits

Prepare the three EOQ inputs

A defensible EOQ calculation depends on consistent inputs. Each value must be positive and finite, and the three inputs must use a compatible annual basis. Monetary inputs must use the same currency.

Symbol Input Required basis What it represents
D Annual demand Units per year The quantity expected to be consumed over one year
S Fixed ordering or setup cost Currency per order The cost incurred each time an order is placed
H Annual holding cost Currency per unit per year The annual cost of carrying one unit in inventory

Demand should reflect a forecast that is reasonably stable through the year. The ordering cost should include the administrative and setup expense attributable to placing one order. The holding cost should be an annual amount per unit, not a monthly rate or a percentage entered without conversion.

If holding cost is supplied as a percentage of unit price, convert it to an annual currency amount per unit before entering it. The calculator neither infers currencies nor performs that conversion. Output costs use the consistent currency entered. Zero, negative, non-finite, and excessively large values are rejected.

Run the EOQ calculation

  1. Collect annual demand. Enter the number of units expected to be used during the year in the annual demand field.
  2. Confirm the cost basis. Put the fixed cost per order and annual holding cost per unit in the same currency. If either cost was provided on another time basis, convert it before continuing.
  3. Open the EOQ Calculator and enter D, S, and H. Use positive values and check that the demand unit and cost units are labeled correctly.
  4. Calculate and review the result. The continuous EOQ appears alongside expected orders per year, average days between orders, annual ordering cost, annual holding cost, and combined relevant cost. Review the visible model assumptions before using the figures.
  5. Check feasible quantities. Compare the formula result with orderable quantities immediately below and above it, especially when orders must be supplied in whole units, cases, pallets, or fixed pack multiples. Copy the metrics when they are useful for coursework or an inventory review.

The calculation stays in the browser and does not round the underlying optimization. This preserves the mathematical EOQ even when the displayed quantity cannot be ordered exactly as shown.

Check one complete calculation

The annual ordering cost at quantity Q is DS/Q because the business places D/Q orders during the year. Average cycle inventory is Q/2, so annual holding cost is HQ/2. The annual relevant-cost equation is therefore TC(Q) = DS/Q + HQ/2, and minimizing it produces Q* = √(2DS/H).

For one worked example, use D = 1,200 units per year, S = 5 currency units per order, and H = 1.2 currency units per unit per year. Substituting these values gives Q* = √((2 × 1,200 × 5) ÷ 1.2) = √10,000 = 100 units.

At that quantity, expected orders per year are 1,200 ÷ 100 = 12. Average days between orders on a 365-day basis are 365 × 100 ÷ 1,200 = 30.42 days. Annual ordering cost is 1,200 × 5 ÷ 100 = 60, annual holding cost is 1.2 × 100 ÷ 2 = 60, and combined relevant cost is 60 + 60 = 120 currency units. The equal ordering and holding costs illustrate the mathematical balance at the continuous EOQ.

Turn the result into an orderable quantity

A fractional EOQ is not a calculation error. The square-root formula finds a continuous optimum, while real inventories often contain indivisible units or fixed supplier packs. If the result is fractional, identify feasible quantities immediately below and above it and compare each one with TC(Q) = DS/Q + HQ/2.

Blind rounding can be inappropriate when a pack constraint is large, minimum order quantities are restrictive, or changing the quantity changes other operating requirements. The total-cost curve is often fairly flat near its minimum, but that does not make every nearby quantity operationally equivalent.

Choose a feasible candidate using the lower relevant cost, then review cash requirements, storage capacity, shelf life, supplier terms, and service implications. The basic formula should guide the comparison rather than replace the final purchasing review.

Interpret the reported metrics

The calculator exposes the operating relationships behind the EOQ result rather than returning only an order quantity.

Metric Calculation Meaning
Continuous EOQ Q* = √(2DS/H) The quantity that minimizes the basic annual ordering-plus-holding cost
Expected orders per year D ÷ Q The modeled replenishment frequency
Average days between orders 365 × Q ÷ D The modeled cycle length using a 365-day year
Annual ordering cost DS ÷ Q The total modeled cost of placing orders during the year
Annual holding cost HQ ÷ 2 The cost of carrying average cycle inventory of Q ÷ 2
Combined relevant cost DS ÷ Q + HQ ÷ 2 The sum of annual ordering and holding costs

At the continuous optimum, annual ordering cost and annual holding cost are equal. The same square-root formula and cost-balance principle are described in SUNY New Paltz operations-management materials.

Know where the basic EOQ model ends

The calculation is appropriate for a stable inventory problem with constant known demand and costs. Its basic assumptions are narrow:

  • Demand, ordering cost, and holding cost remain constant and known.
  • Replenishment is instantaneous and complete.
  • Shortages and safety stock are excluded.
  • Quantity discounts are absent, and unit purchase price does not change with order quantity.
  • Capacity and cash constraints do not determine the mathematical optimum.

Because constant purchase cost is omitted from the relevant-cost comparison, the output is not a complete statement of total inventory expenditure. Seasonal demand, uncertain lead times, perishability, obsolescence, production replenishment, discounts, or service-level targets require a different model or an extension.

Violating an assumption can change the best quantity materially. For example, a quantity-discount analysis must include the price change, while a seasonal-demand model must represent demand that varies over time rather than relying on one annual total.

Separate order size from reorder timing

EOQ answers how much to order, not when to place the order. Lead time is therefore not an EOQ input. A reorder-point model estimates demand during the supplier lead time and adds any justified safety stock.

Uncertain lead time and service-level requirements can materially affect inventory policy even when the EOQ calculation itself is mathematically correct. Review those conditions separately before turning the order quantity into a replenishment schedule.

Make the EOQ result decision-ready

Use the EOQ Calculator for coursework, a first inventory baseline, or sensitivity exploration rather than as an automatic purchasing commitment. Validate the demand forecast, carrying-cost composition, supplier constraints, cash position, shelf life, lead-time risk, service levels, and feasible pack sizes with responsible operations staff.

Sensitivity matters because D, S, and H are estimates rather than permanent facts. Recalculate when forecasts, administration expenses, warehouse costs, insurance, shrinkage, or capital costs change. Comparing several realistic input scenarios is often more informative than preserving one apparently precise EOQ based on stale assumptions.

Related reading: Cost to Charge EV: Formula, Inputs, and Losses.

Related reading: Accurate Cube Calculator: Formula, Steps, and Checks.