Calculate the unconstrained lot size
The calculator applies Q* = √(2DS/H). D is annual demand in units per year, S is the cost of one order in dollars per order, and H is annual holding cost in dollars per unit-year. The units inside the square root reduce to units squared, so the result Q* is a number of units. Demand and cost must refer to the same annual horizon.
The equation balances two costs that move in opposite directions. Larger orders mean fewer orders each year, reducing annual ordering cost DS/Q. They also create more average cycle stock, increasing annual holding cost HQ/2. At the continuous EOQ, those two modeled costs are equal. The tool returns the minimizing quantity under this model; it does not round to cases or enforce a supplier's minimum.
Worked examples
Baseline annual demand and costs
Inputs: D=12,000 units/year; S=$35/order; H=$2.50/unit-year.
Calculation: Q*=√(2×12,000×35/2.50)=√336,000=579.655 units. Ordering and cycle-stock holding costs are each about $724.57/year.
The continuous model favors a lot near 580 units before pack, shelf-life, or capacity constraints.
A different demand and cost profile
Inputs: D=8,000 units/year; S=$45/order; H=$3/unit-year.
Calculation: Q*=√(2×8,000×45/3)=√240,000=489.898 units. Both modeled annual costs are about $734.85.
The lower demand is partly offset by a higher order cost, so the lot size changes according to the square root of all three inputs.
Enter annual demand and annual carrying cost
Use annual demand across one year, not demand per week or order cycle. Sum or forecast comparable months when the source is monthly. S is the fixed administrative or setup cost incurred each time an order is placed; a per-unit freight fee is different unless it is charged per order.
H is currency per unit-year. If policy gives an annual carrying percentage, multiply it by unit value before entering it. The tool accepts nonnegative D and S but requires H>0. Zero demand or order cost produces a mathematical zero quantity, rarely a useful purchase lot.
Interpret the result and its cost balance
For D = 12,000 units/year, S = $35/order, and H = $2.50/unit-year, Q* = √(2 × 12,000 × 35 ÷ 2.50) = √336,000 = 579.655 units. At that continuous quantity, annual ordering cost is about $724.57 and annual cycle-stock holding cost is also about $724.57. The matching costs are a useful arithmetic check; small differences arise when the continuous quantity is rounded for an actual purchase.
A second case uses D = 8,000 units/year, S = $45/order, and H = $3/unit-year. Q* = √(720,000 ÷ 3) = √240,000 = 489.898 units; each of the two annual costs is about $734.85. These examples do not include the purchase cost of the units because, at one constant unit price, annual purchases are fixed by D rather than by the order quantity.
Use the sensitivity of the square root
EOQ responds by square roots: doubling demand or order cost multiplies Q* by √2, while doubling H divides it by √2. Moderate input errors are damped, but unit mistakes still matter. Entering monthly holding cost against annual demand makes H too small by about twelve and can overstate Q* by √12.
Check that S is per order and H is per unit-year. A per-unit charge entered as order cost can distort the lot size even if the arithmetic is correct.
Turn the continuous quantity into a feasible purchase
A real purchase may need a case multiple, supplier minimum, shelf-life limit, or storage cap. Check nearby feasible lots by recomputing ordering and holding cost; the continuous optimum is a reference, not an order instruction. EOQ answers how much to order, not when. Reorder points address timing; safety stock addresses modeled variation.
If unit price changes with Q, annual purchase cost is no longer constant and the basic formula may not minimize total cost. Compare feasible discount tiers explicitly.
Check whether the assumptions fit
The baseline assumes steady demand, known costs, lot replenishment, and no shortages or price breaks. It omits seasonality, capacity, variable lead time, and financing constraints. Check whether D/Q* orders per year and Q*/2 average cycle stock fit the operation.
Use a different model when production is gradual, shortages are planned, or price depends on quantity. MIT inventory notes discuss these extensions because changed mechanics alter the cost balance.