Skip to content
FiftyCalc Free calculators for all 50 states

MPG Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Calculate miles per gallon (MPG) from the miles you drove and the gallons you used.

Result

Sample figures

Fuel economy (MPG)—

Miles driven —

  • Fuel consumption (L/100 km)—
  • Fuel cost per mile—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

MPG Calculator

Odometer at first fill-up, in mi: enter 0 or more. Prefilled example: 12,000.

Odometer at this fill-up, in mi: enter 0 or more. Prefilled example: 12,350.

Gallons to refill: enter 0.01 or more. Prefilled example: 11.5.

Price per gallon, in dollars: enter 0 or more. Prefilled example: 3.2.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Odometer at first fill-up, in mi: enter 0 or more.
  2. Odometer at this fill-up, in mi: enter 0 or more.
  3. Gallons to refill: enter 0.01 or more.
  4. Price per gallon, in dollars: enter 0 or more.
  5. Read the result: Fuel economy (MPG); the panel also shows Miles driven, Fuel consumption (L/100 km) and Fuel cost per mile.

How this calculator works

MPG = miles ÷ gallons. Fill up, note the odometer, drive, fill up again and use the gallons of the second fill. L/100 km = 235.215 ÷ MPG.

Compare with the EPA rating for your model on fueleconomy.gov to see how your driving measures up.

The formula

  1. M=end−s
  2. Mpg=Mg
Symbols used in the formula
SymbolMeaningUnit
sOdometer at first fill-upmi
endOdometer at this fill-upmi
gGallons to refill
MMiles driven
MpgFuel economyMPG

Worked example

Odometer at first fill-up12,000 mi
Odometer at this fill-up12,350 mi
Gallons to refill11.5
Price per gallon$3.2
Miles driven350.0
Fuel consumption (L/100 km)7.73
Fuel cost per mile$0.11
  1. M=12,350−12,000=350
  2. Mpg=35011.5=30.4348

Fuel economy (MPG) 30.43

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is the MPG for 420 miles on 12 gallons?

35 MPG, about 6.72 L/100 km.

Is a higher MPG better?

Yes: more miles from each gallon. In L/100 km it is the other way round: lower is better.

Questions answered

Related calculators