Economic Order Quantity Calculator
Find the order size that minimizes total ordering and holding costs for steady demand.
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
- Enter total demand for one year in units.
- Enter the fixed cost of placing and receiving a single order.
- Enter the yearly holding cost for one unit, including storage and capital.
- Read EOQ as the suggested units per order.
- Check how many orders a year that implies and the gap between them.
- Compare the total relevant cost with your current policy before changing suppliers.
Formula
- 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.
- Multiply 2 x 12,000 x 60 = 1,440,000.
- Divide by the holding cost: 1,440,000 / 3 = 480,000.
- Take the square root: sqrt(480,000) = 692.82 units per order.
- Orders a year: 12,000 / 692.82 = 17.32.
- Days between orders: 365 / 17.32 = 21.07 days.
- Ordering cost: 17.32 x $60 = $1,039.23. Holding cost: 346.41 x $3 = $1,039.23.
- Tool shows EOQ 692.82, orders 17.32, days 21.07 days and total cost $2,078.46.
Reference table
| Yearly demand (units) | EOQ (units) | Orders per year |
|---|---|---|
| 3,000 | 346.41 | 8.66 |
| 12,000 | 692.82 | 17.32 |
| 27,000 | 1,039.23 | 25.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
- LibreTexts Engineering, Traditional Inventory Models
- SUNY New Paltz, Operations Management chapter highlights