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.
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.
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 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 MPG table
Generic examples only, calculated with the formulas above. Every row shows the same fuel economy in all three units.
| MPG | L/100km | km/L | Cost per mile at $3.50/gal |
|---|---|---|---|
| 25 | 9.41 | 10.63 | $0.14 |
| 30 | 7.84 | 12.75 | $0.12 |
| 35 | 6.72 | 14.88 | $0.10 |
| 40 | 5.88 | 17.01 | $0.09 |
| 45 | 5.23 | 19.13 | $0.08 |
| 50 | 4.70 | 21.26 | $0.07 |
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
- Average speed calculator — calculate average speed instantly.
- Speed distance time calculator — find speed, distance or time.
- Car speed test — test a car speedometer with GPS.
- Speed converter — convert between MPH, KPH, knots, m/s and more.
- 0-60 mph calculator — calculate 0 to 60 acceleration time.
- Tire size calculator — compare tyre sizes and speedometer error.
- Gear ratio calculator — calculate speed from RPM and gear ratio.
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