Calculator · Fuel economy

MPG calculator miles per gallon, L/100 km, cost per mile.

Your real fuel economy is miles driven divided by gallons used — not the laboratory figure in the brochure. 300 miles on 10 gallons is 30 MPG (7.84 L/100 km). Enter your numbers below.

miles
gal
$/gal
Fuel economy — MPG — L/100 km
Cost per mile — Total fuel cost: —

The result updates as you type — there is no submit button. US gallons: 1 gallon = 3.785 litres. Leave the price at 0 to hide the cost figures.

The maths

The formula, step by step.

MPG = miles driven ÷ gallons used
L/100 km = 235.214 ÷ MPG (US gallons)
Cost per mile = fuel price per gallon ÷ MPG

Three worked examples, so you can check the calculator:

TripCalculationMPGL/100 kmUK MPGkm/L
300 miles on 10 gallons300 ÷ 1030.007.8436.0312.75
450 miles on 12 gallons450 ÷ 1237.506.2745.0415.94
250 miles on 15 gallons250 ÷ 1516.6714.1120.027.09
200 miles on 8 gallons200 ÷ 825.009.4130.0210.63

Reference table

What your MPG means.

MPGL/100 kmTypical carCost/mile at $3.50/gal
1515.68Large truck / old V8$0.233
2011.76Large SUV$0.175
259.41Mid-size saloon$0.140
307.84Family hatchback$0.117
405.88Efficient petrol / diesel$0.088
504.70Hybrid$0.070

Why it matters

What this means for your wallet.

Your real MPG is the one you measure

Fill the tank, reset the trip meter, drive normally, then fill again and divide. That number — not the brochure figure — is what your car actually does. Track it over a few tanks and you will see the effect of cold weather, short trips and a roof box in plain numbers.

Small MPG gains save real money at low MPG

Going from 15 to 20 MPG saves more fuel than going from 40 to 50 MPG over the same distance — because the thirsty car was burning so much more per mile. L/100 km shows this directly: it is fuel per distance, so every litre saved is a litre saved.

Cost per mile is the number to compare

Two cars can have the same MPG and different costs per mile if one runs on premium fuel. Divide the price you actually pay by your MPG and you get the fuel cost of every mile you drive — the figure that decides whether the cheaper car is actually cheaper.

The fill-up log

One tank lies a little. Several tanks tell the truth.

A single fill-up is only as accurate as the pump's cut-off point, and pumps stop at slightly different levels. The fix is a fill-up log: fill to the same click at the same pump, reset the trip meter or note the odometer, drive normally, fill again, and repeat over several tanks. Then add up all the miles and divide by all the gallons — total distance divided by total fuel. That is the only correct average.

Do not average the MPG figures themselves. A tank at 100 MPG and a tank at 11.11 MPG do not average to 55.56 MPG: over equal distances the true average is 20 MPG, because the thirsty tank burned far more fuel. The same trap catches the per-tank figures on any car — the mean of the MPGs is always higher than the real MPG when the tanks differ. Keep the log in miles and gallons, and let the totals do the averaging.

The log also gives you a best and a worst tank, which is where the diagnosis lives: a worst tank full of short cold starts and a best tank of steady motorway miles can be 10 MPG apart in the same car. And if you want the figure the US EPA prefers, look at gallons per 100 miles instead of MPG — fuel per distance adds up linearly, so a 1-gallon saving is a 1-gallon saving at any MPG.

How it works

How the answer is calculated.

The calculator divides miles by gallons for MPG, converts to L/100 km with the exact factor 235.214 ÷ MPG (US gallons; 282.481 for UK imperial gallons), and divides the fuel price by MPG for cost per mile. How every number on this site is checked is explained on the Methodology page.

FAQ

Questions, answered.

01 How do you calculate MPG? +

Divide miles driven by gallons used: MPG = miles ÷ gallons. Fill the tank, reset the trip meter, drive, then fill again — 300 miles on 10 gallons is 300 ÷ 10 = 30 MPG. The calculator above does the division and converts the answer to litres per 100 km as well.

02 How do you convert MPG to L/100 km? +

Divide 235.214 by the MPG figure (for US gallons): L/100 km = 235.214 ÷ MPG. A car doing 30 MPG uses 235.214 ÷ 30 = 7.84 L/100 km. The number is exact for US gallons; with UK imperial gallons, divide 282.481 instead, so 30 MPG (UK) is 9.42 L/100 km.

03 What is a good MPG? +

For a petrol car, 30–40 MPG is good, 40–50 is very good, and over 50 usually means a hybrid. A large SUV at 20 MPG is normal for its size, and a small hatchback at 45 MPG is normal for its. Compare cars of the same size and fuel type — a diesel and a petrol car with the same MPG do not cost the same per mile.

04 Why is my MPG lower than the manufacturer claims? +

Because official figures come from a laboratory test cycle, not real roads. Aggressive driving alone can cut mileage by roughly 15–30% at highway speeds and 10–40% in stop-and-go traffic, according to fueleconomy.gov — and short trips, cold starts, air conditioning, roof boxes and under-inflated tyres push it lower still. The figure on this page — your miles divided by your gallons — is your real MPG, and it is the one that matters for your wallet.

05 How much does it cost per mile to drive? +

Divide the fuel price per gallon by your MPG: cost per mile = price ÷ MPG. At $3.50 a gallon and 30 MPG, a mile costs 3.50 ÷ 30 = $0.117. At 25 MPG the same gallon costs $0.14 a mile. Enter your fuel price in the calculator and it works out the cost per mile and the total for the trip.

06 Should I average the MPG of each fill-up? +

No — average the totals, not the MPG figures. Add up all the miles over several fill-ups and divide by all the gallons used; that is the only correct average. Averaging the per-tank MPG figures overstates the result: a tank at 100 MPG and a tank at 11.11 MPG average to 20 MPG over equal distances, not 55.56 MPG, because the thirsty tank burned far more fuel. Keep a fill-up log in miles and gallons and let the totals do the work.

07 Is MPG or L/100 km better? +

They measure the same thing in opposite directions: MPG is distance per unit of fuel (higher is better), L/100 km is fuel per distance (lower is better). L/100 km makes fuel savings easier to see — going from 10 to 8 L/100 km saves twice as much fuel as going from 5 to 4 — which is why most of the world uses it.

Related tools

Road trip cost calculator — fuel cost for the whole trip. · MPGe to kWh converter — the EV version of fuel economy. · Average speed calculator — distance ÷ time, with pace. · All speed tools — every converter and calculator on this site.

← Back to all tools

Sources

Sources & last checked.

Conversion factors are arithmetic from the definitions 1 US gallon = 3.785411784 litres and 1 mile = 1.609344 km (both exact); UK MPG uses 1 imperial gallon = 4.54609 litres (exact). Aggressive-driving figures: fueleconomy.gov, Driving More Efficiently. Fuel prices change daily — enter the price at your pump for a real cost. Last checked: 22 November 2026.