Gas Mileage Calculator
Calculate fuel economy in MPG, km/L, and L/100 km.
Calculate fuel economy in miles per gallon, kilometers per liter, and liters per 100 km from a trip's distance traveled and fuel used.
How Gas Mileage Calculator Works
The calculator first normalizes your inputs into consistent units — converting distance to miles if you entered kilometers, and fuel used to gallons if you entered liters — so the core calculation always works from the same base units.
Miles per gallon (MPG) is simply miles traveled divided by gallons used. From that same normalized data, the calculator also derives kilometers per liter and liters per 100 km, so you get all three common fuel economy figures from a single set of inputs regardless of which units you originally used.
See It In Action
Who Uses Gas Mileage Calculator and Why
- Checking your actual fuel economy after a fill-up against the manufacturer's advertised MPG rating to see how real-world driving compares.
- Tracking mileage over several fill-ups to spot a gradual drop in fuel economy that might signal a maintenance issue.
- Converting a fuel economy figure from a foreign vehicle listing (often in km/L or L/100 km) into the MPG figure you're used to comparing against.
- Verifying whether a driving style change — like reduced highway speed or lighter acceleration — is actually improving mileage.
Mistakes to Avoid
- Calculating from a partial fill-up instead of a full tank to full tank measurement, which makes the fuel-used figure unreliable since it's an estimate rather than an exact amount.
- Mixing distance units and fuel units inconsistently between two comparisons — for example measuring one tank in miles and gallons and another in kilometers and liters — which makes the resulting figures impossible to compare directly without conversion.
- Including a fill-up that happened right after a long idle stretch or a period of unusually heavy short-trip city driving and treating the resulting figure as representative of typical mileage.
Tips for Best Results
- For the most consistent readings, fill the tank to the same point (the automatic shutoff click) each time, and reset your trip odometer at the same moment as the fill-up.
- If you're comparing your figure against a spec sheet rating, remember spec sheet numbers are usually a blend of controlled highway and city cycles — a real-world figure that's somewhat lower is normal, not necessarily a problem.
Fixing Common Problems
My MPG result looks abnormally low. — Double check the fuel-used figure came from a full tank to full tank measurement, not a partial fill — a partial fill-up understates or overstates fuel used and skews the result in either direction.
The L/100 km and MPG figures don't seem to agree with each other for the same trip. — They shouldn't disagree if calculated from the same underlying trip — recheck that the same distance and fuel-used values were used, since L/100 km is an inverted scale and easy to misread against MPG at a glance.
Terms Explained
Fuel economy: How far a vehicle travels per unit of fuel consumed, expressed here in MPG, km/L, or L/100 km depending on your preferred format.
Fill-to-fill method: Measuring fuel used by filling the tank completely at both the start and end of the distance being measured, rather than estimating from a gauge.