Skip to content
CalculatPage

Gas Mileage Calculator

Find your real-world fuel economy.

Updated November 2026 · How we build calculators

Optional. Enter both odometer readings to calculate miles automatically.

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Gas Mileage Calculator works

Divide miles driven by gallons used since your last fill-up.

Formula used

MPG = miles ÷ gallons

Step-by-step example

Using the default values in the calculator above:

  1. Miles driven: 342 miles
  2. Gallons used: 11.8 gallons
  3. Price per gallon (optional): $3.45
  4. Odometer at last fill-up (optional): 0
  5. Odometer now (optional): 0
  6. Was the tank filled to the same level both times?: Yes (full to full)

The calculator then applies the formula above and returns:

  • Fuel economy: 29.0 mpg
  • Liters per 100 km: 8.12
  • Kilometers per liter: 12.32
  • Gallons per 100 miles: 3.45
  • Fuel cost per mile: $0.119

Notes on the inputs

Odometer at last fill-up (optional)
Optional. Enter both odometer readings to calculate miles automatically.

What-if scenarios

Each table changes one input and keeps everything else at the calculator's default values.

If you change “Miles driven”
Miles drivenFuel economy
170 miles14.4 mpg
260 miles22.0 mpg
342 miles (default)29.0 mpg
510 miles43.2 mpg
680 miles57.6 mpg
If you change “Gallons used”
Gallons usedFuel economy
5.9 gallons58.0 mpg
8.9 gallons38.4 mpg
11.8 gallons (default)29.0 mpg
18 gallons19.0 mpg
24 gallons14.3 mpg

Fuel economy for different miles driven and gallons used

Every other input is left at its default value.

Fuel economy: Miles driven (rows) by Gallons used (columns)
Miles driven5.9 gallons11.8 gallons18 gallons24 gallons
170 miles28.8 mpg14.4 mpg9.4 mpg7.1 mpg
260 miles44.1 mpg22.0 mpg14.4 mpg10.8 mpg
342 miles58.0 mpg29.0 mpg19.0 mpg14.3 mpg
510 miles86.4 mpg43.2 mpg28.3 mpg21.3 mpg
680 miles115.3 mpg57.6 mpg37.8 mpg28.3 mpg

Tips and background

Track several fill-ups and average them.

How to measure real MPG

Fill the tank, reset the trip meter, drive normally, then refill and note the gallons added. 342 miles on 11.8 gallons is 29 mpg. Always fill to the same level (full to full) for accuracy and average several tanks.

Why real mpg differs from the sticker

Driving style, weather, short trips, tire pressure and cargo all lower real-world economy. The calculator also gives liters per 100 km and cost per mile. Estimate trip costs with the fuel cost calculator and convert units with the fuel economy converter.

How sensitive is mpg to the gallons you record?

MilesGallonsResult
3001030.0 mpg
34211.829.0 mpg
34212.527.4 mpg
41011.834.7 mpg

The second and third rows differ by only 0.7 gallon but by 1.6 mpg, so filling to a different level can look like a real change.

How can you get a number you trust?

Fill the same way each time, ideally until the pump first clicks off. Record the miles and gallons for several fills, then add all the miles and divide by all the gallons. Do not average the separate mpg figures, since long and short intervals would count equally. A sudden lasting drop can have many causes, including weather, route or a mechanical problem, so check tire pressure and ask a mechanic if it continues.

Common mistakes to avoid with the Gas Mileage Calculator

  • Not filling the tank the same way each time.
  • Basing mpg on a single short trip.
  • Using the car's display without checking it.

Frequently asked questions

How do I measure mpg accurately?

Fill the tank, reset the trip meter, drive, then refill and record gallons.

Why is my mpg below the sticker?

Driving style, weather and short trips lower real-world mpg.

What is a good mpg?

Over 30 mpg combined for gas cars.

How do I calculate miles per gallon?

Miles driven divided by gallons used.

Why is my mpg lower in winter?

Cold air, idling and winter fuel blends reduce economy.