Fuel Cost Calculator
This fuel cost calculator tells you what a drive will cost in gas before you leave. Enter the distance, your car's fuel economy and the price per gallon, and you get the total cost, the gallons you will burn and the cost per mile. Tick round trip to double the distance, and add the number of people in the car to split the bill evenly.
Updated
Results
- Fuel neededU.S. gallons with mpg, liters otherwise
- Cost per mile (or km)
- Cost per personShown when two or more people share
- Total distanceDoubled for a round trip
Results are estimates. See the methodology below.
How to use the calculator
- Enter the one-way distance in miles. A route planner or your trip odometer gives you this.
- Leave the unit on mpg and enter your car's miles per gallon. Use your own measured figure if you have one; otherwise use the EPA combined rating from the window sticker or fueleconomy.gov.
- Enter the price per gallon you expect to pay.
- Tick round trip if you are driving back the same way.
- Enter how many people are sharing the cost. The per-person amount appears only when there are two or more.
Driving abroad? Switch the unit to L/100 km or km/L: the distance is then read in kilometers and the price per liter.
How the cost is calculated
The calculator first works out how much fuel the trip needs, then multiplies by the price:
gallons = miles ÷ mpgtrip cost = gallons × price per gallon
- Round trip doubles the distance before anything else is calculated.
- Cost per mile = trip cost ÷ total miles. It is handy for comparing cars or for pricing a regular commute.
- Per person = trip cost ÷ number of people.
- With L/100 km, liters = km × L/100 km ÷ 100; with km/L, liters = km ÷ km/L.
All figures use U.S. gallons (3.785412 liters, per NIST). The result covers fuel only: tolls, parking and wear on the car are not included, and the calculator assumes the same mpg for the whole drive.
Examples
Prices below use $4.35 per gallon, close to the U.S. average for regular gasoline of $4.354 reported by the EIA for the week of October 5, 2026. Use the price at your own station.
1. A 300-mile drive at 30 mpg
You burn 10 gallons, so the trip costs $43.50, or 14.5 cents per mile.
2. Road trip for four, 450 miles each way
With round trip ticked, the total distance is 900 miles. At 25 mpg the car uses 36 gallons for $156.60, which is $39.15 per person.
3. A year of driving: SUV vs. hybrid
At 12,000 miles a year, a 22 mpg SUV uses about 545.5 gallons and costs $2,372.73. A 35 mpg car covers the same miles on 342.9 gallons for $1,491.43, about $881 less.
| Fuel economy | Gallons per 1,000 miles | Cost per 1,000 miles |
|---|---|---|
| 20 mpg | 50.0 | $217.50 |
| 25 mpg | 40.0 | $174.00 |
| 30 mpg | 33.3 | $145.00 |
| 40 mpg | 25.0 | $108.75 |
| 50 mpg | 20.0 | $87.00 |
Reading the result
The answer is only as good as the mpg you enter. EPA ratings come from standardized tests and are meant for comparing vehicles, so your real mileage can be higher or lower depending on how and where you drive and on the condition of the car. According to fueleconomy.gov, aggressive driving can cut gas mileage by roughly 15% to 30% at highway speeds and 10% to 40% in stop-and-go traffic, and mileage usually drops quickly above 50 mph. For a long highway trip at speed, or a loaded car with a roof box, it is sensible to budget a little extra.
Frequently asked questions
How do I calculate gas cost for a trip?
Divide the miles by your car's mpg to get gallons, then multiply by the price per gallon. For 300 miles at 30 mpg and $4.35 a gallon, that is 10 gallons and $43.50.
How do I calculate cost per mile?
Divide the price per gallon by your mpg. At $4.35 a gallon and 25 mpg, each mile costs about 17.4 cents. The calculator shows this as cost per mile.
How do I split gas money on a road trip?
Enter the full route, tick round trip if you are coming back, and set the number of people. The calculator divides the fuel cost evenly; 900 miles at 25 mpg and $4.35 comes to $39.15 each for four people.
What mpg should I use for my car?
Your own measured figure is best: fill the tank, reset the trip odometer, drive, refill and divide miles by gallons. Our fuel consumption calculator does this for you. Otherwise use the EPA combined rating, or the highway rating for a mostly interstate trip.
Does driving faster use more gas?
Yes. According to fueleconomy.gov, gas mileage usually decreases rapidly above 50 mph, and each 5 mph over 50 is like paying an additional $0.21 per gallon.
Where can I check current gas prices?
The U.S. Energy Information Administration publishes weekly average retail prices for regular gasoline and diesel, nationally and by region. Prices at individual stations can be well above or below the average.
Sources
This is an estimate of fuel cost only, based on the distance, fuel economy and price you enter. Real consumption varies with traffic, speed, weather, load and driving style.