The Basic Calculation: Miles Driven Divided by Gallons Used

Fuel mileage, or miles per gallon (MPG), is calculated by dividing the number of miles you drove by the number of gallons of fuel you used. That's it. If you drove 300 miles and used 10 gallons, your MPG is 30. The math is straightforward; the accuracy depends on how carefully you measure both numbers.

Most people calculate this at the pump because that's where the data is easiest to collect. You fill your tank completely, note the odometer reading, drive normally, then fill up again and record the new odometer reading. The difference between those two readings is your miles driven. The amount the pump shows you added is your gallons used. Divide miles by gallons, and you have your MPG for that tank.

This method works because it captures real-world driving—your actual route, your actual speed, your actual traffic conditions. It's more honest than what your car's computer might display, because your computer doesn't know whether you spent the last 50 miles idling in a parking lot or sitting in traffic.

Key Takeaways

  • Fuel mileage is calculated by dividing miles driven by gallons used: if you drove 240 miles on 8 gallons, your MPG is 30.
  • The pump method—filling completely, driving, then filling again—is the most accurate way to measure because it captures your actual driving conditions.
  • Your car's onboard computer may show a different MPG than your manual calculation because it estimates fuel consumption rather than measuring what actually left the tank.
  • Consistent measurement method matters more than perfect precision; tracking your MPG over time shows whether your car is running efficiently or developing a problem.
  • Factors like tire pressure, engine load, driving speed, and outside temperature all affect your MPG, so expect variation between fill-ups.

Step-by-Step: The Pump Method

Start by filling your tank completely at a gas station. Pull up to the pump, select your fuel grade, and keep the nozzle in the tank until it clicks off automatically—do not top it off by hand after that click. The pump will show you how many gallons went in. Write down the odometer reading from your dashboard at that exact moment. This is your starting point.

Drive normally for at least 100 miles before you calculate. Shorter distances give unreliable results because small measurement errors become large percentage errors. A 20-mile trip where you misread the pump by 0.1 gallons throws off your whole calculation; a 300-mile trip absorbs that same error.

When your fuel gauge drops to roughly a quarter tank, return to a gas station and fill completely again. Record the new odometer reading and the gallons the pump shows. Subtract your first odometer reading from your second—that's your miles driven. Divide miles by gallons, and you have your MPG for that tank.

Write the number down. One calculation is a data point; three or four calculations over a month show you whether your car is consistent or whether something has changed.

Why Your Car's Computer Shows Different Numbers

Most modern cars display an estimated MPG on the dashboard or infotainment screen. This number is often higher than what you calculate manually at the pump. That's not a malfunction—it's a difference in how the measurement works.

Your car's computer estimates fuel consumption based on engine sensors: how much air is flowing into the engine, how much fuel is being injected, engine speed, throttle position. It's an educated guess, not a direct measurement of what left the tank. Computers are generally optimistic because they don't account for fuel that evaporates, fuel that clings to tank walls, or the small amount that remains in the fuel line after the pump stops.

The pump method measures what actually left the tank, so it's more accurate for understanding real-world efficiency. If your manual calculation is consistently 2 to 3 MPG lower than your car's display, that's normal. If the gap widens suddenly—your car used to show 28 MPG and you calculated 25, but now it shows 28 and you calculate 20—that's a sign something has changed: a clogged air filter, worn spark plugs, low tire pressure, or a fuel system problem.

Common Mistakes That Throw Off Your Calculation

Topping off after the pump clicks. The automatic shutoff on the nozzle is calibrated to stop when the tank is full. If you squeeze the handle again to add more fuel, you're adding an unknown amount that won't show on the pump display. This makes your "gallons used" number too low, which inflates your MPG. Always stop at the first click.

Filling at different stations. Pumps vary slightly in calibration. One station's gallon might be slightly more or less than another's. If you fill at Station A and fill up at Station B, you've introduced a small error. It's not huge, but it's avoidable. Use the same station when you can, or at least the same brand.

Calculating over very short distances. Filling up, driving 40 miles, and calculating gives you a noisy result. The first few miles after a fill-up are often less efficient as the engine warms up. The last few miles before you fill again might be more efficient if you're coasting into the station. Use at least 100 miles, preferably 200 or more.

Forgetting to account for the trip computer reset. If your car has a trip odometer, use that instead of subtracting two full odometer readings. It's easier and eliminates subtraction errors. Just reset the trip odometer when you fill up, then read it when you fill again.

What Affects Your MPG Between Fill-Ups

Your fuel mileage won't be identical every time you fill up, and that's expected. Several real factors change how efficiently your engine burns fuel. Tire pressure is one of the biggest: underinflated tires create more rolling resistance, and your engine has to work harder to move the car. A tire that's 5 PSI below the recommended pressure can lower your MPG by 1 to 2 points. Check your tire pressure monthly and inflate to the number on the driver's door jamb, not the number on the tire sidewall.

Driving speed matters significantly. Highway driving at 55 MPH is more efficient than highway driving at 75 MPH because aerodynamic drag increases with speed. City driving with frequent stops is less efficient than steady highway driving because the engine burns fuel while idling and accelerating. If one fill-up included mostly city driving and the next included mostly highway, expect a difference.

Outside temperature affects fuel economy too. Cold engines run richer (more fuel, less air) until they warm up, and cold air is denser, which increases aerodynamic drag slightly. Winter MPG is often 1 to 3 points lower than summer MPG on the same car. Engine load—carrying passengers, towing, or hauling cargo—increases weight and lowers MPG proportionally. A full car uses more fuel than an empty one.

Tracking MPG Over Time to Spot Problems

A single MPG calculation tells you what happened on that tank. A series of calculations tells you whether your car is running normally. Keep a straightforward log: date, odometer reading, gallons added, miles driven, and MPG. After three or four fill-ups, you'll see your car's baseline. If your baseline is 24 MPG, you know what normal looks like for your driving.

If your MPG drops suddenly—from 24 to 20—something has changed. It might be seasonal (winter arrived), or it might be mechanical. A clogged air filter, worn spark plugs, a faulty oxygen sensor, or low tire pressure can all reduce MPG noticeably. Tracking lets you catch these problems early, before they become expensive. A $15 air filter replaced at 50,000 miles prevents the $400 catalytic converter damage that happens when the engine runs too rich for 10,000 miles.

If your MPG improves over time, that's usually a good sign: the engine is breaking in, or you've fixed something that was wrong. If it declines gradually over years, that's normal wear. Engines become less efficient as they age, seals wear, and internal clearances increase slightly.

MPG Calculation for Different Driving Patterns

If you drive mostly city, your baseline MPG will be lower than the EPA estimate on your window sticker. EPA estimates assume a mix of city and highway; pure city driving is less efficient because of all the stopping and starting. If you drive mostly highway, your MPG will be closer to or sometimes better than the EPA estimate.

If you tow or carry heavy loads regularly, calculate your MPG separately for those trips. A truck towing a trailer might get 12 MPG while towing and 18 MPG empty. Knowing both numbers helps you understand whether the load is affecting efficiency as expected or whether something else is wrong. If your towing MPG drops from 12 to 10, that's worth investigating.

If you drive the same route every day, your MPG should be fairly consistent. Variation of 1 to 2 MPG is normal; variation of 3 or more points suggests something has changed—weather, tire pressure, a new traffic pattern, or a mechanical issue.

Frequently Asked Questions

Should I use my car's onboard computer or calculate manually at the pump?

Use both. Your car's computer gives you real-time feedback while you drive, which is useful for adjusting your habits. Manual calculation at the pump is more accurate and helps you spot mechanical problems early. They'll show different numbers, and that's normal—the computer is usually optimistic by 2 to 3 MPG.

Does it matter which gas station I use to fill up?

Slightly. Pump calibration varies between stations, so using the same station reduces measurement error. If you must use different stations, try to stick with the same brand. The difference is usually small enough that it won't hide real problems, but consistency makes your data cleaner.

What if I fill up before the tank is completely empty?

Your calculation will still work, but it's less reliable. If you fill at half a tank instead of a quarter tank, you're measuring a smaller amount of fuel, so small errors become bigger percentage errors. For the most accurate results, let the tank drop to about a quarter full before you fill again.

Can I calculate MPG using the trip odometer instead of the main odometer?

Yes, and it's actually better. Reset your trip odometer when you fill up, then read it when you fill again. This eliminates subtraction errors and is simpler than writing down two full odometer readings. The result is the same, just easier to measure.

Why does my MPG vary so much between fill-ups?

Real factors change fuel economy: tire pressure, driving speed, weather, traffic patterns, and engine load all affect how efficiently your engine burns fuel. Variation of 2 to 3 MPG between fill-ups is normal. A sudden drop of 4 or more points suggests a mechanical issue worth investigating, like low tire pressure or a clogged air filter.