The basic formula: miles driven divided by gallons used

To calculate MPG, divide the number of miles you drove by the number of gallons of fuel you put in the tank. That's it. If you drove 300 miles and filled up with 10 gallons, your MPG is 30.

The math works because MPG measures fuel efficiency as a ratio — how many miles your car travels on each gallon. A higher number means your car goes farther on less fuel. A lower number means it burns through fuel faster.

Most drivers calculate this at the pump, using the odometer reading and the fuel pump display. Some modern cars show MPG automatically on the dashboard, but knowing how to do it yourself tells you whether that number is accurate and lets you track changes over time.

Key Takeaways

  • MPG = miles driven ÷ gallons of fuel used; if you drove 250 miles and used 10 gallons, your MPG is 25.
  • Reset your trip odometer when you fill up, then note the mileage and gallons at the next fill-up to get an accurate reading.
  • MPG varies based on driving habits, road conditions, and vehicle load, so calculate it over multiple fill-ups to spot real trends.
  • Dashboard MPG displays are estimates and often run higher than actual calculated MPG, so verify them with the manual calculation.

Step-by-step: tracking MPG at the pump

Start by resetting your trip odometer when you fill up your tank. Some cars have a dedicated trip odometer button on the steering wheel or dashboard; others require you to hold the button down. The goal is to set it to zero so you know exactly how many miles you've driven since that fill-up.

Drive normally until your next fill-up. When you return to the pump, note two numbers: the mileage on your trip odometer and the number of gallons the pump displays when your tank is full. Write these down — don't rely on memory.

Divide the miles by the gallons. If your trip odometer shows 287 miles and you pumped 11.2 gallons, your MPG is 287 ÷ 11.2 = 25.6 MPG. Round to one decimal place for practical purposes.

Repeat this calculation over several fill-ups. One tank doesn't tell you much; highway driving, city driving, and different weather conditions all change your MPG. After three or four calculations, you'll have a realistic picture of what your car actually achieves.

Why your dashboard MPG reading often doesn't match your calculation

Most modern cars display an estimated MPG on the instrument cluster. This number is calculated by the car's computer using fuel flow sensors and wheel speed data. It's convenient, but it's frequently higher than the MPG you calculate manually.

The gap exists because the computer's estimate can drift over time, especially if your fuel injectors are dirty or your sensors are aging. The manual calculation — actual miles divided by actual gallons pumped — is more reliable because it's based on real numbers you can see and verify.

If your dashboard shows 28 MPG but your manual calculations average 24 MPG, trust the manual number. The difference might signal that your car needs maintenance, or it might just mean the computer's calibration is off. Either way, the pump-based calculation is your baseline for comparison.

Factors that change your MPG between fill-ups

Your MPG isn't fixed. It shifts based on how and where you drive. Highway driving typically yields better MPG than city driving because you're maintaining a steady speed without frequent acceleration and braking. Cold weather reduces MPG because the engine runs less efficiently until it warms up, and winter fuel blends are formulated differently than summer blends.

Driving habits matter significantly. Aggressive acceleration, speeding, and carrying extra weight in your trunk all lower MPG. Tire pressure affects it too — underinflated tires create more rolling resistance and reduce efficiency. A car with properly inflated tires will show noticeably better MPG than the same car with tires 5 pounds per square inch below the recommended pressure.

This is why tracking MPG over multiple fill-ups matters. One tank driven mostly on the highway will show better numbers than one spent in stop-and-go city traffic. If you see a sudden drop in MPG that doesn't match your driving pattern, it might indicate a maintenance issue worth investigating.

Using MPG to estimate fuel costs and plan fill-ups

Once you know your car's real MPG, you can predict fuel costs and plan your fill-ups. If your car averages 24 MPG and you drive 12,000 miles per year, you'll use roughly 500 gallons annually. At $3.50 per gallon, that's about $1,750 in fuel per year.

You can also estimate how far you can drive on a tank. If your car holds 14 gallons and averages 24 MPG, you can drive approximately 336 miles before needing to refuel. This is more reliable than relying on the fuel gauge alone, especially on longer trips where you want to know whether you'll reach the next gas station.

Track your MPG over a few months to account for seasonal variation. Your winter average might be 2 to 3 MPG lower than your summer average. Knowing this helps you budget more accurately and understand whether a drop in efficiency is normal or a sign of a problem.

MPG calculations for hybrid and electric vehicles

Hybrid cars use both a gas engine and an electric motor, so their MPG varies more than conventional cars depending on how much electric power they draw. Calculate hybrid MPG the same way — miles driven divided by gallons of gas used — but expect the number to be higher and more variable than a traditional car.

Electric vehicles don't use gasoline, so MPG doesn't explore. Instead, efficiency is measured in miles per kilowatt-hour (miles/kWh) or kilowatt-hours per 100 miles (kWh/100mi). The calculation is similar in concept: how far the vehicle travels per unit of energy consumed. Your EV's dashboard will display this metric, and you can verify it by dividing miles driven by kilowatt-hours charged.

Frequently Asked Questions

Should I calculate MPG from a full tank or a partial fill-up?

Always calculate from a full tank to a full tank. "Full" means the pump clicks off on its own — don't top off by hand. Partial fill-ups introduce guesswork about how much fuel you actually used and make the calculation less accurate. Consistency matters more than perfection; use the same fill-up method every time.

Why is my calculated MPG lower than the EPA rating on the window sticker?

EPA ratings are tested under controlled laboratory conditions that don't match real-world driving. Your actual MPG will almost always be lower than the EPA estimate, especially if you drive mostly in the city, in cold weather, or with a heavy load. The EPA rating is useful for comparing vehicles, but your calculated MPG is what you'll actually experience.

Does premium fuel improve my MPG?

Only if your car's engine is designed to run on premium fuel. If your owner's manual says "regular unleaded," using premium won't change your MPG. If it says "premium recommended" or "premium required," premium fuel may improve efficiency slightly, but the cost difference usually outweighs the fuel savings. Calculate your MPG on both fuel types over several tanks to see if there's a real difference.

Can I calculate MPG using the fuel gauge instead of the pump display?

No. Fuel gauges are notoriously inaccurate, especially in the upper and lower ranges of the tank. The pump display at fill-up is far more precise. Always use the number the pump shows, not an estimate based on the gauge.

What MPG should I expect from my car?

Check your owner's manual or the EPA label on the window sticker for the manufacturer's estimate. Real-world MPG will typically run 10 to 20 percent lower, depending on your driving conditions. If your calculated MPG is significantly lower than expected, have your mechanic check your fuel injectors, air filter, and tire pressure.