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
Result
How it was calculated
Fill in the fields above to see the result and every step here.
- Checked Source: Information on EPA fuel economy estimates, Unit Conversion, Handbook 44 (2026) Appendix C, General Tables of Units of Measurement, 2026 Fuel Economy Guide (combined 55 percent city, 45 percent highway)
- Checked Source: Unit Conversion, Special Publication 811, Guide for the Use of the International System of Units, Handbook 44 (2026) Appendix C, General Tables of Units of Measurement, SP 811 Appendix B.8, Factors for units listed alphabetically, U.S. Survey Foot
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.
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.