Gas Mileage Calculator

Calculate Your Gas Mileage, MPG & Fuel Cost
Car A
Car B

Your real gas mileage is almost always lower than the number printed on the window sticker, and that quiet gap costs you money at every single fill-up. This gas mileage calculator uses your own miles and gallons to show your true MPG, your cost per mile, and exactly what a full year of driving costs.

Quick answer: To calculate gas mileage, divide the miles you drove by the gallons of gas you burned, so 300 miles on 12 gallons works out to exactly 25 MPG. For cost per mile, multiply those gallons by the price you paid per gallon and then divide the total by the miles you covered.

How to Calculate Gas Mileage (Odometer Method)

The odometer method is the most accurate way to measure real mileage, and it costs you nothing beyond paying attention at one extra fill-up. Start by filling the tank and either writing down the odometer reading or resetting your trip meter back to zero before you pull away. Drive the way you normally do until the gauge falls to around a quarter tank, then return to the same pump and fill the tank all the way up again. Note how many gallons the pump added and how many miles you covered since the last fill, because those two numbers are all the calculation ever needs. Dividing the miles by the gallons gives you the gas mileage you genuinely get in your own traffic, terrain, and driving style. A single tank gives a rough figure, while averaging three or four tanks smooths out the odd highway trip or heavy city week that would otherwise skew one lone reading.

The trip meter method reaches the same answer with far less arithmetic, since you simply reset the counter at one fill-up and divide the trip miles by the gallons you add at the next.

Gas Mileage by the Tank Fill Method

Gas Mileage Formula (With a Worked Example)

How Many Miles Does a Gallon of Gas Get?

Compare Two Cars: Which One Saves More Gas?

Yearly Miles22 MPG Car Cost28 MPG Car Cost
You Save
8,000
$1,273

$1,000

$273
12,000
$1,909

$1,500

$409
15,000
$2,386

$1,875

$511
20,000
$3,182

$2,500

$682

Based on $3.50 per gallon, and every gap widens as gas prices climb higher.

What Is Good Gas Mileage for a Car?

Average Gas Mileage by Vehicle Type

Vehicle TypeTypical Combined MPG
Compact sedan30 to 38
Midsize sedan26 to 33
Small SUV / crossover25 to 30
Midsize SUV21 to 26
Full-size SUV16 to 20
Half-ton pickup truck18 to 23
Minivan22 to 26
Hybrid car45 to 55

Treat these as a working yardstick, because a car falling well below its class range usually points straight to the real-MPG and fuel-saving reasons covered in the next two sections.

How to Improve Your Gas Mileage

Why Your Real MPG Is Lower Than the EPA Rating

Common Gas Mileage Mistakes to Avoid

How This Calculator Works

Related Fuel Calculators

Frequently Asked Questions

Methodology and Sources

This gas mileage calculator uses the standard fuel economy formula, dividing distance traveled by fuel consumed to produce a clean miles-per-gallon figure. Cost results multiply the gallons you used by the price per gallon you enter, and the yearly estimate scales that outcome across the annual mileage you provide. Every calculation runs instantly inside your browser, and nothing you type is ever stored or sent anywhere. The vehicle MPG ranges draw on published EPA fuel economy data alongside typical real-world results for gas-powered US models from 2020 onward, so treat them as reliable benchmarks rather than exact guarantees for any single car.

Reviewed for accuracy by the FuelConsumptionCalc editorial team.

Last updated September 2026.

Sources

  • U.S. Environmental Protection Agency and Department of Energy, Fuel Economy data (fueleconomy.gov)
  • U.S. Department of Energy, Driving More Efficiently guidance (energy.gov)
  • U.S. EPA, How Vehicles Are Tested for Fuel Economy