Skip to content
FiftyCalc Free calculators for all 50 states

Gas Mileage Calculator

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

Fill the tank, note the odometer, drive, fill again and enter the gallons it took.

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.

Gas Mileage 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.

Affiliate link

This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.

Search Amazon for mileage log books. Visit Amazon

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 driven since the last full tank ÷ gallons to refill. L/100 km = 235.215 ÷ MPG (from 3.785411784 L per gallon and 1.609344 km per mile).

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

How do I calculate my gas mileage?

Fill up, reset the trip meter, drive, fill up again and divide the miles by the gallons.

Is the dashboard MPG accurate?

Trip computers are often a few percent optimistic; the fill-up method is the reference.

Questions answered

Related calculators