Gas Mileage Calculator
: Work out your gas mileage in MPG or L/100 km from miles and gallons or odometer readings, the fuel cost of a trip, the yearly saving of a more efficient car, and MPG to L/100 km and km/L- Fuel economy
- 25 MPG (US)
- 300 mi on 12 gal (45.42 L).
- Working
- 300 mi ÷ 12 gal = 25 MPG (US)
- MPG (UK)
- 30.02 MPG (UK)
- L/100 km
- 9.41 L/100 km
- km/L
- 10.63 km/L
- Miles per litre
- 6.6
- Fuel cost
- 42.00
- 12 gal × 3.50 per gallon.
- Cost per mile
- 0.14
- 42.00 ÷ 300 mi; per 100 mi: 14.00.
- For a true figure, fill the tank to the first click, note the odometer, drive, fill to the first click again: the litres or gallons of the second fill are the fuel used. A dashboard readout is often a few percent optimistic.
- A UK (imperial) gallon is 4.54609 litres and a US gallon 3.785411784 litres, so the same car reads about 20% more MPG in the UK: 30 MPG (US) is 36.03 MPG (UK).
Gas Mileage Calculator
This gas mileage calculator works out your car's fuel economy in miles per gallon (MPG) from the miles you drove and the gallons it took to fill up, or from two odometer readings. It also finds the fuel cost of a trip, compares what two cars cost to fuel over a year, and converts MPG to L/100 km and km/L, in US gallons, UK gallons or litres.
How to calculate gas mileage
- Fill the tank, then reset the trip meter or note the odometer.
- Drive as usual, then fill up again and note the gallons or litres the pump shows.
- Choose your
Units, type theDistance driven(or both odometer readings) and theFuel used. Add theFuel priceto see the cost per mile. - For a trip, switch
FindtoTrip fuel costand type the distance, your fuel economy and the price; tickRound tripor add the people sharing it.
Example
300 miles on 12 US gallons at 3.50 a gallon, the result rows as the tool shows them.
Find: Fuel economy (from distance and fuel)
Units: Miles, US gallons, MPG
Distance driven (mi): 300
Fuel used (gal): 12
Fuel price per gallon: 3.50Fuel economy: 25 MPG (US)
Working: 300 mi ÷ 12 gal = 25 MPG (US)
MPG (UK): 30.02 MPG (UK)
L/100 km: 9.41 L/100 km
km/L: 10.63 km/L
Miles per litre: 6.6
Fuel cost: 42.00
Cost per mile: 0.14Details
- To calculate MPG, divide the miles driven by the gallons used: 300 miles on 12 gallons is 25 MPG (US). With odometer readings, subtract first: 12,652 − 12,340 = 312 miles on 11.2 gallons is 27.86 MPG (US). The fuel used is what the pump puts back in when you fill to the first click, so a full-to-full fill-up gives a truer figure than the dashboard readout.
- In litres and kilometres, fuel economy is usually given as litres per 100 km: litres ÷ km × 100. 38.5 litres over 520 km is 7.4 L/100 km, which is 31.77 MPG (US) or 13.51 km/L. A lower L/100 km figure is better, the opposite of MPG.
- The trip fuel cost is the distance ÷ MPG × the price per gallon. A 250-mile drive each way at 28 MPG with gas at 3.49 a gallon: 500 mi ÷ 28 MPG (US) = 17.86 gal × 3.49 = 62.32 for the round trip. In L/100 km: 400 km × 6.5 L/100 km ÷ 100 = 26 L × 1.90 = 49.40, or 16.47 each for three people. The table under the result shows the same trip at other fuel economies.
- To compare two cars, the calculator works out each one's fuel for the year at your mileage and price. Over 12,000 miles at 3.50 a gallon, a 22 MPG car costs 1,909.09 a year and a 45 MPG car 933.33: a saving of 975.76 a year, 4,878.79 over five years. MPG does not scale in a straight line: going from 10 to 20 MPG saves more fuel than going from 20 to 50.
- US and UK MPG differ because the gallons differ: a US gallon is 3.785 litres and a UK (imperial) gallon 4.546 litres. 30 MPG (US) is 36.03 MPG (UK) and 7.84 L/100 km; 40 MPG (UK) is 33.31 MPG (US) and 7.06 L/100 km. To convert, L/100 km = 235.21 ÷ MPG (US) = 282.48 ÷ MPG (UK).
Limits
- The result is only as good as the fuel figure: fill to the first click both times, and average several fill-ups for a steady number. A partly filled tank makes one reading high and the next low.
- Trip costs use one fuel economy for the whole drive; speed, traffic, hills, load, cold weather and air conditioning change real fuel use.
- Costs are in whatever currency you type the price in; the page adds no currency sign and does not look up fuel prices.
- Nothing is stored or sent: the figures are worked out in your browser.
FAQ
How do you calculate gas mileage?
Fill the tank, drive, fill it again and divide the miles driven by the gallons the second fill took. 300 miles on 12 gallons is 25 MPG (US).
How do I figure out how much gas a trip will cost?
Divide the trip's miles by your MPG to get the gallons, then multiply by the price per gallon. 500 miles at 28 MPG is 17.86 gallons; at 3.49 a gallon that is 62.32.
How do I convert MPG to L/100 km?
Divide 235.21 by the US MPG (282.48 for UK MPG). 25 MPG (US) is 9.41 L/100 km; 6 L/100 km is 39.2 MPG (US) or 47.08 MPG (UK).
What is the cost per mile of fuel?
The price per gallon divided by the MPG. At 3.50 a gallon, a 25 MPG car spends 0.14 a mile on fuel and a 40 MPG car 0.09.
Why is my calculated MPG different from the dashboard?
Most trip computers estimate from injector timing and often read a few percent high. A full-to-full fill-up measures the fuel you actually used, so it is the better figure over several tanks.
Runs entirely in your browser. Nothing is uploaded.