The basic formula: miles driven divided by gallons used
Miles per gallon, or MPG, tells you how far your car travels on one gallon of fuel. To calculate it, you need two numbers: the total miles you drove and the total gallons of gas you put in the tank. The formula is straightforward: divide miles by gallons.
For example, if you drove 300 miles and used 10 gallons of gas, your MPG is 300 ÷ 10 = 30 miles per gallon. That means your car went 30 miles on each gallon of fuel.
Key Takeaways
- MPG = total miles driven ÷ total gallons used; you can calculate this yourself with a pen and paper or let your car's computer do it.
- To get an accurate reading, fill your tank completely at the start, drive normally, then fill it again and note how many gallons the pump shows.
- Your actual MPG will vary based on driving habits, road conditions, traffic, and how much weight you're carrying in the car.
- Most modern cars display MPG on the dashboard or in the infotainment system, though the calculation method is the same whether you do it by hand or read it from a screen.
How to measure the miles and gallons accurately
The accuracy of your MPG calculation depends on how carefully you measure both the distance and the fuel. Start by filling your gas tank completely — pull up to the pump and let it click off on its own, then try to add just a bit more to may support it is truly full. Note your odometer reading (the number showing total miles driven) at that exact moment.
Drive normally for at least 50 to 100 miles. The longer the distance, the more accurate your calculation will be, because small measurement errors matter less over a longer trip. When you are ready to refuel, drive to a gas station and fill the tank again, letting the pump click off naturally. Write down how many gallons the pump shows you used — this is the number you will divide into your miles.
Subtract your first odometer reading from your second one to get the miles driven. For example, if your odometer read 45,000 when you filled up and 45,300 when you filled up again, you drove 300 miles. If the pump showed 10 gallons, your MPG is 300 ÷ 10 = 30.
Why your MPG changes from tank to tank
Your car's fuel economy is not fixed. The same vehicle will use fuel differently depending on how and where you drive. City driving, with frequent stops and starts, uses more fuel than highway driving at steady speeds. Idling in traffic, accelerating hard, and driving uphill all burn more gas per mile than smooth, level driving.
Other factors matter too. A full trunk or roof rack adds weight, which reduces MPG. Cold weather makes engines less efficient. Underinflated tires create more rolling resistance. Even the octane grade of fuel you use can have a small effect. This is why you might see 28 MPG one month and 32 MPG the next — you are not calculating wrong; your driving conditions or habits straightforward changed.
Reading MPG from your car's dashboard
Most cars built in the last 15 years have a computer that calculates MPG for you. You can usually see it on the dashboard display or in the infotainment system — look for a button labeled "Trip" or "Fuel Economy" and press it to cycle through the screens. Some cars show instantaneous MPG (how many miles per gallon you are getting right now) and average MPG (your overall fuel economy since you last reset the trip computer).
The car's calculation uses the same formula you would use by hand: miles driven divided by gallons used. The advantage is that the computer updates constantly and does not require you to write down numbers at the pump. The disadvantage is that different manufacturers calculate slightly differently, so the number on your dashboard might not match your hand calculation exactly — usually the difference is small, within one or two miles per gallon.
The difference between city and highway MPG
Your car's window sticker or owner's manual lists two MPG numbers: one for city driving and one for highway driving. City MPG is lower because city driving involves more braking, accelerating, and idling. Highway MPG is higher because you maintain a steady speed with fewer interruptions.
When you calculate your own MPG, you are measuring your real-world average — a mix of whatever driving you actually did. If you drove 80 miles on the highway and 20 miles in the city, your calculated MPG will fall somewhere between the city and highway numbers on the sticker, weighted toward the highway number because you spent more distance there.
What to do if your MPG seems wrong
If your calculated MPG is much lower than what your car's computer shows or what the window sticker promised, start by checking the obvious things. Make sure your tires are inflated to the pressure listed on the driver's door jamb, not the maximum pressure on the tire itself. Have your engine air filter checked — a clogged filter reduces efficiency. If you have not had a tune-up recently, a mechanic can look for problems like a faulty oxygen sensor or a dragging brake.
Also look at your driving. Aggressive acceleration, speeding, and excessive idling all lower MPG. If you recently started a long commute or changed your route to include more city driving, that alone could explain the drop. Calculate your MPG over several tanks to see if it is consistently low or if it varies — one bad tank does not mean something is wrong with the car.
Frequently Asked Questions
Can I calculate MPG using the trip meter instead of the odometer?
Yes. The trip meter is designed for this purpose — it resets to zero and counts up from there. Fill your tank, reset the trip meter to zero, drive, then fill again and note both the trip meter distance and the gallons used. The math is identical: miles ÷ gallons = MPG.
Does premium gas give you better MPG?
Only if your car is designed to use it. Check your owner's manual or the fuel door for the minimum octane requirement. If your car calls for regular fuel, premium will not improve MPG. If it calls for premium and you use regular, you might see slightly lower MPG, but the benefit of premium is engine performance, not fuel economy.
Why does my car's MPG display show different numbers than my hand calculation?
The car's computer and your hand calculation use the same formula, but the computer may measure fuel differently or round numbers differently than the pump does. A difference of one or two miles per gallon is normal. If the gap is larger, try calculating over several tanks to see if the average matches.
Does driving faster lower your MPG?
Yes. Fuel economy drops noticeably above 50 miles per hour because air resistance increases. Driving at 65 mph instead of 55 mph can reduce your MPG by 10 to 15 percent. Aggressive acceleration and speeding are two of the easiest ways to lower your fuel economy.