badger.
EN
Get the app

Gas mileage calculator: how to find your real MPG

A gas mileage calculator does one thing: it divides the miles you drove by the gallons you burned. You need two fill-ups and your odometer, and the result is more useful than the sticker or the dashboard because it comes from your own car and your own driving.

By Badger teamUpdated 6 min read

Most people check fuel economy once, when they buy the car, and then forget it. That is a pity, because MPG is one of the few numbers a car gives you every week for free. If you can calculate gas mileage from a fill-up, you can tell whether a new route costs more, whether winter is hurting you, and whether something on the car needs attention.

Short answer: MPG = miles driven ÷ gallons added at the next fill-up. Fill the tank, note the odometer, drive, fill the tank again, and divide. For cost per mile, divide the price per gallon by your MPG.

The gas mileage formula

The method most car guides recommend is the full-tank method. Kelley Blue Book describes it in six steps: fill the tank completely, record the mileage (a trip meter works, or note the odometer), drive normally, refill completely and record the exact gallons, work out the miles driven, then divide miles by gallons. Its example is 250 miles on exactly 10 gallons, which gives 25 mpg.

Why only the second fill counts: the gallons you add at the second stop are what the car used since the first one. The first fill just sets the starting line. If you want to skip the arithmetic, our fuel economy calculator does the division for you.

Worked examples of the formula (illustrative numbers)
Miles drivenGallons addedCalculationMPG
25010.0250 ÷ 10.025.0
31211.0312 ÷ 11.028.4
41012.5410 ÷ 12.532.8
1808.0180 ÷ 8.022.5

Turn MPG into cost per mile

Once you have MPG, the money side is one more division. Cost per mile = price per gallon ÷ MPG. Cost of a trip = miles × cost per mile.

Fuel cost per mile at different prices and MPG (calculated, not a forecast)
MPGAt $3.00 per gallonAt $3.50 per gallonAt $4.00 per gallon
20$0.15$0.18$0.20
25$0.12$0.14$0.16
30$0.10$0.12$0.13
35$0.09$0.10$0.11

A 300 mile trip in a 25 mpg car with gas at $3.50 uses 12 gallons and costs $42. The same trip at 30 mpg uses 10 gallons and costs $35. That gap is why a few miles per gallon matter over a year. Fuel is only one part of ownership, so see the true cost of owning a car for the rest.

Partial fills and missed fills

Real life does not always allow a perfect full tank every time. The fix is to keep a log and measure from one full tank to the next. Add up every gallon you bought in between, including partial fills, and divide the miles between the two full tanks by that total. If you forget to log a fill, that stretch is unreliable, so start counting again from the next full tank instead of guessing.

A simple log template

A notebook, a spreadsheet or an app all work. Each fill-up needs the same few columns:

Fill-up log columns
ColumnWhat to writeWhy
DateDay of the fill-upSpot seasonal changes
OdometerMiles on the carMiles driven = this reading minus the last full-tank reading
GallonsExact amount from the pumpThe divisor in the formula
Price per gallon and totalFrom the receiptCost per mile and monthly fuel spend
Full tank?Yes or noOnly full-to-full stretches give a clean MPG

Is the dashboard number good enough?

It is closer than many drivers assume, but it is still an estimate. In AAA's tests of 2018 to 2020 model year vehicles, in-dash displays were off by 2.3% (0.7 mpg) on average compared with lab-measured fuel economy. One vehicle overstated its economy by 6.4% (2.2 mpg) over the full test series, while the best one was essentially exact. AAA's results varied widely by vehicle, so you cannot assume yours is one of the accurate ones. Checking the display against a few tanks of your own arithmetic tells you how far to trust it.

Why your MPG changes

If your result moves from tank to tank, that is normal. Several things shift it, and the US government's fueleconomy.gov puts numbers on some of them:

  • Speed. Gas mileage usually decreases rapidly at speeds above 50 mph, according to fueleconomy.gov. It estimates that slowing down by 5 to 10 mph improves fuel economy by an average of 7% to 14%.
  • Aggressive driving. Speeding and rapid acceleration and braking can lower mileage by about 15% to 30% at highway speeds and about 10% to 40% in stop-and-go traffic, per the same source.
  • Idling. An idling engine burns about a quarter to a half gallon of fuel per hour, depending on engine size and air conditioner use.
  • Extra weight. An extra 100 pounds could reduce MPG by about 1%, and the effect is proportionally larger on smaller vehicles.
  • Tire pressure. Proper pressure improves mileage by 0.6% on average and up to 3% in some cases. Each 1 psi drop in average tire pressure lowers mileage by about 0.2%.
  • Wrong oil grade. Using a motor oil grade other than the one your manufacturer recommends can cost 1% to 2%.

These are fueleconomy.gov averages, not promises for your car. Your own log shows what actually happens to yours.

What a sudden drop can mean

Kelley Blue Book advises watching for unexpected drops in MPG, which it says can point to things like improper tire pressure, inefficient driving habits or a maintenance problem. Before you worry, rule out the easy causes: a different route, colder weather, a roof box, or a week of short trips. If the drop stays after those are ruled out, have the car looked at. A fuel log will not tell you what is wrong, but it tells you when it started, and that helps a mechanic.

Use the number

  1. Calculate MPG for three or more tanks and average them. One tank can mislead.
  2. Compare it with your car's rated figure, and with your own history, not with other people's cars.
  3. Work out cost per mile, then use it to budget trips and monthly fuel.
  4. Recheck after a change: new tires, a service, a different commute, or a season change.

If you want this done automatically, the fuel log in Badger stores each fill-up with gallons, price and odometer. For a deeper look at partial fills and the L/100 km conversion, read our guide to calculating your real fuel economy.

Common questions

How do I calculate gas mileage?

Fill the tank, note the odometer, drive, then fill the tank again and note the gallons added. Divide the miles driven by those gallons. For 250 miles and 10 gallons, that is 25 mpg.

How do I work out fuel cost per mile?

Divide the price per gallon by your MPG. At $3.50 per gallon and 25 mpg, fuel costs $0.14 per mile.

Is the MPG on my dashboard accurate?

Usually close, but not exact. AAA found an average error of 2.3% across the vehicles it tested, with one overstating by 6.4%. Compare yours with a few hand-calculated tanks.

Why is my real MPG lower than the sticker?

Ratings come from standardized tests. Speed, aggressive driving, idling, extra weight and tire pressure all change real results, according to fueleconomy.gov.

Get Badger on your phone

Free for one car, on iPhone and Android. No account needed.

Get it on Google PlayDownload on the App Store