The basic formula for miles per gallon
Miles per gallon (MPG) is the distance your vehicle travels on one gallon of fuel. To calculate it, you divide the number of miles driven by the number of gallons used. The formula is: miles driven ÷ gallons used = MPG.
The math itself takes less than a minute. The harder part is getting accurate numbers for miles and gallons. Small errors in either one throw off your result, so the method you use to measure matters more than the arithmetic.
Key Takeaways
- MPG = miles driven divided by gallons used; you need accurate odometer and fuel pump readings to get a real number.
- Fill your tank completely at the start and end of each test period so you know exactly how much fuel you burned.
- Drive at least 100 miles between fill-ups to smooth out the error that comes from pump nozzles stopping at different points.
- Your actual MPG will differ from the EPA estimate on the window sticker because those tests happen in a lab under controlled conditions.
- Factors like driving habits, road conditions, vehicle load, and tire pressure all change your MPG, sometimes by 20 percent or more.
How to measure miles driven accurately
Use your odometer reading, not your trip meter. Write down the odometer number when you fill up your tank completely, then write it down again the next time you fill up. Subtract the first number from the second. That difference is your miles driven.
Your trip meter resets when you want it to, which makes it convenient but also straightforward to forget to reset or to reset it at the wrong moment. The odometer is always running and always accurate, so it removes the chance of human error. If your vehicle has a digital odometer, take a photo of the screen at each fill-up so you have a record.
Drive at least 100 miles between measurements. Shorter distances magnify the error from the fuel pump nozzle, which stops at slightly different points each time you fill up. Over 100 miles, that error becomes too small to matter.
How to measure fuel used accurately
Fill your tank to the same level each time. The best method is to fill until the pump nozzle clicks off automatically, then stop. Do not top off by adding a few more dollars of fuel — the nozzle clicks off when the tank is full, and topping off introduces error.
Use the same fuel pump each time if you can, because different pumps have slightly different nozzle designs and may click off at different points. If you must switch pumps, at least use pumps at the same station, since they are calibrated together.
Write down the price per gallon and the total cost, then divide total cost by price per gallon to find gallons purchased. This number is more reliable than the gallon display on the pump, which can lag or round. For example, if you paid $45.60 and the price was $3.60 per gallon, you bought 12.67 gallons (45.60 ÷ 3.60 = 12.67).
Working through a real example
Say your odometer reads 45,230 miles when you fill up on a Monday. You drive normally for a week. The next Monday, your odometer reads 45,687 miles and you fill up again. You spent $52.80 and the price was $3.30 per gallon.
Miles driven: 45,687 − 45,230 = 457 miles.
Gallons used: $52.80 ÷ $3.30 = 16 gallons.
MPG: 457 ÷ 16 = 28.56 MPG.
Round to one decimal place for your final answer: 28.6 MPG. This is your real-world fuel economy for that week of driving.
Why your MPG differs from the EPA estimate
The window sticker on a new car shows EPA estimates for city, highway, and combined driving. Your actual MPG will almost always be lower than the combined estimate. The EPA tests vehicles in a laboratory under controlled conditions: steady speeds, moderate temperatures, no traffic, and no idling.
Real driving includes stop-and-go traffic, cold starts, idling, hills, and varying speeds — all of which burn more fuel. The EPA knows this, which is why they lowered their estimates in 2008 to be closer to what drivers actually see. Even so, most drivers report MPG 10 to 20 percent lower than the EPA combined rating.
If your calculated MPG is much lower than the EPA estimate — say 15 percent or more — check your tire pressure, have your engine serviced, and review your driving habits. A severely underperforming vehicle may have a mechanical problem.
Factors that change your MPG
Driving habits matter most. Aggressive acceleration, hard braking, and speeding all reduce MPG. Steady speeds on the highway use less fuel than city driving with frequent stops. Idling burns fuel without moving the vehicle, so sitting in traffic or warming up the engine costs you mileage.
Vehicle load affects MPG because the engine works harder to move extra weight. A full trunk, roof rack, or passengers all reduce fuel economy. Tire pressure also matters — underinflated tires create more rolling resistance and lower your MPG. Check your tire pressure monthly and inflate to the number on the driver's door jamb, not the maximum on the tire sidewall.
Road conditions and weather play a role too. Cold engines burn more fuel, so short trips in winter produce lower MPG than the same trips in summer. Hilly terrain and rough roads require more fuel than flat, smooth highways. Wind resistance increases at higher speeds, which is why highway MPG is usually better than city MPG even though you are going faster.
Tracking MPG over time
Calculate your MPG every fill-up and keep a log. After five or six fill-ups, you will see your average. This average is more useful than any single calculation because it smooths out the variation from different driving patterns and conditions.
A spreadsheet or a straightforward notebook works fine. Record the date, odometer reading, gallons purchased, cost, and calculated MPG. Over months, you will notice seasonal changes — winter MPG is usually lower — and you will catch problems early if your MPG drops suddenly.
Many vehicles now display MPG on the dashboard screen. These estimates are close but not exact, so calculating it yourself once a month gives you a check on what the vehicle is reporting. If the two numbers diverge significantly, the vehicle's system may need recalibration.
Frequently Asked Questions
Does it matter which gas station I use?
Different pumps click off at slightly different points, so switching stations introduces small errors. For the most consistent results, use the same pump or at least the same station. Over 100+ miles of driving, the difference between stations becomes negligible, so do not worry about it if you travel or do not have a choice.
Should I calculate MPG for city driving and highway driving separately?
Yes, if you want to know how your vehicle performs in each condition. Keep separate logs for trips that are mostly city and trips that are mostly highway. This shows you the real difference and helps you understand where you are using the most fuel. Most drivers find highway MPG is 5 to 10 percent better than city MPG.
What if my MPG suddenly drops by 10 percent or more?
Check your tire pressure first — underinflated tires are the most common cause of sudden drops. Then have your engine serviced: a dirty air filter, worn spark plugs, or a misaligned engine can all reduce MPG. If those are fine, a mechanic can run diagnostics to find the problem.
Can I use the trip meter instead of the odometer?
You can, but the odometer is more reliable because you cannot accidentally reset it. If you use the trip meter, reset it when ready after you fill up, then reset it again at the next fill-up. Write down the trip meter reading before you reset it so you have a record of the miles.
Why does the dashboard MPG display not match my calculated MPG?
Dashboard displays estimate MPG based on fuel flow and engine speed, not actual fuel consumption. They are usually within 5 percent of your calculated number but can be off by more. Your hand-calculated MPG is more accurate because it uses real odometer and fuel pump data.