About the Gas Mileage Calculator
This gas mileage calculator divides the miles you drove by the gallons you used to get your car’s real-world MPG. It also estimates how much a road trip or your daily commute costs in gas, and converts fuel economy between US mpg, UK mpg, liters per 100 km and km per liter – handy when renting a car abroad or comparing European car specs.
Typical uses: checking whether the dashboard MPG readout is honest, budgeting gas for a road trip, comparing the monthly cost of driving to work with transit, or reading a European or Australian car spec in L/100 km. On the US setting the calculator uses miles, US gallons and dollars; readers in the UK get miles, litres and UK mpg, and most other countries get km and litres.
How to use
- Enter the miles driven and the gallons used to get your MPG.
- Tap Use this MPG or type a fuel economy, then enter the gas price and trip distance.
- Add miles per day and driving days to estimate monthly and yearly fuel costs.
- Use the converter to switch between mpg, L/100 km and km/L.
Worked examples
Your real MPG from a fill-up
- Input
- Miles
342· gallons11.4(US setting) - Result
- 30 mpg (US)
12.75 km/L · 7.84 L/100 km · 36.03 mpg (UK gallon)
Use the trip meter reading and the gallons from the second fill-up. If the dashboard said 32 mpg, it is reading about 7% high, which is common.
Gas for a 1,200-mile road trip plus a monthly commute
- Input
- Fuel economy
28mpg · price$3.45· trip1,200mi ·25mi/day ×22days - Result
- Trip: $147.86 (42.86 gal)
Month: 550 mi · $67.77 · year $813.21
Highway driving usually beats a car’s combined rating, while city stop-and-go does worse, so use the mpg you actually get on similar roads. Tolls and parking are not included.
A European spec sheet in L/100 km
- Input
- Converter ·
5.5L/100 km → mpg (US) - Result
- 42.766288 mpg (US)
European and EPA test cycles differ, so a WLTP 5.5 L/100 km car will not necessarily get 42.8 mpg on an EPA sticker. Use it for a rough comparison only.
MPG to L/100 km chart
| L/100 km | km/L | mpg (US) |
|---|---|---|
| 4 L/100 km | 25.0 km/L | 58.8 mpg |
| 5 L/100 km | 20.0 km/L | 47.0 mpg |
| 6 L/100 km | 16.7 km/L | 39.2 mpg |
| 7 L/100 km | 14.3 km/L | 33.6 mpg |
| 8 L/100 km | 12.5 km/L | 29.4 mpg |
| 10 L/100 km | 10.0 km/L | 23.5 mpg |
| 12 L/100 km | 8.3 km/L | 19.6 mpg |
How MPG is calculated
MPG = miles driven ÷ gallons used. L/100 km works the other way round – it shows fuel used per distance – so the conversion is a division: L/100 km = 235.21 ÷ mpg (US). A UK (imperial) gallon is about 20% larger than a US gallon, so UK mpg figures look higher for the same car.
FAQ
How do I calculate my gas mileage?
Fill the tank, reset the trip meter, drive normally, then fill up again. Divide the miles on the trip meter by the gallons you added. 300 miles ÷ 10 gallons = 30 mpg.
How do I convert mpg to L/100 km?
Divide 235.21 by the US mpg figure. 30 mpg ≈ 7.84 L/100 km.
How much does a 300-mile trip cost?
At 30 mpg you need 10 gallons; at $3.20 a gallon that is $32.
Why are UK mpg numbers higher?
The imperial gallon (4.546 L) is bigger than the US gallon (3.785 L), so the same car goes more miles per UK gallon.
Does this work for electric cars?
Not directly: EVs are rated in kWh per 100 miles or miles per kWh rather than gallons. You can still enter miles and kWh in the two fields and read the result as miles per kWh, but the gas-price chips and unit labels won’t apply. For charging cost, multiply kWh by your electricity rate or use the electricity cost calculator.