Fuel Mileage Calculator
Calculate your car's fuel mileage from miles driven and gallons used.
- Fuel mileage & L/100 km
- Fill-up cost
- Copy & share results
Fuel Mileage Calculator
Your fuel mileage
0.0miles per gallon
Enter miles driven and gallons used.
- Fuel consumption
- —
- Kilometers per liter
- —
- Fill-up cost
- —
- Cost per mile
- —
Uses US gallons (1 gallon = 3.785 liters). L/100 km = 235.21 ÷ fuel mileage.
How do I calculate fuel mileage?
To calculate fuel mileage, divide the miles you drove by the gallons of gas you used. If you drove 300 miles and it took 10 gallons to fill the tank back up, your fuel mileage is 300 ÷ 10 = 30 MPG.
This "fill-up method" is the most accurate way to calculate gas mileage at home, and it works for any car, truck or SUV:
- Fill the tank completely
Stop at the first click of the pump, then reset your trip meter or write down the odometer reading.
- Drive normally
Use the car as you usually do. The more miles you drive before refilling, the more accurate the result.
- Refill to full and note the gallons
Fill up again to the first click. The gallons pumped (on the pump or receipt) is the fuel you used.
- Divide miles by gallons
Take the trip meter miles (or new odometer minus old odometer) and divide by the gallons. That number is your MPG.
Miles driven = odometer now − odometer at last fill-up
Worked example
Your odometer read 24,150 at the last fill-up and 24,462 now, and the tank took 11.6 gallons.
24,462 − 24,150 = 312 miles
312 ÷ 11.6 = 26.9 MPG
At $3.40 per gallon, that fill-up cost 11.6 × $3.40 = $39.44, or about $0.126 per mile.
How to calculate gas mileage and fuel cost for a trip
Before a trip, you can work out how much gas you will need and what it will cost using your car's MPG, the trip distance and the gas price:
Gallons needed = trip miles ÷ MPGTrip fuel cost = gallons needed × price per gallon
Road trip example
A 450-mile drive in a car that gets 28 MPG, with gas at $3.50 per gallon:
450 ÷ 28 = 16.07 gallons
16.07 × $3.50 = $56.25 one way
For the round trip (900 miles) you would need about 32.14 gallons, or $112.50.
For the best estimate, use the MPG you measured yourself with the fill-up method. Cars usually get better MPG on the highway than in city traffic, so a trip that is mostly highway may use a little less fuel than your everyday average. After the trip, divide the miles you actually drove by the gallons you put in to see your real trip MPG.
MPG conversion and fuel cost chart
How common MPG values convert to liters per 100 km and kilometers per liter, and what 100 miles of driving costs at an example gas price of $3.50 per gallon.
| Fuel mileage | L/100 km | km/L | Gallons per 100 mi | Cost per 100 mi ($3.50/gal) |
|---|---|---|---|---|
| 15 MPG | 15.68 | 6.38 | 6.67 | $23.33 |
| 20 MPG | 11.76 | 8.50 | 5.00 | $17.50 |
| 25 MPG | 9.41 | 10.63 | 4.00 | $14.00 |
| 30 MPG | 7.84 | 12.75 | 3.33 | $11.67 |
| 35 MPG | 6.72 | 14.88 | 2.86 | $10.00 |
| 40 MPG | 5.88 | 17.01 | 2.50 | $8.75 |
| 50 MPG | 4.70 | 21.26 | 2.00 | $7.00 |
Fuel mileage questions
How do I calculate fuel mileage?
Divide the miles you drove by the gallons of fuel you used: MPG = miles ÷ gallons. Fill the tank, reset your trip meter, drive, then refill and note the gallons on the pump. For example, 300 miles ÷ 10 gallons = 30 MPG.
How do I calculate gas cost for a road trip?
Divide the trip distance by your car's MPG to get the gallons needed, then multiply by the price per gallon: cost = miles ÷ MPG × gas price. A 450-mile trip at 28 MPG with gas at $3.50 needs about 16.07 gallons and costs about $56.25. Double the miles for a round trip.
How do I calculate my average MPG over several fill-ups?
Add up all the miles and all the gallons, then divide: average MPG = total miles ÷ total gallons. Do not average the MPG numbers themselves. Example: 300 miles on 10 gallons (30 MPG) plus 100 miles on 5 gallons (20 MPG) is 400 ÷ 15 = 26.7 MPG, not 25.
How do I calculate the cost of fuel?
Multiply the gallons by the price per gallon. If you only know the distance, use fuel cost = miles ÷ MPG × price per gallon. To get the fuel cost of each mile, divide the gas price by your MPG, for example $3.50 ÷ 28 MPG = $0.125 per mile.