Home / Gas Mileage Calculator

Gas Mileage Calculator

Fill the tank, reset your trip meter, drive, then fill up again. Enter the miles and the gallons from the second fill-up to get your real fuel economy.

Your fill-up

mi
mi
mi
gal
$
Fuel economy
0mpg
Miles driven
0
Liters per 100 km
0
Kilometers per liter
0
Fuel cost per mile
-
Cost of this tank
-
Cost per 1,000 miles
-
Average several fill-ups for a reliable number. Weather, traffic and short trips all change MPG.

Estimates for planning only, not financial, tax or mechanical advice. Check with a professional before you decide. Terms

Question about this calculator? Ask us.

How to measure your gas mileage

  1. Fill the tank completely and reset the trip meter (or write down the odometer).
  2. Drive normally until you need fuel again. A full tank gives the most accurate number.
  3. Fill up again at the same pump if you can, and note how many gallons it took.
  4. Enter the miles and gallons above. The gallons from the second fill are exactly what you burned.

MPG formula

MPG = miles driven ÷ gallons used
L/100 km = 235.215 ÷ MPG
Cost per mile = price per gallon ÷ MPG

Worked example

You drove 350 miles and it took 12.5 gallons to refill. 350 ÷ 12.5 = 28 mpg, which is 8.4 L/100 km. At $3.20 a gallon, every mile costs about 11.4 cents in fuel, or $114 per 1,000 miles.

Why your MPG is lower than the sticker

MPG to L/100 km

MPG (US)L/100 kmFuel cost per mile at $3.20
1515.7$0.21
2011.8$0.16
259.4$0.13
307.8$0.11
405.9$0.08
504.7$0.06

Planning a drive? Use the fuel cost calculator. Comparing with an electric car? Try the EV charging cost calculator.

How a small measuring error changes your MPG

The page example is 350 miles on 12.5 gallons, which is 28.0 mpg. MPG comes from one division, so a fill-up error goes straight into the result:

Gallons at the pumpMPGError vs 28.0
12.029.2+1.2
12.528.00
13.026.9-1.1

Half a gallon of difference between the two pump clicks moves the answer by more than 1 mpg. That is why one tank is only a rough reading. Averaging several tanks smooths it out. Say you get 350 miles on 12.5 gallons (28.0 mpg), 410 miles on 14.1 gallons (29.1 mpg) and 380 miles on 12.2 gallons (31.1 mpg). Add up all the miles (1,140) and all the gallons (38.8) first, and the three tanks together give 29.4 mpg.

What an MPG difference is worth

At $3.20 a gallon and 12,000 miles a year:

MPGGallons per yearFuel cost per year
25480$1,536
28429$1,371
31387$1,239

Going from 25 to 28 mpg saves about $165 a year. Going from 28 to 31 saves about $133. The same 3 mpg is worth less each time because you are dividing into a smaller number of gallons. That is also why L/100 km is a better scale for comparing cars: equal steps in L/100 km are equal steps in fuel.

Common mistakes

When one number is not enough

The result is an average for a mix of roads. It cannot tell you whether the extra fuel went to city traffic, winter, or tires that are low on air. Keep a note of the driving type for each tank. Once you have your real MPG, plug it into the fuel cost calculator for trips, and read the guide to calculating gas mileage for a step by step version.

Frequently asked questions

How do I calculate my gas mileage?

Divide the miles you drove by the gallons it took to refill the tank. For example, 350 miles on 12.5 gallons is 28 miles per gallon.

What is good gas mileage?

For a gasoline car in the US, 30 mpg or more is good, and many hybrids reach 45 to 55 mpg. Pickups and large SUVs typically get 15 to 25 mpg.

How do I convert MPG to liters per 100 km?

Divide 235.215 by the MPG. For example, 28 mpg equals 8.4 liters per 100 km.

Is the MPG on my dashboard accurate?

Dashboard readings are often a few percent optimistic. Measuring miles and gallons at the pump over several fill-ups gives a more accurate figure.

How much does it cost me per mile to drive?

Divide the price per gallon by your MPG. At $3.20 a gallon and 28 mpg, fuel costs about 11.4 cents per mile.

Add this calculator to your website

Free for car blogs, auto shops, tire shops and dealers: paste this code into your page (WordPress: Custom HTML block). No ads inside the widget. More options on the free calculator widgets page.

Guides for this calculator

More car calculators

Last updated November 2026.