{"uid":"cap_pVNzH95CF0_Bw0H5vdnd8","slug":"truck-cost-per-mile-cpm-calculator-c3aac8d5","name":"Truck Cost Per Mile (CPM) Calculator","description":"Computes a trucking operation's true cost per mile from annual miles and cost inputs (truck payment, insurance, fuel, maintenance, tires, permits). Returns itemized CPM and the minimum profitable rate per mile.","url":"https://store.agentexchange.work/truck/cpm","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["annual_miles"],"properties":{"mpg":{"type":"number"},"other_mo":{"type":"number"},"tires_cpm":{"type":"number"},"fuel_price":{"type":"number"},"annual_miles":{"type":"number"},"insurance_mo":{"type":"number"},"maintenance_cpm":{"type":"number"},"truck_payment_mo":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"total_cpm":{"type":"number"},"min_profitable_rate_per_mile":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"fuel_cpm":0.6,"fixed_cpm":0.41,"other_cpm":0.05,"tires_cpm":0.04,"total_cpm":1.27,"maintenance_cpm":0.18,"min_profitable_rate_per_mile":1.46}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"mpg":6.5,"other_mo":200,"tires_cpm":0.04,"fuel_price":3.8,"annual_miles":120000,"insurance_mo":600,"maintenance_cpm":0.18,"truck_payment_mo":1800}}},"response":{"inputs":{"mpg":6.5,"other_mo":200,"fuel_price":3.8,"annual_miles":120000,"insurance_mo":600,"truck_payment_mo":1800},"fuel_cpm":0.58,"fixed_cpm":0.24,"other_cpm":0.02,"tires_cpm":0.04,"total_cpm":1.06,"maintenance_cpm":0.18,"min_profitable_rate_per_mile":1.22}},"exampleRequest":{"mpg":6.5,"other_mo":200,"tires_cpm":0.04,"fuel_price":3.8,"annual_miles":120000,"insurance_mo":600,"maintenance_cpm":0.18,"truck_payment_mo":1800},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3qoIafW7e-oJyndYDVP9J","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the cost per mile and minimum profitable rate per mile for a truck, broken down by fuel, fixed, maintenance, tires, and other costs.","exampleAgentPrompt":"Calculate my truck's cost per mile — I drive 120,000 miles a year, my truck gets 6.5 MPG, diesel costs $3.80/gallon, my truck payment is $1,800/month, insurance is $600/month, and I estimate $0.18/mile for maintenance and $0.04/mile for tires.","exampleUseCases":null,"resultDescription":"A JSON object with cost-per-mile broken down into fuel_cpm, fixed_cpm, maintenance_cpm, tires_cpm, other_cpm, total_cpm, and min_profitable_rate_per_mile — all expressed in dollars per mile.","failureModes":["Missing required 'annual_miles' parameter returns a validation error","Non-numeric values for numeric fields cause a 400 bad request","Payment failure or insufficient USDC balance returns a 402 Payment Required","Extreme or unrealistic values (e.g. 0 MPG) may return division errors or nonsensical results"],"whenToPreferThis":"Use this endpoint when an owner-operator, dispatcher, or fleet manager needs a quick, itemized cost-per-mile breakdown for a truck and wants to determine the minimum profitable rate to charge shippers. Ideal for per-load profitability checks or rate negotiation support.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:47:59.418Z","isFirstParty":false}