Fuel consumption calculator

Turn a fill-up into your real mpg and L/100km, or work out how many gallons a distance needs.

Use the trip meter, reset at the last fill.

Fill to the pump’s first click-off both times.

Gives the cost of this fill-up. Leave blank to skip.

Nothing you enter leaves this page.

How this is calculated

Miles per gallon is the miles you drove divided by the gallons you added to refill the tank. L/100km is the same fill-up expressed in litres per 100 kilometres: 100 × gallons × 3.785412 ÷ (miles × 1.609344). The two constants are from the NIST Guide to the SI, Appendix B. To find the fuel needed for a distance, divide the distance by your mpg.

mpg = miles ÷ gallons   and   gallons needed = distance ÷ mpg

The method, the constants and the limits are written out in how fuel cost is calculated.

How to measure mpg accurately

  1. Fill the tank until the pump clicks off the first time, then note the trip meter or odometer and reset the trip meter to zero.
  2. Drive as you normally do until the tank is at least half empty, or lower if you can.
  3. Fill again at the same pump if you can, stopping at the first click-off, and write down the gallons the pump shows.
  4. Enter the miles on the trip meter and the gallons added.

Topping off after the click, different pumps and a different parking angle can all change how much fuel goes in, so a single tank gives a rough figure. Averaging several tanks smooths this out. The dashboard’s own mpg readout is useful for a comparison, but a tank-to-tank figure is based on fuel you actually bought.

Worked example

You drive 312 miles and the next fill-up takes 10.4 gallons.

  1. mpg = 312 ÷ 10.4 = 30.0.
  2. L/100km = 100 × 10.4 × 3.785412 ÷ (312 × 1.609344) = 7.8.
  3. At $3.50 a gallon that fill-up cost 10.4 × $3.50 = $36.40.

For the other mode, a 250-mile trip at 30 mpg needs 250 ÷ 30 = 8.33 gallons.

Keeping a log

Note the date, miles and gallons at every fill-up and work out each tank on its own. Over a few months you will see how your mpg changes with the seasons, with short trips and with highway driving. A sudden drop that lasts can be worth mentioning to a mechanic. Use your average mpg in the fuel cost calculator and the trip gas calculator for better estimates.

To convert a figure between the two systems on its own, use the mpg to L/100km converter. For the full cost of owning a car per mile, see the cost per mile calculator. The method behind fuel estimates is in how fuel cost is calculated, and how much gas you will use on a trip applies it to a drive.

Common questions

Do I need a full tank both times?

Yes. The method only works if both fill-ups reach the same point, normally the first click-off of the pump. Otherwise the gallons do not match the miles.

Why does my result differ from the dashboard?

Dashboard readouts are estimates from the car’s computer. A tank-to-tank figure is based on the fuel you bought and the miles you drove, so it is usually the one to trust for cost.

What does the second mode do?

It divides a distance by your mpg to give the gallons you need. It is the same calculation the cost calculators use before multiplying by price.