Gas Mileage Calculator
Find your real-world fuel economy.
Updated November 2026 · How we build calculators
Result
Your result will appear here
Enter your numbers, then press Calculate.
How the Gas Mileage Calculator works
Divide miles driven by gallons used since your last fill-up.
Formula used
MPG = miles ÷ gallons
Step-by-step example
Using the default values in the calculator above:
- Miles driven: 342 miles
- Gallons used: 11.8 gallons
- Price per gallon (optional): $3.45
- Odometer at last fill-up (optional): 0
- Odometer now (optional): 0
- Was the tank filled to the same level both times?: Yes (full to full)
The calculator then applies the formula above and returns:
- Fuel economy: 29.0 mpg
- Liters per 100 km: 8.12
- Kilometers per liter: 12.32
- Gallons per 100 miles: 3.45
- Fuel cost per mile: $0.119
Notes on the inputs
- Odometer at last fill-up (optional)
- Optional. Enter both odometer readings to calculate miles automatically.
What-if scenarios
Each table changes one input and keeps everything else at the calculator's default values.
| Miles driven | Fuel economy |
|---|---|
| 170 miles | 14.4 mpg |
| 260 miles | 22.0 mpg |
| 342 miles (default) | 29.0 mpg |
| 510 miles | 43.2 mpg |
| 680 miles | 57.6 mpg |
| Gallons used | Fuel economy |
|---|---|
| 5.9 gallons | 58.0 mpg |
| 8.9 gallons | 38.4 mpg |
| 11.8 gallons (default) | 29.0 mpg |
| 18 gallons | 19.0 mpg |
| 24 gallons | 14.3 mpg |
Fuel economy for different miles driven and gallons used
Every other input is left at its default value.
| Miles driven | 5.9 gallons | 11.8 gallons | 18 gallons | 24 gallons |
|---|---|---|---|---|
| 170 miles | 28.8 mpg | 14.4 mpg | 9.4 mpg | 7.1 mpg |
| 260 miles | 44.1 mpg | 22.0 mpg | 14.4 mpg | 10.8 mpg |
| 342 miles | 58.0 mpg | 29.0 mpg | 19.0 mpg | 14.3 mpg |
| 510 miles | 86.4 mpg | 43.2 mpg | 28.3 mpg | 21.3 mpg |
| 680 miles | 115.3 mpg | 57.6 mpg | 37.8 mpg | 28.3 mpg |
Tips and background
Track several fill-ups and average them.
How to measure real MPG
Fill the tank, reset the trip meter, drive normally, then refill and note the gallons added. 342 miles on 11.8 gallons is 29 mpg. Always fill to the same level (full to full) for accuracy and average several tanks.
Why real mpg differs from the sticker
Driving style, weather, short trips, tire pressure and cargo all lower real-world economy. The calculator also gives liters per 100 km and cost per mile. Estimate trip costs with the fuel cost calculator and convert units with the fuel economy converter.
How sensitive is mpg to the gallons you record?
| Miles | Gallons | Result |
|---|---|---|
| 300 | 10 | 30.0 mpg |
| 342 | 11.8 | 29.0 mpg |
| 342 | 12.5 | 27.4 mpg |
| 410 | 11.8 | 34.7 mpg |
The second and third rows differ by only 0.7 gallon but by 1.6 mpg, so filling to a different level can look like a real change.
How can you get a number you trust?
Fill the same way each time, ideally until the pump first clicks off. Record the miles and gallons for several fills, then add all the miles and divide by all the gallons. Do not average the separate mpg figures, since long and short intervals would count equally. A sudden lasting drop can have many causes, including weather, route or a mechanical problem, so check tire pressure and ask a mechanic if it continues.
Common mistakes to avoid with the Gas Mileage Calculator
- Not filling the tank the same way each time.
- Basing mpg on a single short trip.
- Using the car's display without checking it.
Frequently asked questions
How do I measure mpg accurately?
Fill the tank, reset the trip meter, drive, then refill and record gallons.
Why is my mpg below the sticker?
Driving style, weather and short trips lower real-world mpg.
What is a good mpg?
Over 30 mpg combined for gas cars.
How do I calculate miles per gallon?
Miles driven divided by gallons used.
Why is my mpg lower in winter?
Cold air, idling and winter fuel blends reduce economy.