A mileage calculator works out how far your car or motorcycle goes on a gallon or a liter of fuel. Divide the distance you drove by the fuel you used: in US units that gives miles per gallon (mpg), and in metric it gives kilometers per liter (km/L). This calculator shows both, plus liters per 100 km and miles per UK gallon, and works out your fuel cost per mile or per kilometer if you add the price of gas.
Gas mileage formula
MPG = miles driven ÷ gallons used
In metric, km/L = kilometers driven ÷ liters used. Fuel cost per mile is the gas price per gallon divided by your mpg, and liters per 100 km is 100 divided by km/L.
How to use the mileage calculator
- Choose US or metric units.
- Enter the distance. Use your trip meter or the difference between two odometer readings.
- Enter the fuel used, in gallons or liters, from the pump when you refill.
- Add the gas price and monthly distance if you want the running cost per mile and per month.
How to measure your gas mileage
The full-tank method gives a real-world figure: fill the tank completely and reset the trip meter or note the odometer. Drive as you normally do, then fill the tank completely again, at the same pump if you can. The fuel added at the second fill is the fuel you used, and the trip meter shows the distance. Repeat over a few tanks and take the average for a steadier figure.
Worked example
A car travels 300 miles and takes 10 gallons to refill: 300 ÷ 10 = 30 mpg. That is about 12.75 km/L, or 7.84 liters per 100 km. With gas at $3.50 a gallon, each mile costs $3.50 ÷ 30 = about $0.12. Driving 1,000 miles a month uses about 33.3 gallons, a fuel bill of about $116.67.
In metric, a car that travels 450 km on 30 liters gets 450 ÷ 30 = 15 km/L, or 6.67 liters per 100 km.
MPG, km/L and L/100 km
Countries quote fuel economy in different units. The US uses miles per US gallon, where a higher number is better. The UK also uses miles per gallon, but its gallon is bigger: 4.54609 liters, against 3.785411784 liters for a US gallon, so the same car shows a higher mpg figure in UK gallons. India and many other countries use km/L, and Europe, Canada and Australia use liters per 100 km, where a lower number is better.
Why your mileage differs from the window sticker
New cars in the US carry a fuel economy label with city, highway and combined mpg. Your real mileage depends on how and where you drive: short trips, cold weather, heavy loads, roof racks, hard acceleration and high highway speeds all lower it. Compare your measured figure with the combined rating to see how your driving stacks up.
Motorcycle and scooter mileage
The calculation is the same for motorcycles and scooters: distance ÷ fuel. Because the tank is small, a small error in how full you fill it makes a bigger difference, so measure over two or three tanks. For electric vehicles, efficiency is measured in energy rather than fuel, so use the EV vs gas savings calculator instead.
Reading your mileage calculator result
The big number is your mileage in the units you chose: mpg in US mode, or km/L in metric. Below it, the calculator shows the sum it did and the same figure in the other units. Say you drove 412 miles and the pump put in 13.2 gallons:
- Mileage: 412 ÷ 13.2 = 31.2 mpg
- The same in metric: 13.27 km/L, or 7.54 liters per 100 km
- In UK gallons: 37.5 mpg
- With gas at $3.80 a gallon: about $0.12 a mile, and $50.16 for the 412 miles
- At 1,000 miles a month: about 32.0 gallons, or $121.75 a month
The cost rows only appear when you enter a fuel price, and the monthly rows only when you enter a monthly distance. Both boxes are optional.
Why a higher mpg saves less than you think
Miles per gallon is easy to read, but it can mislead when you compare cars. The fuel economy label site run by the US government gives an example over 1,000 miles: going from 10 to 15 mpg saves about 33 gallons, while going from 30 to 35 mpg saves only about 5 gallons.[2] It calls this the “MPG illusion” and says fuel consumption, such as gallons per 100 miles, gives a fairer comparison.[2]
| Mileage | Gallons for 1,000 miles |
|---|---|
| 10 mpg | 100.0 |
| 15 mpg | 66.7 |
| 30 mpg | 33.3 |
| 35 mpg | 28.6 |
That is why the calculator also shows liters per 100 km. It works like gallons per 100 miles: it tells you how much fuel a set distance takes, so the gap between two cars shows the fuel you would really save.
How the sticker’s combined figure is worked out
The label on a new US car shows city, highway and combined mpg, and the combined figure is the one meant for quick comparisons.[2] It is a weighted average: the city value counts for 55% and the highway value for 45%.[2] If most of your driving is on the highway, your measured figure may come out closer to the highway rating. If you mostly drive in town, expect it nearer the city rating.
Driving habits that lower your mileage
- Aggressive driving. Speeding, rapid acceleration and hard braking can lower gas mileage by roughly 15% to 30% at highway speeds and 10% to 40% in stop-and-go traffic.[3]
- High speed. Gas mileage usually decreases rapidly above 50 mph.[3]
- Roof cargo. A large roof-top cargo box can cut fuel economy by about 6% to 17% on the highway.[3]
- Extra weight. An extra 100 pounds in the vehicle could reduce mpg by about 1%.[3]
- Idling. Idling can use a quarter to a half gallon of fuel per hour, depending on the engine and air conditioning.[3]
Measure your mileage before and after a change, such as taking off a roof box, to see what it does for your car. For trips, the trip cost calculator turns your figure into a fuel budget.
What next
Use this often? Add Mileage Calc to your Home screen.
Frequently asked questions
How do I calculate gas mileage?
Divide the miles you drove by the gallons you used. 300 miles on 10 gallons is 30 mpg. In metric, divide kilometers by liters to get km/L.
How is fuel cost per mile calculated?
Divide the gas price per gallon by your mpg. At $3.50 a gallon and 30 mpg, each mile costs about $0.12.
How do I convert km/L to L/100 km?
Divide 100 by the km/L figure. For example, 15 km/L is 100 ÷ 15 = 6.67 L/100 km.
Can I use it for a motorcycle?
Yes. Motorcycle mileage is worked out the same way: distance divided by fuel. Measure over a few tanks for a reliable figure.
What is the MPG illusion?
Mpg gains are not equal. Over 1,000 miles, going from 10 to 15 mpg saves about 33 gallons, but going from 30 to 35 mpg saves only about 5. Comparing fuel used per 100 miles or per 100 km shows the real saving.
How is combined mpg on the window sticker worked out?
It’s a weighted average of the city and highway ratings, with city driving counted at 55% and highway driving at 45%.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.