Gas Mileage Calculator

Fill the tank, drive, fill again, then enter the distance and the fuel you added. The calculator gives your fuel economy in three common units and what each mile or kilometre cost.

How it works

Fuel economy is the distance driven divided by the fuel used. The other units are conversions of the same number. If you enter a fuel price, the cost per distance is the price times the fuel used divided by the distance.

MPG = miles ÷ US gallons
km/L = km ÷ litres  ·  L/100 km = 100 × litres ÷ km
L/100 km = 235.215 ÷ MPG (US)

Worked example

Using the default values: Units = Miles and US gallons; Distance driven (mi or km) = 350; Fuel used (gal or L) = 12.5; Fuel price per gallon or litre (optional) = 3.5.

The calculator returns: Fuel economy: 28 MPG; Kilometres per litre: 11.9; Litres per 100 km: 8.4; Total fuel cost: 43.75; Cost per mile: 0.125.

Limits and assumptions

  • Use the fill-up to fill-up method: fill the tank to the same level each time so the fuel you added equals the fuel you burned.
  • One tank is a rough figure. Average several fill-ups for a better number.
  • MPG here means US gallons. UK (imperial) gallons are larger, so a UK MPG figure is about 20% higher for the same car.

Last reviewed: 2026-12-01. Found a mistake? Please use the Contact page and tell us the inputs you used.

Frequently asked questions about the Gas Mileage Calculator

What is a good MPG?

Many petrol cars manage 25 to 35 MPG (about 6.7 to 9.4 L/100 km). Small hybrids often exceed 45 MPG.

How do I convert MPG to L/100 km?

Divide 235.215 by the MPG (US). 28 MPG is about 8.4 L/100 km.

Why is my real mileage lower than the car maker says?

Test cycles are idealised. Short trips, cold weather, speed, load and tyre pressure all lower real economy.

Advertisement