Gas mileage calculator worked example showing 300 miles divided by 10 gallons equals 30 MPG, also shown as 7.84 litres per 100 km

Gas Mileage Calculator

The only gas mileage figure that really matters is the one your own car returns on your own roads, and you cannot get it from a brochure. This gas mileage calculator works it out from a single fill-up: you enter the distance you drove and the fuel you put in, and it shows your economy in all four units used around the world — miles per US gallon, miles per UK gallon, litres per 100 kilometres and kilometres per litre. You can also log several fill-ups to average them the correct way, add the price you paid for a cost per mile, and compare your real figure with your car’s official rating. Everything runs in your browser: no fuel prices are fetched and nothing you type is stored.

Gas mileage calculator worked example showing 300 miles divided by 10 gallons equals 30 MPG, also shown as 7.84 litres per 100 km

Work out your car’s real fuel economy from a fill-up: enter the distance you drove and the fuel you put in, and see your mileage in all four units at once — US MPG, UK MPG, litres per 100 km and km per litre. Add several fill-ups in the log to get a properly weighted average, and type in the price you paid if you want your cost per mile. Nothing is fetched or stored: any price is one you enter yourself.



How did you measure the distance?



Planning a journey rather than measuring a tank? Use the fuel cost calculator and trip cost calculator linked below this tool instead — this page measures efficiency, it does not plan trips.

One fill-up can mislead, because pumps stop at slightly different levels. Add two or more fill-ups here and the tool totals all your miles and all your fuel first, then divides — the only correct way to average fuel economy.


Conversions use the fixed constants 235.215 for US MPG and 282.481 for UK MPG against litres per 100 km.

How to Calculate Gas Mileage: The Fill-Up Method

The fill-up method (sometimes called the brim-to-brim method) is the standard way to measure fuel economy, because it uses the fuel you actually burned rather than a dashboard estimate.

  1. Fill the tank completely and let the pump stop on its own. Do not top off.
  2. Reset the trip meter to zero — or write down the odometer reading.
  3. Drive normally until the tank is low — most of a tank gives a more reliable figure.
  4. Fill the tank completely again, letting the pump stop the same way, and note exactly how much fuel went in.
  5. Divide the miles driven by the fuel used. That is your gas mileage for that tank. Enter the two numbers in the Single Fill-Up tab above — or switch the tool to odometer mode and enter both readings instead.

If you drove 300 miles and the refill took 10 US gallons, that is 300 ÷ 10 = 30 MPG — and the calculator shows the same result as 36.03 MPG (UK), 7.84 L/100 km and 12.75 km/L.

A Worked Example, Including Cost per Mile

Suppose your trip meter shows 300 miles, the pump shows 10.00 US gallons, and the price was $3.60 per gallon — a price you type in yourself, because this calculator never looks prices up.

  • Mileage: 300 ÷ 10 = 30.00 MPG (US)
  • Same result, other units: 36.03 MPG (UK) · 7.84 L/100 km · 12.75 km/L
  • Fill-up cost: 10 × $3.60 = $36.00
  • Cost per mile: $36.00 ÷ 300 = $0.12 per mile

Cost per mile is a secondary figure — what that tank cost you — useful for budgeting and for comparing two cars. What this page deliberately does not do is plan a journey. If you already know your MPG and want the fuel cost of a specific trip, use the fuel cost calculator; for the full cost of a trip including more than fuel, use the trip cost calculator.

The Formula and the Four Units

The formula itself is one line: miles per gallon = miles driven ÷ gallons used. The confusion starts with units, because "a gallon" and "mileage" mean different things in different countries.

  • MPG (US) uses the US gallon of 3.785411784 litres. This is the figure on American window stickers and EPA ratings.
  • MPG (UK) uses the imperial gallon of 4.54609 litres. The imperial gallon is about 20% bigger, so the same car always shows a higher MPG figure in the UK than in the US.
  • Litres per 100 km (L/100 km) is the standard across most of Europe, Canada and Australia. It measures consumption rather than distance, so lower is better — the opposite way round from MPG.
  • Kilometres per litre (km/L) is common in India, Japan and parts of Latin America, and behaves like MPG: higher is better.

The bridges between them are fixed constants: to turn US MPG into L/100 km, divide 235.215 by the MPG figure; for UK MPG, divide 282.481; km/L is simply 100 divided by the L/100 km figure. The MPG Converter tab above applies these constants in both directions, so you can translate any published figure — a rental car's rating in Europe, say — into the unit you think in.

US vs UK Gallons: The Trap That Inflates Your Mileage

The most common gas mileage mistake is mixing the two gallons. If you drive a car in Britain, fill up in imperial gallons, and then compare your result with an American figure, your car will look about 20% more economical than it is — because the imperial gallon holds more fuel. The reverse mistake makes a US car look thirsty next to a UK review of the same model. This is why the calculator always labels its results and shows both: if a number looks surprisingly good or bad, check which gallon produced it before you celebrate or worry. When you enter fuel above, choose the unit you actually bought and the tool handles the rest.

Averaging Several Fill-Ups: Never Average the MPG Figures

One fill-up is a snapshot, and pumps do not stop at exactly the same level every time, so a single tank can flatter or understate your car by a noticeable margin. The fix is to average over several tanks — but there is a right and a wrong way to do it.

The wrong way is to average the MPG numbers themselves. Imagine two fill-ups: 300 miles on 10 gallons (30 MPG) and 200 miles on 8 gallons (25 MPG). Averaging the two MPG figures gives (30 + 25) ÷ 2 = 27.5 MPG. That answer is incorrect, because the two tanks covered different distances, so they should not count equally.

The right way — the way the Fill-Up Log tab above works — is to total first, then divide: (300 + 200) miles ÷ (10 + 8) gallons = 500 ÷ 18 = 27.78 MPG. The bigger tank pulls the average towards itself, exactly as it should. The log also shows your best and worst tanks, and if you enter the price for some fill-ups it works out what those fill-ups cost per mile. Three or four tanks averaged this way give a figure you can trust; changes after that are real signals rather than pump noise.

Your Real MPG vs the Official EPA Rating

Official ratings are produced on a laboratory test cycle so that cars can be compared fairly with each other — not to predict what any individual driver will get. Real-world figures are usually lower, often by 10 to 20 percent, because real driving adds cold starts, short trips, hills, traffic, air conditioning, roof boxes and individual driving styles that a test cycle smooths away.

To compare, find your car's official combined rating — on its original window sticker, in the owner's manual, or on the official fuel economy label for the model year — and enter it in the optional rating field above; the tool shows how far above or below it your measured figure sits. A result modestly below the rating is normal. A result dramatically below it — a sudden drop of several MPG that persists over a few tanks — is worth investigating: under-inflated tyres, a clogged air filter, dragging brakes and worn spark plugs are common causes.

Looking for a Specific Car's Gas Mileage?

Searches like "Ford Explorer gas mileage" or the mileage of a particular model year are really asking for a stored rating from a vehicle database. This page does not keep one, deliberately: ratings vary by engine, drivetrain and year, and a copied database would go stale. What you can do instead is more useful: look up the model's official combined rating using the sources in the previous section, enter it in the comparison field, and then measure your own car with the fill-up method. The official number tells you what the car achieved on a test; the fill-up method tells you what it achieves in your hands, on your roads — and for fuel bills, the second number is the one that counts. Measuring two cars with this method over the same route is a fairer comparison than either brochure figure.

Habits That Genuinely Improve Gas Mileage

  • Check tyre pressures monthly. Under-inflated tyres are the most common silent cause of poor mileage, and the fix is free.
  • Slow down on the highway. Aerodynamic drag rises steeply with speed; cruising a little slower is the single biggest saving most drivers can make.
  • Clear out weight and roof racks. Extra load and roof boxes cost fuel on every mile, not just long trips.
  • Accelerate gently and look ahead. Smooth driving consistently beats aggressive driving by a wide margin.
  • Keep up with servicing. A fresh air filter, correct oil and healthy spark plugs keep the engine at its rated efficiency.
  • Combine short trips. A cold engine uses far more fuel in its first few miles, so several errands in one outing beat the same errands separately.

Frequently Asked Questions

How do you calculate your miles per gallon?

Divide the miles you drove since your last fill-up by the gallons you put in to refill the tank. For example, 300 miles divided by 10 gallons equals 30 miles per gallon. For an accurate figure, fill the tank completely each time and reset the trip meter at every fill-up, so the fuel you measure is exactly the fuel you used.

How do you calculate gas mileage?

Gas mileage is calculated with the fill-up method: fill the tank, reset the trip meter, drive, then fill the tank again and divide the miles driven by the fuel the refill took. The calculator above does the division and converts the result into US MPG, UK MPG, litres per 100 km and km per litre at the same time.

How do I convert MPG to L/100 km?

Divide 235.215 by the US MPG figure. For example, 30 MPG divided into 235.215 gives 7.84 litres per 100 km. For UK MPG use 282.481 instead of 235.215. Remember that the two systems run in opposite directions: a higher MPG is better, while a lower L/100 km figure is better.

Why is UK MPG higher than US MPG for the same car?

Because the imperial gallon used in the UK is larger than the US gallon: 4.54609 litres against 3.785411784 litres, a difference of about 20 percent. The car burns exactly the same fuel either way, but each UK gallon carries it about 20 percent further, so the UK figure always looks better. Always check which gallon a published MPG figure uses.

Why is my real MPG lower than the EPA rating?

The EPA rating comes from a standardised laboratory test designed to compare cars fairly, not to reproduce your driving. Cold starts, short journeys, hills, traffic, air conditioning, extra weight and driving style all reduce real-world mileage, and most drivers land 10 to 20 percent below the official figure. Only a sudden, lasting drop is a warning sign worth checking.

How accurate is one fill-up?

One fill-up is a reasonable estimate but not a precise one, because fuel pumps stop at slightly different levels each time, which changes the measured fuel by a small amount. Averaging several fill-ups removes most of that error. Use the fill-up log above and let it total your miles and fuel across three or four tanks before you judge the figure.

Should I average the MPG figures from several fill-ups?

No. Averaging MPG figures directly gives the wrong answer whenever the fill-ups cover different distances. Instead, add up all the miles and all the fuel, then divide once: 300 miles on 10 gallons plus 200 miles on 8 gallons is 500 miles on 18 gallons, which is 27.78 MPG — not the 27.50 MPG you get by averaging 30 and 25.

Does this calculator use live gas prices?

No. This calculator never fetches, embeds or stores fuel prices, and it works fully offline once the page has loaded. If you want cost figures, you type in the price you actually paid at the pump, and the tool uses only that number to work out your fill-up cost and cost per mile.


Scroll to Top