Home / Free tools / Trucking & Logistics / Truck Fuel Cost Calculator

Truck Fuel Cost Calculator

Work out the diesel for a trip or a year from miles, mpg and the price per gallon, with idling and DEF, and see fuel per mile and as a share of revenue. Nothing is uploaded.

Trip

Fuel economy: enter mpg or a fill-up

Optional

Results update as you type. The address bar keeps your numbers, so you can bookmark or share the result. Nothing is uploaded.

Runs in your browser. Nothing you paste or choose is uploaded or stored.

What this truck fuel cost calculator does

Fuel is usually the largest single cost of running a truck after the driver. This calculator works out the gallons and the dollars for a trip or several trips from the miles, your fuel economy and the diesel price, and can add idling and diesel exhaust fluid (DEF). It also shows fuel cost per mile and, if you give the revenue, how much of the revenue fuel takes.

If you do not know your mpg, enter the miles driven and gallons added at a full-tank-to-full-tank fill-up and the calculator works it out.

The calculation

Worked example

A 1,250-mile trip at 6.8 mpg uses 183.82 gallons. Twelve hours of idling at 0.8 gallons an hour adds 9.6 gallons, for 193.42 gallons in total. At $3.80 a gallon the fuel costs $735.01, which is $0.588 per mile. If the trip pays $3,400, fuel is 21.6% of revenue.

Each extra mile per gallon matters. At $3.80 a gallon, going from 6.5 to 7.0 mpg on 100,000 miles saves about 1,099 gallons, or roughly $4,175 a year.

Ways to use the number

Sources and date checked

Checked on December 4, 2026. Rules and rates change, so open the source before you rely on a figure for a filing, a contract or a roadside check.

The diesel price is yours to enter because prices vary by state, station and fuel card discount. These tools give planning estimates. They are not legal, tax, accounting or compliance advice, and they do not replace your contract, your carrier, your state or the regulation itself.

Questions

How do I calculate the fuel cost of a trip?

Divide the miles by your miles per gallon to get gallons, then multiply by the price per gallon. Add idling and DEF if you want the full cost.

How do I work out my truck mpg?

Fill the tank, drive, then fill it again. Divide the miles driven by the gallons added at the second fill-up. Use the average of several fill-ups.

How much fuel does a truck use idling?

It depends on the engine and load; 0.8 gallons an hour is a commonly used figure but you should use your own number.

What share of trucking costs is fuel?

It varies with the diesel price. Divide your fuel cost by revenue to see your own share.

Does it include fuel taxes?

No. The diesel price you enter should be what you pay per gallon. Fuel tax reporting is a separate matter.

Google, Merchant Center, YouTube, LinkedIn, Indeed, Glassdoor and Shopify are trademarks of their owners. Van Born Labs is independent and not affiliated with them. Google's own help pages are the final word on its rules.