Gas Mileage Calculator
Last Updated:
Work out your real MPG, L/100 km, km per liter and cost per mile from your last fill-up. Average several tanks and convert between US, UK and metric.
Quick answer: A gas mileage calculator divides the miles you drove by the fuel you added at the next fill-up. 320 miles on 11.2 US gallons is 28.57 MPG, or 8.23 L/100 km. Fill to the same level each time, and judge the car on three to five fill-ups added together, not one tank.
Gas mileage calculator: MPG from one fill-up
Your fuel economy
0 MPG (US)
Average MPG over several fill-ups
Combined fuel economy
0 MPG (US)
Convert MPG, L/100 km and km per liter
The same fuel economy in L/100 km
0
📐 Formula
MPG = miles driven ÷ gallons used. L/100 km = liters used ÷ kilometers driven × 100. Cost per mile = (gallons × price per gallon) ÷ miles
How to Use the Gas Mileage Calculator
Choose your units and currency
Pick miles and US gallons, miles and imperial gallons, miles and liters, or kilometers and liters to match your fuel receipt. The tool converts any figures already typed when you switch.
Enter the distance driven
Type the miles or kilometers since your last fill-up from the trip meter. Or type the odometer reading at the previous fill-up and the reading now, and the tool works out the distance for you.
Enter the fuel added
Type the gallons or liters the pump added at this fill-up. Fill the tank to the same level both times, because the fuel you add is the fuel the distance used.
Add the fuel price if you want costs
Type the price per gallon or per liter to see the cost per mile or kilometer, the cost per 100, and what the fill-up cost. Leave it blank for fuel economy alone.
Read the result and average more tanks
The tool shows MPG (US), MPG (imperial), L/100 km and km per liter together. For a truer figure, put three to five fill-ups into the second box, and use the third box to convert any rating between the four units.
Gas mileage formulas: MPG, km per liter and L/100 km
The first calculator above works as an MPG calculator, a miles per gallon calculator for any liquid fuel, and a fuel consumption calculator in L/100 km. Gas mileage is how far a vehicle goes on a set amount of fuel. The US quotes miles per gallon (MPG), where a bigger number is better. Canada labels cars in liters per 100 kilometers (L/100 km), where a smaller number is better, and Australia works in the same unit (the Australian Department of Infrastructure says its fuel consumption label shows liters per 100 km). Canada's fuel consumption tables also give miles per imperial gallon and miles per US gallon. Some drivers prefer kilometers per liter (km/L), which reads like MPG: bigger is better.
Three constants connect them. A US gallon is 3.785412 liters, an imperial gallon is 4.54609 liters (both from the NIST conversion tables) and a mile is 1.609344 kilometers. From those, L/100 km = 235.215 ÷ US MPG and L/100 km = 282.481 ÷ imperial MPG. To go from US to imperial MPG, multiply by 1.2009. The third box above does these conversions for you, and the table below shows common values. For other units such as length, volume or weight, use the Unit Converter.
| MPG (US) | MPG (imperial) | L/100 km | km per liter |
|---|---|---|---|
| 15 | 18.0 | 15.68 | 6.4 |
| 20 | 24.0 | 11.76 | 8.5 |
| 25 | 30.0 | 9.41 | 10.6 |
| 30 | 36.0 | 7.84 | 12.8 |
| 35 | 42.0 | 6.72 | 14.9 |
| 40 | 48.0 | 5.88 | 17.0 |
| 50 | 60.0 | 4.70 | 21.3 |
| 60 | 72.1 | 3.92 | 25.5 |
How to calculate gas mileage by hand: worked example
A driver fills the tank, drives 320 miles and fills again. The pump adds 11.2 US gallons. This is our arithmetic.
MPG (US) = 320 ÷ 11.2 = 28.57. MPG (imperial) = 28.57 × 1.2009 = 34.31. L/100 km = 235.215 ÷ 28.57 = 8.23. km per liter = 28.57 × 0.425144 = 12.15.
Cost at $3.50 a gallon: 11.2 × $3.50 = $39.20 for the fill-up, which is $39.20 ÷ 320 = $0.1225 a mile, or $12.25 per 100 miles.
The method is the same for diesel and E85, since the tool only needs the distance and the fuel added. Only the price changes. If you want the cost of a planned journey instead of a measured fill-up, use the Fuel Cost Calculator. For a whole trip with hotels and food, use the Road Trip Cost Calculator.
How to calculate average MPG over several fill-ups
One tank is a noisy sample. A long highway run, a cold week or a half-empty fill can move a single result by several MPG. The second box above takes three to five fill-ups, adds the distances, adds the fuel and divides one by the other. That is the true average, because it counts every mile and every gallon once.
The common shortcut is to average the MPG figures from each tank. That treats a small top-up the same as a full tank. Take 320 miles on 11.2 gallons (28.57 MPG), 410 miles on 12.6 gallons (32.54 MPG) and 275 miles on 9.4 gallons (29.26 MPG). The three figures average 30.12 MPG, but 1,005 miles on 33.2 gallons is 30.27 MPG. The gap is small here and grows when the tanks differ in size. This is our arithmetic.
The method only works if every fill-up is topped up to the same point, such as the first click of the pump. If you skip a fill, add its distance and fuel to the next line as one entry. The box is a calculator and not a saved log: nothing is stored when you leave. Keep your readings in a note or a spreadsheet, or use the My MPG tool on fueleconomy.gov, which lets you track your fuel economy and compare it with the EPA rating.
If you read the odometer instead of the trip meter, subtract the previous reading from the current one. The two optional odometer boxes in the first calculator do that and fill in the distance.
Gas mileage comparison: why 10 to 15 MPG matters more than 30 to 35
MPG hides how much fuel you really save. The EPA's label page makes the point: going from 10 MPG to 15 MPG saves about 33 gallons over 1,000 miles. The same 5 MPG jump from 30 to 35 saves about 4.8 gallons over 1,000 miles (our arithmetic). L/100 km shows it directly: 10 MPG is 23.52 L/100 km and 15 MPG is 15.68, a saving of 7.84 L/100 km, but 30 MPG is 7.84 and 35 MPG is 6.72, a saving of only 1.12.
| MPG change | Gallons saved a year | Saved at $3.50 a gallon |
|---|---|---|
| 10 to 15 | 500 | $1,750.00 |
| 15 to 20 | 250 | $875.00 |
| 20 to 25 | 150 | $525.00 |
| 25 to 30 | 100 | $350.00 |
| 30 to 35 | 71.4 | $250.00 |
The 15,000 miles a year is the distance the EPA's label uses for its five-year fuel cost estimate. At the 28.57 MPG from the worked example, that is 525 gallons, or $1,837.50 a year at $3.50. A car that gets 20 MPG uses 750 gallons and costs $2,625, which is $787.50 more. The biggest savings come from the thirstiest vehicles, so if you drive two cars, check the thirstier one first.
Gas mileage in the US, Canada, Australia and the UK
| Country | What the official label shows | Basis |
|---|---|---|
| US (EPA) | City, highway and combined MPG (US gallons) | Combined weights city 55% and highway 45%. The label's five-year fuel cost uses 15,000 miles a year |
| Canada (NRCan) | L/100 km; the tables also give MPG (imperial) and MPG (US) | Combined weights city 55% and highway 45%. Annual fuel cost uses 20,000 km |
| Australia (Green Vehicle Guide) | Fuel consumption in L/100 km and CO2 in g/km on the label that goes on the windscreen of every new light vehicle | Laboratory test. Australian Design Rule 81/02 (NEDC) has applied since 1 April 2009. ADR 81/03 (WLTP) applies to new vehicle models from 1 July 2026 and to all applicable vehicles by 1 July 2028 |
| UK | Miles per imperial gallon is the everyday figure, and fuel is sold by the litre | Common practice. We cite no single official UK label figure |
That is why the first calculator offers four unit sets. A UK driver who reads liters off the pump uses miles and liters, a Canadian or Australian driver uses kilometers and liters, and a US driver uses miles and US gallons. All four give you every unit at once, so you can compare your result with a rating in any of them.
EPA ratings vs real-world gas mileage
Ratings are made in a laboratory. Since 2008 models, the EPA has used five tests: city, highway, high speed, air conditioning and cold temperature. The last three adjust the city and highway results for higher speeds, air conditioning use and colder weather.
| Test | Average speed | What it represents |
|---|---|---|
| City | 21.2 mph | Stop-and-go traffic, 23 stops, a cold engine start |
| Highway | 48.3 mph, top 60 mph | Free-flowing rural and Interstate driving with a warm engine |
| High speed | 48.4 mph, top 80 mph | Faster driving with harder acceleration and braking |
| Air conditioning | 21.2 mph | Air conditioning on in 95°F heat |
| Cold temperature | 21.2 mph | City test at 20°F with the heater on |
The EPA says plainly that its ratings are a useful way to compare vehicles but may not accurately predict the average MPG you get. It lists five things that move your number: how and where you drive, vehicle condition and maintenance, fuel variations, vehicle variations and engine break-in. Many drivers see a result 10 to 20 percent under the label figure. That is a common rule of thumb, with no official source behind it, so use your own fill-ups instead.
Your own number is also the better one for budgeting. A fill-up average over three to five tanks, taken in the conditions you really drive in, beats any laboratory figure for working out what a year of driving will cost.
What changes your gas mileage, with the numbers
These figures come from the EPA's fueleconomy.gov tips pages, read on 2026-11-19.
- Tire pressure. Under-inflated tires can lower gas mileage by about 0.2 percent for every 1 psi drop in the average pressure of all tires. Keeping tires at the right pressure improves mileage by 0.6 percent on average, up to 3 percent in some cases. On the 525 gallons a year above, a 5 to 8 psi drop at 0.2 percent a psi costs 1.0 to 1.6 percent, or about $18 to $29 a year (our arithmetic). The 3 percent is the top of the improvement range, not the cost of a 5 to 8 psi drop.
- Speed. Gas mileage usually decreases rapidly above 50 mph. Each 5 mph you drive over 50 mph is like paying an additional $0.28 per gallon, on the EPA's assumption of $4.00 a gallon.
- Driving style. Speeding, rapid acceleration and braking can lower mileage by roughly 15 to 30 percent at highway speeds and 10 to 40 percent in stop-and-go traffic.
- Roof cargo. A large, blunt roof box can cut fuel economy by around 2 to 8 percent in city driving, 6 to 17 percent on the highway and 10 to 25 percent at Interstate speeds. Rear-mounted boxes cost much less, 1 to 5 percent on the highway.
- Weight. An extra 100 pounds can reduce MPG by about 1 percent, and more in smaller vehicles.
- Idling. Idling uses a quarter to a half gallon of fuel an hour, which is about $0.88 to $1.75 an hour at $3.50 a gallon (our arithmetic).
Oversized tires and your odometer reading
If you fit larger tires, the odometer and speedometer are still set for the old size. Each turn of a taller tire covers more road, so the odometer reads short. The true distance is the odometer distance times the new tire diameter divided by the old one. This is our arithmetic, and a GPS trip distance is an easy way to check it.
Take the 320-mile tank from earlier on tires 5 percent taller. The odometer says 320 miles, but the car really covered 320 × 1.05 = 336 miles. The true MPG is 336 ÷ 11.2 = 30.0, not the 28.57 the odometer gives. An MPG worked out from the odometer is about 4.8 percent too low, which is why a gas mileage calculator for bigger tires needs a corrected distance. Use a GPS distance, or multiply the odometer distance by the diameter ratio before you enter it.
The 2026 IRS mileage rate for taxes, work and reimbursement
People searching for a gas mileage calculator for work, for taxes or for business reimbursement usually want a mileage rate, not a fuel figure. The IRS publishes standard mileage rates for people who use their car for business, charity, medical or moving purposes. For 2026 the business rate is 72.5 cents a mile from January 1 to June 30 and 76 cents a mile from July 1 to December 31. The charity rate is 14 cents a mile, and the medical and military moving rate is 20.5 cents, then 23.5 cents after July 1.
This calculator gives your own fuel cost per mile instead. At the worked example's $0.1225 a mile, fuel is a small part of 76 cents. Do not substitute one for the other. If your employer reimburses mileage or you plan to claim it on a tax return, use the rate and the records the IRS or your employer asks for. The IRS page lists the rates for every year back to 2012. This section covers the US only. It gives no rates for Canada, the UK or Australia.
Gas mileage for hybrids, plug-ins and electric cars
A hybrid that runs only on gasoline works the same way as any car: distance divided by the gallons you add. A plug-in hybrid or an electric car needs more, because electricity is not bought by the gallon. Their labels show MPGe, the number of miles the vehicle can go on a quantity of fuel with the same energy content as a gallon of gasoline. Natural Resources Canada does the same in metric: one liter of gasoline holds the energy of 8.9 kWh of electricity, so a car using 20 kWh per 100 km is 20 ÷ 8.9 = 2.25 liters of gasoline equivalent per 100 km (our arithmetic). Use the rating on the label for those vehicles. The calculator above is for liquid fuel.
Find the gas mileage for your make and model, then compare
If you want a rating before you buy or to check your result, start with the official guides. In the US, fueleconomy.gov has Find and Compare Cars, where you pick a make, model and year, and a page of MPG estimates from drivers like you. In Canada, use the Natural Resources Canada Fuel Consumption Guide tables. In Australia, use the Green Vehicle Guide, whose figures come from the same data as the labels on new cars. Put your own fill-ups into the first two calculators above, and the third converts the official rating into your unit so the two numbers line up.
Frequently Asked Questions
Sources & Methodology
Official pages read on 2026-11-19, and the Australian Department of Infrastructure page on 2026-11-20. The formulas and worked examples are our arithmetic from these sources. Ranges for a good MPG and the 10 to 20 percent real-world gap are common rules of thumb, labeled in the text, with no official source.
- fueleconomy.gov: Your Mileage Will Vary (EPA and U.S. Department of Energy)
- fueleconomy.gov: Keeping Your Car in Shape (tire pressure)
- fueleconomy.gov: Driving More Efficiently (speed, driving style, cargo, weight, idling)
- fueleconomy.gov: Learn more about the fuel economy label for gasoline vehicles (combined MPG weighting, MPGe, 15,000 miles a year)
- fueleconomy.gov: Detailed test information (the five test cycles)
- fueleconomy.gov: Find and Compare Cars and My MPG
- Natural Resources Canada: Fuel Consumption Guide, understanding the tables (L/100 km, 55/45 weighting, 20,000 km, 8.9 kWh per liter)
- Australian Government, Department of Infrastructure, Transport, Regional Development, Communications, Sport and the Arts: Fuel consumption label (the label shows fuel consumption in liters per 100 km)
- Australian Government Green Vehicle Guide: Fuel consumption label (ADR 81/02 and 81/03, NEDC and WLTP)
- NIST Guide to the SI, Appendix B.8: conversion factors for gallons and liters
- IRS: Standard mileage rates (2026 rates)