Fuel cost and MPG calculator
Gallons are miles divided by the MPG your truck actually gets. Dollars are those gallons times the price on the receipt, not the price you wish you had paid.
How the formula works
Gallons equals miles divided by miles per gallon. Fuel cost equals gallons times price. Fuel cost per mile equals price divided by miles per gallon.
The price starts at the EIA U.S. on-highway average. The MPG starts at 6.5 only so the form can calculate. That 6.5 is an example, not a study result.
Worked example
These are the starting numbers on the form. Change them and the result above follows. Example tags are not market averages.
| Miles | 650 mi |
|---|---|
| Miles per gallon | 6.5 mpg |
| Diesel price per gallon | $5.695 |
| Gallons | 100 gal |
|---|---|
| Fuel cost per mile | $0.876 |
| Diesel price | $5.695 |
650 miles burn 100.0 gallons and cost $569.50.
Questions
Why does my dash MPG disagree with my fuel tickets?
Tickets are gallons you paid for over miles you ran. The dash is an estimate. For cost, the tickets win. For IFTA, the tickets and the total miles are what the return uses.
Does the EIA price include tax?
Yes. EIA’s weekly on-highway diesel price is a retail price including taxes. It is a national average, so a truck stop in California will not match it.
Can I send this cost per mile to the other calculators?
Save my numbers stores the price and the MPG on this phone. It does not overwrite the fuel line on the cost-per-mile page, so an example MPG cannot silently replace the ATRI fuel figure. Type the fuel cost per mile into that line when you are ready.
Related calculators
This is an estimate for planning. It is not tax, legal, or financial advice. A contract, a statute, or your own records controls when they disagree with this page. Rates change. Check the source on this page before you file, sign, or borrow.