Knowing your real gas mileage tells you what your vehicle actually costs to run, whether something is wrong with it, and how a change in your driving or a set of new tires has affected it. The method is old and simple: fill the tank, drive, fill it again, and divide the distance by the fuel you added. The only complication is the units, because the same figure can be expressed as miles per gallon (US or imperial), litres per 100 kilometers or kilometers per litre. This gas mileage calculator accepts the distance in miles or kilometers and the fuel in US gallons, imperial gallons or litres, and returns all of the common measures. Add the fuel price and it also gives the cost per mile.
How to use the gas mileage calculator
- Fill the tank and record the odometer or reset the trip meter.
- Drive, then refill to the same level and note the amount of fuel added and the distance driven.
- Enter the distance and the fuel, and choose the units used by your odometer and pump.
- Enter the price of fuel (optional) to see the cost per mile.
Gas mileage formulas
mpg (imperial) = miles ÷ imperial gallons
L/100 km = litres ÷ kilometers × 100 = 235.215 ÷ mpg (US)
km/L = kilometers ÷ litres = 100 ÷ (L/100 km)
Cost per mile = price per gallon ÷ mpg
1 US gallon = 3.785412 litres, 1 imperial gallon = 4.54609 litres and 1 mile = 1.609344 km. The conversion between mpg and L/100 km is reciprocal, so a bigger mpg means a smaller L/100 km.
Worked examples
- US fill-up: 342 miles on 11.4 gallons = 30.0 mpg, which is 7.84 L/100 km and 12.75 km/L. At $3.70 a gallon, the cost is $0.123 per mile.
- Metric: 620 km on 41.5 L = 41.5 ÷ 620 × 100 = 6.69 L/100 km, or 14.94 km/L, which is 35.1 US mpg.
- Imperial: 250 miles on 7.2 imperial gallons = 34.72 imperial mpg, or 28.91 US mpg.
- Efficient car: 180 miles on 5 gallons = 36 mpg.
Fuel economy conversions
| mpg (US) | L/100 km | km/L | mpg (imperial) |
|---|---|---|---|
| 15 | 15.68 | 6.38 | 18.0 |
| 20 | 11.76 | 8.50 | 24.0 |
| 25 | 9.41 | 10.63 | 30.0 |
| 30 | 7.84 | 12.75 | 36.0 |
| 35 | 6.72 | 14.88 | 42.0 |
| 40 | 5.88 | 17.01 | 48.0 |
| 50 | 4.70 | 21.26 | 60.0 |
Getting an accurate measurement
- Use full tanks. Fill until the pump clicks off the first time, both times.
- Measure several tanks. One tank can be skewed by a trip or by how the pump shut off; averaging three or more gives a better figure.
- Do not trust the dashboard blindly. The trip computer is often a little optimistic, so compare it with a hand calculation.
- Track changes. A sudden drop in mileage can point to under-inflated tires, a dragging brake, a faulty sensor or a tune-up that is due.
- Note the conditions. City versus highway, season and load all change the result.
Related tools
Use your figure to cost a trip with the Fuel Cost Calculator or to compare vehicles with the Fuel Savings Calculator. Convert units with the Kilometers per Liter Converter and the L/100 km Fuel Consumption Calculator, and check your speedometer with the Speedometer Error Calculator, because a speedometer that reads high makes the odometer read high too.
Frequently asked questions
How do I calculate my gas mileage?
Fill the tank and note the odometer (or reset the trip meter). Drive normally, then fill the tank again and note the distance driven and the amount of fuel it took. Miles per gallon = miles driven ÷ gallons added. 342 miles on 11.4 gallons is 30.0 mpg.
Why must I fill the tank to the same level each time?
The fuel you add at the second fill-up is the fuel burned since the first, but only if the tank is filled to the same point both times. Different pump shut-off points or tilted pumps can add errors. Measuring over several tanks and averaging smooths them out.
What is the difference between US and imperial mpg?
An imperial gallon is 4.546 L and a US gallon is 3.785 L, so the same car has a higher imperial mpg number: 30 US mpg is 36.0 imperial mpg. Always check which gallon a number refers to.
How do I convert mpg to L/100 km?
L/100 km = 235.215 ÷ mpg (US). 30 mpg is 7.84 L/100 km, and 25 mpg is 9.41. The conversion is its own inverse, so mpg = 235.215 ÷ L/100 km. Lower L/100 km means better economy, while higher mpg means better economy.
Why is my mileage lower than the sticker?
Ratings come from standardized tests. Speed, aggressive acceleration, short trips, cold weather, headwinds, low tire pressure, extra weight, roof racks and heavy air conditioning use all lower real-world mileage. A drop of 10% to 20% from the label is not unusual.