EOQ Calculator
Calculate the Economic Order Quantity — the order size that minimizes combined ordering and holding cost — plus orders per year, cycle length, reorder point, and total annual inventory cost.
Input
Time from placing an order to receiving it.
Extra buffer stock held against demand or lead-time variability.
Output
| Metric | Value |
|---|---|
| No data yet | |
Guides
The EOQ (Economic Order Quantity) Calculator finds the order size that minimizes your total inventory cost — the sweet spot between ordering too often (racking up ordering costs) and ordering too much at once (racking up holding costs).
What is EOQ?
EOQ is the classic inventory-management formula:
EOQ = √(2 × D × S / H)
- D — annual demand, in units
- S — ordering cost, the fixed cost of placing one order (paperwork, shipping, setup)
- H — holding cost, the annual cost of storing one unit (warehousing, insurance, spoilage, capital tied up)
As order size grows, ordering cost per year falls (fewer orders) but holding cost rises (more average inventory sitting around). EOQ is the exact point where those two costs are equal and their sum is lowest.
How to use it
- Enter your annual demand — how many units you expect to sell or use in a year.
- Enter the ordering cost — what it costs to place one order, regardless of size.
- Enter the holding cost — what it costs to hold one unit in stock for a year.
- Optionally, enter a lead time (days between placing an order and receiving it) and a safety stock buffer to also get a reorder point — the stock level that should trigger your next order.
The calculator returns the EOQ itself, how many orders you'd place per year, the number of days between orders, the annual ordering and holding costs at that quantity, and the total annual inventory cost.
Why not just order once a year, or order one unit at a time?
Ordering once a year minimizes ordering cost but maximizes holding cost (you're sitting on a full year of stock). Ordering constantly minimizes holding cost but maximizes ordering cost (fees/setup on every tiny order). EOQ balances the two — it's a minimum on the total cost curve, not on either cost alone.
Does EOQ account for demand changes or discounts?
No — the classic formula assumes constant demand, a fixed ordering cost, and a fixed per-unit holding cost, with no quantity discounts or stockouts. It's a solid starting baseline for steady-demand inventory; for seasonal demand or bulk-discount pricing, treat the result as a reference point rather than a hard rule.
Running a related profitability calculation? Try the Break-Even Point Calculator to find how many units you need to sell to cover fixed and variable costs.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/eoq-calculator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"annualDemand": "12000",
"orderingCost": "50",
"holdingCost": "4",
"leadTimeDays": "",
"safetyStock": ""
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `eoq-calculator` tool (EOQ Calculator) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.