Skip to content

Gas mileage calculator

Your fuel economy in mpg and L/100 km, or the fuel and cost of a trip.

Work out
Units
mi
gal
$
Currency
Gas Mileage Calculator by Utility Empire

How it works

Fuel economy is distance per unit of fuel (mpg) or fuel per distance (L/100 km). From either one and a fuel price, you can cost any trip.

The formulas

  • mpg = miles ÷ US gallons; L/100 km = litres ÷ km × 100
  • L/100 km = 100 × 3.785411784 ÷ (1.609344 × mpg) ≈ 235.215 ÷ mpg
  • Trip fuel = distance ÷ mpg (or distance × L/100 km ÷ 100); trip cost = fuel × price

Sources: 1 US gallon = 3.785411784 L and 1 mile = 1.609344 km exactly, from NIST Special Publication 811, Guide for the Use of the International System of Units, Appendix B.

Worked examples

  • 350 miles on 12.5 gallons: 28 mpg, about 8.4 L/100 km.
  • A 600 km trip at 6.5 L/100 km: 39 L of fuel; at €1.80 a litre, €70.20.

Frequently asked questions

How do I measure my real mpg?

Fill the tank and reset the trip meter. At your next fill-up, note the miles driven and the gallons it takes to fill the tank again. Miles ÷ gallons is your mpg.

How do I convert mpg to L/100 km?

Divide about 235.2 by the mpg. 30 mpg is about 7.8 L/100 km. The same division works the other way round.

Are these US or UK gallons?

US gallons (3.785 L). A UK gallon is 4.546 L, so UK mpg figures are about 20% higher for the same car.