Home / Guides / How to Calculate Gas Mileage (MPG) by Hand

How to Calculate Gas Mileage (MPG) by Hand

Short answer: divide the miles you drove by the gallons it took to refill the tank. 350 miles on 12.5 gallons is 350 ÷ 12.5 = 28 mpg, which is 8.4 L/100 km, and at $3.20 a gallon it costs 11.4 cents per mile.

The formula

Miles per gallon needs only two numbers: how far you went and how much fuel you put back in. Our gas mileage calculator uses these formulas:

MPG = miles driven ÷ gallons used
L/100 km = 235.215 ÷ MPG
km per liter = MPG × 0.425144
Fuel cost per mile = price per gallon ÷ MPG

Example: you drive 350 miles, then the pump takes 12.5 gallons to fill the tank again. 350 ÷ 12.5 = 28.0 mpg. In metric that is 235.215 ÷ 28 = 8.40 L/100 km, or 28 × 0.425144 = 11.90 km per liter. At $3.20 a gallon the tank cost $40.00, and fuel is $3.20 ÷ 28 = $0.114 per mile ($114 per 1,000 miles).

Step by step

  1. Fill the tank until the pump clicks off once, and write down the odometer (or reset the trip meter).
  2. Drive normally until the tank is at least half empty. Longer is better, because the pump's click-off point varies a little.
  3. Go back to the same pump if you can, fill until it clicks off once, and write down the gallons.
  4. Divide the miles by the gallons. With odometer readings, subtract first: 42,450 - 42,100 = 350 miles.

The gallons from the second fill-up are the fuel you burned over those miles. Do not use the gallons from the first fill-up.

Worked fill-ups

Six example fill-ups, calculated with the same formulas. Price is $3.20 a gallon.

MilesGallonsMPGL/100 kmCost per mileCost of the tank
35012.528.08.40$0.114$40.00
41213.630.37.76$0.106$43.52
2879.829.38.03$0.109$31.36
52011.246.45.07$0.069$35.84
1809.020.011.76$0.160$28.80
2404.850.04.70$0.064$15.36

MPG to L/100 km and cost, 10 to 60 mpg

Higher MPG always means lower L/100 km, but the scale is not linear: going from 10 to 20 mpg saves far more fuel than going from 40 to 50. Cost columns use $3.20 a gallon and 12,000 miles a year.

MPGL/100 kmkm per literCost per mileCost per 1,000 milesFuel per year
1023.524.25$0.320$320$3,840
1515.686.38$0.213$213$2,560
2011.768.50$0.160$160$1,920
259.4110.63$0.128$128$1,536
307.8412.75$0.107$107$1,280
356.7214.88$0.091$91$1,097
405.8817.01$0.080$80$960
504.7021.26$0.064$64$768
603.9225.51$0.053$53$640

Going from 20 mpg to 30 mpg saves $640 a year at these assumptions ($1,920 to $1,280). Going from 40 to 50 mpg saves $192.

Averaging several fill-ups correctly

Do not average the MPG numbers. Add up all the miles and divide by all the gallons. Two tanks: 300 miles on 10 gallons (30 mpg) and 400 miles on 16 gallons (25 mpg). The true average is 700 ÷ 26 = 26.9 mpg. Averaging the two MPG figures gives 27.5, which is too high because the thirstier tank burned more fuel.

Why your number differs from the sticker

Planning a drive? The fuel cost calculator turns your MPG into a trip price, and the cost per mile calculator adds insurance, depreciation and upkeep.

Try the gas mileage calculator

Enter your own numbers below, or open the full gas mileage calculator with the formula and more examples.

This guide is general information with example numbers, not financial, tax or mechanical advice. Your costs and results will differ. Terms

Frequently asked questions

How do I calculate MPG?

Divide miles driven by gallons used. 350 miles on 12.5 gallons is 350 ÷ 12.5 = 28 mpg.

How do I convert MPG to L/100 km?

Divide 235.215 by the MPG. 28 mpg is 8.40 L/100 km, and 50 mpg is 4.70 L/100 km.

How do I average the MPG of several fill-ups?

Add all the miles, add all the gallons, then divide. Two tanks of 300 miles on 10 gallons and 400 miles on 16 gallons average 700 ÷ 26 = 26.9 mpg, not 27.5.

How much does each mile cost in fuel?

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

How much more does 20 mpg cost than 30 mpg?

At $3.20 a gallon and 12,000 miles a year, 20 mpg costs $1,920 a year in fuel and 30 mpg costs $1,280, a difference of $640.