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

Required Trip meter since the last fill-up.
Required From the pump receipt.
$
Optional. Adds the cost figures.
Optional. Fill in both odometer boxes and Distance driven is set for you.
Optional. In the same unit as the distance.

Your fuel economy

0 MPG (US)

MPG (US)0
MPG (imperial)0
L/100 km0
km per liter0
Cost per mile$0
Cost per 100 miles$0
This fill-up cost$0

Average MPG over several fill-ups

Required Two numbers on each line, separated by a comma or a space. Up to 60 fill-ups. Nothing is saved when you leave the page.

Combined fuel economy

0 MPG (US)

Total distance0
Total fuel0
Best tank0
Worst tank0

Convert MPG, L/100 km and km per liter

Required

The same fuel economy in L/100 km

0

MPG (US)0
MPG (imperial)0
L/100 km0
km per liter0

📐 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

1

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.

2

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.

3

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.

4

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.

5

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 to L/100 km and km per liter (our arithmetic from the NIST gallon definitions and 1.609344 km per mile)
MPG (US)MPG (imperial)L/100 kmkm per liter
1518.015.686.4
2024.011.768.5
2530.09.4110.6
3036.07.8412.8
3542.06.7214.9
4048.05.8817.0
5060.04.7021.3
6072.13.9225.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.

Fuel saved by an MPG gain over 15,000 miles a year, at $3.50 a gallon (our arithmetic)
MPG changeGallons saved a yearSaved at $3.50 a gallon
10 to 15500$1,750.00
15 to 20250$875.00
20 to 25150$525.00
25 to 30100$350.00
30 to 3571.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

What each country's official fuel label shows
CountryWhat the official label showsBasis
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 vehicleLaboratory 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
UKMiles per imperial gallon is the everyday figure, and fuel is sold by the litreCommon 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.

The five EPA test cycles (fueleconomy.gov, detailed test information)
TestAverage speedWhat it represents
City21.2 mphStop-and-go traffic, 23 stops, a cold engine start
Highway48.3 mph, top 60 mphFree-flowing rural and Interstate driving with a warm engine
High speed48.4 mph, top 80 mphFaster driving with harder acceleration and braking
Air conditioning21.2 mphAir conditioning on in 95°F heat
Cold temperature21.2 mphCity 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.

⚠️ Disclaimer The figures here come from the distance and fuel you type in, so they are only as accurate as those numbers. Real-world fuel economy shifts with driving style, weather, terrain and load, and a laboratory rating is a way to compare vehicles, not a promise of your result. Tax and reimbursement rules are set by the IRS and your employer, so check them before you claim anything.

Frequently Asked Questions

Fill the tank, note the odometer or reset the trip meter, and drive as you normally do. At the next fill-up, fill to the same level and divide the miles driven by the gallons the pump added. 320 miles on 11.2 gallons is 28.57 MPG.
Change the units to kilometers and liters, or miles and liters, and type what your receipt shows. By hand, divide the kilometers by 1.609344 to get miles, divide the liters by 3.785412 for US gallons (4.54609 for imperial gallons), then divide miles by gallons.
Divide 235.215 by the US MPG figure, or 282.481 by the imperial MPG figure. 30 US MPG is 235.215 divided by 30, which is 7.84 L/100 km. The same formula converts back: divide 235.215 by the L/100 km figure to get US MPG.
An imperial gallon is 4.54609 liters and a US gallon is 3.785412 liters, so the same car gets a bigger imperial MPG number. Multiply US MPG by 1.2009 to get imperial MPG. 30 US MPG is about 36 imperial MPG.
As a rough guide (our approximation, not a rating): compact sedans 30 to 40 MPG, SUVs 22 to 28, pickups 18 to 25 and hybrids 40 to 59. For a specific model, look up the official rating on fueleconomy.gov in the US or in the Natural Resources Canada Fuel Consumption Guide.
Ratings come from laboratory tests that cannot copy your hills, speed, weather and driving style, and the EPA says its estimates may not accurately predict the MPG you get. Many drivers see a result 10 to 20 percent under the label, but that is a common rule of thumb with no official figure behind it.
To compare two tanks fairly, keep the same pump, fill to the same click, and note the mix of city and highway driving, the weather and the load. A cold week, a roof box or a long highway run can each move one tank by several MPG, which is why three to five tanks are better than one.
The EPA city test averages 21.2 mph with 23 stops and a cold start. Its highway test averages 48.3 mph with no stops and a warm engine, so highway driving usually returns more miles per gallon.
Three to five. Add the distances, add the fuel, then divide the total distance by the total fuel. Do not average the individual MPG figures, because a small tank then counts as much as a big one. The second box above does this for you.
Yes, a little. Check pressure cold, about once a month, against the sticker in the driver's door jamb or the owner's manual, not the maximum printed on the tire. The EPA says under-inflated tires can lower gas mileage by about 0.2 percent for every 1 psi drop in the average pressure of all tires.
Yes. On the EPA's rule of thumb, each 5 mph over 50 is like paying about $0.28 more per gallon on its $4.00 assumption, so driving 70 mph instead of 60 costs about $0.56 a gallon more (our arithmetic). Aggressive driving can lower mileage by roughly 15 to 30 percent at highway speeds.
It gives you your own fuel cost per mile, which is not the IRS standard mileage rate. The IRS publishes that rate for deducting business use: 76 cents a mile from July 1 to December 31, 2026. Check the IRS page or your employer policy for which rate applies.
For a hybrid that only uses gasoline, the same fill-up method works. A plug-in or electric car is rated in MPGe, which counts the miles driven on the energy in one gallon of gasoline. Use the rating on its label, since electricity is not bought by the gallon.
They can. An odometer set for the old tire size reads short on larger tires, so an MPG worked out from it comes out too low. With tires 5 percent taller it is about 4.8 percent too low. Use a GPS distance or multiply the odometer distance by the new diameter over the old.
In the US, use Find and Compare Cars on fueleconomy.gov, which links to MPG estimates from drivers like you. In Canada, use the Natural Resources Canada Fuel Consumption Guide tables. In Australia, use the Green Vehicle Guide. Then compare the rating with your own result here.

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.