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
Distance, fuel and price
The UK quotes MPG in imperial gallons but sells fuel by the litre; most other countries use L/100 km or km/L.
Since the last fill-up: the trip meter, or the odometer difference.
What it took to fill the tank back up (the pump reading).
In your own currency; three decimals are fine (3.459).
MPG = miles ÷ gallons; L/100 km = litres ÷ km × 100; km/L = km ÷ litres. 1 mile = 1.609344 km, 1 US gallon = 3.785411784 L, 1 UK gallon = 4.54609 L. Worked out in your browser; nothing is sent.
Result
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).

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.

  1. Fill the tank, then reset the trip meter or note the odometer.
  2. Drive as usual, then fill up again and note the gallons or litres the pump shows.
  3. Choose your Units, type the Distance driven (or both odometer readings) and the Fuel used. Add the Fuel price to see the cost per mile.
  4. For a trip, switch Find to Trip fuel cost and type the distance, your fuel economy and the price; tick Round trip or add the people sharing it.

300 miles on 12 US gallons at 3.50 a gallon, the result rows as the tool shows them.

Input
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.50
Output
Fuel 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.14

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.