Calcamaze

Gas Mileage Calculator

Calculate your car’s real gas mileage from the distance driven and fuel used, in mpg and L/100 km, with the cost per mile.

mi

Odometer reading now minus the reading at the last fill-up.

gal
$ / gal

Result

Gas mileage
28.6 mpg
Fuel consumption
8.23 L/100 km
Kilometres per litre
12.15 km/L
UK miles per gallon
34.3 mpg (UK)
Fuel cost per mile
$0.11
Fuel cost per 100 miles
$11.20
Cost of this tank
$35.84

Work out the fuel economy your car actually gets, rather than the figure on the window sticker. Fill the tank, drive as usual, fill it again and enter the distance driven and the fuel it took to refill. The calculator gives miles per gallon and litres per 100 km, and the cost per mile or kilometre if you add the fuel price.

The fill-up method is the most reliable way to measure your real fuel economy: fill the tank, reset the trip meter, drive normally, then fill up again and divide the distance by the fuel used.

What is gas mileage?

Gas mileage, or fuel economy, is how far a vehicle travels on a given amount of fuel. In the United States it is measured in miles per gallon (mpg), where higher is better; most other countries measure fuel consumption in litres per 100 kilometres (L/100 km), where lower is better. The window sticker gives an official estimate from standardised tests, but your real figure depends on how, where and in what weather you drive.

The reliable way to measure it is the fill-up method recommended by fueleconomy.gov: fill the tank and note the odometer, drive normally, fill up again and divide the miles driven by the gallons it took to refill. Driving style matters a lot — fueleconomy.gov estimates that aggressive driving with rapid acceleration and braking can lower gas mileage by roughly 15% to 30% at highway speeds and 10% to 40% in stop-and-go traffic.

How to use the gas mileage calculator

  1. Fill the tank completely and note the odometer reading (or reset the trip meter).
  2. Drive as normal until you next need fuel.
  3. Fill the tank again and note the fuel added and the new odometer reading.
  4. Enter the distance and fuel used, and the price if you want the cost per mile.

Formula

mpg = miles driven ÷ gallons used · L/100 km = litres used ÷ km driven × 100

Miles per gallon measures distance per unit of fuel, so higher is better. Litres per 100 km measures fuel per distance, so lower is better. The two are reciprocals: 30 mpg (US) is about 7.84 L/100 km.

A US gallon is exactly 3.785411784 litres and a UK (imperial) gallon 4.54609 litres, so the same car gets about 20% more “miles per gallon” in UK figures.

Worked examples

A week of commuting

Units
US (miles, gallons)
Distance driven
312 mi
Fuel to refill the tank
10.4 gal
Fuel price (optional)
3.25 $ / gal
Gas mileage
30 mpg
Fuel consumption
7.84 L/100 km
Kilometres per litre
12.75 km/L

312 miles ÷ 10.4 gallons = 30 mpg. At $3.25 a gallon the tank cost $33.80, or $0.11 a mile.

Metric: kilometres and litres

Units
Metric (km, litres)
Distance driven
640 km
Fuel to refill the tank
44.8 L
Fuel price (optional)
1.85 $ / L
Fuel consumption
7 L/100 km
Kilometres per litre
14.29 km/L
US miles per gallon
33.6 mpg

44.8 L ÷ 640 km × 100 = 7 L/100 km, which is 33.6 mpg in US terms.

mpg and L/100 km compared

mpg (US)L/100 kmkm/LGallons per 100 miles
1515.686.386.67
2011.768.55
259.4110.634
307.8412.753.33
356.7214.882.86
405.8817.012.5
504.721.262

Average over several tanks

A single tank can be skewed by a long highway trip or a week of short city runs. Add up the miles and the gallons over three or four fill-ups and divide the totals, rather than averaging the individual mpg figures, to get a figure you can compare with the official rating.

Common mistakes

  • Measuring from a single partial fill. Pumps click off at slightly different levels, so one tank can be off by several percent; average a few fill-ups.
  • Mixing US and UK gallons. A UK gallon is about 20% larger, so UK mpg figures look higher for the same car.
  • Comparing mpg differences linearly. Going from 10 to 15 mpg saves far more fuel than going from 40 to 45 mpg over the same distance, which is why gallons per 100 miles is a fairer comparison.
  • Trusting the dashboard readout alone. Trip computers are estimates and are often a few percent optimistic.
  • Calculating from a partial fill. The method only works if the tank is filled to the same level both times.

Frequently asked questions

Why is my mpg lower than the EPA rating?

Official ratings come from standard lab tests. Real-world mileage is usually lower with aggressive driving, high highway speeds, short trips in cold weather, roof racks and underinflated tyres. Fueleconomy.gov estimates aggressive driving alone can cut highway mileage by 15–30%.

How accurate is the fill-up method?

One tank can be off by a few percent because pumps stop at slightly different levels. Average several fill-ups — add up all the miles and all the gallons — for a reliable figure.

How do I convert mpg to L/100 km?

Divide 235.2 by the US mpg figure: 25 mpg is about 9.4 L/100 km.

Sources

  1. Calculating Your MPG, FuelEconomy.gov, U.S. Department of Energy and EPA
  2. Gas Mileage Tips: Driving More Efficiently, FuelEconomy.gov, U.S. Department of Energy and EPA
  3. NIST Handbook 44, Appendix C: General Tables of Units of Measurement, National Institute of Standards and Technology (NIST)

Last updated · Calculations checked by automated tests· Editorial policy