What is cost per mile in trucking?
Cost per mile (CPM) is what it costs to run one truck for one mile, including your pay. Divide fixed monthly expenses by realistic monthly miles, then add diesel, DEF, maintenance and tires. This calculator uses US miles, US gallons and US dollars.
Start with the illustrative defaults, choose an operation preset and replace the amounts with your own bills. Then check a load, including empty miles, waiting time, factoring and tolls. Calculations run in your browser; a share link contains the scenario you choose to share.
How this calculator works
Fixed costs are spread over every mile, including deadhead. Fuel includes diesel and DEF; maintenance and tires are separate reserves. Fixed cost per day uses a 30.4-day month. The floor adds your target profit per all mile.
: monthly fixed costs; : monthly miles; : diesel price per gallon; : miles per gallon; , , : DEF, maintenance and tire costs per mile; : target profit per mile; : revenue after factoring and trip costs; , : loaded and empty miles.
What belongs in your CPM
- Fixed expenses: truck and trailer payments, insurance, permits, software, parking, accounting and your own pay. Convert annual bills to monthly amounts.
- Diesel: use the price you actually pay and the fuel economy your truck achieves, not the brochure figure.
- Maintenance reserve: set aside money per mile for repairs and service, even in months with no shop bill.
- Tire reserve: spread replacement costs over the miles you expect from the set.
- DEF: include diesel exhaust fluid separately so it is not lost in the diesel estimate.
Why deadhead belongs in every number
Empty repositioning miles burn fuel and use the truck without earning a loaded-mile payment. Count the drive to pickup and any unpaid repositioning after delivery. Above 20% empty miles, the calculator shows a caution; the verdict still follows your actual profit target.
Loaded mile vs all-mile rates
The same net revenue looks larger when divided only by loaded miles. Compare the all-mile rate with your CPM and floor; both rate displays deduct factoring and trip costs. Break-even is the net revenue needed to cover the truck, so add trip costs and account for factoring when quoting a gross rate.
Example
With the default dry-van figures, fixed costs add up to $9,200 a month, including $4,500 of owner pay. Spread over 8,000 miles, that is $1.15 per mile. Diesel at $4.50 a gallon and 6.5 MPG costs about $0.69 per mile; adding $0.03 for DEF, $0.22 for maintenance and $0.06 for tires brings variable costs to about $1.00. CPM is about $2.15, and with a $0.50 target profit the floor is about $2.65 per mile.
Now check a $2,800 load with 900 loaded miles and 120 deadhead miles. The truck runs 1,020 miles, which costs about $2,195 at that CPM and leaves roughly $605 of profit, or $0.59 per all mile. That beats the $0.50 target, so the verdict is good. The rate looks like $3.11 per loaded mile but is $2.75 per all mile, and that second figure is the one to compare with your CPM. With 4 extra hours of waiting and an assumed 50 mph average, the trip takes 24.4 hours, about $24.78 of profit per hour.
Frequently asked questions
What should I include in my cost per mile?
Include fixed bills, your pay, fuel and reserves for maintenance and tires. Use the three other-cost rows for trailer payments or recurring expenses not already listed; do not count a cost twice.
How is the break-even rate calculated?
Multiply CPM by loaded plus deadhead miles. That is the net revenue required; the gross quote must also cover trip costs and factoring. Your floor adds target profit per all mile on top of CPM.
Why do deadhead miles matter?
They cost money just like loaded miles, because fuel, wear and fixed costs keep running while the trailer is empty. Ignoring them overstates revenue per mile and can turn an apparently good load into a loss. In the default scenario, $2,800 looks like $3.11 per loaded mile but only $2.75 per all mile once 120 deadhead miles are counted.
Should I count my own pay?
Yes. Treat your labor and benefits as a cost before measuring business profit. Otherwise a load may only appear profitable because you are working unpaid.
How often should I update these numbers?
Review them at least quarterly and whenever fuel, insurance or financing changes. Presets and October 2026 defaults are examples, not market quotes; use actual bills and realistic monthly mileage.
Estimates only — not financial, tax or legal advice. Diesel moves fast. Re-check your numbers quarterly or whenever fuel, insurance or payments change.
Link with your values
Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.
| Parameter | Value | If omitted |
|---|---|---|
truckOperation | one of: dry, flatbed, hotshot, custom | default dry |
truck_payment_monthlyTruck payment | amount without a currency symbol; allowed 0–10000 | counted as 0 |
insurance_monthlyInsurance | amount without a currency symbol; allowed 0–10000 | counted as 0 |
permits_monthlyPermits, plates & IFTA fees | amount without a currency symbol; allowed 0–3000 | counted as 0 |
software_monthlyELD & dispatch software | amount without a currency symbol; allowed 0–2000 | counted as 0 |
parking_monthlyParking & yard | amount without a currency symbol; allowed 0–3000 | counted as 0 |
accounting_monthlyAccounting & admin | amount without a currency symbol; allowed 0–2000 | counted as 0 |
owner_pay_monthlyYour pay (owner pay) | amount without a currency symbol; allowed 0–20000 | counted as 0 |
other1_monthlyOther cost 1 | amount without a currency symbol; allowed 0–10000 | counted as 0 |
other2_monthlyOther cost 2 | amount without a currency symbol; allowed 0–10000 | counted as 0 |
other3_monthlyOther cost 3 | amount without a currency symbol; allowed 0–10000 | counted as 0 |
diesel_price_per_galDiesel price ($/gal) | amount without a currency symbol; a time per unit in the name: _per_ml, _per_l, _per_m3, _per_tsp, _per_tbsp, _per_fl_oz, _per_fl_oz_uk, _per_cup, _per_pt, _per_qt, _per_gal, _per_gal_uk, _per_in3, _per_ft3, _per_yd3, _per_ul, _per_cm3; allowed 1–12 /gal | required |
mpgFuel economy (MPG) | number; allowed 3–12 | calculated by the tool |
maintenance_per_miMaintenance reserve ($/mi) | amount without a currency symbol; a time per unit in the name: _per_mm, _per_cm, _per_m, _per_km, _per_in, _per_ft, _per_yd, _per_mi, _per_nmi; allowed 0–2 /mi | calculated by the tool |
tires_per_miTire reserve ($/mi) | amount without a currency symbol; a time per unit in the name: _per_mm, _per_cm, _per_m, _per_km, _per_in, _per_ft, _per_yd, _per_mi, _per_nmi; allowed 0–1 /mi | calculated by the tool |
def_per_miDEF ($/mi) | amount without a currency symbol; a time per unit in the name: _per_mm, _per_cm, _per_m, _per_km, _per_in, _per_ft, _per_yd, _per_mi, _per_nmi; allowed 0–0.5 /mi | default 0.03 |
miles_per_monthMiles per month | number; allowed 500–30000 | required |
target_profit_per_miTarget profit ($/mi, all miles) | amount without a currency symbol; a time per unit in the name: _per_mm, _per_cm, _per_m, _per_km, _per_in, _per_ft, _per_yd, _per_mi, _per_nmi; allowed 0–5 /mi | default 0.5 |
load_rateLoad rate ($ — gross, fuel surcharge included) | amount without a currency symbol; allowed 1–100000 | required |
loaded_milesLoaded miles | number; allowed 1–5000 | required |
deadhead_milesDeadhead miles | number; allowed 0–3000 | counted as 0 |
extra_hoursLoading, unloading & waiting hours | number; allowed 0–100 | counted as 0 |
trip_costsOther trip costs ($, e.g. lumper, tolls) | amount without a currency symbol; allowed 0–20000 | counted as 0 |
factoring_pctFactoring fee (% of gross) | percent: 6.5 means 6.5%; allowed 0–10 | counted as 0 |
Examples
?truck=dry&truck_payment_monthly=2100&insurance_monthly=1650&owner_pay_monthly=4500&diesel_price_per_gal=4.35&miles_per_month=9000&load_rate=2650&loaded_miles=880&deadhead_miles=140?truck=hotshot&insurance_monthly=900&diesel_price_per_gal=4.1&mpg=12&miles_per_month=7000&load_rate=1800&loaded_miles=450
Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.
Result elements: [data-result-block="cost"][data-result-block="load"]