Gas Mileage Calculator

Find out what your car really uses. Enter the distance covered since your last fill up and the fuel it took to refill the tank, and get your true MPG with L/100km, km/L and UK mpg equivalents, your cost per mile and an estimate of your yearly fuel bill.

What you get
  • Your real fuel economyMeasured at the pump, not quoted from a brochure.
  • Four ways to say itUS MPG, L/100km, km/L and UK mpg together.
  • Cost per mile and per yearWhat your driving costs at today's gas price.

Your last fill up

Results update as you type

Use the odometer reading at the previous fill and the reading now.

Runs entirely in your browser. Nothing you type is sent or saved

Gas mileage guide

What gas mileage is

Gas mileage is how far a car travels on a given amount of fuel. In the United States it is stated in miles per gallon (MPG), and a higher number is better: a car rated at 30 MPG goes twice as far on a gallon as one rated at 15 MPG. It is also called fuel economy or fuel efficiency, and it is the single biggest factor in what you spend on gas.

The number on the window sticker is a laboratory estimate. The number that matters is the one your own car achieves on your own roads, with your driving, your cargo and your local weather, and that is what this calculator finds. The method is the one any driver can use with nothing more than the odometer and a fuel receipt.

This page works through a single example: 328.7 miles covered on a tank that took 11.2 gallons to refill, with gas at $3.50 a gallon. Every figure below can be checked against the calculator above.

How to calculate gas mileage

The trick is that a tank is always almost empty when you fill it, so the fuel you add is very nearly the fuel you burned. Follow four steps:

  • Fill the tank completely at any station and note the odometer reading, or reset the trip meter to zero.
  • Drive as you normally would. One tank is the minimum, and several tanks averaged together are better.
  • Fill up again at the same pump if you can, stopping at the first click, and write down the gallons on the receipt and the new odometer reading.
  • Divide the miles by the gallons. That is your MPG for that tank.
Gas mileage = (Odometer now − Odometer at last fill) ÷ Gallons added on this fill

Or simply trip distance ÷ gallons, if you used the trip meter

In the example the odometer moved from 24,150 to 24,478.7, a distance of 328.7 miles, and the refill took 11.2 gallons. So the gas mileage is 328.7 ÷ 11.2 = 29.35 MPG. If you already know the distance, switch the calculator to trip distance mode and enter 328.7 directly.

Notice what the first fill contributes: nothing but a starting point. Its gallons are not part of the sum, because they replaced fuel burned before the test began.

Converting MPG to L/100km

Most countries measure fuel consumption instead: liters per 100 kilometers (L/100km), the volume burned over a fixed distance, where a lower number is better. The conversion is a division, not a multiplication, because the two measures are upside down relative to each other.

L/100km = 235.215 ÷ MPG     km/L = MPG × 0.425144     UK mpg = US MPG × 1.20095

235.215 is 100 km written in miles (62.137) times the liters in a US gallon (3.7854)

Applied to the example car: 235.215 ÷ 29.35 = 8.01 L/100km, and 29.35 × 0.425144 = 12.48 km/L. The same car in a British brochure shows 35.25 mpg, because the imperial gallon holds 4.546 liters against the US gallon's 3.785.

US MPGL/100kmkm/LUK mpgCost per mile at $3.50
1515.686.3818.01$0.23
2011.768.5024.02$0.18
259.4110.6330.02$0.14
307.8412.7536.03$0.12
405.8817.0148.04$0.09
504.7021.2660.05$0.07

One honest consequence of the flip: a 5 MPG improvement is worth much more at the bottom of the table. Going from 15 to 20 MPG saves 3.92 liters per 100 km, while going from 45 to 50 MPG saves only 0.52 liters over the same distance. Trading a large SUV for a mid size sedan saves more fuel than trading a sedan for a hybrid.

What is in the result

  • Gas mileage: your MPG from the fill up, with L/100km, km/L and UK mpg alongside for comparison with brochures and foreign figures.
  • Cost of this fill: gallons added times the price, $39.20 in the example.
  • Cost per mile: price divided by MPG, 3.50 ÷ 29.35 = $0.119, which is the number to use for estimating any trip. The per kilometer figure follows from it.
  • Cost of given distances: what 10, 25, 50, 100, 500 and 1,000 miles cost in fuel at your mileage and price.
  • Yearly estimate: at 12,000 miles a year the example car uses 408.88 gallons and spends $1,431.09.
  • Comparison with other cars: the same yearly driving at 15, 20, 30, 40 and 50 MPG, so you can see in dollars what a different vehicle would save or add.

Getting an accurate figure

Any single tank is a sample, and samples wobble. A few habits tighten the result considerably:

  • Fill the same way each time. The nozzle shuts off at slightly different levels, so stopping at the first click and using the same pump keeps the starting and ending fuel level equal.
  • Average several tanks. Add up the miles and the gallons over three or more fill ups and divide the totals. Do not average the MPG figures, which gives a small car's short tank the same weight as a long highway run.
  • Skip partial fill ups or note them. If you add only half a tank, wait until the next full fill before calculating, and count both receipts together.
  • Record conditions: city or highway, winter or summer, loaded or empty. A winter city tank and a summer highway tank from the same car can differ by a third.
  • Compare with the trip computer, which estimates consumption continuously. The fill up method is usually the more accurate of the two, but a large gap means one of them deserves a second look.

How to improve gas mileage

Carpooling, public transport, walking and cycling beat any car. When driving is the only option, the U.S. Department of Energy figures point to the following, in rough order of effect:

  • Drive a fuel efficient vehicle: four wheel drive models tend to do worse than front or rear wheel drive, because driving all four wheels takes more energy. The comparison table in the result shows the yearly difference in dollars.
  • Keep tires inflated: every PSI below the recommended pressure lowers gas mileage by about 0.3%. Check monthly, when the tires are cold, and follow the pressure on the door sticker rather than the maximum molded into the tire sidewall.
  • Watch your speed: relative to 55 mph, the average vehicle is 3% less efficient at 60 mph, 8% at 65 mph, 17% at 70 mph, 23% at 75 mph and 28% at 80 mph. Cruise control helps on long, level highways.
  • Do not drive aggressively: hard acceleration and braking can lower gas mileage by roughly 15% to 30% at highway speeds and 10% to 40% in stop and go traffic. Calm driving is also easier on brakes and on the car's resale value.
  • Keep the engine in tune: using the manufacturer's recommended motor oil improves gas mileage by 1% to 2%, and a faulty oxygen sensor or a clogged air filter can cost far more than that.
  • Remove weight and drag: take out heavy items you do not need, remove roof and bike racks when they are empty, and roll the windows up at highway speed.
  • Mind the air conditioning: in especially hot climates, running the AC can cut fuel economy by as much as 25%. It is most efficient while the car is moving.
  • Do not idle: a parked car with the engine running gets 0 mpg.

On the example car, using 17% less fuel, the highway loss from driving 70 instead of 55 mph, would take the example car from 29.35 to about 35.36 MPG and save roughly $243 a year.

A short history of miles per gallon

Until the 1970s fuel was cheap in the United States and few buyers asked how far a gallon went. The 1973 oil embargo brought fuel shortages and higher prices, Congress answered with the Corporate Average Fuel Economy (CAFE) rules in 1975, and from then on every new car carried an Environmental Protection Agency estimate of its city and highway mileage. Fuel economy became a selling point and the sticker estimate a familiar piece of the car buying ritual.

Other countries had taxed fuel heavily for decades and measured it in liters per 100 kilometers, which is why American, European and Japanese figures do not line up without a conversion. Britain adds one more wrinkle: it sells fuel in liters and measures distances in miles but still quotes economy in miles per imperial gallon, a unit about a fifth larger than the US gallon. Since 2013 model year cars, EPA labels also print an estimated annual fuel cost, the same idea as the yearly figure this calculator produces from your own numbers.

Measure efficiency between comparable fill-ups

Start from a fill-up and record the odometer or reset the trip meter. At the next fill-up, enter the traveled distance and fuel added. A partial refill can distort the figure when the fuel added differs from the fuel used. Similar fill levels make the comparison cleaner.

Compare several tanks to reduce the effect of changing conditions. For a combined fuel economy figure, add the measured distances and divide by total fuel. Use compatible units and account for all fill-ups in the interval.

Common questions

Fill the tank, note the odometer, drive, fill again, then divide the miles driven by the gallons added on the second fill. For example, 328.7 miles on 11.2 gallons is 29.35 MPG. The first fill only marks the starting point.

Yes. Miles per gallon is distance per unit of fuel, so a car with a higher number travels farther on the same gallon. The opposite holds for liters per 100 kilometers, where a lower number is better because it means less fuel burned over the same distance.

Because the sticker comes from laboratory tests on a fixed cycle, while your number comes from real roads. Speed, hard acceleration, cold weather, short trips, cargo, roof racks, underinflated tires and idling all pull it down, and most drivers see a figure below the highway estimate. Measuring your own fill ups gives the honest number for your car.

For a gasoline car, anything around 30 MPG or more in mixed driving is solid, hybrids commonly exceed 50 MPG, and large SUVs and pickup trucks often sit in the high teens. The comparison table in the result puts those differences into dollars for your own yearly mileage.

Use the gallons printed on the fuel receipt. The pump measures liquid fuel directly, while a trip computer estimates consumption from engine data and can drift by a noticeable margin. If the two disagree by more than a few percent, trust the pump and average a few tanks.

No. The first fill only sets the starting odometer reading and makes sure the tank is full. The fuel that counts is what goes in at the second fill, because that replaces what the engine burned in between.

Divide 235.215 by the L/100km figure: 8.01 L/100km is 235.215 ÷ 8.01 = 29.35 MPG. Going the other way, divide 235.215 by the MPG figure. The constant is 100 km written in miles (62.137) times the liters in a US gallon (3.7854).

No. Every calculation runs in your browser. Nothing is stored or transmitted.

Your car has a number. Find it.

Browse all transportation calculators