Catalog/ecom-eoq

Calculators

Economic Order Quantity (EOQ) API

Compute Economic Order Quantity (EOQ = √(2·D·S / H)) with optimal orders/year, cycle length, and total annual ordering + holding cost; accepts holding cost per unit or unitCost × holdingRate. Deterministic inventory optimization. Answers 'what is my optimal order quantity','EOQ for this demand and holding cost'.

Price$0.01per request
MethodPOST
Route/v1/calc/ecom-eoq
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
ecomeoqinventoryreordersupply-chainoptimizationecommercecalc
API URLhttps://x402.hexl.dev/v1/calc/ecom-eoq
Integration docs
Example request
{
  "annualDemand": 12000,
  "orderCost": 50,
  "holdingCost": 3
}
Example response
{
  "formula": "EOQ = √(2·D·S / H); orders/yr = D / EOQ; totalCost = orderingCost + holdingCost",
  "annualDemand": 12000,
  "orderCost": 50,
  "holdingCostPerUnit": 3,
  "eoq": 632.46,
  "ordersPerYear": 18.97,
  "cycleLengthDays": 19.2,
  "annualOrderingCost": 948.68,
  "annualHoldingCost": 948.68,
  "totalAnnualInventoryCost": 1897.37
}
Input schema
{
  "type": "object",
  "required": [
    "annualDemand",
    "orderCost"
  ],
  "properties": {
    "annualDemand": {
      "type": "number",
      "description": "D — units/year",
      "examples": [
        12000
      ]
    },
    "orderCost": {
      "type": "number",
      "description": "S — cost per order",
      "examples": [
        50
      ]
    },
    "holdingCost": {
      "type": "number",
      "description": "H — holding cost per unit/year",
      "examples": [
        3
      ]
    },
    "unitCost": {
      "type": "number",
      "description": "Alt: with holdingRate, H = unitCost × holdingRate",
      "examples": [
        30
      ]
    },
    "holdingRate": {
      "type": "number",
      "description": "Annual holding rate as decimal",
      "examples": [
        0.1
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}