The Basic Formula for Gas Mileage
To calculate gas mileage, divide the number of miles you drove by the number of gallons you used. That's it. If you drove 300 miles and used 10 gallons of gas, your mileage is 30 miles per gallon (mpg). The math works the same whether you're tracking one tank or averaging across several fill-ups.
The reason you calculate this yourself is that your car's dashboard estimate is often wrong. Factors like how you drive, road conditions, and weather shift your actual mileage around the number your car displays. Doing the math by hand gives you the real number.
Key Takeaways
- Gas mileage is calculated by dividing miles driven by gallons used: miles ÷ gallons = mpg.
- You need an accurate starting odometer reading, an accurate ending reading, and the exact gallons pumped to get a true result.
- Tracking mileage over several fill-ups smooths out errors from a single tank and shows your real-world average.
- Your car's mpg display is an estimate and often differs from your hand-calculated number.
- Consistently low mileage compared to your baseline can signal a maintenance problem worth checking.
What You Need to Record
You need three pieces of information: the odometer reading when you fill up, the odometer reading at the next fill-up, and the number of gallons the pump shows when you fill the tank the second time.
Write these down or photograph the pump display. Don't rely on memory. The odometer reading matters because it tells you exactly how many miles you traveled between fill-ups. The gallons matter because that's your denominator in the division.
If you're tracking over multiple tanks, record the same three numbers each time you fill up. You'll add all the miles together and all the gallons together, then divide once at the end. This method is more reliable than calculating each tank separately and averaging them.
Step-by-Step Calculation
Step 1: Record your starting odometer reading. When you fill your tank to full, write down what the odometer says. For example, 45,230 miles.
Step 2: Drive normally. Use your car as you usually do. There's no need to change your habits—you're measuring what you actually do, not what you could do.
Step 3: Fill up again and record the new odometer reading and gallons pumped. When you return to the pump, note the odometer (say, 45,530 miles) and how many gallons the pump shows you used (say, 10 gallons).
Step 4: Do the math. Subtract your starting odometer from your ending odometer: 45,530 − 45,230 = 300 miles. Then divide miles by gallons: 300 ÷ 10 = 30 mpg.
Why Multiple Fill-Ups Give Better Results
A single tank can be skewed by how you drove that day, the weather, or even how full you actually filled the tank. Tracking across three to five fill-ups smooths out these one-time variations and shows your real average.
To calculate across multiple tanks, add up all the miles from each fill-up period, add up all the gallons from each fill-up, then divide total miles by total gallons. For example, if you tracked three fill-ups and drove 900 miles using 30 gallons total, your average is 900 ÷ 30 = 30 mpg.
Most people find that tracking over a week or two of normal driving gives them a number they can trust and compare against future months.
Common Mistakes That Throw Off Your Number
The most common error is not filling the tank all the way at the start. If you start with a half-full tank and fill it to full, you're not measuring a complete cycle. Always start with a full tank and end with a full tank.
Another mistake is misreading the pump. Some pumps show gallons in the main display and dollars in smaller text, or vice versa. Look for the number that makes sense—gallons are usually in the range of 10 to 20 for a typical fill-up, not 40 or 50.
Rounding the odometer reading instead of writing the exact number also introduces error. If your odometer reads 45,230.4 miles, write 45,230.4, not 45,230. Over time, these small errors add up.
What Your Gas Mileage Number Tells You
Your calculated mileage is a baseline. Once you know what your car normally gets, you can spot problems. If your mileage suddenly drops 3 or 4 mpg below your usual number, something has changed—a tire is underinflated, your engine needs a tune-up, or your driving habits have shifted.
You can also use your mileage to estimate fuel costs. If gas costs $3.50 per gallon and you get 25 mpg, each mile costs you about 14 cents in fuel. That helps you decide whether a longer route is worth the extra gas.
Keep a log over several months. You'll see patterns—winter mileage is often lower than summer, highway driving usually beats city driving, and aggressive acceleration burns more fuel than steady speeds.
Frequently Asked Questions
Why does my car's mpg display show a different number than my hand calculation?
Your car's display is an estimate based on engine sensors, not actual fuel consumption. It can be off by 2 to 5 mpg in either direction. Your hand calculation using the pump and odometer is more accurate because it measures what actually happened.
Does it matter if I don't fill the tank completely full?
Yes. If you start at three-quarters full and end at three-quarters full, you're measuring the same amount of fuel, so the math still works. But if you start at half-full and end at full, you're measuring only half a tank, which throws off your miles-per-gallon number. Be consistent: either always fill to the same level, or always fill completely.
How often should I calculate my gas mileage?
Once a month is enough to spot trends. If you're troubleshooting a suspected problem, calculate it weekly for a few weeks to see if the number is consistently low or if it varies. Most drivers find that tracking over one full tank gives a rough idea, but three to five tanks gives a number they can trust.
Can I use the trip odometer instead of the main odometer?
Yes, if your trip odometer is accurate. Reset it when you fill up, then read it at the next fill-up. The number it shows is your miles driven. This is faster than subtracting two main odometer readings, but make sure you actually reset it to zero at the start.
What if my mileage is much worse than the EPA estimate for my car?
EPA estimates assume highway driving at steady speeds. City driving, short trips, idling, and aggressive acceleration all lower your mileage. If you're consistently 5 or more mpg below the EPA number, have your tire pressure checked and consider a tune-up. Low tire pressure alone can cost you 2 to 3 mpg.