Gas Mileage Calculator – Calculate MPG and Fuel Economy

Calculate fuel economy in MPG, km/L and L/100 km from a fill-up.

Gas Mileage Calculator What is this? ↓
About the Gas Mileage Calculator

What is the Gas Mileage Calculator?

A gas mileage calculator measures your vehicle's fuel economy from a distance driven and the fuel used.

Why use this calculator?

Tracking efficiency over several fill-ups reveals changes in driving habits, vehicle health and trip costs.

How to use it

  1. Enter the distance since your last fill-up.
  2. Enter the fuel added at the pump.
  3. Read your economy in mpg, km/L and L/100 km.

Formula

MPG = miles ÷ gallons; L/100 km = liters ÷ km × 100.
For the most accurate figure, fill the tank to full each time and note the odometer.
Frequently Asked Questions
How do I calculate mileage accurately?
Fill the tank completely, drive, then fill it completely again. The fuel added is what you used over the recorded distance.
Is higher mpg better?
Yes for mpg and km/L. For L/100 km, a lower number means better efficiency.
Can I print or share my result?
Yes. Use your browser's print function or screenshot the result. The page is designed to print cleanly.
What if my inputs are outside the typical range?
The calculators accept a wide range of values, but extreme inputs may produce unrealistic results. Double-check the units you are using.
How often is the calculator updated?
We review formulas and rates periodically to keep them aligned with current standards and published data.
Is this calculator free to use?
Yes. Every calculator on this site is completely free, with no hidden fees, no subscriptions and no limits on how many times you can use it.
How accurate are the results?
We use standard, widely accepted formulas and calculate in your browser using double-precision arithmetic. Results are rounded for readability, so treat them as reliable estimates rather than a guarantee. Real-world factors can vary the true figure.
Can I add this calculator to my own website?
Yes. Open this calculator page and use the "Add to your website" box in the sidebar to copy a ready-made iframe snippet, then paste it into any HTML page.
Does it work on a phone or tablet?
Yes. The layout is fully responsive, so it works on desktops, laptops, tablets and mobile phones, and every input adapts to touch screens.
Is the information I type kept private?
Yes. All calculations run locally in your browser. Nothing you enter is uploaded, stored or shared with anyone.

Related reading: Guides & How-tos

All articles →