Calculators
Economic Production Quantity (EPQ) calculator API
Compute the optimal production lot size via EPQ = sqrt(2·D·S/H)·sqrt(p/(p-d)) for the finite-replenishment-rate model, with the resulting max inventory level — the production analogue of EOQ. Answers 'optimal production batch size','EPQ for my line','max inventory during a production run'.
Price$0.01per request
MethodPOST
Route/v1/calc/logi-epq
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calclogisticsinventoryepqproductionmanufacturinglot-sizeoptimization
API URL
Integration docshttps://x402.hexl.dev/v1/calc/logi-epqExample request
{
"annualDemand": 12000,
"setupCost": 50,
"holdingCost": 3,
"productionRate": 200,
"demandRate": 100
}Example response
{
"formula": "EPQ = sqrt(2·D·S/H)·sqrt(p/(p-d)) ; maxInventory = Q·(1 - d/p)",
"economicProductionQuantity": 894.43,
"maxInventoryLevel": 447.21,
"inputs": {
"annualDemand": 12000,
"setupCost": 50,
"holdingCost": 3,
"productionRate": 200,
"demandRate": 100
}
}Input schema
{
"type": "object",
"required": [
"annualDemand",
"setupCost",
"holdingCost",
"productionRate",
"demandRate"
],
"properties": {
"annualDemand": {
"type": "number",
"examples": [
12000
]
},
"setupCost": {
"type": "number",
"description": "setup cost per run S",
"examples": [
50
]
},
"holdingCost": {
"type": "number",
"examples": [
3
]
},
"productionRate": {
"type": "number",
"description": "production rate p (units/period)",
"examples": [
200
]
},
"demandRate": {
"type": "number",
"description": "demand rate d (units/period), must be < p",
"examples": [
100
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}