The basic formula for gas mileage

Gas mileage is the number of miles your vehicle travels on one gallon of fuel. To calculate it, you need two numbers: the miles you drove and the gallons of gas you used. The formula is straightforward: divide miles driven by gallons used.

For example, if you drove 300 miles and used 10 gallons of gas, your mileage is 300 ÷ 10 = 30 miles per gallon (MPG). This number tells you how efficiently your car is using fuel. A higher number means your vehicle travels farther on each gallon.

Key Takeaways

  • Gas mileage is calculated by dividing the total miles driven by the gallons of gas used since your last fill-up.
  • You need an accurate starting point: fill your tank completely, note the odometer reading, and reset your trip meter to zero.
  • Drive normally until you need fuel again, then fill the tank a second time and record both the new odometer reading and gallons pumped.
  • Variations in your results are normal and depend on driving habits, road conditions, vehicle load, and weather.
  • Tracking mileage over several fill-ups gives you a more reliable average than a single calculation.

Step 1: Fill your tank completely

Start with a full tank of gas. Pull up to a pump and fill until the nozzle clicks off — do not top it off further. This is your baseline, and accuracy here matters because any extra gas you add will throw off your calculation.

Write down the odometer reading at this moment. The odometer is the display on your dashboard that shows total miles driven. If your car has a trip meter (a separate counter you can reset), set it to zero now. This makes the next step easier.

Step 2: Drive normally until your next fill-up

Use your vehicle as you normally would. There is no special driving required — just go about your routine. The longer you drive before refueling, the more accurate your calculation will be, because a single tank gives you a larger sample of your actual driving patterns.

Most people calculate mileage over a full tank or close to it. If you only drive a few miles before refueling, the result will be less reliable because small variations in how full the tank was become a bigger factor in your math.

Step 3: Fill up again and record your numbers

When you need fuel again, pull up to a pump and fill the tank until it clicks off, just as you did the first time. This is important: use the same pump style and fill method both times. Some pumps shut off at slightly different points, and this consistency reduces error.

Now record two numbers: the odometer reading and the number of gallons the pump shows you used. If you reset your trip meter at the start, you can also use that number instead of subtracting odometer readings. For example, if your trip meter shows 287 miles and the pump shows 9.5 gallons, you have your two numbers.

Step 4: Do the math

Divide miles driven by gallons used. Using the example above: 287 miles ÷ 9.5 gallons = 30.2 MPG. That is your gas mileage for this tank.

Write this number down. One calculation is useful, but tracking several fill-ups gives you a clearer picture of your vehicle's real-world performance. Your mileage will vary slightly from tank to tank depending on how much highway versus city driving you did, weather, and how heavily loaded your car was.

Why your mileage changes from tank to tank

Do not be surprised if your MPG is different each time you calculate it. Several factors affect how far your car travels on a gallon of gas. Highway driving typically produces better mileage than city driving because you spend less time accelerating and idling. Cold weather reduces mileage because your engine works harder to warm up. Carrying extra weight — passengers, cargo, a roof rack — also lowers your MPG.

Driving habits matter too. Aggressive acceleration, speeding, and frequent braking all reduce efficiency. If you notice your mileage dropping over time, it may signal that your vehicle needs maintenance: a clogged air filter, worn spark plugs, or low tire pressure can all hurt fuel economy.

Tracking mileage over time

Keep a straightforward log of your calculations. Write down the date, odometer reading, gallons used, and MPG each time you fill up. After five or six fill-ups, you will see a pattern. This average is much more meaningful than any single calculation because it smooths out the day-to-day variations.

Many modern vehicles display estimated MPG on the dashboard. This is convenient, but calculating it yourself gives you a check on whether that estimate is accurate. If your manual calculation consistently differs from what the car shows, the vehicle's system may need recalibration or the sensor may be drifting.

Frequently Asked Questions

Should I calculate mileage on a full tank or can I do it on a partial tank?

You can calculate on any amount of driving, but a full tank is more reliable. Partial tanks work if you are consistent — fill to the same point both times — but the longer the distance, the less impact small variations have on your final number.

Does it matter which gas station I use?

Different pumps may shut off at slightly different points, which can add or subtract a tenth of a gallon. For the most consistent results, use the same station and pump style both times. If you switch stations, the variation usually evens out over several fill-ups.

Why is my car's MPG display different from my manual calculation?

Vehicle displays estimate mileage based on fuel flow sensors, which can drift over time or read slightly differently than the actual gas you pump. Your manual calculation using the pump and odometer is the true measure. If they differ by more than 10 percent consistently, have the sensor checked.

Does premium gas give better mileage than regular?

Premium fuel does not automatically improve mileage. Your car's engine is designed for a specific fuel grade, listed in your owner's manual. Using premium when regular is recommended will not change your MPG. Using regular when premium is required can hurt performance and efficiency.

How often should I calculate my gas mileage?

Once a month or every few fill-ups is enough to spot trends. If you are troubleshooting a sudden drop in efficiency, calculate more frequently to narrow down when the problem started. For routine monitoring, a quarterly check is sufficient.