Fuel cost comes down to three numbers: how far you drive, how many miles you get per gallon, and what a gallon costs where you fill up. The calculator above multiplies them out for a single trip, a month and a year, and splits a road-trip bill between passengers if you like.
How the calculation works
- Gallons used = distance ÷ fuel economy (MPG).
- Trip cost = gallons used × price per gallon.
- Cost per mile = price per gallon ÷ MPG.
- Yearly cost = miles per year × cost per mile.
For example, 300 miles at 30 mpg uses 10 gallons. At $3.50 a gallon that's $35, or about 11.7 cents a mile.
Where the MPG comes from
When you pick your car, we fill in its official rating from the EPA's fueleconomy.gov (opens in a new tab) data, which covers model years from 1984 on. You can switch between the combined, city and highway ratings:
- Use highway for long interstate trips at steady speeds.
- Use city for short, stop-and-go driving.
- Use combined (55% city, 45% highway in the EPA's weighting) for a typical mix.
EPA ratings come from standardized lab tests, so your real-world number can differ, especially at high speeds, with a roof box or trailer, in cold weather, or with lots of idling. If you track fill-ups, your own average is the best number to use; the MPG calculator works it out.
Your real gas mileage from fill-ups, averaged over several tanks.
Tips for a more accurate trip estimate
- Use the price where you'll actually buy fuel. Prices can vary a lot between states and between highway and in-town stations.
- Add a margin for detours and for speed: fuel economy usually drops at sustained highway speeds above the speed the car was tested at.
- Check the fuel type. Cars that require premium cost more per gallon; see the regular vs premium calculator.
- Going electric? Compare charging costs with the EV vs gas calculator.
Frequently asked questions
How do I calculate gas cost for a trip?
Divide the trip distance by your car's MPG to get gallons, then multiply by the price per gallon. A 450-mile trip at 25 mpg needs 18 gallons; at $3.50 a gallon that's $63.
What MPG should I use for a road trip?
The EPA highway rating is a reasonable start for steady interstate driving. If you'll be driving fast, loaded with luggage, or towing, expect to get less.
How much does it cost to drive 100 miles?
Divide 100 by your MPG and multiply by the gas price. At 30 mpg and $3.50 a gallon, 100 miles costs about $11.67 in fuel.
Does this include tolls or wear and tear?
No, it's fuel only. For everything a car costs to run, use the cost per mile calculator.
Results are estimates from the numbers you enter and, where noted, EPA ratings. Not financial advice. Page updated .