How to measure your gas mileage
- Fill the tank completely and reset the trip meter (or write down the odometer).
- Drive normally until you need fuel again. A full tank gives the most accurate number.
- Fill up again at the same pump if you can, and note how many gallons it took.
- Enter the miles and gallons above. The gallons from the second fill are exactly what you burned.
MPG formula
L/100 km = 235.215 ÷ MPG
Cost per mile = price per gallon ÷ MPG
Worked example
You drove 350 miles and it took 12.5 gallons to refill. 350 ÷ 12.5 = 28 mpg, which is 8.4 L/100 km. At $3.20 a gallon, every mile costs about 11.4 cents in fuel, or $114 per 1,000 miles.
Why your MPG is lower than the sticker
- Short trips and cold engines. An engine uses much more fuel in the first few minutes.
- Highway speed. Above about 50 mph, fuel use climbs quickly with speed because of air drag.
- Low tire pressure. Under-inflated tires add rolling resistance. Check pressure monthly.
- Extra weight and roof racks. A roof box can cut highway economy noticeably.
- Idling and hard acceleration. Smooth driving is the cheapest upgrade there is.
MPG to L/100 km
| MPG (US) | L/100 km | Fuel cost per mile at $3.20 |
|---|---|---|
| 15 | 15.7 | $0.21 |
| 20 | 11.8 | $0.16 |
| 25 | 9.4 | $0.13 |
| 30 | 7.8 | $0.11 |
| 40 | 5.9 | $0.08 |
| 50 | 4.7 | $0.06 |
Planning a drive? Use the fuel cost calculator. Comparing with an electric car? Try the EV charging cost calculator.
How a small measuring error changes your MPG
The page example is 350 miles on 12.5 gallons, which is 28.0 mpg. MPG comes from one division, so a fill-up error goes straight into the result:
| Gallons at the pump | MPG | Error vs 28.0 |
|---|---|---|
| 12.0 | 29.2 | +1.2 |
| 12.5 | 28.0 | 0 |
| 13.0 | 26.9 | -1.1 |
Half a gallon of difference between the two pump clicks moves the answer by more than 1 mpg. That is why one tank is only a rough reading. Averaging several tanks smooths it out. Say you get 350 miles on 12.5 gallons (28.0 mpg), 410 miles on 14.1 gallons (29.1 mpg) and 380 miles on 12.2 gallons (31.1 mpg). Add up all the miles (1,140) and all the gallons (38.8) first, and the three tanks together give 29.4 mpg.
What an MPG difference is worth
At $3.20 a gallon and 12,000 miles a year:
| MPG | Gallons per year | Fuel cost per year |
|---|---|---|
| 25 | 480 | $1,536 |
| 28 | 429 | $1,371 |
| 31 | 387 | $1,239 |
Going from 25 to 28 mpg saves about $165 a year. Going from 28 to 31 saves about $133. The same 3 mpg is worth less each time because you are dividing into a smaller number of gallons. That is also why L/100 km is a better scale for comparing cars: equal steps in L/100 km are equal steps in fuel.
Common mistakes
- Not filling to the same point. If the first fill-up was stopped at the first click and the second one topped off, the gallons are wrong. Use the same pump and the same number of clicks.
- Averaging the MPG numbers. Average the miles and gallons separately, then divide. Averaging the MPG figures overweights short tanks.
- Mixing odometer and trip meter. In odometer mode the tool subtracts the two readings. Check that the second reading is the higher one, or the miles show as zero.
- Counting the gallons you bought the first time. The gallons that matter are the ones put in at the end of the period, which replace what you burned.
- Trusting the dashboard. Compare it once with the pump method. The gap between the two is your dashboard's error, and you can then correct it.
When one number is not enough
The result is an average for a mix of roads. It cannot tell you whether the extra fuel went to city traffic, winter, or tires that are low on air. Keep a note of the driving type for each tank. Once you have your real MPG, plug it into the fuel cost calculator for trips, and read the guide to calculating gas mileage for a step by step version.
Frequently asked questions
How do I calculate my gas mileage?
Divide the miles you drove by the gallons it took to refill the tank. For example, 350 miles on 12.5 gallons is 28 miles per gallon.
What is good gas mileage?
For a gasoline car in the US, 30 mpg or more is good, and many hybrids reach 45 to 55 mpg. Pickups and large SUVs typically get 15 to 25 mpg.
How do I convert MPG to liters per 100 km?
Divide 235.215 by the MPG. For example, 28 mpg equals 8.4 liters per 100 km.
Is the MPG on my dashboard accurate?
Dashboard readings are often a few percent optimistic. Measuring miles and gallons at the pump over several fill-ups gives a more accurate figure.
How much does it cost me per mile to drive?
Divide the price per gallon by your MPG. At $3.20 a gallon and 28 mpg, fuel costs about 11.4 cents per mile.
Add this calculator to your website
Free for car blogs, auto shops, tire shops and dealers: paste this code into your page (WordPress: Custom HTML block). No ads inside the widget. More options on the free calculator widgets page.
Guides for this calculator
More car calculators
Last updated November 2026.