MPG calculator

What is my MPG? Calculate it in seconds.

A free MPG calculator. Enter the distance you drove and the fuel you used to get miles per gallon, plus L/100km, km/L and the fuel cost per mile. No sign-up, nothing stored.

30.00 MPG
7.84L/100km
12.75km/L
$0.12Cost per mile
$11.67Cost per 100 miles
$35.00Total fuel cost
3.33Gallons per 100 miles

Worked example: 300 miles / 10 gallons = 30.00 MPG = 7.84 L/100km = 12.75 km/L. At $3.50 per gallon the cost is $0.12 per mile.

How to use

Use the MPG calculator in 3 steps

1. Fill up and note the miles

Fill the tank, note the odometer reading, drive as normal, then fill up again and note the new reading.

2. Enter distance and fuel

Type the miles driven and the gallons used on the second fill-up. Add the fuel price to see the cost per mile.

3. Read MPG and cost together

The tool shows MPG, L/100km, km/L, cost per mile and cost per 100 miles side by side.

The formula

The MPG formula, explained

MPG = distance in miles / fuel in gallons. The other units follow from 1 mile = 1.609344 km and 1 US gallon = 3.78541 litres.

L/100km

L/100km = 235.214 / MPG. For 30 MPG that is 235.214 / 30 = 7.84 L/100km. A lower number means better economy.

km/L

km/L = MPG x 1.609344 / 3.78541. For 30 MPG that is 30 x 1.609344 / 3.78541 = 12.75 km/L.

Cost per mile

Cost per mile = fuel price per gallon / MPG. At $3.50 per gallon and 30 MPG that is 3.50 / 30 = $0.12 per mile.

Example values

Example MPG table

Generic examples only, calculated with the formulas above. Every row shows the same fuel economy in all three units.

MPGL/100kmkm/LCost per mile at $3.50/gal
259.4110.63$0.14
307.8412.75$0.12
356.7214.88$0.10
405.8817.01$0.09
455.2319.13$0.08
504.7021.26$0.07
FAQ

MPG calculator questions

How do I calculate MPG?

Divide the distance driven in miles by the fuel used in gallons. For example, 300 miles on 10 gallons is 300 / 10 = 30.00 MPG. Fill the tank, note the miles, drive, fill again, and divide the miles driven by the gallons used.

How do I convert MPG to L/100km?

Divide 235.214 by the MPG value. For 30 MPG that is 235.214 / 30 = 7.84 L/100km. A lower L/100km number means better fuel economy, which is the opposite of MPG.

How do I convert MPG to km/L?

Multiply MPG by 1.609344 to get kilometres per gallon, then divide by 3.78541 litres per gallon. For 30 MPG that is 30 x 1.609344 / 3.78541 = 12.75 km/L.

How do I calculate cost per mile?

Divide the fuel price per gallon by your MPG. At $3.50 per gallon and 30 MPG, the cost is 3.50 / 30 = $0.12 per mile. For 100 miles that is $11.67 of fuel.

What is a good MPG?

There is no single good value, because it depends on the vehicle type, size, engine, driving style and road conditions. The example values on this page are generic comparisons only, not figures for any specific vehicle.

Why does my MPG change between trips?

MPG changes with speed, traffic, hills, load, tyre pressure, air conditioning and short trips. City driving usually gives lower MPG than steady highway driving, because of stopping, starting and idling.

Does this MPG calculator store my data?

No. Your distance, fuel and price are calculated in your browser only. Nothing is uploaded, saved or shared by this page.

Related tools

Related tools

Ready to see your real speed?

Work out your MPG here, then open the full live GPS speedometer on the homepage for MPH, KPH, knots and m/s, trip distance and average speed.

Open live speedometer