Account

What new tool do you want?

Auto & Travel

Gas Mileage (MPG) Calculator

Calculate your car's real fuel economy from a fill-up — miles per gallon, L/100 km and km/L — and the fuel cost per mile or km.

How to use

  1. 1Fill the tank, reset the trip meter, then drive normally.
  2. 2At the next fill-up, enter the distance driven, the fuel added and the price.

How it's calculated

MPG = miles ÷ gallons. L/100 km = litres ÷ km × 100. Cost per mile = total cost ÷ miles.

Frequently asked questions

Why fill the tank completely?

The fuel you add after a full tank equals the fuel you used — the 'tank-to-tank' method is the simplest accurate test.

Why is my MPG lower than the EPA figure?

Short trips, cold weather, high speeds, aggressive acceleration and air conditioning all reduce real-world economy.

How do I convert MPG to L/100 km?

L/100 km = 235.21 ÷ MPG (US). 30 MPG ≈ 7.84 L/100 km.

Why 'fill it completely' is the whole method

The tank-to-tank method works because of a simple equivalence: if you start and end at a completely full tank, the fuel added at the second fill-up exactly equals the fuel consumed over the distance driven in between — there's no need to know the tank's total size or do anything more complex. Topping off to a different level than 'completely full' at either end breaks that equivalence and introduces error, which is why consistently filling all the way is the one habit that matters most for an accurate reading.

A worked example of the unit conversion

300 miles on 10 US gallons is 30 MPG — and converting that to the metric system most of the world uses isn't a simple division. The relationship is L/100km = 235.215 ÷ MPG(US), giving roughly 7.84 L/100 km for a 30 MPG car, not 100 ÷ 30 ≈ 3.33 (a common mistake, since MPG and L/100km measure the same thing in inverted directions — one is distance per unit fuel, the other is fuel per unit distance).

Why your real number rarely matches the EPA sticker

EPA and similar official ratings are measured under standardized lab conditions; real-world driving routinely runs lower because of variables the lab test doesn't fully capture — short trips that never let the engine reach efficient operating temperature, cold weather, sustained highway speeds, aggressive acceleration, and air conditioning or heating load all reduce actual economy below the sticker figure.

I always get both gallon sizes, even in metric

Distance and fuel have to be greater than zero. Miles and US gallons are selected first, at 320 miles and 10.5 gallons. The highlighted result is US miles per gallon unless I switch to kilometres and litres, in which case litres per 100 kilometres is the one brought forward. UK miles per gallon and kilometres per litre are listed either way. The US gallon used in the conversion is 3.785411784 litres and the UK gallon is 4.54609 litres, so the two MPG figures differ by that gallon ratio on the same tank. A 300 mile, 10 US gallon fill is 30 miles per gallon and about 7.84 litres per 100 kilometres. The price box is optional.

The price is per whatever unit I used for the fuel

The price line says per gallon or per litre because it follows the unit mode. In US mode I type a price per US gallon and the cost is that price times the gallons I added. In the UK mode, miles and litres, the price is per litre even though the big number is still a miles-per-gallon figure. Metric mode is price per litre as well. The cost per mile, or per kilometre, is the total cost divided by the distance I typed, to three decimal places. It does not convert a US-gallon price into a litre price for me.

Related tools

More: Auto & Travel