Gas Mileage Calculator
Enter distance and fuel used to get MPG or L/100km, cost per mile, and compare two vehicles side by side.
Gas mileage = miles driven ÷ gallons used.
Use the Gas Mileage Calculator
Enter distance and fuel used, then click Calculate.
Quick answer
Gas mileage = miles driven ÷ gallons used. 300 miles on 10 gallons is 30 MPG, or 7.84 L/100 km. Fill the tank, reset the trip meter, drive as usual, then fill up again and divide the miles by the gallons it took. Add the gas price to see your cost per mile.
Examples
| Miles driven | Gallons used | MPG | L/100 km |
|---|---|---|---|
| 300 | 10 | 30.0 | 7.84 |
| 350 | 12.5 | 28.0 | 8.40 |
| 412 | 13.2 | 31.2 | 7.54 |
| 250 | 11 | 22.7 | 10.35 |
Enter miles driven and gallons used.
Summary
The Gas Mileage Calculator converts any distance-and-fuel pair into MPG or L/100km instantly. Enter a fuel price and annual mileage to see your cost per mile and projected yearly fuel spend. Use the comparison panel to put two vehicles side by side and find out exactly how much you could save by switching to a more efficient car.
How it works
- Choose US customary (miles + US gallons) or Metric (km + liters) units.
- Enter the distance you drove and the fuel you consumed.
- Your fuel efficiency — MPG or L/100km — appears immediately.
- Add a fuel price and annual mileage to see cost-per-mile and yearly spend.
- Open the Compare tab to enter a second vehicle and calculate annual savings.
Use cases
- Verify your car's real-world fuel economy after a road trip.
- Decide whether a more efficient new car will pay for itself.
- Estimate annual fuel costs before buying or leasing a vehicle.
- Convert between MPG and L/100km for international comparisons.
- Monitor fleet vehicles for unexpected fuel consumption increases.
- Calculate cost savings from carpooling or route optimization.
- Compare a gasoline car against a hybrid for the same commute.
- Plan a cross-country trip budget based on actual measured efficiency.