{"openapi":"3.1.0","info":{"title":"Automotive Calculators","version":"1.0.0","description":"Car math for agents: tire size and speedometer error, gearing and RPM, trip fuel, EV efficiency, towing, depreciation, lease versus buy, engines and braking. One call, one computed answer, no accounts or API keys. Machine-payable over x402.","x-guidance":"Automotive Calculators: Car math for agents: tire size and speedometer error, gearing and RPM, trip fuel, EV efficiency, towing, depreciation, lease versus buy, engines and braking. Use /tire-compare for tire dimensions and speedometer error, /gear-rpm for engine RPM at speed with gear ratios, /fuel-trip-cost for multi-leg trip fuel, cost and refuel stops, /ev-efficiency for kWh per mile, MPGe, range and running cost, /towing-payload for payload, tongue weight and tow ratings, /depreciation for value over time, /lease-vs-buy for a lease against a loan purchase, /engine-calc for displacement, compression ratio and piston speed, /acceleration-estimate for quarter-mile and power-limited 0-60 estimates, and /stopping-distance for reaction plus braking distance. Each paid GET returns a computed verdict with the reasons, the source and what was NOT checked. A verdict of UNVERIFIED means a lookup failed: treat it as unknown. No account or key: pay per call in USDC over x402."},"servers":[{"url":"https://automotive-calc.x402tookit.com"}],"paths":{"/acceleration-estimate":{"get":{"operationId":"acceleration_estimate","summary":"Estimate quarter-mile time and trap speed from weight and horsepower (Hale), plus a power-limited lower bound for 0-60 mph.","description":"Estimate quarter-mile time and trap speed from weight and horsepower (Hale), plus a power-limited lower bound for 0-60 mph.","tags":["automotive","performance","quarter-mile","0-60","calculator"],"parameters":[{"name":"weightLb","in":"query","required":true,"description":"Weight with driver in pounds, 500 to 20000","schema":{"type":"number"}},{"name":"horsepower","in":"query","required":true,"description":"Engine power in horsepower, 10 to 5000","schema":{"type":"number"}},{"name":"powerAt","in":"query","required":false,"description":"crank (default) or wheel: where the horsepower figure was measured","schema":{"type":"string"}},{"name":"drivetrainLossPercent","in":"query","required":false,"description":"Loss between crank and wheels in % (default 15), used for the 0-60 bound","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"weightLb":{"type":["null","number"]},"crankHorsepower":{"type":["null","number"]},"wheelHorsepower":{"type":["null","number"]},"poundsPerHorsepower":{"type":["null","number"]},"quarterMileSeconds":{"type":["null","number"]},"trapSpeedMph":{"type":["null","number"]},"zeroToSixtyPowerLimitedLowerBoundSeconds":{"type":["null","number"]},"powerToWeightHpPerTon":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"ESTIMATED","summary":"3200 lb with 300 hp (crank): about 12.82 s and 106 mph in the quarter mile. Power alone would allow 0-60 mph in no less than 2.7 s; real times are longer.","reasons":["Hale: ET = 5.825 x (weight / hp)^(1/3) seconds and trap speed = 234 x (hp / weight)^(1/3) mph, with weight in pounds and crank horsepower.","0-60 lower bound = kinetic energy at 60 mph / wheel power: it ignores drag, shifts and traction."],"weightLb":3200,"crankHorsepower":300,"wheelHorsepower":255,"poundsPerHorsepower":10.67,"quarterMileSeconds":12.82,"trapSpeedMph":106.3,"zeroToSixtyPowerLimitedLowerBoundSeconds":2.75,"powerToWeightHpPerTon":187.5,"degraded":false,"notChecked":["traction, launch technique, gearing, shift time, air density and altitude, tire type and road surface: real times scatter around these estimates by half a second or more","that Hale's formulas fit rear-drive production cars best: all-wheel drive and electric cars launch harder than power alone predicts","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:36.356Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/acceleration-estimate"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/acceleration-estimate"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/acceleration-estimate"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/acceleration-estimate"}}]}}},"/depreciation":{"get":{"operationId":"depreciation","summary":"Vehicle value year by year by straight-line, declining-balance or your own yearly percentage drops, with total loss.","description":"Vehicle value year by year by straight-line, declining-balance or your own yearly percentage drops, with total loss.","tags":["automotive","depreciation","value","cost","calculator"],"parameters":[{"name":"price","in":"query","required":true,"description":"Purchase price, above 0","schema":{"type":"number"}},{"name":"years","in":"query","required":true,"description":"Years to project, 1 to 30","schema":{"type":"integer"}},{"name":"method","in":"query","required":true,"description":"straight-line, declining-balance or schedule","schema":{"type":"string"}},{"name":"salvageValue","in":"query","required":false,"description":"straight-line: value at the end (default 0); declining-balance: a floor the value will not go below","schema":{"type":"number"}},{"name":"ratePercent","in":"query","required":false,"description":"declining-balance: yearly % of the remaining value lost, 1 to 90","schema":{"type":"number"}},{"name":"schedule","in":"query","required":false,"description":"schedule: yearly % drops of the remaining value, comma separated, for example 20,15,15,12,10 (the last repeats)","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"method":{"type":["null","string"]},"price":{"type":["null","number"]},"years":{"type":["null","number"]},"finalValue":{"type":["null","number"]},"totalLoss":{"type":["null","number"]},"averageLossPerYear":{"type":["null","number"]},"schedule":{"type":["array","null"],"items":{"type":"object","properties":{"year":{"type":["null","number"]},"value":{"type":["null","number"]},"lostThisYear":{"type":["null","number"]},"percentOfPriceRemaining":{"type":["null","number"]}}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPUTED","summary":"After 5 years the value is 13733.28 (45.78% of 30000): 16266.72 lost, 3253.34 a year on average; first year 6000.","reasons":["Schedule: each year loses the stated % of the value remaining at its start."],"method":"schedule","price":30000,"years":5,"finalValue":13733.28,"totalLoss":16266.72,"averageLossPerYear":3253.34,"schedule":[{"year":1,"value":24000,"lostThisYear":6000,"percentOfPriceRemaining":80},{"year":2,"value":20400,"lostThisYear":3600,"percentOfPriceRemaining":68}],"degraded":false,"notChecked":["the real market: model, mileage, condition, color, region and economic shocks move used prices far more than any formula","accident history, recalls and fuel-price swings, which change values suddenly","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:36.611Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/depreciation"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/depreciation"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/depreciation"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/depreciation"}}]}}},"/engine-calc":{"get":{"operationId":"engine_calc","summary":"Engine displacement in cc, litres and cubic inches from bore, stroke and cylinders; compression ratio and mean piston speed.","description":"Engine displacement in cc, litres and cubic inches from bore, stroke and cylinders; compression ratio and mean piston speed.","tags":["automotive","engine","displacement","compression-ratio","calculator"],"parameters":[{"name":"bore","in":"query","required":true,"description":"Cylinder bore diameter","schema":{"type":"number"}},{"name":"stroke","in":"query","required":true,"description":"Piston stroke","schema":{"type":"number"}},{"name":"cylinders","in":"query","required":true,"description":"Number of cylinders, 1 to 16","schema":{"type":"integer"}},{"name":"unit","in":"query","required":false,"description":"mm (default) or in for bore and stroke","schema":{"type":"string"}},{"name":"clearanceVolumeCc","in":"query","required":false,"description":"Combustion chamber volume per cylinder at top dead centre, cc, for the compression ratio","schema":{"type":"number"}},{"name":"rpm","in":"query","required":false,"description":"Engine speed, for mean piston speed","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"boreMm":{"type":["null","number"]},"strokeMm":{"type":["null","number"]},"cylinders":{"type":["null","number"]},"displacementPerCylinderCc":{"type":["null","number"]},"displacementCc":{"type":["null","number"]},"displacementLitres":{"type":["null","number"]},"displacementCubicInches":{"type":["null","number"]},"boreStrokeRatio":{"type":["null","number"]},"design":{"type":["null","string"]},"compressionRatio":{"type":["null","number"]},"compressionRatioText":{"type":["null","string"]},"meanPistonSpeedMs":{"type":["null","number"]},"meanPistonSpeedFtMin":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPUTED","summary":"4 cylinders of 86 x 86 mm displace 1998 cc (2 L, 122 cubic inches); square. Compression ratio 11.01:1. Mean piston speed at 6000 RPM is 17.2 m/s.","reasons":["Displacement = pi / 4 x bore^2 x stroke x cylinders. Compression ratio = (swept volume + clearance volume) / clearance volume. Mean piston speed = 2 x stroke x RPM / 60.","1 cubic inch = 16.387064 cc."],"boreMm":86,"strokeMm":86,"cylinders":4,"displacementPerCylinderCc":499.557,"displacementCc":1998.23,"displacementLitres":1.998,"displacementCubicInches":121.94,"boreStrokeRatio":1,"design":"square","compressionRatio":11.01,"compressionRatioText":"11.01:1","meanPistonSpeedMs":17.2,"meanPistonSpeedFtMin":3386,"degraded":false,"notChecked":["the actual compression the engine makes: the static ratio ignores valve timing, boost and head-gasket thickness unless you include them in the chamber volume","knock limits and fuel octane for a given ratio","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:36.873Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/engine-calc"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/engine-calc"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/engine-calc"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/engine-calc"}}]}}},"/ev-efficiency":{"get":{"operationId":"ev_efficiency","summary":"EV efficiency in kWh per 100 miles, miles per kWh, Wh per km and MPGe, range from battery size, and cost versus a gas car.","description":"EV efficiency in kWh per 100 miles, miles per kWh, Wh per km and MPGe, range from battery size, and cost versus a gas car.","tags":["automotive","ev","efficiency","mpge","calculator"],"parameters":[{"name":"efficiency","in":"query","required":true,"description":"The efficiency figure","schema":{"type":"number"}},{"name":"unit","in":"query","required":true,"description":"kwh_per_100mi, mi_per_kwh, wh_per_km, kwh_per_100km or mpge","schema":{"type":"string"}},{"name":"batteryKwh","in":"query","required":false,"description":"Usable battery in kWh, for range","schema":{"type":"number"}},{"name":"pricePerKwh","in":"query","required":false,"description":"Electricity price per kWh","schema":{"type":"number"}},{"name":"gasMpg","in":"query","required":false,"description":"A gas car's mpg, to compare running cost","schema":{"type":"number"}},{"name":"gasPricePerGallon","in":"query","required":false,"description":"Gasoline price per gallon (with gasMpg)","schema":{"type":"number"}},{"name":"annualMiles","in":"query","required":false,"description":"Miles a year, 100 to 200000 (default 12000)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"milesPerKwh":{"type":["null","number"]},"kwhPer100Miles":{"type":["null","number"]},"whPerKm":{"type":["null","number"]},"kwhPer100Km":{"type":["null","number"]},"mpge":{"type":["null","number"]},"kmPerKwh":{"type":["null","number"]},"kwhPerGallonEquivalent":{"type":["null","number"]},"rangeMiles":{"type":["null","number"]},"rangeKm":{"type":["null","number"]},"costPerMile":{"type":["null","number"]},"annualEnergyCost":{"type":["null","number"]},"annualKwh":{"type":["null","number"]},"gasCostPerMile":{"type":["null","number"]},"gasAnnualCost":{"type":["null","number"]},"annualSavingsVsGas":{"type":["null","number"]},"breakEvenElectricityPricePerKwh":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPUTED","summary":"3.571 miles per kWh = 28 kWh per 100 miles = 174 Wh per km = 120.4 MPGe. A 75 kWh battery goes about 267.9 miles (431.1 km). At 0.16 per kWh that is 0.0448 per mile, 538 a year for 12000 miles. The ga…","reasons":["MPGe = miles per kWh x 33.705 (EPA: one gallon of gasoline holds the energy of 33.705 kWh).","1 mile = 1.609344 km."],"milesPerKwh":3.5714,"kwhPer100Miles":28,"whPerKm":173.98,"kwhPer100Km":17.398,"mpge":120.38,"kmPerKwh":5.7477,"kwhPerGallonEquivalent":33.705,"rangeMiles":267.9,"rangeKm":431.1,"costPerMile":0.0448,"annualEnergyCost":538,"annualKwh":3360,"gasCostPerMile":0.1167,"gasAnnualCost":1400,"annualSavingsVsGas":862,"breakEvenElectricityPricePerKwh":0.4167,"degraded":false,"notChecked":["real-world range: speed, cold weather, climate control, wheels, load and battery age cut range by 10 to 40%","charging losses (about 10% from wall to battery; see /ev-charging)","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:37.138Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/ev-efficiency"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/ev-efficiency"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/ev-efficiency"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/ev-efficiency"}}]}}},"/fuel-trip-cost":{"get":{"operationId":"fuel_trip_cost","summary":"Trip fuel and cost for legs with different mileage (city, highway), tank range, refuel stops, cost per person and a second car.","description":"Trip fuel and cost for legs with different mileage (city, highway), tank range, refuel stops, cost per person and a second car.","tags":["automotive","fuel","trip","cost","calculator"],"parameters":[{"name":"legs","in":"query","required":true,"description":"Lines distance:economy or name:distance:economy separated by semicolons, for example 'city:40:24; highway:260:33' (miles and mpg, or km and L/100km)","schema":{"type":"string"}},{"name":"pricePerUnit","in":"query","required":true,"description":"Fuel price per US gallon (units us) or per litre (units metric)","schema":{"type":"number"}},{"name":"units","in":"query","required":false,"description":"us (miles, mpg, gallons; default) or metric (km, L/100km, litres)","schema":{"type":"string"}},{"name":"tankSize","in":"query","required":false,"description":"Tank size in gallons (us) or litres (metric), for range and refuel stops","schema":{"type":"number"}},{"name":"reservePercent","in":"query","required":false,"description":"Tank share kept in reserve, 0 to 40 (default 10)","schema":{"type":"number"}},{"name":"people","in":"query","required":false,"description":"People sharing the cost, 1 to 20 (default 1)","schema":{"type":"number"}},{"name":"roundTrip","in":"query","required":false,"description":"true to double the legs for the return (default false)","schema":{"type":"boolean"}},{"name":"altEconomy","in":"query","required":false,"description":"A second vehicle's economy (mpg or L/100km) used for the whole trip, to compare","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"distance":{"type":["null","number"]},"distanceUnit":{"type":["null","string"]},"fuel":{"type":["null","number"]},"fuelUnit":{"type":["null","string"]},"cost":{"type":["null","number"]},"costPerPerson":{"type":["null","number"]},"costPerDistance":{"type":["null","number"]},"averageEconomy":{"type":["null","number"]},"roundTrip":{"type":["boolean","null"]},"legs":{"type":["array","null"],"items":{"type":"object","properties":{"leg":{"type":["null","string"]},"distance":{"type":["null","number"]},"fuel":{"type":["null","number"]},"cost":{"type":["null","number"]}}}},"usableTank":{"type":["null","number"]},"rangePerTank":{"type":["null","number"]},"refuelStops":{"type":["null","number"]},"tankReservePercent":{"type":["null","number"]},"alternativeFuel":{"type":["null","number"]},"alternativeCost":{"type":["null","number"]},"alternativeSavingsOrExtra":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPUTED","summary":"300 miles uses 9.55 gallons and costs 33.41 (0.111 per mile, 16.7 each for 2). A 14-gallon tank with 10% reserve goes about 396 miles; 0 refuel stops needed. The comparison vehicle (40 mpg) would cost…","reasons":["Fuel = miles / mpg per leg; cost = fuel x price.","Refuel stops = ceil(total fuel / usable tank) - 1, with the reserve share left in the tank."],"distance":300,"distanceUnit":"miles","fuel":9.545,"fuelUnit":"gallons","cost":33.41,"costPerPerson":16.7,"costPerDistance":0.1114,"averageEconomy":31.43,"roundTrip":false,"legs":[{"leg":"city","distance":40,"fuel":1.667,"cost":5.83},{"leg":"highway","distance":260,"fuel":7.879,"cost":27.58}],"usableTank":12.6,"rangePerTank":396,"refuelStops":0,"tankReservePercent":10,"alternativeFuel":7.5,"alternativeCost":26.25,"alternativeSavingsOrExtra":7.16,"degraded":false,"notChecked":["real consumption: speed, load, wind, hills, cold weather, air conditioning and driving style change economy by 10 to 30%","price changes along the route and the detour to a station","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:37.389Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/fuel-trip-cost"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/fuel-trip-cost"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/fuel-trip-cost"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/fuel-trip-cost"}}]}}},"/gear-rpm":{"get":{"operationId":"gear_rpm","summary":"Engine RPM at a road speed (or speed at an RPM) from tire size, axle ratio and transmission gear ratios, with a table by gear.","description":"Engine RPM at a road speed (or speed at an RPM) from tire size, axle ratio and transmission gear ratios, with a table by gear.","tags":["automotive","gearing","rpm","transmission","calculator"],"parameters":[{"name":"tire","in":"query","required":true,"description":"Tire size like 265/70R17, or a diameter in inches like 28","schema":{"type":"string"}},{"name":"axleRatio","in":"query","required":true,"description":"Final drive (axle) ratio, 1 to 8, for example 3.73","schema":{"type":"number"}},{"name":"speed","in":"query","required":false,"description":"Road speed (give this, or rpm)","schema":{"type":"number"}},{"name":"speedUnit","in":"query","required":false,"description":"mph (default) or kmh","schema":{"type":"string"}},{"name":"rpm","in":"query","required":false,"description":"Engine RPM, to find the speed instead","schema":{"type":"number"}},{"name":"gearRatio","in":"query","required":false,"description":"One transmission gear ratio (default 1, direct drive); use gears for several","schema":{"type":"number"}},{"name":"gears","in":"query","required":false,"description":"Gear ratios as gear:ratio separated by semicolons, for example '1:3.59; 2:2.19; 3:1.41; 4:1.00; 5:0.83'","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"tireDiameterInches":{"type":["null","number"]},"axleRatio":{"type":["null","number"]},"speed":{"type":["null","number"]},"speedUnit":{"type":["null","string"]},"speedMph":{"type":["null","number"]},"gears":{"type":["array","null"],"items":{"type":"object","properties":{"gear":{"type":["null","string"]},"gearRatio":{"type":["null","number"]},"overallRatio":{"type":["null","number"]},"rpm":{"type":["null","number"]}}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"RPM_COMPUTED","summary":"At 60 mph on a 26 in tire with a 3.73 axle, the engine turns 2401 RPM in gear 5 (overall 3.0959:1).","reasons":["Engine RPM = speed (in/min) / tire circumference x gear ratio x axle ratio; the constant is 1056 / pi = 336 for mph and inches."],"tireDiameterInches":26,"axleRatio":3.73,"speed":60,"speedUnit":"mph","speedMph":60,"gears":[{"gear":"1","gearRatio":3.59,"overallRatio":13.3907,"rpm":10387},{"gear":"2","gearRatio":2.19,"overallRatio":8.1687,"rpm":6336}],"degraded":false,"notChecked":["torque converter slip in automatics (RPM runs higher until lock-up) and clutch slip","actual loaded tire radius, which is a few percent smaller than nominal diameter","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:37.650Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/gear-rpm"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/gear-rpm"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/gear-rpm"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/gear-rpm"}}]}}},"/lease-vs-buy":{"get":{"operationId":"lease_vs_buy","summary":"Lease versus buy over the lease term: lease payment from money factor and residual, loan payment, resale equity and net cost.","description":"Lease versus buy over the lease term: lease payment from money factor and residual, loan payment, resale equity and net cost.","tags":["automotive","lease","loan","buy","calculator"],"parameters":[{"name":"price","in":"query","required":true,"description":"Vehicle price (the capitalized cost before down payment), above 0","schema":{"type":"number"}},{"name":"termMonths","in":"query","required":true,"description":"Lease term in months, 12 to 72","schema":{"type":"integer"}},{"name":"residualPercent","in":"query","required":true,"description":"Residual value as % of price, 10 to 90","schema":{"type":"number"}},{"name":"moneyFactor","in":"query","required":false,"description":"Lease money factor, for example 0.0025 (APR is about 2400 x money factor); or give leaseAprPercent","schema":{"type":"number"}},{"name":"leaseAprPercent","in":"query","required":false,"description":"Lease rate as an APR in percent (instead of moneyFactor)","schema":{"type":"number"}},{"name":"loanAprPercent","in":"query","required":true,"description":"Loan interest rate in percent, 0 to 30","schema":{"type":"number"}},{"name":"downPayment","in":"query","required":false,"description":"Cash down on either deal (default 0)","schema":{"type":"number"}},{"name":"leaseFees","in":"query","required":false,"description":"Acquisition and other upfront lease fees (default 0)","schema":{"type":"number"}},{"name":"salesTaxPercentOnLeasePayment","in":"query","required":false,"description":"Tax % charged on each lease payment, 0 to 15 (default 0)","schema":{"type":"number"}},{"name":"resalePercent","in":"query","required":false,"description":"Resale value of the bought car at the end as % of price (default: the residual percent)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"capitalizedCost":{"type":["null","number"]},"residualValue":{"type":["null","number"]},"moneyFactor":{"type":["null","number"]},"equivalentLeaseAprPercent":{"type":["null","number"]},"leasePaymentMonthly":{"type":["null","number"]},"leaseDepreciationPart":{"type":["null","number"]},"leaseFinancePart":{"type":["null","number"]},"leaseTotalPaid":{"type":["null","number"]},"loanPaymentMonthly":{"type":["null","number"]},"loanBalanceAtEnd":{"type":["null","number"]},"resaleValue":{"type":["null","number"]},"buyTotalPaid":{"type":["null","number"]},"buyEquityAtEnd":{"type":["null","number"]},"buyNetCost":{"type":["null","number"]},"leaseNetCostMinusBuyNetCost":{"type":["null","number"]},"monthlyDifference":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"BUYING_COSTS_LESS_OVER_TERM","summary":"Lease: 453.33 a month (333.33 depreciation + 120 finance), net cost over 36 months 16320. Buy: 912.66 a month, net cost after selling at 18000 14855.69. Buying costs 1464.31 less over the term.","reasons":["Lease payment = (cap cost - residual) / term + (cap cost + residual) x money factor, then tax on the payment.","Buy net cost = loan payments + down payment - (resale value - remaining loan balance).","…2 more"],"capitalizedCost":30000,"residualValue":18000,"moneyFactor":0.0025,"equivalentLeaseAprPercent":6,"leasePaymentMonthly":453.33,"leaseDepreciationPart":333.33,"leaseFinancePart":120,"leaseTotalPaid":16320,"loanPaymentMonthly":912.66,"loanBalanceAtEnd":0,"resaleValue":18000,"buyTotalPaid":32855.69,"buyEquityAtEnd":18000,"buyNetCost":14855.69,"leaseNetCostMinusBuyNetCost":1464.31,"monthlyDifference":-459.32,"degraded":false,"notChecked":["mileage limits and excess-mileage fees on the lease, wear charges and the disposition fee","sales tax, registration and insurance differences (tax on a purchase is usually due upfront on the full price)","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:37.912Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/lease-vs-buy"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/lease-vs-buy"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/lease-vs-buy"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/lease-vs-buy"}}]}}},"/stopping-distance":{"get":{"operationId":"stopping_distance","summary":"Stopping distance from speed: reaction distance plus braking distance on dry, wet, snow or ice, with road grade.","description":"Stopping distance from speed: reaction distance plus braking distance on dry, wet, snow or ice, with road grade.","tags":["automotive","braking","safety","stopping-distance","calculator"],"parameters":[{"name":"speed","in":"query","required":true,"description":"Speed, 1 to 250","schema":{"type":"number"}},{"name":"unit","in":"query","required":false,"description":"mph (default) or kmh","schema":{"type":"string"}},{"name":"reactionSeconds","in":"query","required":false,"description":"Driver reaction time in seconds, 0 to 4 (default 1.5)","schema":{"type":"number"}},{"name":"surface","in":"query","required":false,"description":"dry-asphalt (default, friction 0.7), wet-asphalt (0.4), snow (0.2) or ice (0.1)","schema":{"type":"string"}},{"name":"friction","in":"query","required":false,"description":"Or a friction coefficient, 0.05 to 1.2 (replaces surface)","schema":{"type":"number"}},{"name":"gradePercent","in":"query","required":false,"description":"Road grade in %, -20 to 20 (positive uphill shortens braking, negative downhill lengthens it)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"speedMs":{"type":["null","number"]},"speedMph":{"type":["null","number"]},"speedKmh":{"type":["null","number"]},"frictionCoefficient":{"type":["null","number"]},"surface":{"type":["null","string"]},"gradePercent":{"type":["null","number"]},"reactionDistanceM":{"type":["null","number"]},"brakingDistanceM":{"type":["null","number"]},"totalStoppingDistanceM":{"type":["null","number"]},"reactionDistanceFt":{"type":["null","number"]},"brakingDistanceFt":{"type":["null","number"]},"totalStoppingDistanceFt":{"type":["null","number"]},"decelerationG":{"type":["null","number"]},"stoppingTimeSeconds":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPUTED","summary":"At 60 mph on dry-asphalt: 40.2 m reaction + 52.4 m braking = 92.6 m (303.9 ft) to stop, taking 5.4 s.","reasons":["Reaction distance = speed x reaction time; braking distance = v^2 / (2 g (friction + grade)).","Doubling the speed quadruples the braking distance."],"speedMs":26.822,"speedMph":60,"speedKmh":96.56,"frictionCoefficient":0.7,"surface":"dry-asphalt","gradePercent":0,"reactionDistanceM":40.23,"brakingDistanceM":52.4,"totalStoppingDistanceM":92.64,"reactionDistanceFt":132,"brakingDistanceFt":171.9,"totalStoppingDistanceFt":303.9,"decelerationG":0.7,"stoppingTimeSeconds":5.41,"degraded":false,"notChecked":["tire condition, ABS behaviour, brake fade, vehicle load and tyre pressure, which change friction a lot","that real friction varies: wet or icy roads can be far worse than the table values","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:38.172Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/stopping-distance"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/stopping-distance"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/stopping-distance"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/stopping-distance"}}]}}},"/tire-compare":{"get":{"operationId":"tire_compare","summary":"Tire dimensions from size codes like 225/45R17, and speedometer and odometer error when you change to a different size.","description":"Tire dimensions from size codes like 225/45R17, and speedometer and odometer error when you change to a different size.","tags":["automotive","tires","speedometer","wheels","calculator"],"parameters":[{"name":"currentSize","in":"query","required":true,"description":"Tire size now, for example 225/45R17 or 31x10.5R15","schema":{"type":"string"}},{"name":"newSize","in":"query","required":false,"description":"Replacement size to compare","schema":{"type":"string"}},{"name":"indicatedMph","in":"query","required":false,"description":"Speed shown on your speedometer in mph, 5 to 200 (default 60)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"current":{"type":["null","object"],"properties":{"size":{"type":["null","string"]},"widthMm":{"type":["null","number"]},"aspectRatioPercent":{"type":["null","number"]},"rimInches":{"type":["null","number"]},"sidewallMm":{"type":["null","number"]},"diameterMm":{"type":["null","number"]},"diameterInches":{"type":["null","number"]},"circumferenceInches":{"type":["null","number"]},"revolutionsPerMile":{"type":["null","number"]},"revolutionsPerKm":{"type":["null","number"]}}},"replacement":{"type":["null","object"],"properties":{"size":{"type":["null","string"]},"widthMm":{"type":["null","number"]},"aspectRatioPercent":{"type":["null","number"]},"rimInches":{"type":["null","number"]},"sidewallMm":{"type":["null","number"]},"diameterMm":{"type":["null","number"]},"diameterInches":{"type":["null","number"]},"circumferenceInches":{"type":["null","number"]},"revolutionsPerMile":{"type":["null","number"]},"revolutionsPerKm":{"type":["null","number"]}}},"diameterDifferencePercent":{"type":["null","number"]},"diameterDifferenceMm":{"type":["null","number"]},"speedometerFactor":{"type":["null","number"]},"indicatedMph":{"type":["null","number"]},"actualMph":{"type":["null","number"]},"actualKmh":{"type":["null","number"]},"speedErrorMph":{"type":["null","number"]},"odometerErrorPercent":{"type":["null","number"]},"effectiveGearingChangePercent":{"type":["null","number"]},"speedTable":{"type":["array","null"],"items":{"type":"object","properties":{"indicatedMph":{"type":["null","number"]},"actualMph":{"type":["null","number"]}}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"WITHIN_3_PERCENT","summary":"245/45R17 is 25.68 in against 24.97 in for 225/45R17: +2.84% diameter. With the new tires a speedometer showing 60 mph means 61.7 mph actual (99.3 km/h); the odometer under-counts distance by 2.76%.","reasons":["A larger tire covers more ground per turn, so the speedometer reads low and the odometer under-counts; a smaller tire does the reverse.","A change within about 3% of the original diameter is the commonly used limit for keeping the speedometer, ABS and gearing within tolerance.","…1 more"],"current":{"size":"225/45R17","widthMm":225,"aspectRatioPercent":45,"rimInches":17,"sidewallMm":101.25,"diameterMm":634.3,"diameterInches":24.97,"circumferenceInches":78.45,"revolutionsPerMile":807.6,"revolutionsPerKm":501.8},"replacement":{"size":"245/45R17","widthMm":245,"aspectRatioPercent":45,"rimInches":17,"sidewallMm":110.25,"diameterMm":652.3,"diameterInches":25.68,"circumferenceInches":80.68,"revolutionsPerMile":785.3,"revolutionsPerKm":488},"diameterDifferencePercent":2.838,"diameterDifferenceMm":18,"speedometerFactor":1.02838,"indicatedMph":60,"actualMph":61.7,"actualKmh":99.3,"speedErrorMph":1.7,"odometerErrorPercent":-2.759,"effectiveGearingChangePercent":-2.759,"speedTable":[{"indicatedMph":30,"actualMph":30.9},{"indicatedMph":50,"actualMph":51.4}],"degraded":false,"notChecked":["tire wear and pressure: a worn tire is up to about 2% smaller in diameter, and a loaded tire runs slightly smaller than its nominal size","manufacturer measured diameters, which differ from the calculated nominal by up to 1 to 2%","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:38.436Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/tire-compare"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/tire-compare"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/tire-compare"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/tire-compare"}}]}}},"/towing-payload":{"get":{"operationId":"towing_payload","summary":"Towing check in pounds: payload left after people, cargo and tongue weight, tow rating and combined weight limits.","description":"Towing check in pounds: payload left after people, cargo and tongue weight, tow rating and combined weight limits.","tags":["automotive","towing","payload","trailer","calculator"],"parameters":[{"name":"gvwr","in":"query","required":true,"description":"Vehicle gross vehicle weight rating, lb (door-jamb sticker)","schema":{"type":"number"}},{"name":"curbWeight","in":"query","required":true,"description":"Vehicle weight empty with fluids, lb","schema":{"type":"number"}},{"name":"trailerWeight","in":"query","required":true,"description":"Loaded trailer weight, lb","schema":{"type":"number"}},{"name":"towRating","in":"query","required":true,"description":"Maximum trailer weight the vehicle is rated to tow, lb","schema":{"type":"number"}},{"name":"tonguePercent","in":"query","required":false,"description":"Tongue weight as % of trailer weight, 5 to 30 (default 12; 10 to 15 for a bumper-pull trailer)","schema":{"type":"number"}},{"name":"occupantsAndCargo","in":"query","required":false,"description":"People plus cargo in the vehicle, lb (default 0)","schema":{"type":"number"}},{"name":"gcwr","in":"query","required":false,"description":"Gross combined weight rating, lb, to check the whole rig","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"payloadCapacityLb":{"type":["null","number"]},"tongueWeightLb":{"type":["null","number"]},"occupantsAndCargoLb":{"type":["null","number"]},"payloadUsedLb":{"type":["null","number"]},"payloadRemainingLb":{"type":["null","number"]},"trailerWeightLb":{"type":["null","number"]},"towRatingLb":{"type":["null","number"]},"towRatingRemainingLb":{"type":["null","number"]},"combinedWeightLb":{"type":["null","number"]},"gcwrLb":{"type":["null","number"]},"gcwrRemainingLb":{"type":["null","number"]},"trailerAsPercentOfTowRating":{"type":["null","number"]},"issues":{"type":["array","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"WITHIN_ENTERED_RATINGS","summary":"Within the ratings you entered: payload 1900 lb, tongue weight 720 lb, 580 lb of payload left; trailer 6000 of 7500 lb rated.","reasons":["Payload = GVWR - curb weight; tongue weight counts against payload.","Combined weight = curb + people and cargo + trailer, compared with GCWR."],"payloadCapacityLb":1900,"tongueWeightLb":720,"occupantsAndCargoLb":600,"payloadUsedLb":1320,"payloadRemainingLb":580,"trailerWeightLb":6000,"towRatingLb":7500,"towRatingRemainingLb":1500,"combinedWeightLb":11500,"gcwrLb":13500,"gcwrRemainingLb":2000,"trailerAsPercentOfTowRating":80,"issues":[],"degraded":false,"notChecked":["axle ratings, tire load ratings, hitch class and receiver ratings, which can each be lower than the numbers here","braking, trailer brake controllers, stability and local laws","…2 more"],"source":"computed locally","asOf":"2026-10-11T14:38:38.697Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/towing-payload"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/towing-payload"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/towing-payload"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://automotive-calc.x402tookit.com/towing-payload"}}]}}}}}