Your dashboard MPG is an estimate, and it is often optimistic. The only number you can trust is the one from your own fill-ups: miles driven divided by gallons used. This free Gas Mileage Calculator works out your real miles per gallon from a single fill-up, converts it to L/100 km and km/L, and shows what each mile costs in fuel, so you can track your car’s true efficiency and spot when it starts to slip.
Please enter valid values above 0: miles driven, gallons used, and gas price.
| Gallons Used | MPG | L/100 km |
|---|
MPG figures use the miles you entered above.
ADVERTISEMENT
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
A Gas Mileage Calculator measures your vehicle’s real fuel economy in miles per gallon (MPG) from odometer and pump data. You enter the miles driven since your last fill-up, the gallons it took to refill the tank, and the price of gas per gallon, and it returns your MPG, the same figure in L/100 km and km/L, your cost per mile, and the total fuel cost. Once you know your MPG, use the Gas Calculator to price any trip, or the metric calculators for the same measurement in kilometers per liter or liters per 100 kilometers.
Gas mileage is one division: the distance you covered divided by the fuel it took.
MPG = Miles driven ÷ Gallons used
L/100 km = 235.215 ÷ MPG
km/L = MPG × 0.425144
Cost per mile = Gas price per gallon ÷ MPG
Total fuel cost = Gallons used × Gas price per gallon
The conversion figures come from the exact definitions: 1 US gallon = 3.78541 litres and 1 mile = 1.60934 km, so 100 × 3.78541 ÷ 1.60934 = 235.215.
You drove 300 miles, and it took 10 gallons to refill the tank. Gas costs $3.50 per gallon.
Step 1: MPG. 300 ÷ 10 = 30.00 MPG.
Step 2: L/100 km. 235.215 ÷ 30 = 7.84 L/100 km.
Step 3: km/L. 30 × 0.425144 = 12.75 km/L.
Step 4: Cost per mile. $3.50 ÷ 30 = $0.12 per mile.
Step 5: Total fuel cost. 10 × $3.50 = $35.00 for the fill-up.
The dashboard readout is an estimate calculated by the car’s computer, and it is often optimistic. The fill-up method measures actual fuel burned over actual miles, so it is the more accurate number. A small gap is normal; a large one usually means the dashboard figure is flattering the car.
Measure over two or three tanks and average the results. One tank can be thrown off by a pump that clicks off early, a partial fill, or a trip meter that was not reset. Averaging smooths out those small errors.
US gallons (3.785 litres each). A UK gallon is larger (4.546 litres), so do not mix the two: 30.00 US MPG is 36.03 UK MPG, while the L/100 km figure is the same either way.
Yes. The method is the same for any gasoline or diesel vehicle, including hybrids: miles driven divided by gallons used. Fully electric vehicles are different: their efficiency is measured in miles per kilowatt-hour, which this tool does not cover.
It depends on the vehicle. A small hatchback at 35 MPG and a full-size truck at 18 MPG can both be normal for their class. Compare your result with the EPA combined rating for your model on fueleconomy.gov, and watch for changes over time rather than chasing a single number.
This calculator provides estimates based on the figures you enter. Real fuel economy varies with driving style, traffic, temperature, load, tyre pressure, and fuel quality. Measure over several fill-ups for the most reliable result. It does not cover electric vehicles, whose efficiency is measured in miles per kilowatt-hour.
ADVERTISEMENT
ADVERTISEMENT