Everyday · Driving

Gas mileage & fuel cost calculator

Work out what a trip will cost in gas, or find your car’s real miles per gallon from a fill-up. See cost per mile and your yearly fuel spend.

Your drive

Estimated fuel cost
—
Based on your distance, MPG and gas price

Fuel cost for common distances

At your fuel economy and gas price, this is what different distances would cost.

DistanceGallonsFuel cost

Rough sheet

step-by-step

How to calculate gas mileage and fuel cost

Gas mileage, or fuel economy, is how far your vehicle travels on a gallon of fuel, measured in miles per gallon (MPG). The cost of a drive then comes from two steps: the gallons you will burn, and what those gallons cost.

Gallons needed = distance ÷ MPG. Fuel cost = gallons needed × price per gallon. For a one-way trip of 280 miles in a car that gets 28 MPG, you need 280 ÷ 28 = 10 gallons. At $3.50 a gallon, that is 10 × $3.50 = $35.00, or about 12.5 cents per mile.

How to find your real MPG

The number on the window sticker is a lab estimate, and real driving is usually different. To measure your own: fill the tank completely and reset your trip meter, drive normally, then fill the tank completely again at the same pump if you can. Divide the miles on the trip meter by the gallons it took to refill. For example, 280 miles on 10 gallons is 28 MPG. Switch the calculator to “My MPG” and enter those two numbers. Averaging several fill-ups gives a more reliable figure than a single tank.

Cost per mile and yearly fuel cost

Cost per mile = price per gallon ÷ MPG. It lets you compare cars and trips quickly. Multiply it by the miles you drive in a year to see your annual fuel spend. At 28 MPG and $3.50 a gallon, a driver covering 12,000 miles a year uses about 429 gallons and spends about $1,500.

MPG and liters per 100 km

Outside the United States, fuel economy is usually quoted in liters per 100 kilometers, where a lower number is better. To convert, divide 235.215 by the MPG value. Some common conversions:

MPGL/100 kmkm per liter
1515.76.4
2011.88.5
259.410.6
307.812.8
356.714.9
405.917.0
504.721.3

What affects your gas mileage?

Speed is a big one: fuel economy generally drops as you drive faster, especially above roughly 50 mph, because air resistance rises quickly. Hard acceleration and braking, long idling, under-inflated tires, extra weight, roof racks and running the air conditioner can all lower MPG. Cold weather and short trips also hurt, because the engine takes time to warm up. Steady driving, correct tire pressure and removing unneeded cargo are simple ways to save fuel.

Splitting costs on a road trip

For a shared trip, divide the total fuel cost by the number of people, and choose “Round trip” to double the distance. Remember that fuel is only part of the cost of driving: tolls, parking, maintenance and wear on the vehicle add to it.

Frequently asked questions

Common questions about gas mileage and fuel cost.

Divide the distance by your car’s MPG to get the gallons needed, then multiply by the price per gallon. For 280 miles at 28 MPG and $3.50 a gallon, that is 10 gallons and $35.00.

Fill the tank, reset your trip meter, drive, then refill the tank and note the gallons added. Divide the miles driven by those gallons. Averaging a few fill-ups gives a more accurate number than a single tank.

It is the fuel cost of driving one mile: price per gallon divided by MPG. At $3.50 a gallon and 28 MPG, it is about 12.5 cents a mile. It is handy for comparing cars and for estimating the fuel part of reimbursing mileage.

Window-sticker numbers come from standardized tests. Real-world MPG drops with high speeds, rapid acceleration, idling, cold weather, short trips, heavy loads, roof racks, low tire pressure and heavy air-conditioner use.

Divide 235.215 by the MPG figure. For example, 30 MPG is about 7.8 L/100 km. Lower L/100 km means better fuel economy, the opposite of MPG.

No, this calculator is built for gasoline and diesel vehicles that use gallons. For an electric car you would multiply the kWh used by your electricity rate, which the Electric Bill Calculator can help you estimate.