Economic Order Quantity Calculator

Find the order size that minimizes total ordering and holding costs for steady demand.

Finance and MoneyUpdated 2026-11-182 min read
Economic Order Quantity Calculator
Total units needed over one year.
Fixed cost placed on every order, such as paperwork and freight.
Storage, insurance and capital cost for one unit held for a year.
Economic order quantity
...
Orders per year...
Days between orders...
Total relevant cost...

What it does

Every order carries a fixed cost, while every unit kept in stock carries a storage cost. Order often and the fixed costs pile up. Order rarely and the stock sits longer. The economic order quantity is the order size where those two costs balance, giving the lowest total for a stable product.

Purchasing teams, small shop owners and production planners use this number as a starting point for reorder rules. It needs only three figures that most businesses already track: yearly demand, the cost of placing one order, and the yearly cost of holding one unit.

The formula comes from writing total relevant cost as demand divided by order quantity times order cost, plus half the order quantity times holding cost. That curve has a single minimum where the two parts are equal, which is why the tool also reports the matching ordering and holding amounts.

Real supply chains add lead times, discounts and demand swings. Treat this result as a clean baseline, then adjust for minimum pack sizes, storage limits and the safety stock you actually need.

How to use

  1. Enter total demand for one year in units.
  2. Enter the fixed cost of placing and receiving a single order.
  3. Enter the yearly holding cost for one unit, including storage and capital.
  4. Read EOQ as the suggested units per order.
  5. Check how many orders a year that implies and the gap between them.
  6. Compare the total relevant cost with your current policy before changing suppliers.

Formula

EOQ = sqrt(2 x D x S / H), with D in units per year, S in dollars per order and H in dollars per unit per year.
D
Yearly demand in units, measured over the same period as H.
S
Fixed cost in dollars for each order placed.
H
Yearly holding cost in dollars for one unit in stock.
EOQ
Optimal number of units to order each time.

The minimum total cost is sqrt(2 x D x S x H), which appears when ordering cost D/EOQ x S equals holding cost EOQ/2 x H. All three inputs must be positive and expressed for the same time period. Doubling demand raises EOQ by about 1.41, not by a factor of two.

Worked example

Example: 12,000 units a year

Yearly demand 12,000 units, order cost $60, holding cost $3 per unit per year.

  1. Multiply 2 x 12,000 x 60 = 1,440,000.
  2. Divide by the holding cost: 1,440,000 / 3 = 480,000.
  3. Take the square root: sqrt(480,000) = 692.82 units per order.
  4. Orders a year: 12,000 / 692.82 = 17.32.
  5. Days between orders: 365 / 17.32 = 21.07 days.
  6. Ordering cost: 17.32 x $60 = $1,039.23. Holding cost: 346.41 x $3 = $1,039.23.
  7. Tool shows EOQ 692.82, orders 17.32, days 21.07 days and total cost $2,078.46.

Reference table

EOQ as yearly demand changes, with S = $60 and H = $3
Yearly demand (units)EOQ (units)Orders per year
3,000346.418.66
12,000692.8217.32
27,0001,039.2325.98

Limits

  • Assumes demand and lead time stay constant all year.
  • Ignores quantity discounts and supplier minimums.
  • Does not set a safety stock level for uncertain demand.
  • Results depend on an accurate holding cost estimate.

Common mistakes

  • Mixing monthly demand with a yearly holding cost.
  • Including the purchase price per unit in the cost being minimized.
  • Rounding EOQ to a round case size before checking the cost curve.
  • Using a holding percentage without converting it to dollars per unit.
  • Forgetting freight or handling that belongs in the fixed order cost.

Try it yourself

Quick checks. Answers sit tucked under each question.

Demand 3,000 units, order cost $60, holding cost $3. What is EOQ?

346.41 units (sqrt of 2 x 3,000 x 60 / 3).

At the worked example settings, how many orders a year?

17.32 orders, about one every 21.07 days.

What is the total relevant cost at those settings?

$2,078.46, split into $1,039.23 ordering and $1,039.23 holding.

Questions

What does EOQ actually tell me?

It gives the order size with the lowest combined ordering and holding cost under steady demand.

Why do ordering and holding costs match at the optimum?

The cost curve has its lowest point where the two components are equal. One rises as orders shrink, the other falls.

Can I use EOQ for seasonal products?

Only as a rough guide. Seasonal demand breaks the constant demand assumption, so recalculate for each period.

How do I estimate holding cost?

Add storage, insurance, obsolescence and the interest tied up in stock, then express the total per unit per year.

What if my supplier sells only in packs of 100?

Round to the nearest feasible pack and compare total cost. The curve is fairly flat near the minimum.

Does EOQ tell me when to reorder?

No. It sets how much to order. The reorder point depends on lead time demand and any safety stock you keep.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.