EVGasCalc Full TCO calc
Gas mileage calculator

MPG calculator.

Your real miles per gallon from a fill-up, with cost per mile and L/100 km. Keep a fill-up log below to track your average over time.

Miles driven
At the pump
Fill until the pump clicks off, both times, for an accurate number.
National average. Pick a state or type what you paid.
Optional
On the window sticker or at fueleconomy.gov.
Fill-up log

Track your average MPG.

Add the odometer reading and gallons each time you fill the tank. MPG is worked out between fill-ups. Your log is saved in this browser only; nothing is sent to us.

DateOdometerGallonsPaid$/galMilesMPG
Average MPG
–
Cost per mile
–
Miles logged
–
Spent on gas
–

How to work out your MPG

MPG is miles driven ÷ gallons used. The only reliable way to measure it is at the pump:

  1. Fill the tank until the pump clicks off. Don't top up past the click.
  2. Reset the trip meter, or write down the odometer reading.
  3. Drive normally until you need gas again.
  4. Fill to the click again and note the gallons on the pump.
  5. Divide the miles on the trip meter by those gallons.

330 miles on 12 gallons is 27.5 MPG. One tank can be thrown off by a highway trip or a week of short errands, so average a few. The fill-up log above adds up the miles and gallons across every tank, which gives a truer average than averaging the per-tank MPG figures.

MPG, cost per mile and L/100 km

Cost per mile is the price per gallon divided by MPG. L/100 km (used in Canada and most of the world) is 235.2 divided by MPG. At $4.10 a gallon:

MPGCost per milePer 1,000 milesL/100 km
15$0.273$273.3315.7
20$0.205$205.0011.8
25$0.164$164.009.4
30$0.137$136.677.8
35$0.117$117.146.7
40$0.103$102.505.9
50$0.082$82.004.7

Why your MPG is below the sticker

The EPA numbers come from standard lab tests that try to reflect typical driving, but plenty of everyday conditions pull real MPG lower:

  • Cold weather. A cold engine and thicker fluids burn more fuel, and winter-blend gas holds slightly less energy.
  • Short trips. The engine is least efficient while warming up, and a two-mile errand never gets past that stage.
  • Speed. Above about 50 mph, air resistance climbs fast and MPG drops with it.
  • Load and drag. Roof racks, cargo boxes, towing and a full car all cost fuel.
  • Tires. Underinflated tires roll less easily. Check the pressure on the door-jamb sticker monthly.

To see what your MPG means in dollars over a month or a year, use the fuel cost calculator. To compare it against an electric car, the cost per mile calculator puts both side by side.

Frequently asked

Gas mileage, answered.

Fill the tank until the pump clicks off and reset your trip meter. At your next fill-up, fill to the click again and divide the miles on the trip meter by the gallons you just bought. 330 miles on 12 gallons is 27.5 MPG.
The EPA rating comes from standard lab tests, and real driving often falls short. Cold weather, short trips where the engine never warms up, high highway speeds, idling, a heavy load or a roof rack, and underinflated tires all lower MPG. A result within about 10% of the combined rating is normal.
It is usually close, but trip computers often read a little optimistic. Working it out from miles and gallons at the pump over several fill-ups is the most reliable number. The fill-up log on this page does that for you.
Divide 235.2 by the MPG (U.S. gallons). 30 MPG is 7.8 L/100 km, 25 MPG is 9.4 L/100 km and 40 MPG is 5.9 L/100 km. Lower L/100 km means better fuel economy.
Divide the price per gallon by your MPG. At $4.10 a gallon, a 30 MPG car costs 13.7 cents a mile and a 20 MPG truck costs 20.5 cents a mile.