Fuel Cost Calculator
Gas cost for a trip or a year, with a side-by-side car comparison.
How it works
Divide the distance by miles per gallon to get gallons, then multiply by the price per gallon. Enter a second mpg to compare another car.
Example
Distance (miles): 12000 · Fuel economy (mpg): 25 · Gas price ($ per gallon): 3.5 · Compare with (mpg, optional): 0 → Fuel cost: $1,680.00
Formula
cost = distance ÷ mpg × price per gallon
Source
Standard arithmetic and compound-interest formulas.
Checked: 2026-11-18 · Results are for information only.
Common examples
| Fuel economy (mpg) | Fuel cost |
|---|---|
| 20 | $2,100.00 |
| 25 | $1,680.00 |
| 30 | $1,400.00 |
| 40 | $1,050.00 |
| 50 | $840.00 |
Questions and answers
Where do I find my car's mpg?
On the window sticker, in the trip computer, or on the EPA site fueleconomy.gov.
Can I use it for a single trip?
Yes. Enter the trip distance instead of a yearly distance.