Gas Mileage (MPG) Calculator
To calculate your MPG, divide the miles you drove by the fuel you used: 420 miles on 13.5 US gallons is 31.11 MPG (US), which is also 7.56 L/100 km, 37.36 MPG (UK) and 13.23 km/L. Enter the distance in miles or kilometres, or the odometer at the start and end, and the fuel in US gallons, imperial gallons or litres, and the tool shows all four units at once. Add a fuel price to see the cost per mile and per kilometre ($0.116 per mile for the made-up example price), or paste several fill-ups to average them. Conversions use the exact definitions of the gallon and the mile.
Updated Runs in your browser: nothing you enter is uploadedHow this tool works
Mileage from one fill-up
31.11 MPG (US), 7.56 L/100 km
420 mi on 13.5 US gal.
- MPG (US)
- 31.11
- MPG (UK, imperial)
- 37.36
- L/100 km
- 7.56
- km/L
- 13.23
- Distance
- 420 mi (675.9 km)
- Fuel used
- 51.1 L
- Fuel cost
- $48.60
- Cost per mile
- $0.116
- Cost per km
- $0.072
A higher MPG or km/L is better; a lower L/100 km is better. The price is the one you entered, not a current or typical fuel price.
Fill-up log average
Average 30.77 MPG (US), 7.65 L/100 km
4 fill-ups: 1,446 mi on 47 US gal.
- MPG (US)
- 30.77
- MPG (UK, imperial)
- 36.95
- L/100 km
- 7.65
- km/L
- 13.08
- Total distance
- 1,446 mi (2,327.1 km)
- Total fuel
- 177.91 L
- Fuel cost
- $169.20
- Cost per mile
- $0.117
- Cost per km
- $0.073
- Best fill-up
- Fill-up 1, 31.25 MPG (US)
- Worst fill-up
- Fill-up 4, 30.57 MPG (US)
- Fill-up 1
- 31.25 MPG (US), 7.53 L/100 km
- Fill-up 2
- 30.69 MPG (US), 7.66 L/100 km
- Fill-up 3
- 30.58 MPG (US), 7.69 L/100 km
- Fill-up 4
- 30.57 MPG (US), 7.69 L/100 km
The average is the total distance divided by the total fuel, so a big fill-up counts for more than a small one. A higher MPG or km/L is better; a lower L/100 km is better. The price is the one you entered, not a current or typical fuel price.
Planning a trip instead? The Fuel Cost Calculator turns your MPG into the fuel and cost of a journey, and splits it between people.
MPG (US) in MPG (UK), L/100 km and km/L
| MPG (US) | MPG (UK) | L/100 km | km/L |
|---|---|---|---|
| 10 | 12.01 | 23.52 | 4.25 |
| 15 | 18.01 | 15.68 | 6.38 |
| 20 | 24.02 | 11.76 | 8.5 |
| 25 | 30.02 | 9.41 | 10.63 |
| 30 | 36.03 | 7.84 | 12.75 |
| 35 | 42.03 | 6.72 | 14.88 |
| 40 | 48.04 | 5.88 | 17.01 |
| 45 | 54.04 | 5.23 | 19.13 |
| 50 | 60.05 | 4.7 | 21.26 |
| 55 | 66.05 | 4.28 | 23.38 |
| 60 | 72.06 | 3.92 | 25.51 |
The exact constants behind every conversion
| Quantity | Value | Where it is used |
|---|---|---|
| 1 mile | 1.609344 km (exact) | Every mile and kilometre conversion |
| 1 US gallon | 3.785411784 L (exact) | MPG (US), fuel in US gallons |
| 1 imperial gallon | 4.54609 L (exact) | MPG (UK), fuel in imperial gallons |
| L/100 km × MPG (US) | 235.21 (100 × 3.785411784 ÷ 1.609344) | L/100 km = this ÷ MPG (US) |
| L/100 km × MPG (UK) | 282.48 (100 × 4.54609 ÷ 1.609344) | L/100 km = this ÷ MPG (UK) |
How to calculate your gas mileage
- Fill the tank and note the odometer. Fill up completely, until the pump clicks off, and write down the odometer or reset the trip meter. Use the same pump and the same stopping point every time.
- Drive, then fill up again. Drive as you normally would. At the next fill-up, fill to the same point and note how much fuel the pump put in, and the odometer reading or trip distance.
- Enter the distance and the fuel. Choose “Distance driven” and type the miles or kilometres, or choose “Odometer start and end” and type both readings. Then type the fuel added and its unit. The example is 420 miles on 13.5 US gallons.
- Read your mileage. The result shows MPG (US), MPG (UK), L/100 km and km/L. For the example that is 31.11 MPG (US) and 7.56 L/100 km.
- Add a price or average several fill-ups. Type what you paid per unit of fuel to see the cost per mile and per kilometre ($0.116 and $0.072 for the made-up example price). For a steadier figure, paste your last few fill-ups into the log: the example's 4 fill-ups average 30.77 MPG (US), 7.65 L/100 km.
Frequently asked questions
- How do I calculate MPG?
- Divide the miles driven by the gallons of fuel used. 420 miles on 13.5 US gallons is 420 ÷ 13.5 = 31.11 MPG (US). If your fuel was measured in litres, the tool converts it using 1 US gallon = 3.785411784 L, and for kilometres it uses 1 mile = 1.609344 km.
- How do I use odometer readings instead of the distance?
- Choose “Odometer start and end”, then type the reading when you filled up last time and the reading now. The distance is the difference: 45,630 minus 45,210 is 420 mi, the same 31.11 MPG (US) as typing the distance. The ending reading must be higher than the starting one.
- How do I convert MPG to L/100 km?
- Divide 235.21 by the MPG (US) figure: L/100 km = 235.21 ÷ MPG. The constant is 100 × 3.785411784 ÷ 1.609344. So 31.11 MPG (US) is 7.56 L/100 km. For imperial MPG the constant is 282.48. The same formula works backwards, and km/L is simply 100 ÷ (L/100 km): 7.56 L/100 km is 13.23 km/L.
- Why is my MPG (UK) higher than my MPG (US)?
- The imperial gallon (4.54609 L) is larger than the US gallon (3.785411784 L), so the same car goes further on one imperial gallon. MPG (UK) is MPG (US) × 4.54609 ÷ 3.785411784, about 1.2 times as much: 31.11 MPG (US) is 37.36 MPG (UK). Eight imperial gallons over 300 miles, for instance, is 37.5 MPG (UK) but 31.23 MPG (US). Always check which gallon a figure uses.
- How do I work out the cost per mile?
- Enter the price you pay per US gallon, imperial gallon or litre and the tool works out the fuel cost of the distance, then divides by the distance. For the example, 51.1 L at a made-up $3.60 per US gallon costs $48.60: $0.116 per mile or $0.072 per kilometre. In metric, 500 km on 40 L at 2.00 per litre (also made up) is $0.160 per kilometre. For the cost of a whole trip, split between passengers, use the fuel cost calculator.
- How do I average several fill-ups?
- Put one fill-up per line in the log, the distance since the last fill-up then the fuel added, like “350 11.2”. The tool adds up all the distance and all the fuel and divides once, so the example's 4 fill-ups give 30.77 MPG (US), 7.65 L/100 km. It also lists the best and worst fill-up so you can spot an odd tank.
- Why not just average the MPG figures?
- A small top-up would count as much as a full tank. Say you drive 100 miles on 1 gallon (100 MPG) and another 100 miles on 9 gallons (11.11 MPG). The mean of those two figures is 55.56, but you drove 200 miles on 10 gallons, which is 20 MPG. Dividing total distance by total fuel gives the figure that matches what you spent.
- Is a higher or lower number better?
- Higher MPG or km/L is better, because those count how far one unit of fuel takes you. For L/100 km it is the other way round: it counts fuel used over a fixed distance, so a lower number means a more economical car. The conversion table above shows the same results in each unit.
- How accurate is a single fill-up?
- Less than you might think. Pumps stop at slightly different points, and a few percent of error is common between two fill-ups. Fill to the same click each time, use the same pump if you can, and average several tanks. Real mileage also depends on speed, load, weather, traffic and driving style, so treat the result as an estimate of your own driving.
- Does the calculator know current fuel prices?
- No. It does not fetch or store any prices; you type the price you pay. The example price on this page is made up to show how the sums work and is not a real or current price.
- What about electric cars?
- Electric vehicles are out of scope here. They are rated in kWh per 100 km or miles per kWh, and charging prices work differently, so this tool only covers liquid fuel. Nothing you type is stored or sent anywhere.
How it works
All conversions come from three exact definitions: 1 mile = 1.609344 km, 1 US gallon = 3.785411784 L and 1 imperial gallon = 4.54609 L (NIST Special Publication 811). Your fuel economy is held as litres per 100 km: fuel in litres × 100 ÷ distance in km. For MPG the factor is calculated, not typed in: MPG = 100 × (litres per gallon) ÷ (km per mile) ÷ (L/100 km), which is 235.21 ÷ (L/100 km) for MPG (US) and 282.48 ÷ (L/100 km) for MPG (UK) to two decimals; km/L = 100 ÷ (L/100 km). With odometer readings the distance is the ending reading minus the starting one. The fuel cost is the litres used, divided by the litres in the price's unit, times the price you typed, rounded to a whole cent; the cost per mile and per kilometre divide that unrounded cost by the distance and show three decimals. In the log, the average is the sum of all distances over the sum of all fuel, converted once, rather than the mean of the per-fill-up figures. Displayed economy figures are rounded to two decimals while the calculation keeps full precision. This tool shares its units and conversions with the fuel cost calculator, so the two always agree. The calculator holds no fuel prices and makes no claim about what fuel costs; the example price is hypothetical. Electric vehicles are not covered. Everything runs in your browser and nothing you type is sent anywhere.
Sources
More free tools
- Trip Fuel Cost CalculatorWork out what a trip’s fuel costs from distance, fuel economy (MPG, L/100 km or km/L) and price, round trip included, and split it between people.
- Speed, Distance and Time CalculatorEnter any two of speed, distance and time and get the third, in mph, km/h, knots and more. Add stops and a departure time to see when you arrive.
- Tire Size CalculatorDecode a tire size like 225/45R17 into width, sidewall, diameter and revs per mile, compare two sizes for speedometer error, and read load and speed codes.
- Speed ConverterConvert speed between mph, km/h, m/s, knots, ft/s, Mach and the speed of light, with exact factors, every unit at once and a table of common speeds.
- Fuel Economy ConverterConvert mpg (US), mpg (UK), km/L and L/100 km both ways with exact gallon and mile definitions, a 10-60 mpg table, worked examples and zero handling.
- Overtime CalculatorGross pay with overtime at 1.5×, 2× or your own multiplier, from regular and overtime hours, weekly totals or a daily table with the California daily rule.
More: Pay and everyday costsAll money & costsAll toolsHome & DIY calculators