Home / MPG calculator

MPG calculator

Fill the tank, note the odometer, drive, then fill it again. Enter the miles driven and the gallons the second fill took: the calculator gives your real miles per gallon and what each mile cost.

Gas mileage
Optional, for the cost per mile.

Your fuel economy

27.8 mpg

Liters per 100 km
8.45 L/100 km
Gallons per 100 miles
3.59 gal
Gas per mile
$0.13 per mile
Price paid
$3.51 per gal

Nothing you type leaves your browser. The numbers are kept on this device so they are still there next time.

The tank-to-tank method

A car's computer gives an estimate; the pump gives the truth. Fill the tank until the nozzle clicks off and reset the trip meter. Drive as usual. At the next fill-up, fill until it clicks again and note the gallons on the pump and the miles on the trip meter. The second fill replaced exactly the gas you burned, so:

320 mi / 11.5 gal = 27.8 mpg
$40.31 / 320 mi = $0.13 per mile

One tank is a sample. Repeat over a few tanks, with your usual mix of town and highway, and the figure settles.

Other ways to write the same figure

Miles per gallon says how far a gallon goes. Most of the world says the opposite: how much fuel 100 kilometers take. The National Institute of Standards and Technology gives the units, and 235.215 divided by mpg gives liters per 100 km. Gallons per 100 miles is the U.S. version of the same idea and is easier to compare: the gap between two cars is the gas you save.

mpgL/100 kmGallons per 100 miGas per mile
1515.68 L/100 km6.67 gal$0.23 per mile
2011.76 L/100 km5.00 gal$0.18 per mile
259.41 L/100 km4.00 gal$0.14 per mile
307.84 L/100 km3.33 gal$0.12 per mile
356.72 L/100 km2.86 gal$0.10 per mile
405.88 L/100 km2.50 gal$0.09 per mile
504.70 L/100 km2.00 gal$0.07 per mile

The gas per mile column uses $3.505 a gallon.

Why your mpg differs from the label

The EPA's combined figure on the window sticker weights city driving at 55% and highway driving at 45%. If your own mix is different, so is your figure. Driving style matters even more: according to fueleconomy.gov, rapid acceleration and hard braking can cost 15% to 30% at highway speeds, and mileage drops quickly above 50 mph. Weight and roof racks also take their share. A result well below the label is a reason to look at the tires and the way you drive, not proof that something is broken.

When the result looks wrong

Check that both fill-ups went to the click. A tank topped up less the second time makes the car look better than it is; more, worse. Pumps round to the thousandth of a gallon, so type all the digits from the receipt.

Questions

What is a good mpg?

It depends on the car. fueleconomy.gov lists each model; the best gasoline cars of model year 2023 were rated around 60 mpg, many trucks under 20.

Can I use kilometers and liters?

Use the mpg converter to turn L/100 km or km/L into mpg.

Why does my mpg drop in winter?

Many things change at once: tire pressure, warm-up time and the heater. Measure a few tanks to see your own change.

Is the trip computer accurate?

It is an estimate. The tank-to-tank method uses what the pump measured.

Other calculators

Trip gas costGallons and dollars of gas for one drive, one way or there and back.300 mi at 25 mpg → $42.06Road trip costFuel, tolls and parking for a whole trip, and the share per person.600 mi, tolls and parking → $125.11Split gas costWhat each rider owes for the gas, with or without the driver.200 mi, 4 people → $7.01 eachCommute costWhat the drive to work costs per day, month and year.15 mi each way → $1,009.44 a yearCost per mileFuel per mile, then insurance and upkeep spread over your miles.Gas, insurance, upkeep → $0.34 / miRange on a tankHow far the gas in the tank will take you, with a reserve.14 gal tank at 25% → 98 miMPG convertermpg, L/100 km, km/L, UK mpg, MPGe and kWh per 100 miles.30 mpg → 7.84 L/100 kmFuel savingsGallons and dollars saved a year by a car with better mpg.22 to 32 mpg → $746.80 a yearEV charging costThe cost of one charge, with the energy lost while charging.75 kWh, 20 to 80% → $9.09EV vs gas costA year of electricity against a year of gasoline.12,000 mi a year → $848.02 savedElectricity by stateHome electricity price in each state and the EV cost per mile.30 kWh/100 mi → $0.05 per mileTire size calculatorDiameter, revolutions per mile and speedometer gap of two tire sizes.225/45R17 to 225/50R17 → 3.55% largerCar depreciationA car's value after some years, from a yearly rate or a resale price.$30,000, 15% for 5 years → $13,311.16Mileage reimbursementMiles times the IRS standard rate for 2024 to 2026.1,200 mi at 76ยข → $912.00

Sources

Figures checked on 2026-12-02. Page updated 2026-12-02.