Calculators
Economic Order Quantity (EOQ) API
Economic Order Quantity = sqrt(2 * annualDemand * orderCost / holdingCost), with orders/year, cycle days, and the ordering+holding cost split — the canonical Wilson EOQ inventory model. Answers 'optimal order quantity', 'how often should I reorder', 'total annual inventory cost at EOQ'.
Price$0.01per request
MethodPOST
Route/v1/calc/biz-eoq
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calceoqinventorywilsonopssupply-chainorderingoperations
API URL
Integration docshttps://x402.hexl.dev/v1/calc/biz-eoqExample request
{
"annualDemand": 12000,
"orderCost": 80,
"holdingCost": 4
}Example response
{
"formula": "EOQ = sqrt(2 * annualDemand * orderCost / holdingCost)",
"economicOrderQuantity": 692.82,
"ordersPerYear": 17.32,
"daysBetweenOrders": 21.07,
"annualOrderingCost": 1385.64,
"annualHoldingCost": 1385.64,
"totalAnnualCost": 2771.28,
"inputs": {
"annualDemand": 12000,
"orderCost": 80,
"holdingCost": 4
}
}Input schema
{
"type": "object",
"required": [
"annualDemand",
"orderCost",
"holdingCost"
],
"properties": {
"annualDemand": {
"type": "number",
"examples": [
12000
]
},
"orderCost": {
"type": "number",
"examples": [
80
]
},
"holdingCost": {
"type": "number",
"examples": [
4
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}