MPG Calculator
Work out your real fuel economy from a tank of fuel. Enter the distance you drove and the fuel it took, in miles or kilometres and gallons or litres, and get miles per gallon in both US and imperial units, litres per 100 km and kilometres per litre.
MPG calculator
On this calculator: Ctrl+Enter copies the result, Shift+Alt+L copies a link to the current inputs, Shift+Alt+R resets, Shift+Alt+P opens Print / Save PDF. These shortcuts do not run while you type in a field, except Ctrl+Enter.
Saved results on this device
Stored only in this browser, not on our servers.
How to use the mpg calculator
- Fill the tank and reset the trip meter. Fill up completely, note the odometer or reset the trip meter, and drive as normal.
- Refuel and record the fuel. Fill the tank to the same level next time and note how much fuel it took.
- Enter distance and fuel. Type the distance and fuel used, and choose your units: miles or kilometres, US gallons, imperial gallons or litres.
- Read the economy. The result shows mpg (US), mpg (imperial), L/100 km and km/L, plus gallons per 100 miles.
How MPG is calculated
mpg = distance in miles ÷ fuel in gallons
L/100 km = fuel in litres ÷ distance in km × 100
Worked examples
350 miles on 12 US gallons. 350 ÷ 12 = 29.17 mpg (US), which is 35.03 mpg (UK), 8.064 L/100 km and 12.4 km/L.
350 km on 30 litres. 30 ÷ 350 × 100 = 8.571 L/100 km, or 27.44 mpg (US).
300 miles on 8 imperial gallons. 300 ÷ 8 = 37.5 mpg (UK).
Why miles per gallon and L/100 km differ
Miles per gallon measures distance per unit of fuel, so a bigger number is better. Litres per 100 km measures fuel per unit of distance, so a smaller number is better. The second form is easier to use for cost and consumption, because savings add up linearly: going from 10 to 5 L/100 km halves the fuel used, while going from 20 to 40 mpg does the same. The MPG to L/100 km converter translates between them.
How to measure it properly
Fill the tank until the pump clicks off, once, and do not top up. Record the odometer. At the next fill-up, again fill until the first click, and divide the distance by the fuel added. A single tank can be off by 5% because of pump shut-off differences, so average three or more. Use the same pump if you can, and keep tyre pressures right.
Related tools
Estimate what a trip will cost with the fuel cost calculator, compare to an electric car with the EV charging cost calculator, or work out average speed with the speed distance time calculator. For volume conversions see gallons to liters.
Frequently asked questions
How do I calculate MPG?
Divide the miles driven by the gallons of fuel used. If you drove 350 miles and used 12 US gallons, that is 350 ÷ 12 = 29.17 mpg (US).
Why is UK mpg higher than US mpg?
The imperial gallon is 4.546 litres and the US gallon is 3.785 litres, so the same car does about 20% more miles per imperial gallon. 29.17 mpg (US) is 35.03 mpg (UK).
How do I convert mpg to L/100 km?
Divide 235.215 by the US mpg figure, or 282.481 by the imperial mpg figure. 30 mpg (US) is 7.84 L/100 km.
How accurate is the trip computer?
Trip computers often read optimistic by a few percent. The full-tank method used here is more reliable, especially if you average several tanks and fill at the same pump the same way.
What is a good MPG?
It depends on the vehicle. Many modern petrol cars achieve 30 to 40 mpg (US), roughly 6 to 8 L/100 km, while large trucks often manage 15 to 25 mpg (US). Hybrids are commonly 45 mpg (US) and above.
What affects fuel economy?
Speed, acceleration, tyre pressure, load, roof racks, air conditioning, cold weather, short trips and stop-start traffic all change it. Highway speeds above about 60 mph raise consumption noticeably.
Does it work for diesel and electric cars?
It works for any liquid fuel. For an electric car use the EV charging cost calculator, which gives miles per kWh and MPGe.
Related calculators
MPG to L/100 km Converter
US mpg, UK mpg, L/100 km and km/L, converted in one step.
Fuel Cost Calculator – Trip and Gas Cost
Trip fuel cost from distance, economy and price, with cost per person.
EV Charging Cost Calculator
Cost per charge, per mile, MPGe and saving versus petrol.
Speed, Distance and Time Calculator – Average Speed
Average speed, distance or journey time, in mph, km/h, knots and pace.
Sources and references
About this calculator
Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 14 November 2026. See our editorial policy. If you spot a mistake, report it.
Results are estimates based on the values you enter. Real fuel economy, range, power and speed vary with driving style, load, weather and vehicle condition. Check your vehicle handbook and local rules before changing tyres or gearing. Read the disclaimer.