
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.
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.
| mpg | L/100 km | Gallons per 100 mi | Gas per mile |
|---|---|---|---|
| 15 | 15.68 L/100 km | 6.67 gal | $0.23 per mile |
| 20 | 11.76 L/100 km | 5.00 gal | $0.18 per mile |
| 25 | 9.41 L/100 km | 4.00 gal | $0.14 per mile |
| 30 | 7.84 L/100 km | 3.33 gal | $0.12 per mile |
| 35 | 6.72 L/100 km | 2.86 gal | $0.10 per mile |
| 40 | 5.88 L/100 km | 2.50 gal | $0.09 per mile |
| 50 | 4.70 L/100 km | 2.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
Sources
- NIST Handbook 44 (2026), Appendix C: General tables of units of measurement
- fueleconomy.gov (DOE and EPA), Learn more about the fuel economy label for electric vehicles
- fueleconomy.gov (DOE and EPA), Driving more efficiently
- U.S. Department of Energy, Fact of the Week #1298: highest EPA-rated fuel economy, model year 2023
Figures checked on 2026-12-02. Page updated 2026-12-02.