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:
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
- Fill the tank until the pump clicks off once, and write down the odometer (or reset the trip meter).
- Drive normally until the tank is at least half empty. Longer is better, because the pump's click-off point varies a little.
- Go back to the same pump if you can, fill until it clicks off once, and write down the gallons.
- 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.
| Miles | Gallons | MPG | L/100 km | Cost per mile | Cost of the tank |
|---|---|---|---|---|---|
| 350 | 12.5 | 28.0 | 8.40 | $0.114 | $40.00 |
| 412 | 13.6 | 30.3 | 7.76 | $0.106 | $43.52 |
| 287 | 9.8 | 29.3 | 8.03 | $0.109 | $31.36 |
| 520 | 11.2 | 46.4 | 5.07 | $0.069 | $35.84 |
| 180 | 9.0 | 20.0 | 11.76 | $0.160 | $28.80 |
| 240 | 4.8 | 50.0 | 4.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.
| MPG | L/100 km | km per liter | Cost per mile | Cost per 1,000 miles | Fuel per year |
|---|---|---|---|---|---|
| 10 | 23.52 | 4.25 | $0.320 | $320 | $3,840 |
| 15 | 15.68 | 6.38 | $0.213 | $213 | $2,560 |
| 20 | 11.76 | 8.50 | $0.160 | $160 | $1,920 |
| 25 | 9.41 | 10.63 | $0.128 | $128 | $1,536 |
| 30 | 7.84 | 12.75 | $0.107 | $107 | $1,280 |
| 35 | 6.72 | 14.88 | $0.091 | $91 | $1,097 |
| 40 | 5.88 | 17.01 | $0.080 | $80 | $960 |
| 50 | 4.70 | 21.26 | $0.064 | $64 | $768 |
| 60 | 3.92 | 25.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
- Short trips and cold starts use more fuel per mile than steady driving.
- Highway speed: air drag grows quickly above about 50 mph.
- Tire pressure: low tires add rolling resistance. See how cold weather changes pressure in the tire pressure calculator.
- Pump differences: a different pump or a different tilt of the car at the pump can shift one fill-up by a fraction of a gallon, which is why you average several.
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.