Home › Auto › Gas Mileage Calculator

Gas Mileage (MPG) and Fuel Cost Calculator

Fill the tank, reset the trip meter, and at the next fill-up enter the miles driven and the gallons it took. Add a trip distance to estimate its fuel cost.

mi
gal
$
mi

Fuel economy

—

Cost per mile
—
Metric equivalent
—
Fuel cost for the trip
—

Measure the mileage you actually get

The sticker and the dashboard both estimate fuel economy. The fill-up method measures it. Fill the tank, reset the trip odometer, drive as usual, then fill up again; the gallons it takes and the miles you drove give your true MPG. Add the gas price and a trip distance to see what driving really costs.

350 miles on 12.5 gallons is 28 MPG (8.4 L/100 km). At $3.50 a gallon that is $0.125 per mile, and a 500-mile trip costs $62.50 (17.9 gal).

Trip fuel cost by gas price$0$25$50$75$100$1252.533.54.555.56Gas price ($/gal)
Fuel cost of your trip at your measured MPG across gas prices.

The formulas

MPG = miles driven ÷ gallons used
Cost per mile = price per gallon ÷ MPG
L/100 km = 235.215 ÷ MPG
Trip fuel = trip miles ÷ MPG · Trip cost = trip fuel × price

In L/100 km, lower is better, the opposite of MPG.

Why small MPG gains matter more at the low end

500-mile trip at $3.50 a gallon
Fuel economyMetricTrip cost (fuel)
15 MPG15.7 L/100 km$116.67 (33.3 gal)
20 MPG11.8 L/100 km$87.50 (25 gal)
35 MPG6.7 L/100 km$50.00 (14.3 gal)
40 MPG5.9 L/100 km$43.75 (12.5 gal)

Going from 15 to 20 MPG saves far more fuel over 500 miles than going from 35 to 40. That is why replacing the least efficient vehicle in a household usually saves the most.

Comparing two cars by running cost

Fuel economy differences are easier to judge in dollars. Over 12,000 miles at $3.50 a gallon, a 25 MPG car costs about $1,680.00 (480 gal) in fuel, and a 35 MPG car about $1,200.00 (342.9 gal). That yearly gap is what a more efficient car has to earn back against any difference in price.

Outside the US, fuel economy is usually quoted in liters per 100 km, which measures fuel used rather than distance gained. Lower is better, and your car's figure is 8.4 L/100 km. Because it is the inverse of MPG, equal steps in L/100 km save equal amounts of fuel, which makes it the more honest way to compare.

If you are weighing a switch to electric, the EV vs gas calculator compares fuel and electricity on the same yearly basis.

Getting an accurate reading

  • Fill to the first automatic click both times, at the same pump if possible.
  • Average two or three tanks to smooth out differences in how full the tank gets.
  • Dashboard readouts are often a few percent optimistic, so expect the fill-up figure to be a little lower.

What lowers fuel economy

Highway speeds above about 60 mph, hard acceleration, short trips with a cold engine, roof racks, under-inflated tyres and heavy loads all cost miles per gallon. Cold weather and air conditioning do too.

To compare running an electric car, see EV vs gas; for the emissions side, the carbon footprint calculator.

Gas mileage questions

How do I calculate miles per gallon?

Divide the miles driven by the gallons needed to refill the tank. 350 ÷ 12.5 = 28 MPG.

How do I convert MPG to L/100 km?

Divide 235.215 by the MPG. 28 MPG is about 8.4 L/100 km.

Why is my dashboard MPG higher?

Trip computers are often a few percent optimistic. The fill-up method is more reliable.

How much will my road trip cost in gas?

Divide the trip miles by your MPG and multiply by the gas price. 500 miles at 28 MPG and $3.50 is about $62.50.

Related guides

Related calculators