The basic formula: divide miles driven by gallons used
Fuel mileage, or miles per gallon (MPG), is the distance your vehicle travels on one gallon of fuel. To calculate it, you need only two numbers: the total miles you drove and the total gallons of fuel you put in the tank. Divide miles by gallons, and you have your MPG.
The math is straightforward, but the accuracy of your result depends on how carefully you measure both numbers. A sloppy fill-up or a misread odometer will throw off your calculation. The method below walks you through the steps that give you a reliable number you can actually use to track fuel economy over time or compare it to your vehicle's EPA rating.
Key Takeaways
- Fuel mileage is calculated by dividing total miles driven by total gallons of fuel used: MPG = miles ÷ gallons.
- Fill your tank completely at the start and end of each measurement period to get an accurate gallon count.
- Record your odometer reading at each fill-up so you know exactly how many miles you drove on that tank.
- Calculate MPG for each tank separately, then average several tanks together to smooth out variation from driving conditions and habits.
Step 1: Fill your tank to the same level each time
Start with a full tank. Drive to a gas station and fill the tank until the pump clicks off — the automatic shutoff that signals the tank is full. Do not top it off further by hand; just let the pump stop naturally. Write down the odometer reading and the date on a piece of paper or in your phone.
This first fill-up is your starting point. You are not calculating MPG yet; you are setting a baseline. The odometer reading tells you where you started. The full tank is your reference level for measuring fuel consumption.
Step 2: Drive normally and return to the pump
Use your vehicle as you normally would. Drive to work, run errands, take a trip — whatever your typical driving looks like. Do not try to drive differently or hyperfocus on fuel economy during this period, because the goal is to measure real-world performance, not best-case performance.
When your fuel gauge drops noticeably or you decide to refuel (after a week or two of driving, or after 200–300 miles), drive to a gas station. Fill the tank again to the same level as before — pump until it clicks off, no more. Record the odometer reading and the gallons the pump shows you dispensed.
Step 3: Do the math
Subtract your starting odometer reading from your ending odometer reading. That is the number of miles you drove. For example, if you started at 45,000 miles and ended at 45,287 miles, you drove 287 miles.
Look at the pump display or your receipt. The number of gallons you put in is the amount of fuel your tank consumed. If the pump showed 10.5 gallons, that is what you used. Now divide: 287 miles ÷ 10.5 gallons = 27.3 MPG.
Step 4: Repeat and average over several tanks
One tank gives you one data point, but it is not reliable on its own. Driving conditions, traffic, weather, and your habits that day all affect that single number. Calculate MPG for the next three to five fill-ups the same way, then add all the MPG numbers together and divide by how many tanks you measured. That average is your true fuel economy.
For example, if your five tanks showed 27.3, 26.8, 28.1, 27.5, and 27.9 MPG, add them: 27.3 + 26.8 + 28.1 + 27.5 + 27.9 = 137.6. Divide by 5: 137.6 ÷ 5 = 27.5 MPG average. This number is far more meaningful than any single tank, because it reflects your actual driving over time.
Why your calculated MPG might differ from the EPA estimate
Your vehicle's window sticker shows an EPA estimate — usually a combined city and highway number. Your calculated MPG may be higher or lower. Several factors explain the difference. Highway driving burns less fuel per mile than city driving, so if you drive mostly highways, your number will beat the EPA estimate. Frequent stop-and-go traffic, idling, and cold starts all hurt fuel economy, so city-heavy driving will fall short.
Driving habits matter too. Aggressive acceleration, speeding, and carrying heavy loads all reduce MPG. Tire pressure below the manufacturer recommendation increases rolling resistance and lowers fuel economy. If your calculated average is significantly lower than the EPA estimate — more than 15 percent lower — check your tire pressure, have a mechanic inspect your engine, and review your driving patterns. If it is higher, you are doing better than average, but do not expect that to hold if your driving changes.
Common mistakes that skew your numbers
Partial fill-ups throw off your calculation because you do not know how much fuel you actually used. If you fill halfway, drive, then fill halfway again, you cannot tell whether you used 5 gallons or 8 gallons. Always fill to the same level — the pump's automatic shutoff — every time.
Misreading the odometer or forgetting to write it down forces you to estimate, which introduces error. Write the number down when ready, or take a photo of the odometer display. Rounding the odometer to the nearest 10 miles might seem harmless, but it adds up over multiple tanks.
Calculating MPG from a single tank and treating it as your true fuel economy is another common trap. One tank reflects that day's conditions and your mood that day. Five tanks reflect your actual vehicle and driving pattern. Stick with the average.
Frequently Asked Questions
Should I calculate MPG from the trip odometer or the main odometer?
Use the main odometer. The trip odometer resets when you want it to, so it is straightforward to accidentally clear it or misread it. The main odometer is a continuous record and less prone to user error. Write down both readings at each fill-up if you want a backup check.
Does it matter what gas station I use?
No. Different stations may have slightly different pump calibrations, but the variation is small enough that it will not meaningfully affect your average over several tanks. Pick whatever station is convenient. The consistency of your fill-up method — always filling to the pump's automatic shutoff — matters far more than which pump you use.
What if I forget to write down the odometer reading at a fill-up?
That tank is lost. You cannot calculate MPG without both the starting and ending odometer readings. Do not try to estimate or use the trip odometer retroactively. Start fresh with your next fill-up and be more careful going forward. This is why writing it down or taking a photo when ready is worth the 10 seconds it takes.
Can I calculate MPG using the fuel gauge instead of gallons pumped?
No. Fuel gauges are notoriously inaccurate, especially in the upper and lower ranges of the tank. The pump display or your receipt shows the actual gallons dispensed, which is what you need. Always use the number from the pump, not the gauge.
How often should I calculate my fuel mileage?
Monthly or every three to five fill-ups is typical. This frequency gives you enough data to spot trends — whether your MPG is improving or declining — without becoming tedious. If you suspect a mechanical problem, calculate it more frequently for a few weeks to confirm the change.