MPG Calculator

Compute MPG from a trip's miles and gallons, plus the metric equivalents (L/100km and km/L) and the dollar cost.

Everyday US + UK gallons Annual cost
Rate this calculator · 4.5 (2)

MPG Calculator

US or UK gallons · L/100km · annual fuel cost

Instructions — MPG Calculator

1

Fill up and reset the trip meter

The cleanest MPG measurement starts at a full tank. Reset the trip meter (or write down the odometer reading) right after the click of the pump shutoff. Drive normally until the next fill-up.

2

Record miles and gallons

At the next fill-up, fill again to the same shutoff click. Enter the trip-meter miles into the first field and the gallons pumped into the second. The trip-meter approach is more accurate than dividing rolling odometer figures by tank capacity.

3

Add gas price and annual miles

The cost-per-mile and annual-fuel-cost figures come from the gas price and annual mileage fields. The default $3.50/gal is the AAA national average for early 2026; the default 12,000 mi/yr matches the US Department of Transportation FHWA average for a typical driver.

Average three tanks for a reliable MPG. A single tank can swing 10-15% because of weather, driving conditions, or pump shutoff timing. The average across three consecutive tanks is the EPA-recommended way to verify your real-world fuel economy.
UK MPG is 20% higher than US MPG for the same car. The Imperial gallon holds 4.546 L versus 3.785 L for the US gallon. A car that gets 30 MPG (US) gets 36 MPG (UK). Use the toggle to switch between conventions.

Formulas

The MPG calculation itself is one division: distance over fuel. The cost and metric conversions add a few more steps, but each is a single multiplication or division.

Miles per gallon
$$ \text{MPG} = \frac{\text{Miles}}{\text{Gallons}} $$
300 miles ÷ 12 gallons = 25 MPG. The US fleet average for new light-duty vehicles in 2024 was 28.3 MPG (EPA Automotive Trends Report).
Liters per 100 km
$$ \text{L/100km} = \frac{235.215}{\text{MPG}_{US}} $$
The standard European fuel-economy unit. Lower is better. 25 MPG = 9.41 L/100km; 40 MPG = 5.88 L/100km. The 235.215 constant combines the gallon-to-liter and mile-to-km conversions.
km per liter
$$ \text{km/L} = \text{MPG}_{US} \times 0.42514 $$
Common in Japan, India, and parts of Latin America. 25 MPG = 10.6 km/L. The 0.42514 factor is 1.60934 km/mi divided by 3.78541 L/US gal.
US to UK gallon conversion
$$ \text{MPG}_{UK} = \text{MPG}_{US} \times 1.20095 $$
The Imperial gallon is 20.095% larger than the US gallon, so the same car gets a higher number under the UK convention. 30 MPG (US) = 36 MPG (UK).
Cost per mile
$$ \text{Cost/mi} = \frac{\text{Gas price}}{\text{MPG}} $$
$3.50 ÷ 25 MPG = $0.14/mile. The American Automobile Association's 2024 Your Driving Costs report puts the all-in fuel cost for an average car at about $0.13-$0.18 per mile.
Annual fuel cost
$$ \text{Annual cost} = \frac{\text{Annual miles}}{\text{MPG}} \times \text{Gas price} $$
12,000 mi ÷ 25 MPG × $3.50 = $1,680. The US BLS Consumer Expenditure Survey puts annual household gasoline spending at $2,449 (2023 data).

Reference

MPG (US) and equivalents
MPG (US)MPG (UK)L/100kmkm/LCost/mi at $3.50
1518.015.686.4$0.233
2024.011.768.5$0.175
2530.09.4110.6$0.140
3036.07.8412.8$0.117
3542.06.7214.9$0.100
4048.05.8817.0$0.088
5060.04.7021.3$0.070
6072.13.9225.5$0.058

US fleet fuel economy by vehicle class (EPA 2024)

Real-world fleet average MPG (US) by class, from EPA Automotive Trends Report 2024.

By vehicle class
ClassMPG
Small sedan35-40
Midsize sedan30-35
Hatchback30-38
Small SUV27-32
Midsize SUV24-28
Pickup truck18-22
Hybrid sedan50-55
Plug-in hybrid40-55 (gas only)
Annual cost at 12k mi
MPG$3.50/gal
15 MPG$2,800
20 MPG$2,100
25 MPG$1,680
30 MPG$1,400
35 MPG$1,200
40 MPG$1,050
50 MPG$840

Note: EPA city/highway/combined ratings come from controlled dynamometer tests. Real-world MPG often runs 10-20% below the EPA combined rating because of weather, traffic, accessory loads, and aggressive driving. The EPA Automotive Trends Report is the standard reference for US fleet averages.

Article — MPG Calculator

MPG calculator: miles per gallon, L/100km, and annual fuel cost

Miles per gallon equals the distance driven divided by the fuel used. A car that covers 300 miles on 12 gallons is doing 25 MPG, which is 9.41 L/100km or 10.6 km/L. The 2024 EPA fleet average for new US light-duty vehicles was 28.3 MPG (real-world adjusted), the highest figure on record. UK MPG is always about 20% higher than US MPG for the same car because the Imperial gallon (4.546 L) is bigger than the US gallon (3.785 L).

Enter the miles driven, the gallons used, the price per gallon, and your annual mileage. The calculator returns MPG (with an efficiency badge), the metric equivalents, and the cost per mile and per year. Flip the toggle to switch between US and Imperial gallons.

What MPG measures

MPG (miles per gallon) is the standard US measurement of vehicle fuel economy. Higher is better. The EPA sets MPG ratings using a dynamometer test with a fixed driving profile, then adjusts for real-world conditions. The window sticker on every new US car shows three numbers: city MPG, highway MPG, and combined MPG (the weighted average used by the EPA fleet rules).

Real-world MPG — the number a driver gets by dividing trip miles by tank gallons — typically runs 10 to 20 percent below the EPA combined rating. The gap comes from aggressive acceleration, cold starts, headwinds, accessory loads (air conditioning, heated seats), and tire underinflation, none of which the dynamometer test simulates exactly.

The MPG formula

The math is one division: miles divided by gallons. For accuracy, measure from a full tank to a full tank, then average three consecutive tanks to remove single-tank noise from pump shutoff timing and weather.

MPG and equivalents cheat sheet
MPG (US) = miles ÷ gallons
L/100km = 235.215 ÷ MPG (US)
km/L = MPG (US) × 0.42514
MPG (UK) = MPG (US) × 1.20095
Cost/mile = price ÷ MPG
Annual cost = annual miles ÷ MPG × price

A 300-mile trip on 12 gallons works out to 25 MPG. At $3.50 per gallon that trip cost $42, or $0.14 per mile. At 12,000 annual miles, the same MPG produces $1,680 in yearly fuel spending. Bumping the MPG to 35 cuts the annual bill to $1,200 — a $480 saving for a 10-MPG improvement.

MPG to L/100km and km/L

L/100km is the European standard. It measures fuel consumption rather than fuel economy, so lower is better. The conversion to US MPG is 235.215 divided by MPG. The constant combines 3.78541 liters per US gallon with 1.60934 km per mile, scaled by 100 to land on the standard per-100-km figure.

km/L is used in Japan, India, Mexico, and parts of Southeast Asia. The conversion from MPG (US) is multiplication by 0.42514. A 30 MPG sedan does 12.75 km/L. A 50 MPG hybrid does 21.3 km/L.

Did you know

The CAFE (Corporate Average Fuel Economy) standard, the US federal rule that drove MPG improvements after 1975, uses a fleet-weighted harmonic average rather than a simple arithmetic average. A 50/50 mix of 20 MPG and 40 MPG vehicles averages 26.7 CAFE MPG (not 30), because the harmonic mean weights toward the less-efficient vehicles — the same effect that makes L/100km the more physically meaningful unit.

US MPG vs UK MPG

The same car gets a higher MPG number in the UK because the Imperial gallon is bigger. The US gallon is 3.78541 liters; the Imperial gallon is 4.54609 liters. The Imperial gallon is 20.095% larger, so US MPG times 1.20095 gives UK MPG. A US 30 MPG car is a UK 36 MPG car.

US
US gallon
3.785 L
25 MPG = $0.140/mi
UK
Imperial gallon
4.546 L
25 MPG (US) = 30 MPG (UK)

What a good MPG is by vehicle

What counts as a good MPG depends entirely on the class of vehicle. A 28 MPG result is excellent for a midsize pickup and disappointing for a hybrid sedan. The 2024 EPA Automotive Trends Report puts the US new-car fleet average at 28.3 MPG (combined, real-world adjusted), but the spread by class is wide.

  • Small sedan 35-40 MPG (Honda Civic, Toyota Corolla)
  • Midsize sedan 30-35 MPG (Toyota Camry, Honda Accord)
  • Small SUV 27-32 MPG (Honda CR-V, Toyota RAV4)
  • Midsize SUV 24-28 MPG (Toyota Highlander, Ford Explorer)
  • Full-size pickup 18-22 MPG (Ford F-150, Chevy Silverado)
  • Hybrid sedan 50-55 MPG (Toyota Prius, Honda Insight)
  • Plug-in hybrid (gas only) 40-55 MPG when battery is depleted

MPG and annual fuel cost

Fuel cost is where MPG translates into real money. The US BLS Consumer Expenditure Survey puts annual household gasoline spending at $2,449 in 2023. At a typical 12,000 annual miles and a $3.50/gal price (AAA early 2026 national average), every 5-MPG improvement saves roughly $200-$400 per year.

Don't buy a hybrid only to save on fuel

A typical hybrid sedan costs $3,000-$5,000 more than the gas equivalent. At a $480/yr fuel saving (10-MPG improvement), the payback is 6-10 years — close to the average length of new-car ownership. Hybrids make financial sense for high-mileage drivers (20,000+ mi/yr) and for drivers who plan to keep the car well past the payback period.

Common MPG measurement mistakes

The most common mistake is dividing odometer miles by tank capacity. The fuel gauge is too imprecise and the manufacturer's tank capacity is the nominal value, not the actual fill. Measure from one click of the pump shutoff to the next, using the trip meter.

The second-most-common mistake is using a single tank. Pump shutoff timing varies by station and nozzle angle, and a 1-gallon overfill or underfill swings a 12-gallon measurement by 8%. Average three tanks for a stable number.

Tip

To squeeze the most MPG out of a long highway trip, drop your cruise-control speed by 5-10 mph above 50. The US Department of Energy estimates each 5 mph above 50 mph cuts MPG by about 7%, so dropping from 75 mph to 65 mph improves fuel economy by 12-15% — the largest single behavior change available to most drivers.

One last detail: aggressive acceleration is the biggest single MPG killer for city driving. FuelEconomy.gov cites a 15-30% MPG penalty for aggressive driving on the highway and 10-40% in stop-and-go traffic. Smooth throttle inputs and longer following distances recover most of that.

FAQ

Fill the tank, reset the trip meter, drive until the next fill-up, then divide the trip-meter miles by the gallons pumped at the second fill. MPG = miles ÷ gallons. Example: 300 miles on 12 gallons = 25 MPG. Average three consecutive tanks to remove single-tank noise.
For a non-hybrid 2024 model, anything above 30 MPG (combined) is above the US fleet average of 28.3 MPG. Hybrids routinely hit 50+ MPG. Small SUVs average 27-32, midsize SUVs 24-28, pickup trucks 18-22. Compare your MPG to the EPA combined sticker rating for your specific model.
Divide 235.215 by your MPG (US). 25 MPG = 235.215 ÷ 25 = 9.41 L/100km. 40 MPG = 5.88 L/100km. The 235.215 constant comes from combining 3.78541 liters per US gallon with 1.60934 km per mile.
The Imperial gallon (4.546 L) is 20.095% larger than the US gallon (3.785 L), so the same car gets a higher MPG number under UK measurement. 30 MPG (US) = 36 MPG (UK). Multiply US MPG by 1.20095 to get UK MPG, or divide UK MPG by 1.20095 to go the other way.
EPA testing happens on a dynamometer with controlled temperature, no accessory load, and a fixed drive profile. Real-world driving adds cold-start enrichment, air-conditioning load, headwinds, traffic, and tire-pressure effects. Real-world MPG typically runs 10-20% below the EPA combined number. The EPA acknowledges this in its 2008 testing-method revision.
Driving 12,000 miles per year at 25 MPG and $3.50/gallon costs $1,680 in fuel per year. The same car at 35 MPG drops to $1,200, saving $480 per year. Over a 10-year ownership period, a 10-MPG improvement saves about $4,800.
Yes, dramatically above 50 mph. The Department of Energy estimates each 5 mph above 50 mph cuts fuel economy by about 7%. Dropping from 75 to 65 mph on a long highway trip typically improves MPG by 12-15%. Below 50 mph the savings are smaller because aerodynamic drag is no longer the dominant load.
Each 1 PSI below the recommended pressure across all four tires reduces fuel economy by about 0.2%. Driving on tires 5 PSI low costs roughly 1% of fuel economy — small per tank, but $20-30 per year for a typical driver. The recommended pressure is on the driver-door jamb sticker, not the sidewall.
For a regular hybrid (no plug), MPG is the standard miles ÷ gallons calculation. For a plug-in hybrid (PHEV), the EPA reports two figures: MPGe (miles per gallon equivalent) for the electric portion, and MPG for the gasoline-only portion. The calculator above computes the gasoline-only MPG, the relevant figure once the battery is depleted.