Gas mileage calculator

MPG = miles driven since the last fill-up ÷ gallons needed to fill the tank again.

29.0 mpg
342 miles ÷ 11.8 gallons
8.12L/100 km
12.32km/L
34.8mpg (UK)
$0.12Fuel cost per mile
$41.18Cost of this fill

How to measure mpg at the pump

  1. Fill the tank until the pump clicks off and reset the trip meter.
  2. Drive normally until you need fuel.
  3. Fill up again the same way and note the gallons.
  4. Divide trip miles by gallons.

Worked example

342 miles ÷ 11.8 gallons = 29.0 mpg, which is 8.12 L/100 km. At $3.49 per gallon each mile cost about $0.12.

Quick reference: 300 miles on a tank

Gallons usedMPGL/100 km
837.56.27
933.37.06
1030.07.84
1127.38.62
1225.09.41
1421.410.98
1618.812.54
2015.015.68

Average several tanks for a reliable number: a single fill can be off by a gallon depending on the pump's shut-off.

Frequently asked questions

Is my dashboard mpg accurate?
Trip computers are often a few percent optimistic. Hand calculation over several fill-ups is the most reliable check.
How do I calculate mpg with an odometer?
Subtract the previous odometer reading from the current one to get miles driven, then divide by the gallons added.