Gas Mileage Calculator

Calculate MPG from odometer readings and gallons used. Estimate annual fuel costs at any MPG.

mi
gal

30.0

MPG

7.8

L/100km

12.75

km/L

MPG Comparison at $3.50/gal, 15,000 mi/yr
MPGGal/yearAnnual costvs 30 MPG
20 MPG750$2625+$875
25 MPG600$2100+$350
30 MPG500$1750baseline
35 MPG429$1500$-250
40 MPG375$1313$-438
50 MPG300$1050$-700

How to Use the Gas Mileage Calculator

  1. To calculate your actual MPG: Next time you fill up, reset your trip odometer to zero. Drive normally until your tank is low, then fill up again. Record the miles driven and gallons pumped. Enter those two numbers into the "Calculate MPG" mode above.
  2. To estimate annual fuel costs: Switch to "Estimate Cost" mode. Enter your vehicle's MPG rating (find it at fueleconomy.gov), your annual mileage estimate, and your local gas price. The calculator shows annual cost, monthly cost, and cost per mile.
  3. Use the comparison table to see how different MPG ratings translate to annual fuel spending at a typical gas price and mileage.

Gas Mileage Formulas

Calculating MPG from a fill-up:

MPG = Miles driven / Gallons used

Example: 350 miles driven, 11.5 gallons pumped
MPG = 350 / 11.5 = 30.4 MPG

Converting between systems:

L/100km = 235.215 / MPG
km/L    = MPG × 0.425144

Example: 30 MPG
L/100km = 235.215 / 30 = 7.84 L/100km
km/L    = 30 × 0.425 = 12.75 km/L

Annual fuel cost:

Annual cost = (Annual miles / MPG) × Gas price per gallon

Example: 15,000 miles/year, 30 MPG, $3.50/gal
Cost = (15,000 / 30) × $3.50 = 500 × $3.50 = $1,750/year

Frequently Asked Questions

Fill your tank completely, reset your trip odometer, drive normally, then fill up again. Divide the miles on the odometer by the gallons pumped at the second fill-up. Example: 312 miles driven and 10.4 gallons pumped gives 312 / 10.4 = 30 MPG. Repeat over multiple tanks to get a more reliable average.

Related Calculators