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

Enter a number greater than 0. Trip meter reading since your last full tank.
Enter a number greater than 0. Fuel it took to fill the tank back up (on the pump or receipt).
Enter a price greater than 0. Add it to see the fill-up cost and cost per mile.

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.

Step by step

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:

  1. Fill the tank completely

    Stop at the first click of the pump, then reset your trip meter or write down the odometer reading.

  2. Drive normally

    Use the car as you usually do. The more miles you drive before refilling, the more accurate the result.

  3. 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.

  4. 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.

MPG = miles driven ÷ gallons used
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.

Planning a drive

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 ÷ MPG
Trip 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.

Open the trip fuel cost calculator

Quick reference

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.

Based on US gallons. Change the gas price in the calculator above to see your own cost.
Fuel mileageL/100 kmkm/LGallons per 100 miCost per 100 mi ($3.50/gal)
15 MPG15.686.386.67$23.33
20 MPG11.768.505.00$17.50
25 MPG9.4110.634.00$14.00
30 MPG7.8412.753.33$11.67
35 MPG6.7214.882.86$10.00
40 MPG5.8817.012.50$8.75
50 MPG4.7021.262.00$7.00
FAQ

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.