InfiniteCalcs

Gas Mileage Calculator

The gas mileage calculator estimates a vehicle's miles per gallon from the distance driven and gallons of fuel used.

Gas Mileage Calculator Tool

Enter your values in the calculator above, then use the explanations below to understand the result, check assumptions, and compare scenarios.

About this calculator

The gas mileage calculator estimates a vehicle's miles per gallon from the distance driven and gallons of fuel used. Tracking gas mileage is useful for budgeting, comparing vehicles, spotting efficiency changes, and estimating how driving conditions affect fuel consumption. For the best real-world measurement, calculate mileage from a complete fill-up interval using odometer or trip-distance data and the gallons added at the next fill-up.

Gas mileage in MPG is calculated by dividing miles traveled by gallons consumed. Because one tank can include unusual traffic, weather, towing, idling, or highway use, a multi-tank average is usually more representative than a single result. Fuel cost per mile can also be estimated by dividing the price per gallon by MPG.

A higher MPG value means the vehicle travels farther on each gallon. Compare results over time under similar conditions before concluding that a mechanical issue or driving change has materially affected efficiency. Seasonal fuel blends, cold starts, tire pressure, vehicle load, and route mix can produce normal variation.

Worked examples

Calculate a tank's gas mileage

You drive 315 miles and refill with 10.5 gallons.

  1. Record 315 miles traveled
  2. Record 10.5 gallons used
  3. Divide 315 by 10.5

Result: The calculated gas mileage is 30 MPG.

Estimate fuel cost per mile

A vehicle averages 25 MPG and gasoline costs $4.50 per gallon.

  1. Use fuel price = $4.50 per gallon
  2. Use efficiency = 25 MPG
  3. Divide 4.50 by 25

Result: Fuel cost is about $0.18 per mile.

Practical tips

  • Fill the tank consistently and use the gallons shown on the pump for each interval.
  • Track several consecutive tanks for a more stable MPG average.
  • Note unusual towing, heavy traffic, long idling, or weather when comparing results.
  • Maintain recommended tire pressure because rolling resistance affects mileage.
  • Use cost per mile when comparing operating expenses across vehicles with different fuel efficiency.

Common mistakes

  • Dividing gallons by miles when the desired result is MPG.
  • Using estimated fuel-gauge levels instead of actual gallons added.
  • Comparing a partial fill interval with a full-tank interval without accounting for the difference.
  • Assuming a single low-MPG tank proves a mechanical problem.
  • Ignoring idling and remote-start time when interpreting urban fuel economy.

Gas mileage measures

MeasureFormulaUse
MPGMiles ÷ gallonsVehicle fuel efficiency
Gallons per mileGallons ÷ milesFuel consumption per mile
Fuel cost per milePrice per gallon ÷ MPGOperating-cost estimate

Key terms

MPG
Miles traveled per gallon of gasoline consumed.
Fuel consumption
Amount of fuel used to travel a specified distance.
Cost per mile
Fuel expense attributable to each mile traveled.
Tank average
Fuel-economy result calculated across one measured fill-up interval.

Frequently asked questions

How do I calculate gas mileage?
Divide the miles driven by the gallons of gasoline consumed during the same interval. For example, 300 miles divided by 10 gallons equals 30 MPG.
What is a good gas mileage result?
A useful benchmark depends on vehicle class, drivetrain, model year, route, and driving conditions. Compare your result with the vehicle's expected range and your own multi-tank history.
Why is city gas mileage usually lower than highway mileage?
Frequent acceleration, braking, lower average speeds, and idling typically use more fuel per mile than steady-speed highway driving.
Can tire pressure affect MPG?
Yes. Underinflated tires generally increase rolling resistance, which can reduce fuel efficiency and also affect tire wear and handling.