My Volume Calculator
What do you want to work out?

Gas Mileage Calculator

Enter the distance you drove, or the odometer reading at each fill-up, and the fuel you added. The calculator returns miles per gallon, liters per hundred kilometers, kilometers per liter, gallons per hundred miles and, if you add the price, the cost per mile. It shows the division so you can check it.

See also: plan fuel and tolls for a road trip

Checked Rules used

How the gas mileage calculator works

The fields hold the worked example. Change any value and the result updates at once.

Read it when the tank was filled. Use this and the next box, or type the distance below.

Read it when you fill the tank again. If both readings are filled, they are used.

Use this if you reset a trip meter instead of using the odometer.

What the pump says you put in to fill the tank again.

Optional. Add it to see the cost of each mile.

Result

Fill in the fields above to see the result and every step here.

Work out what a trip will cost in fuel →

Worked example: odometer readings

An odometer that moves from 45,000 to 45,360 while 12 gallons go in at the next fill-up works out to 30 miles per gallon. That is 7.8 liters per hundred kilometers or 12.75 kilometers per liter, and at $3.50 dollars a gallon the fuel costs $0.12 dollars per mile.

The full-tank method

Fill the tank until the pump clicks off and write down the odometer. Drive as you normally do. At the next fill-up, fill to the same point and write down the new odometer and the fuel the pump gave you. The fuel you added is the fuel you burned since the first fill-up, and the miles between the two readings are the distance. Miles divided by gallons is your miles per gallon.

The steps of the worked example appear here.

One tank is noisy. A stop-and-go week, a cold morning or a different pump can move the figure, so average a few fill-ups for a number you can trust. The tank only counts as full if you stop the pump at the same point each time, so do not top it off on one fill-up and not the other.

Method and sources

Miles per gallon is distance divided by fuel. Liters per hundred kilometers is the constant 235.2146 divided by miles per gallon, and kilometers per liter multiplies miles per gallon by 1.6093 kilometers per mile and divides by 3.7854 liters per gallon. Cost per mile is the fuel cost divided by the miles driven. The conversion factors come from NIST, and the way fuel economy is reported follows fueleconomy.gov.

What this calculator does not cover

  • One tank is noisy; average several fill-ups for a reliable number.
  • A fill-up only counts if the tank is filled to the same point each time.

Figures and calculation checked on Oct 10, 2026.

How we calculate · Official sources

Gas mileage FAQ

How do you figure out gas mileage?

Divide the miles you drove by the gallons of fuel you used. If you drove 300 miles on 10 gallons, the answer is 30 miles per gallon.

How do you find your gas mileage?

Fill the tank, note the odometer, drive as usual, then fill the tank again and note the gallons it takes. Those gallons are what you burned. Enter the two odometer readings and the gallons here, and the calculator does the division and the unit conversions.

Related tools

Results are estimates for planning. Check quantities with your supplier, and local building codes or a qualified professional for anything structural.