← Auto Loan & Lease Calculators

Gas Mileage Calculator

Use this free gas mileage calculator to work out your miles per gallon from the miles driven and gallons used, measured over a real tank of fuel. It also shows the total fuel cost at your price per gallon.

How it works

Gas mileage is miles per gallon: mpg = miles driven / gallons used. Fill the tank, reset the trip meter, drive as usual, then fill up again — the miles on the trip meter divided by the gallons on the second fill-up is your real mpg. A 300-mile stretch on 12 gallons works out to 25.00 mpg.

The total fuel cost is simply the gallons used times the price per gallon, so the same fill-up costs $42.00 at $3.50 a gallon. One tank gives a rough figure; averaging over three or four fill-ups smooths out differences in how full the tank was each time and gives a number you can trust for budgeting.

City driving almost always scores lower than highway driving, so note the mix when you measure. If your mpg has dropped suddenly with no change in driving, it is worth checking tire pressure and the air filter first — both are cheap fixes that can pull mileage back up.

Example: Driving 300 miles on 12 gallons works out to 25.00 mpg, and at $3.50 per gallon the fuel for that trip costs $42.00.

Frequently asked questions

How do I calculate my gas mileage?

Enter the miles driven and the gallons used, then click Calculate. Gas mileage is miles driven divided by gallons used, shown as miles per gallon.

How do I measure mpg accurately?

Fill the tank, reset the trip meter, drive as usual, then fill up again. Divide the miles on the trip meter by the gallons on the second fill-up. Averaging over three or four fill-ups gives a more reliable figure.

What does the gas mileage calculator show for fuel cost?

It multiplies the gallons used by the price per gallon you enter, so you can see what that fuel cost alongside your miles per gallon.

More Auto Loan & Lease Calculators

← Back to all calculators