Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Gas Mileage Calculator

  • Free
  • Runs in your browser
  • No account needed

Enter your distance and fuel used to get US MPG, L/100 km, and km/L. For example, 300 miles using 10 US gallons equals 30 MPG.

Miles per gallon (US)
28
Litres per 100 km
8.4
Kilometres per litre
11.9
Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Gas Mileage Calculator

FreeToolr's Gas Mileage Calculator measures fuel economy from the distance you drove and the fuel you used. Choose Miles and US gallons or Kilometres and litres, then enter both values. The tool shows US miles per gallon, litres per 100 km, and kilometres per litre at the same time. Results update instantly as you type, so there is no calculate button. You can copy the result or share a link that reopens with your numbers. The calculator runs in your browser, and nothing is uploaded. It suits drivers checking real-world fuel use after a refill, comparing trips, or tracking a vehicle over time. For a clearer result, measure distance and fuel between two full-tank refills. This page keeps the interface focused on fuel economy, without adding fuel prices, trip costs, vehicle lookups, or unrelated estimates.

How to use it

  1. 1Choose Miles and US gallons or Kilometres and litres.
  2. 2Enter the distance driven.
  3. 3Enter the fuel used.
  4. 4Read the instant MPG, L/100 km, and km/L results. Copy the result or share its link if needed.
Advertisement

Worked example

If you drive 300 miles and use 10 US gallons, MPG = 300 / 10 = 30 MPG. The equivalent results are 7.8405 L/100 km and about 12.070 km/L.

The formula

MPG = miles / gallonsL/100 km = litres / km x 100To convert, L/100 km = 235.215 / US mpgOne US gallon is 3.78541 litres

Source: US EPA, Frequent Questions Related to Transportation Air Pollution and Climate ChangeUS EPA, Fuel Economy and EV Range Testing. Last checked 2 November 2026.

What it is good for

  • Shows US MPG, L/100 km, and km/L together.
  • Updates instantly while you type.
  • Runs in your browser with nothing uploaded.
  • The calculator uses US gallons, not Imperial gallons.
  • It does not include fuel prices, trip costs, odometer fields, or vehicle ratings.
Advertisement

Questions people ask

How do I calculate gas mileage?

Divide the distance driven by the fuel used. For US units, divide miles by US gallons. For a useful real-world measurement, start and finish with a full tank.

What numbers should I enter?

Enter the distance covered since your last full-tank refill and the fuel added at the next full-tank refill. Use the same unit system for both values.

Can I use kilometres and litres?

Yes. Choose Kilometres and litres. The calculator then shows L/100 km, km/L, and the equivalent US MPG.

Does the calculator use US or Imperial gallons?

It uses US gallons when you choose the miles option. One US gallon is 3.78541 litres, so US MPG is not the same as UK or Imperial MPG.

Why is my result different from the vehicle's official MPG?

Official ratings come from standard tests. Traffic, speed, hills, temperature, tyre pressure, air conditioning, cargo, and driving style can change real-world fuel use.

Should I average several fuel readings?

Yes. The US Environmental Protection Agency recommends averaging results from two or three tanks. This reduces changes caused by how much fuel the tank receives at each refill.

Can I use a partial refill?

You can, but the result may be less reliable unless the fuel amount covers the full distance measured. Starting and ending with a full tank gives a better comparison.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement