The basic formula for gas mileage

Gas mileage is the number of miles your car travels on one gallon of fuel. To calculate it, you divide the miles driven by the gallons used. The formula is: miles driven ÷ gallons used = miles per gallon (MPG).

The most accurate way to measure this is to fill your tank completely, drive normally, then fill it again and note how many gallons went in the second time. That second number is what you use in the formula. If you drove 300 miles and it took 10 gallons to refill, your gas mileage is 300 ÷ 10 = 30 MPG.

Key Takeaways

  • Gas mileage is calculated by dividing total miles driven by the number of gallons used to refill the tank.
  • Fill your tank completely at the start, drive normally, then refill and record the gallons — this gives you the most accurate reading.
  • Your actual mileage will vary based on driving habits, road conditions, vehicle load, and maintenance, so calculate it over multiple fill-ups to spot trends.
  • Tracking gas mileage over time helps you notice when your car's efficiency drops, which can signal maintenance problems.

Step-by-step calculation process

Start at a gas pump with your tank as full as possible. Write down the odometer reading — the number on your dashboard that shows total miles driven. Fill your tank until the pump clicks off, then drive normally for at least 50 miles before calculating. Driving a short distance makes the math less reliable.

When you return to a gas pump, write down your odometer reading again. Subtract the first reading from the second to get miles driven. Then fill your tank again and note how many gallons the pump shows. Divide miles driven by gallons used. That is your gas mileage for that period.

For example: first odometer reading is 45,000 miles, second reading is 45,300 miles. You drove 300 miles. The pump showed 10 gallons to refill. Your calculation is 300 ÷ 10 = 30 MPG.

Why your gas mileage varies

The same car will show different mileage depending on how and where you drive. City driving with frequent stops uses more fuel than highway driving at steady speeds. Idling, rapid acceleration, and braking all reduce efficiency. Cold weather makes engines work harder, so winter mileage is typically lower than summer mileage.

Vehicle load matters too. A car carrying extra weight — passengers, cargo, roof racks — burns more fuel. Tire pressure affects rolling resistance; underinflated tires reduce mileage. Even your driving habits change the number: aggressive driving can lower mileage by 15 to 30 percent compared to steady, moderate driving.

Maintenance also plays a role. A dirty air filter, worn spark plugs, or misaligned wheels all reduce efficiency. If your calculated mileage drops suddenly compared to your usual numbers, it may signal that your car needs service.

Tracking mileage over time

Calculate your gas mileage every time you fill up, or at least once a month. Write down the date, odometer reading, gallons used, and calculated MPG in a notebook or spreadsheet. Over several fill-ups, you will see your average mileage and spot patterns.

A spreadsheet makes this easier. Create columns for date, starting odometer, ending odometer, miles driven, gallons used, and MPG. Use a formula to calculate MPG automatically. After five or six fill-ups, you will have a reliable average for your normal driving.

If your mileage drops by more than 10 percent below your usual average, your car may need attention. Common causes include low tire pressure, a clogged air filter, or engine problems. Checking tire pressure and replacing the air filter are straightforward first steps.

Common mistakes when calculating gas mileage

The biggest mistake is not filling the tank completely at the start. If you start with a half-full tank, your calculation will be wrong. Always fill until the pump clicks off, and use the same pump if possible — different pumps can vary slightly in how they measure.

Another error is calculating after driving too short a distance. Mileage calculated over 20 miles is unreliable because small variations in how full the tank is become a larger percentage of the total. Drive at least 50 miles, preferably 100 or more, before refilling and calculating.

Some people forget to subtract the starting odometer from the ending odometer. If you start at 45,000 and end at 45,300, the miles driven is 300, not 45,300. Double-check your subtraction before dividing by gallons used.

Using your car's built-in fuel economy display

Many newer cars show fuel economy on the dashboard display. This number is calculated by the car's computer and updates as you drive. It is convenient but often less accurate than your own calculation, especially over short trips. The car's display may also reset or vary depending on driving conditions.

Use the dashboard display as a rough guide, but verify it with your own calculation at least once. If the two numbers differ significantly — the display shows 28 MPG but your math shows 24 MPG — trust your own calculation. Your calculation is based on actual fuel pumped, while the display relies on the car's sensors.

What to do with your gas mileage information

Once you know your typical gas mileage, you can predict fuel costs for trips. If you drive 30 MPG and gas costs $3.50 per gallon, a 300-mile trip will cost about $35 in fuel. This helps you budget for travel and compare the cost of different routes.

Tracking mileage also helps you spot when your car needs maintenance. A sudden drop in efficiency is often the first sign of a problem. Catching it early can prevent more expensive repairs later. If your mileage has been steady at 28 MPG and suddenly drops to 24 MPG, have your mechanic check the engine, tires, and fuel system.

Frequently Asked Questions

How often should I calculate my gas mileage?

Calculate it every time you fill up if you want detailed tracking, or at least once a month for a general sense of your car's efficiency. After five or six calculations, you will have a reliable average. If you notice a sudden drop, calculate more frequently to confirm the change.

Does my car's MPG rating match what I calculate?

The EPA rating on the window sticker is an estimate based on standard test conditions. Your real-world mileage will usually be lower, especially if you drive mostly in the city. Highway driving and steady speeds come closer to the EPA estimate. Your calculation shows your actual efficiency in your driving conditions.

Can I improve my gas mileage?

Yes. Keep tires properly inflated, avoid rapid acceleration, reduce excess weight in the car, and maintain regular service. Driving at steady speeds on the highway uses less fuel than city driving with frequent stops. Removing roof racks and cargo carriers when not in use also improves efficiency.

What if my odometer is digital and hard to read?

Take a photo of the odometer display at the start and end of your fill-up cycle. The photo gives you a clear record you can reference later. Write the numbers down when ready so you do not forget them before you reach the next gas pump.

Is there a difference between calculating MPG and fuel economy?

No — they are the same thing. Miles per gallon (MPG) and fuel economy both measure how many miles your car travels on one gallon of fuel. The calculation and meaning are identical.