How a trip becomes mileage
In miles, divide the distance by the US gallons. That quotient is miles per gallon. Gallons per 100 miles is the fuel divided by the distance, times 100. In kilometres, litres per 100 kilometres is the litres divided by the distance, times 100. Kilometres per litre is the distance divided by the litres.
Distance is greater than 0 and at most 100,000. Fuel is greater than 0 and at most 1,000. A blank field, zero, or a negative number has no result. Ten US gallons are 10 only when you type 10. Twenty litres are 20 only when you type 20. Switching the unit does not convert a number you already typed. The miles result is not a conversion of the kilometre result. A US gallon is not an imperial gallon.
How to use this mileage calculator
- Choose miles or kilometres.
- Enter the distance, greater than 0 and at most 100,000, and the fuel, greater than 0 and at most 1,000. In miles the fuel is US gallons. In kilometres it is litres.
- Read the headline. In miles it is miles per gallon, and the row below is gallons per 100 miles. In kilometres it is litres per 100 kilometres, and the row below is kilometres per litre.
Formula
Miles per gallon is the distance divided by the US gallons. Litres per 100 kilometres is 100 times the litres, divided by the distance.
Gallons per 100 miles uses the same 100-times division with US gallons. Kilometres per litre is the distance divided by the litres. The page uses the distance and the fuel you type.
Where the formula comes from
Fuel economy is the relation on the Wikipedia page that defines fuel economy in automobiles.
Worked examples
Example: 300 miles and 10 US gallons
300 ÷ 10 = 30 miles per gallon. 10 ÷ 300 × 100 = 3.33333333333 gallons per 100 miles.
Example: 250 miles and 8 US gallons
250 ÷ 8 = 31.25 miles per gallon. 8 ÷ 250 × 100 = 3.2 gallons per 100 miles.
Example: 100 miles and 3 US gallons
100 ÷ 3 = 33.3333333333 miles per gallon. 3 ÷ 100 × 100 = 3 gallons per 100 miles.
Example: 400 kilometres and 20 litres
20 ÷ 400 × 100 = 5 litres per 100 kilometres. 400 ÷ 20 = 20 kilometres per litre.
Things to keep in mind
200 miles on 6.5 US gallons is 30.7692307692 miles per gallon, and 3.25 gallons per 100 miles. 150 miles on 5 US gallons is 30 miles per gallon, and 3.33333333333 gallons per 100 miles. 320 kilometres on 25 litres is 7.8125 litres per 100 kilometres, and 12.8 kilometres per litre. 180 kilometres on 12.5 litres is 6.94444444444 litres per 100 kilometres, and 14.4 kilometres per litre. 90 kilometres on 6 litres is 6.66666666667 litres per 100 kilometres, and 15 kilometres per litre. A near integer is shown as that integer. Other results keep 12 significant digits, and a trailing zero is left off the screen. This page does not price the fuel or convert miles per gallon into litres per 100 kilometres.
Mileage calculator FAQ
Which fields are required?
Distance and fuel. Distance is greater than 0 and at most 100,000. Fuel is greater than 0 and at most 1,000. The starting unit is miles, and the fuel is then US gallons.
What is the row under the headline?
In miles it is US gallons per 100 miles. In kilometres it is kilometres per litre. The headline is miles per gallon, or litres per 100 kilometres.
Does the page use an imperial gallon?
No. Miles use a US gallon. Kilometres use a litre. The page does not convert one into the other.
Does switching the unit convert the numbers?
No. A typed 300 stays 300. Miles per gallon is not a conversion of litres per 100 kilometres.
Why is there no result?
A blank field, zero, or a negative number has no result. The same is true for a distance above 100,000 or a fuel amount above 1,000.
Does this mileage calculator store my figures?
A completed result can be saved in this browser’s local history, including the distance, the fuel, and the unit you chose. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.