Quick answer: Trucking cost per mile (CPM) is every fixed cost plus every variable cost for one period, divided by all the miles the truck drove in that same period: (fixed costs + variable costs) ÷ total miles = cost per mile. Count every mile, loaded and empty, and count fixed costs even in weeks the truck sits. Then keep fuel on its own line. Diesel is the cost that moves every week, so when it changes you update the fuel line only, not the whole formula.
Want the number without the spreadsheet? Use the free cost per mile calculator. If you only need the definition of CPM, read What Is CPM in Trucking?.
Key takeaways
- Cost per mile has two halves: fixed costs (paid whether you drive or not) and variable costs (paid when the wheels turn). Skip either one and the number looks better than it is.
- The costs owners miss most often are permits and plates, software, and their own time. Leave them out and you underprice loads.
- Fuel cost per mile is simply diesel price ÷ miles per gallon. At 6.5 MPG, every 10 cents a gallon adds about 1.5 cents a mile.
- Update the fuel line weekly or when diesel moves 10–15 cents. Rebuild fixed costs quarterly, or when a payment or premium changes.
- Fleets need a number per truck, not only a fleet average. An average hides the truck that loses money.
By the numbers

- The U.S. retail diesel price averaged $6.28 a gallon in the week of Oct 19, 2026, up $2.66 (73.4%) from a year earlier. Source: U.S. Energy Information Administration, FRED GASDESW.
Latest official data as of Oct 24, 2026.
Step 1: Add up your fixed costs for one month
Fixed costs are the bills you pay whether the truck runs 10,000 miles or sits in the yard. Use real bills from the last three to six months, not industry averages.
- Truck and trailer payments: the loan or lease payment, not the purchase price
- Insurance: liability, cargo, and physical damage together
- Permits and plates: IRP registration, IFTA decals, UCR and other yearly fees, divided by 12
- ELD and software: your ELD plan plus dispatch and accounting tools
- Office and admin: phone, internet, a share of rent, bookkeeping
- Your own time: even if you don't pay yourself a salary, put a real number on it
If you run more than one truck, build this list per truck. A paid-off 2019 tractor and a financed 2024 tractor have very different fixed costs.
Step 2: Add up your variable costs for the same month
Variable costs go up and down with the miles you run.
- Fuel: your biggest and most volatile line (more on this below)
- Driver pay: per mile, percentage, or hourly, whichever you use
- Maintenance and repairs: routine service plus a monthly set-aside for surprise repairs
- Tires: divide the cost of a set by the miles a set lasts
- Tolls
- Per diem and driver expenses, if the company covers them
Use the same month as your fixed costs, and the same truck. Data from different windows makes the math meaningless.
Step 3: Divide by every mile you drove
Here is the formula: (total fixed costs + total variable costs) ÷ total miles = cost per mile.
Example. Fixed costs for the month are $3,200. Variable costs are $9,800. The truck drove 8,500 miles.
$13,000 ÷ 8,500 = $1.53 per mile
Now take a slow month. The truck only drives 6,000 miles. Fixed costs stay at $3,200, and variable costs drop to $7,000 because it burned less fuel.
$10,200 ÷ 6,000 = $1.70 per mile
That is 17 cents more per mile, only because the same fixed costs were spread over fewer miles.
Don't skip this: fixed costs don't shrink when the truck is idle. A week without a load doesn't lower your insurance or truck payment. It puts the same cost on fewer miles, which is why idle time is often the biggest hidden reason for a bad cost-per-mile number.
Use all miles, loaded and empty. If you only divide by paid miles, you hide the cost of deadhead miles.
Step 4: See which costs move with diesel
Split your costs into buckets and give each one its own per-mile rate. Then you know exactly which line to touch when something changes.
| Cost bucket | How to get the per-mile rate | Moves with diesel? | How often to check |
|---|---|---|---|
| Fuel | Diesel price ÷ your actual MPG | Yes, right away | Weekly, or when diesel moves 10–15¢ |
| Fixed costs (payments, permits, software, office) | Monthly fixed costs ÷ monthly miles | No | Quarterly, or when a bill changes |
| Insurance | Monthly premium ÷ miles actually run | No, but a slow month raises it per mile | Monthly |
| Maintenance and tires | Trailing 3-month spend ÷ miles | No, it moves with miles | Quarterly |
| Driver pay | Depends on the pay agreement | Only if the agreement has a fuel line | Each settlement period |
Add the per-mile rates together and you have your cost per mile. Keeping fuel separate also tells you why a lane lost money: diesel, deadhead, or a truck that gets bad mileage.
Step 5: Update the fuel line when diesel moves
This is where most cost-per-mile numbers go stale. The fix is small: change one line, not the whole model.
Fuel cost per mile = diesel price per gallon ÷ your truck's miles per gallon
At $3.80 a gallon and 6.5 MPG, fuel costs $0.585 a mile. At $4.00, it costs $0.615 a mile. That is about 3 cents more per mile.
Here is what a price change does to a truck averaging 6.5 MPG:
| Diesel moves by | Change per mile | Change over 100,000 miles |
|---|---|---|
| 10¢ a gallon | about 1.5¢ | about $1,540 |
| 20¢ a gallon | about 3.1¢ | about $3,080 |
| 30¢ a gallon | about 4.6¢ | about $4,620 |
| 50¢ a gallon | about 7.7¢ | about $7,690 |
| $1.00 a gallon | about 15.4¢ | about $15,380 |
Back to the example truck: 8,500 miles at 6.5 MPG burns about 1,308 gallons. If diesel rises 30 cents, the month costs about $392 more, and cost per mile goes from $1.53 to about $1.58. Nothing else in the model changed.
Use your real MPG per truck, from fuel and mileage records, not the maker's number. A truck at 5.8 MPG feels the same price change about 20% harder than one at 7.0 MPG.
Use a weekly average, not today's pump price
The U.S. Energy Information Administration (EIA) publishes an average on-highway diesel price every week, for the whole country and for each region. It is a steadier input than the price on one truck stop sign, and many fuel surcharge tables use it.
A rolling 4- to 6-week average smooths the noise even more. Say the price over six weeks was:
| Week | Price per gallon |
|---|---|
| 1 | $3.78 |
| 2 | $3.85 |
| 3 | $4.10 |
| 4 | $4.22 |
| 5 | $4.05 |
| 6 | $3.95 |
The pump price swung 44 cents, but the 6-week average is $3.99. If you repriced every time the pump price moved, you would have changed your numbers five times. With the average, you change them once. A 4-week window reacts faster; a 6-week window is calmer. Pick one and keep it.
When to recheck right away
Recheck your fuel line between scheduled updates when:
- diesel moves 10–15 cents a gallon or more from your last number
- you add or retire a truck, which changes your average MPG
- a truck moves to a lane with different hills, traffic, or idle time
- insurance renews or a truck payment changes (that one is a fixed-cost update)
Don't skip this: a load priced before a diesel jump but delivered after it keeps the old rate. Check loads that are booked but not yet invoiced, not only new quotes. If your customer contracts have a fuel surcharge, make sure it uses the same index you use.
Step 6: Check every load offer against your number
Compare cost per mile to the rate before you accept a load. If your cost is $1.53 and a broker offers $1.65 a mile, you clear 12 cents a mile, but only on the loaded miles. Deadhead to the pickup changes the real rate.
| Load | Rate per loaded mile | Loaded miles | Deadhead miles | Total miles | Rate per total mile |
|---|---|---|---|---|---|
| A | $1.65 | 400 | 80 | 480 | $1.38 |
| B | $1.80 | 350 | 20 | 370 | $1.70 |
| C | $1.55 | 600 | 0 | 600 | $1.55 |
Load A has a better headline rate than Load C, but once the 80 empty miles are counted it pays the least. Against a $1.53 cost per mile, Load A loses money.
Run two more checks each month:
- This year vs. last year. If fuel cost per mile rose faster than your rates, you have a pricing gap to fix with customers or a fuel surcharge.
- Truck vs. truck. If one truck on similar lanes has a much higher fuel cost per mile, look at maintenance or driving habits before blaming diesel.
Cost per mile, IFTA, and driver pay are three different numbers
Diesel touches all three, but in different ways:
- Cost per mile uses the dollars you spent on fuel. It is a pricing tool.
- IFTA uses gallons and miles by state. The price you paid is not part of the tax math. See IFTA When Diesel Prices Swing.
- Driver pay follows the pay agreement. If the agreement has a fuel surcharge, that line moves with the index it names. Without one, the base rate stays the same, but fuel deductions or percentage pay after fuel costs can still change take-home pay. See Driver Pay and Settlements When Diesel Prices Swing.
Don't use IFTA gallon totals as your cost-per-mile fuel input. They answer a different question.
How often to recalculate
| What | How often |
|---|---|
| Fuel line | Weekly, using one weekly price or a rolling average |
| Insurance per mile and other per-mile fixed costs | Monthly |
| Maintenance and tires | Quarterly, using a 3-month average |
| Full rebuild of every line | Quarterly, and after any big change (new truck, new premium) |
| Check against actual invoices and statements | Quarterly |
Common questions
What is a typical trucking cost per mile? It depends on your equipment, lanes, pay model, and how many miles you run. Your own bills are the only number that counts. Build it from them and compare it to your rates.
Should driver pay be in cost per mile? Yes. Driver pay is usually one of the biggest lines. Owner-operators should also include a fair wage for their own time.
Do I divide by loaded miles or all miles? All miles. Use loaded miles only when you compare a load's rate, as in Step 6.
How often should I change my rates when diesel moves? Use a fuel surcharge tied to a published weekly index, so the rate follows diesel without a new negotiation every week.
Do it with records you already keep
Pull last month's bank, fuel card, and mileage records and build the number once by hand, so you know exactly what feeds it. After that, the hard part is not the math. It is keeping fuel, miles, and pay in one place.
Yolda closes a statement for each truck every Monday, with revenue, miles, driver pay, fuel, tolls, and maintenance, so you can see which trucks made money without building a report. Fuel card and toll charges land on their truck, and the same gallons flow into your IFTA quarter. Plans are priced by truck count, with unlimited users. See pricing.
Checklist: an accurate, fuel-adjusted cost per mile
- Pull three to six months of real bills, fuel records, and mileage.
- Split costs into fixed and variable buckets, per truck.
- Divide by all miles, loaded and empty.
- Keep fuel on its own line: diesel price ÷ real MPG.
- Use one weekly price source, or a 4- to 6-week rolling average.
- Set a trigger (10–15¢ a gallon) for an early fuel update.
- Check loads already booked, not only new quotes, after a jump.
- Compare every load offer to your cost per mile, including deadhead.
- Rebuild the full model every quarter.


