Gas Mileage Calculator

Work out your vehicle’s real fuel economy from the distance driven and fuel used, in MPG, L/100 km and km/L, with the cost per mile or kilometre.

Gas mileage calculator
Distance from
Fuel economy

    For the most accurate result, fill the tank completely both times and use the amount of fuel added at the second fill-up. 1 US gallon = 3.785 litres; 1 UK gallon = 4.546 litres.

    On this page

    The gas mileage calculator works out your vehicle’s real fuel economy from the distance you drove and the fuel you used, in miles per gallon, litres per 100 km and kilometres per litre. If you drove 350 miles and needed 11.2 US gallons to refill the tank, your car averaged 350 ÷ 11.2 = 31.25 MPG, which is 7.53 litres per 100 km. Add the fuel price and you’ll also see the cost per mile: at $3.40 a gallon, about 10.9 cents.

    Measuring your own mileage gives a more realistic figure than the official rating, shows how your driving and maintenance affect fuel use, and can warn you early about problems such as under-inflated tyres or a fault that’s wasting fuel.

    How to measure your gas mileage

    1. Fill the tank completely and note the odometer reading, or reset the trip meter.
    2. Drive normally until you need fuel again. The more distance you cover, the more accurate the result.
    3. Fill the tank completely again and note how much fuel you added and the new odometer reading.
    4. Enter the figures. Choose Trip distance if you used the trip meter, or Odometer readings to enter both readings. Enter the fuel added at the second fill-up, which equals the fuel used since the first.
    5. Add the price per gallon or litre if you want the running cost.

    Try to use the same pump, or at least fill to the same point, such as the first automatic click-off, each time. Repeating the measurement over several tanks and averaging the results gives the most reliable figure.

    Fuel economy formulas

    • Miles per gallon: MPG = miles driven ÷ gallons used
    • Litres per 100 km: L/100 km = litres used ÷ kilometres driven × 100
    • Kilometres per litre: km/L = kilometres driven ÷ litres used

    MPG and km/L measure distance per fuel, so higher numbers are better. L/100 km measures fuel per distance, so lower numbers are better. The calculator converts between all of them, and between US and UK gallons, so you can compare your result with any source.

    Worked examples

    • US: 350 miles on 11.2 US gallons is 31.25 MPG. That’s 37.53 MPG in UK gallons, 7.53 L/100 km or 13.29 km/L.
    • Metric: 600 km on 42 litres is 42 ÷ 600 × 100 = 7.00 L/100 km, or 14.29 km/L, equivalent to 33.6 US MPG. At 1.80 per litre, it costs 12.6 cents per km.
    • UK: 400 miles on 40 litres, which is 8.80 UK gallons, is 45.5 MPG in UK gallons, or 37.9 MPG in US gallons.

    US and UK miles per gallon

    A UK (imperial) gallon is 4.546 litres and a US gallon is 3.785 litres, so the same car shows about 20% higher MPG when measured in UK gallons. A car rated at 40 MPG in a UK brochure manages about 33 MPG in US terms. When comparing figures from different countries, make sure both use the same gallon, or compare in L/100 km instead.

    Why your real mileage differs from the official rating

    Official figures, such as EPA ratings in the United States and WLTP figures in Europe and the UK, come from standardised laboratory tests designed to compare models fairly. Real-world results are usually lower, often by 10 to 20%, because everyday driving includes:

    • Higher speeds: air resistance increases sharply with speed, so motorway driving at 75 mph uses noticeably more fuel than at 60 mph.
    • Short trips and cold starts: engines are least efficient until they warm up.
    • Stop-and-go traffic: repeated acceleration wastes energy, except in hybrids that recover some of it.
    • Weather: cold air, winter fuel blends, headwinds and air conditioning all increase consumption.
    • Load and accessories: passengers, luggage, roof racks and towing add weight and drag.
    • Maintenance: under-inflated tyres, a dirty air filter or worn spark plugs can reduce efficiency.

    How to improve your gas mileage

    • Accelerate gently and anticipate stops so you brake less.
    • Keep a steady, moderate speed, and use cruise control on open roads.
    • Check tyre pressures monthly against the figure on the door pillar or in the handbook.
    • Remove roof boxes and racks when not in use, and clear out heavy items you don’t need.
    • Avoid long idling. Modern engines don’t need to warm up while stationary.
    • Keep up with servicing, including oil changes and air filter replacement.
    • Plan trips to combine errands and avoid heavy traffic where possible.

    Measure your mileage before and after a change, such as correcting tyre pressures, to see the difference for yourself.

    Tracking mileage over time

    A sudden drop in fuel economy, without a change in driving or weather, can be an early sign of a problem, such as a sticking brake, a failing oxygen sensor or low tyre pressure. Recording the date, odometer reading, fuel added and price at every fill-up makes it easy to spot trends. Over a year, the records also show exactly what your car costs to run, which is useful for budgeting, business mileage claims and deciding whether a more efficient vehicle would pay for itself.

    The MPG illusion

    Because MPG measures distance per gallon, equal improvements in MPG don’t save equal amounts of fuel. Over 10,000 miles, a car doing 20 MPG uses 500 gallons and one doing 30 MPG uses 333 gallons, a saving of 167 gallons. Going from 40 to 50 MPG over the same distance cuts use from 250 to 200 gallons, a saving of only 50 gallons. Replacing a very thirsty vehicle therefore saves far more than upgrading an already efficient one. Measures such as L/100 km, or gallons per 100 miles, avoid this illusion, because they show fuel used directly.

    A simple fill-up log

    Keep a note in your phone or glovebox with four columns: date, odometer reading, fuel added and price. For example, on 1 May the odometer reads 12,450 after a full tank. On 10 May it reads 12,800, and 11.2 gallons fill the tank at $3.40 a gallon. That leg covered 350 miles at 31.25 MPG and cost $38.08. Each new line gives another reading, and after a few months you’ll know your car’s true average and how it changes with the seasons.

    Hybrids and electric vehicles

    Hybrids can be measured exactly like petrol cars. Plug-in hybrids are trickier, because some of their energy comes from the grid; track the electricity used as well as the fuel. Electric vehicles are rated in miles per kWh, kWh per 100 miles or, in the US, MPGe, miles per gallon equivalent, where 33.7 kWh of electricity counts as the energy in one gallon of petrol. For EV running costs, the electricity calculator is a better fit.

    Comparing cars by running cost

    Cost per mile or per kilometre is the clearest way to compare vehicles. A car doing 25 MPG costs $0.136 per mile at $3.40 a gallon; one doing 40 MPG costs $0.085. Over 12,000 miles a year, that’s about $612 difference. Because fuel savings shrink as efficiency rises, moving from 20 to 30 MPG saves far more fuel than moving from 40 to 50 MPG over the same distance, which is worth remembering when choosing your next car.

    Related calculations

    You may also find the speed calculator useful to find speed, distance or time, while the fuel cost calculator lets you estimate the fuel cost of a trip.

    Frequently asked questions

    Divide the miles driven by the gallons of fuel used. For 350 miles on 11.2 gallons, that's 31.25 MPG.

    Divide the litres used by the kilometres driven and multiply by 100. For 42 litres over 600 km, that's 7 L/100 km.

    It depends on the vehicle. Many modern petrol cars achieve 30 to 40 US MPG, hybrids 45 to 55 MPG, while large SUVs and trucks often get 15 to 25 MPG.

    Official tests use controlled conditions. Real driving includes higher speeds, traffic, cold starts, weather and extra load, which typically reduce MPG by 10 to 20%.

    Divide 235.215 by US MPG, or 282.481 by UK MPG. For example, 31.25 US MPG is 7.53 L/100 km.

    A UK gallon is about 20% bigger than a US gallon, so you travel further on one.

    It's convenient, but trip computers are often a little optimistic. Measuring at the pump over a full tank is more accurate.

    Divide the fuel price per gallon by your MPG. At $3.40 a gallon and 31.25 MPG, it's about 10.9 cents per mile.

    At least two or three full tanks. Averaging several gives a more reliable figure.

    Yes. Under-inflated tyres increase rolling resistance and fuel use, so check them regularly.

    Miles per gallon equivalent, used in the US for electric vehicles. It treats 33.7 kWh of electricity as equal to the energy in one gallon of petrol.

    Yes. Choose Odometer readings and enter the reading at your last fill-up and the current reading. The calculator works out the distance.