Free Online Calculator

Gas Mileage Calculator

Calculate your vehicle's fuel economy in km/L, L/100 km and mpg from distance and fuel used.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: how to calculate mileage

Divide the distance driven by the fuel used. 400 km on 32 litres is 12.5 km/L — 8 L/100 km or 29.4 mpg (US). Fill the tank, reset the trip meter, drive, then refill and note the litres added.

Overview of the Gas Mileage Calculator

The Gas Mileage Calculator turns a distance and an amount of fuel into fuel economy in every common unit: kilometres per litre (used in India), litres per 100 km (used in Europe), miles per US gallon and miles per UK (imperial) gallon. Add a fuel price to see the cost per kilometre and per mile and the total fuel cost.

Tracking mileage over several fills shows whether a vehicle is running efficiently or needs servicing. To plan a trip's fuel budget use the Fuel Cost Calculator.

How We Calculate Fuel Economy

The calculator converts everything to kilometres and litres, then to each unit.

  1. Convert distance to kilometres (1 mile = 1.609344 km) and fuel to litres (1 US gallon = 3.785412 L, 1 UK gallon = 4.54609 L).
  2. km/L = distance ÷ fuel.
  3. L/100 km = 100 ÷ km/L.
  4. mpg (US) = miles ÷ US gallons; mpg (UK) = miles ÷ UK gallons.
  5. Fuel cost per km = price per litre ÷ km/L.
km/L = km ÷ litres   L/100 km = 100 ÷ (km/L)
mpg (US) = km/L × 3.785412 ÷ 1.609344
Worked examples (calculated with this tool)
Distance / fuelkm/LL/100 kmmpg (US)
400 km on 32 L12.5829.4
300 mi on 10 US gal12.757.8430
500 km on 25 L20547.04
250 km on 20 L12.5829.4
Fuel economy conversion chart
km/LL/100 kmmpg (US)mpg (UK)
812.5018.822.6
1010.0023.528.2
128.3328.233.9
156.6735.342.4
185.5642.350.8
205.0047.056.5
254.0058.870.6

Getting an Accurate Reading

Use the full-tank method: fill the tank to the first click, note the odometer or reset the trip meter, drive normally, then refill to the same point and record the litres added. Do this over a few tanks and average the results — a single reading can be skewed by how the pump clicks off.

Gas Mileage Calculator — Frequently Asked Questions

How do I calculate my car's mileage?

Divide the kilometres driven by the litres of fuel used since the last full tank. 400 km on 32 L is 12.5 km/L.

What is a good mileage for a car?

It depends on the vehicle. Many small petrol cars deliver 15–22 km/L and diesel hatchbacks and hybrids can exceed that; large SUVs often give 8–12 km/L.

How do I convert km/L to L/100 km?

Divide 100 by the km/L figure. 12.5 km/L is 8 L/100 km.

How do I convert km/L to mpg?

Multiply km/L by 2.352 for US mpg or by 2.825 for UK mpg. 12.5 km/L is about 29.4 mpg (US).

Why are US and UK mpg different?

Because a UK gallon (4.546 L) is larger than a US gallon (3.785 L), the same car has a higher UK mpg figure.

What affects fuel economy?

Driving style, speed, traffic, tyre pressure, load, AC use, engine condition and the type of fuel.

How do I find fuel cost per km?

Enter the fuel price: the calculator divides the price per litre by km/L to give the cost per kilometre.

Is the trip meter accurate?

Odometers can read a few percent high, so verify with a known distance for best accuracy.

What is L/100 km?

The litres of fuel needed to drive 100 km. Lower is better — the opposite of km/L, where higher is better.

Is my data stored?

No. Everything runs in your browser.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

1 + 8 =
Call WhatsApp