Auto

How to Calculate Gas Mileage: MPG Guide

By The hakaru Team·Last updated March 2026

Gas mileage, measured in miles per gallon (MPG), tells you how far your vehicle can travel on one gallon of fuel. You calculate it by dividing the number of miles driven by the number of gallons used. Tracking your MPG helps you spot mechanical problems early, compare vehicles accurately, and budget for fuel costs over time.

Quick Answer

  • 1. Formula: Miles Driven / Gallons Used = MPG.
  • 2. Average new vehicle fuel economy in 2024: 27.2 MPG (EPA record high).
  • 3. Average fuel economy has improved 41% compared to model year 2004.
  • 4. Driving 5 mph over 50 mph costs roughly $0.20-$0.40 extra per gallon equivalent.

Track your gas mileage instantly

Enter your miles and gallons to calculate MPG, cost per mile, and compare to EPA estimates.

Calculate Gas Mileage Free

How to Calculate MPG: The Tank-to-Tank Method

The most accurate way to measure your real-world gas mileage is the tank-to-tank method. It requires two fill-ups and a simple division.

Step-by-Step Instructions

  1. Fill your tank completely and record the odometer reading (or reset your trip meter to zero).
  2. Drive normally until you need to refuel. Do not let the tank run completely empty.
  3. Fill the tank completely again at the same gas station and the same pump if possible (for consistency).
  4. Record two numbers: the miles driven since the last fill-up (trip meter or odometer difference) and the gallons pumped to refill the tank.
  5. Divide miles by gallons. That is your MPG for that tank.

Worked Example

You filled up and reset your trip meter. After driving around town and on the highway, your trip meter reads 312 miles when you refuel. The pump shows you put in 11.8 gallons.

MPG = 312 / 11.8 = 26.4 MPG

For more accurate results, track your MPG over 3 to 5 fill-ups and average the results. Single-tank calculations can be skewed by driving conditions, weather, or an imprecise fill-up.

Understanding EPA Fuel Economy Ratings

Every new vehicle sold in the United States comes with an EPA fuel economy label showing city, highway, and combined MPG ratings. These numbers are determined through standardized laboratory tests, not real-world driving.

How EPA Tests Work

The EPA uses five driving cycles to simulate city driving, highway driving, high-speed/aggressive driving, air conditioning use, and cold weather conditions. The results are combined into the city, highway, and combined numbers on the window sticker. However, your actual MPG depends on your specific driving habits, terrain, weather, and vehicle condition.

Average New Vehicle Fuel Economy

According to the EPA and U.S. Department of Energy, the average model year 2024 new vehicle achieved a record-high 27.2 MPG, up 0.1 MPG from 2023. This represents a 41% improvement compared to model year 2004. The improvement trend has been driven by advances in engine technology, lighter vehicle materials, improved aerodynamics, and the growing market share of hybrid and electric vehicles.

MPG by Vehicle Type

Vehicle TypeAverage MPG (2024)
Compact cars33-40 MPG
Mid-size sedans28-35 MPG
Compact SUVs26-32 MPG
Full-size SUVs20-26 MPG
Pickup trucks18-24 MPG
Hybrids40-60 MPG
Truck SUVs (avg.)25.7 MPG

How to Calculate Fuel Cost Per Mile

Knowing your cost per mile helps you budget for fuel and compare the true operating cost of different vehicles.

Cost per mile = Price per gallon / MPG

Example: Gas costs $3.50 per gallon and your car gets 26.4 MPG: $3.50 / 26.4 = $0.133 per mile, or about 13.3 cents per mile in fuel cost alone.

Annual fuel cost = Cost per mile x annual miles driven. If you drive 12,000 miles per year: $0.133 x 12,000 = $1,596 per year in fuel.

Why Your MPG Varies

Driving Style

Aggressive driving is the biggest MPG killer. The EPA estimates that aggressive driving (speeding, rapid acceleration, and hard braking) lowers fuel economy by 15 to 30% at highway speeds and 10 to 40% in stop-and-go traffic. Smooth, steady driving with gradual acceleration is the single most effective way to improve your MPG.

Speed

Aerodynamic drag increases exponentially with speed. Most vehicles reach peak fuel economy between 35 and 45 mph. Above 50 mph, each additional 5 mph reduces fuel economy by roughly the equivalent of paying an extra $0.20 to $0.40 per gallon. At 70 mph, most cars use 20 to 25% more fuel than at 55 mph.

Weather and Temperature

Cold weather significantly reduces fuel economy. According to the Department of Energy, fuel economy drops by 15 to 24% in city driving when the temperature drops from 77 degrees F to 20 degrees F. This is due to increased engine warm-up time, higher air density, winter-grade fuel blends, heated seats and defrosters, and increased tire rolling resistance from cold rubber.

Vehicle Maintenance

A well-maintained vehicle gets better gas mileage. Key factors include:

  • Tire pressure: Properly inflated tires improve MPG by up to 3%. Check monthly.
  • Air filter: A dirty air filter can reduce fuel economy by up to 10% on older vehicles with carbureted engines, though modern fuel-injected engines are less affected.
  • Motor oil: Using the manufacturer-recommended grade of motor oil can improve fuel economy by 1 to 2%.
  • Oxygen sensor: A faulty O2 sensor can reduce MPG by up to 40%.

Tips to Improve Your Gas Mileage

Driving Habits (Biggest Impact)

  • Accelerate gradually and maintain a steady speed.
  • Use cruise control on the highway.
  • Anticipate stops and coast to decelerate rather than braking hard.
  • Avoid idling for more than 30 seconds; shut off the engine instead.
  • Drive at or below the speed limit, especially above 50 mph.

Vehicle Optimization

  • Remove roof racks and cargo carriers when not in use (they add significant aerodynamic drag).
  • Remove unnecessary weight from the trunk. Every 100 pounds reduces MPG by about 1%.
  • Keep windows closed at highway speeds; use air conditioning instead (the aerodynamic drag from open windows at 60+ mph uses more energy than the A/C).
  • Combine short trips. A warm engine is significantly more fuel-efficient than a cold one.

MPG vs. MPGe: Understanding Electric Vehicle Efficiency

MPGe (miles per gallon equivalent) is the metric used for electric and plug-in hybrid vehicles. It represents the distance a vehicle can travel on the amount of electricity that contains the same energy as one gallon of gasoline (33.7 kilowatt-hours). An EV rated at 100 MPGe is roughly 3 to 4 times more efficient than a gasoline car rated at 30 MPG.

To convert between MPG and L/100km or other units, use our fuel economy converter.

The Bottom Line

Calculating gas mileage is simple: divide miles driven by gallons used. Tracking your MPG over multiple fill-ups gives you an accurate picture of your real-world fuel economy and helps you catch declining efficiency early. With the average new vehicle now achieving 27.2 MPG, there is always room to improve through better driving habits, proper maintenance, and smart route planning.

Use our free gas mileage calculator to track your MPG and fuel costs, and our fuel economy converter to compare across measurement systems.

Frequently Asked Questions

Why is my actual MPG lower than the EPA estimate?

EPA fuel economy estimates are measured under controlled laboratory conditions that do not fully replicate real-world driving. Aggressive acceleration, highway speeds above 50 mph, cold weather, short trips, roof racks, and heavy cargo all reduce real-world MPG. The EPA estimates that aggressive driving (speeding, rapid acceleration, hard braking) can lower fuel economy by 15 to 30% at highway speeds and 10 to 40% in stop-and-go traffic. Your actual MPG is typically 10 to 20% lower than the combined EPA rating.

What is considered good gas mileage?

The average new vehicle in 2024 achieves 27.2 MPG. Anything above 30 MPG is generally considered good for a gasoline vehicle. Compact cars often achieve 30-40 MPG, mid-size sedans get 25-35 MPG, and SUVs range from 20-30 MPG. Hybrid vehicles typically achieve 40-60 MPG, and plug-in hybrids can exceed 100 MPGe when using electric power. For comparison, the average across all vehicles on the road (including older models) is around 25 MPG.

Does driving faster use more gas?

Yes. Most vehicles reach their optimal fuel economy between 35 and 45 mph. Above 50 mph, fuel economy drops significantly because aerodynamic drag increases with the square of speed. According to the U.S. Department of Energy, every 5 mph you drive above 50 mph is roughly equivalent to paying an additional $0.20 to $0.40 per gallon of gas. At 70 mph, most vehicles use 20 to 25% more fuel than they would at 55 mph.

How do I convert MPG to liters per 100 kilometers?

To convert MPG to L/100km, divide 235.215 by your MPG figure. For example, 30 MPG = 235.215 / 30 = 7.84 L/100km. The relationship is inverse: higher MPG means lower L/100km. This conversion is useful when comparing fuel economy across countries, as most of the world outside the United States uses L/100km. Our fuel economy converter tool handles this conversion automatically.

Do tire pressure and alignment affect gas mileage?

Yes, significantly. Under-inflated tires increase rolling resistance, which forces the engine to work harder. The U.S. Department of Energy estimates that properly inflated tires can improve fuel economy by up to 3%. For every 1 PSI drop in pressure across all four tires, gas mileage decreases by approximately 0.2%. Poor wheel alignment can reduce fuel economy by up to 10% by causing the tires to drag instead of rolling freely. Checking tire pressure monthly and getting an alignment check annually are simple ways to maintain optimal MPG.

Calculate your gas mileage

Enter your miles driven and gallons used to get your MPG, cost per mile, and annual fuel cost.

Calculate Gas Mileage Free