MPG Calculator – Free Miles Per Gallon Tool

Instantly calculate your vehicle's real-world fuel efficiency, estimate trip fuel costs, compare gas mileage between cars, and discover how much you can save with better MPG.

MPG Calculator

Results update automatically

miles
gallons
$/gal

Your Results

Instant calculation

MPG

$25.00

Miles per gallon

Cost Per Mile

$0.14

Cost Per 100 Miles

$14.00

Gallons/100 Miles

$4.00

Tips
  • Fill up completely, reset trip odometer, then fill again to get accurate data
  • Track MPG over time to detect maintenance issues

What Is an MPG Calculator?

An MPG calculator is a free online tool that computes your vehicle's miles per gallon (fuel efficiency) from two simple inputs: miles driven and gallons of gas used. Instead of doing the math by hand, you enter your numbers and get an instant, accurate result—along with fuel cost estimates and comparison data.

Beyond basic fuel efficiency, a full-featured MPG calculator like the one above can also estimate trip fuel costs, calculate annual gas savings when switching vehicles, compare the fuel economy of two cars side by side, and help you budget for cross-country road trips.

According to the U.S. Department of Energy's fueleconomy.gov, the average American spends roughly $3,000–$4,500 per year on gasoline. Even a 2–3 MPG improvement can cut hundreds of dollars from your annual fuel bill—making this calculator one of the most practical financial tools for everyday drivers.

How to Calculate Your MPG: Step-by-Step

The manual method of calculating miles per gallon takes about two fill-ups and is the most accurate way to measure your real-world fuel economy— even more reliable than your dashboard's trip computer.

  1. 1

    Fill your tank completely

    Top off your gas tank at the pump until the nozzle clicks off. A full tank is your baseline.

  2. 2

    Reset your trip odometer

    Set Trip A or Trip B to zero immediately after filling up. If your car lacks a trip odometer, write down the total mileage from the main odometer.

  3. 3

    Drive as you normally would

    Complete a full tank of driving under your typical mix of city and highway conditions.

  4. 4

    Fill up completely again

    When the fuel warning light comes on—or whenever you choose to refuel—fill up completely again. Note the exact number of gallons (or liters) added.

  5. 5

    Divide miles by gallons

    Use the formula: MPG = Miles Driven ÷ Gallons Used. Enter both numbers into the calculator above for an instant result.

💡 Pro Tip: Track Multiple Fill-Ups

A single tank calculation can be skewed by partial top-offs. For the most accurate average MPG, track at least 3–5 consecutive fill-ups and average the results. This smooths out variations from traffic, weather, and driving conditions.

The MPG Formula Explained

The miles per gallon formula is straightforward:

MPG = Miles Driven ÷ Gallons Used

Real-world example: You drove 340 miles on 12.4 gallons of gas.

InputValueNotes
Miles Driven340From your trip odometer
Gallons Used12.4From the gas pump readout
Calculated MPG27.4 MPG340 ÷ 12.4 = 27.42

To extend the formula for fuel cost calculation:

Fuel Cost = (Miles ÷ MPG) × Price Per Gallon

Using the example above at $3.60/gallon: (340 ÷ 27.4) × $3.60 = $44.67 for that tank. Our gas cost calculator automates this computation for any trip distance.

What Is Good Gas Mileage? 2026 Benchmarks by Vehicle Type

Whether your MPG result is "good" depends entirely on your vehicle class. A pickup truck achieving 22 MPG highway is excellent; a compact sedan hitting 22 MPG would be considered below average. Use the table below to benchmark your result against 2026 EPA data.

Vehicle TypeCity MPGHighway MPGCombined MPG
Compact Car (e.g., Honda Civic)28–3536–4531–39
Midsize Sedan (e.g., Toyota Camry)25–3034–4028–34
Full-Size SUV (e.g., Ford Explorer)18–2224–3020–25
Pickup Truck (e.g., Ford F-150 V8)15–1920–2617–22
Hybrid (e.g., Toyota Prius)52–5848–5350–56
Plug-In Hybrid (PHEV)40–60 MPGe36–50 MPGe38–55 MPGe
Minivan (e.g., Honda Odyssey)19–2227–3222–26
RV / Class A Motorhome6–98–127–10

Source: EPA fueleconomy.gov 2026 model year data. Ranges reflect popular trim levels; your specific configuration may vary.

10 Factors That Affect Your Real-World MPG

Understanding why your calculated MPG differs from EPA estimates helps you make smarter decisions behind the wheel and at the pump.

Driving Speed

High impact

Aerodynamic drag increases exponentially above 50 mph. Each 5 mph over 50 costs roughly 7–14% in fuel economy, according to the U.S. Department of Energy.

Aggressive Driving

High impact

Hard acceleration and heavy braking can reduce city MPG by 15–30%. Smooth, gradual inputs are the single biggest driver behavior change you can make.

Cold Weather

Medium–High

Temperatures below 20°F can reduce MPG by up to 25% in short trips (under 4 miles). Engine warm-up, denser air, and thicker oil all contribute.

Air Conditioning

Medium impact

AC use can reduce MPG by 5–25%, most noticeably in city driving and hot weather where the compressor cycles frequently.

Tire Pressure

Medium impact

Under-inflated tires increase rolling resistance. The DOE estimates that every 1 PSI drop below recommended pressure reduces MPG by about 0.2%.

Vehicle Load / Cargo

Medium impact

An extra 100 lbs reduces fuel economy by about 1%. Roof racks and cargo carriers add wind resistance, cutting highway MPG by 2–8% even when empty.

Larger / Oversized Tires

Medium impact

Bigger tires add weight and rolling resistance, reducing real MPG by 1–3. They also cause odometer under-counting, making your calculated MPG appear inflated.

City vs. Highway Mix

High impact

Stop-and-go city driving is 20–40% less efficient than steady highway cruising for conventional cars. Hybrids close this gap significantly through regenerative braking.

Engine Maintenance

Low–Medium

A dirty air filter can reduce MPG by 2–5%. Worn spark plugs cost up to 4%, and a failed oxygen sensor can cut efficiency by up to 40%.

Fuel Type & Grade

Low impact

Using 87 octane in a vehicle rated for 87 is perfectly efficient. Premium-required engines suffer a small MPG penalty on regular fuel due to timing retard.

12 Proven Ways to Improve Your Gas Mileage

These fuel-saving strategies are backed by data from the EPA and the U.S. Department of Energy. Combined, they can improve your MPG by 10–40% and save you hundreds of dollars per year in fuel costs.

Drive at or below 65 mph on the highway

Save up to 14% per 5 mph reduction over 50 mph

Use cruise control on highways

Reduces speed fluctuations that waste fuel; saves 7–14%

Accelerate and brake gradually

Smooth driving saves 10–40% in city conditions

Maintain proper tire pressure

Save up to 3% — check monthly or before long trips

Remove unnecessary cargo and roof racks

Every 100 lbs saved improves MPG by ~1–2%

Keep up with engine tune-ups

Replace dirty air filters, spark plugs, and oxygen sensors

Use the recommended motor oil grade

Using 5W-30 instead of 10W-30 can improve MPG by 1–2%

Turn off the AC when possible

Open windows or use ventilation at speeds under 45 mph

Avoid idling more than 30 seconds

Restarting uses less fuel than idling for over 60 seconds

Plan routes to avoid traffic congestion

Stop-and-go reduces MPG 20–40% vs. free-flowing roads

Park in shade or use a windshield sunshade

Reduces cabin heat and AC workload on hot days

Combine multiple errands into one trip

Cold starts use significantly more fuel than warm starts

How to Calculate MPG for a Road Trip

Planning a road trip? Use your vehicle's highway MPG to estimate total fuel cost before you leave. Here's the formula and a real-world example for a cross-country drive:

Gallons Needed = Trip Miles ÷ Highway MPG

Total Fuel Cost = Gallons Needed × Gas Price Per Gallon

RouteMiles25 MPG Car32 MPG Car50 MPG Hybrid
NYC → Miami1,280$179.20$140.00$89.60
LA → Las Vegas270$37.80$29.53$18.90
Chicago → Dallas920$128.80$100.63$64.40
Seattle → San Francisco810$113.40$88.59$56.70

Estimates based on $3.50/gallon national average. Actual gas prices vary by region and date.

For a more detailed breakdown including multiple stops and varying gas prices, try our road trip cost calculator.

MPG Savings Calculator: How Much Can You Save?

Upgrading to a more fuel-efficient vehicle—or simply improving your driving habits—generates real financial savings. Here's how to calculate your annual gas savings from an MPG improvement:

Annual Fuel Cost = (Miles Per Year ÷ MPG) × Gas Price

Annual Savings = Old Fuel Cost − New Fuel Cost

Example: Switching from 25 MPG to 35 MPG

  • Annual miles: 15,000
  • Gas price: $3.50/gallon
  • Old cost: (15,000 ÷ 25) × $3.50 = $2,100/year
  • New cost: (15,000 ÷ 35) × $3.50 = $1,500/year
  • Annual savings: $600/year → $6,000 over 10 years

Use our auto loan calculator alongside this tool to determine whether fuel savings justify the cost of financing a more efficient vehicle. You can also explore car affordability based on your income and total ownership costs.

How Does the EPA Calculate MPG? (And Why Your Results Differ)

The EPA's fuel economy testing uses five standardized drive cycles conducted on a dynamometer (an indoor "treadmill" for vehicles), not real roads. The five tests simulate:

City FTP-75

Stop-and-go driving, 11.1 miles, avg 21 mph, no AC

Highway HWFET

Freeway driving, 10.3 miles, avg 48 mph, no AC

High-Speed US06

Aggressive driving, 8 miles, max 80 mph

AC SC03

City driving with air conditioning on

Cold Temperature FTP

City cycle at 20°F ambient temperature

Combined EPA Rating

55% city + 45% highway weighting (harmonic mean)

The EPA updated its testing methodology in 2008 to add the US06, SC03, and cold temperature cycles, which is why MPG stickers on cars built before 2008 may show inflated numbers. Real-world driving typically yields 10–20% lower combined MPG than the label.

⚡ Note for Electric Vehicles: MPGe vs. MPG

The EPA rates EVs in MPGe (miles per gallon equivalent), where 33.7 kWh of electricity equals the energy content of one gallon of gasoline. A Tesla Model 3 Long Range achieves approximately 134 MPGe combined—roughly 4–5× more efficient than a typical gasoline car.

How MPG Is Calculated for Hybrids, PHEVs, and Electric Cars

Standard Hybrid (HEV) MPG

Conventional hybrids like the Toyota Prius are calculated exactly like gas cars—miles driven divided by gallons used. Because they recapture braking energy via regenerative braking, hybrids often achieve higher city MPG than highway MPG, the opposite of conventional vehicles.

Plug-In Hybrid (PHEV) MPG

PHEVs like the Toyota Prius Prime or Ford Escape PHEV have two distinct ratings: (1) Electric-only range MPGe for the first 20–50 miles running on battery, and (2) Combined MPG for hybrid operation after the battery depletes. The EPA's "utility factor" blending assumes a mix of trips that utilize both modes.

How Is MPG Calculated for Electric Cars?

Pure EVs don't use gallons, so the EPA converts electricity consumption to MPGe. To calculate your EV's real-world efficiency, track kilowatt-hours (kWh) consumed per 100 miles using your car's energy screen or a home EV charger with usage monitoring. Lower kWh/100mi = better efficiency.

EV Efficiency Conversion:

MPGe = 33.7 kWh × (Miles ÷ kWh Used)

Example: If your EV uses 26 kWh to travel 100 miles → MPGe = 33.7 × (100 ÷ 26) = 129.6 MPGe

RV MPG Calculator: What Fuel Economy Should You Expect?

RV fuel economy varies dramatically by class. If you're budgeting a summer road trip in a motorhome, use the calculator above and reference these real-world RV MPG benchmarks from FMCA (Family Motor Coach Association):

Class A Diesel Pusher (40 ft)

6–9 MPG

Large motorhomes; diesel engines more efficient than gas

Class A Gas (30–36 ft)

7–11 MPG

Most common type; varies by weight and towing

Class B (Camper Van)

18–25 MPG

Best fuel economy among motorhomes; Mercedes Sprinter-based models up to 25 MPG

Class C (Mid-Size)

10–15 MPG

Built on truck chassis; cab-over sleeping area

Travel Trailer (Towed)

Tow vehicle – 20–35%

Aerodynamic drag and weight drops tow vehicle MPG significantly

Fifth Wheel (Towed)

Tow vehicle – 25–40%

Heavier than travel trailers; trucks see larger drops at highway speed

How to Calculate MPG with Larger or Oversized Tires

If you've installed larger tires than your vehicle's stock size—common on trucks and SUVs—your odometer reading will be inaccurate, meaning your calculated MPG will be skewed. Here's why and how to correct it:

A larger tire has a bigger circumference, meaning each wheel rotation covers more ground than your ECU expects. Your speedometer and odometer will under-report your actual speed and distance. If you drove 300 "odometer miles" but actually drove 312 true miles, your MPG calculation using odometer miles will be artificially low.

Correction Factor = New Tire Diameter ÷ Stock Tire Diameter

True Miles = Odometer Miles × Correction Factor

True MPG = True Miles ÷ Gallons Used

Use a tire size calculator or your vehicle's speedometer calibration settings (available on most modern trucks) to correct for the difference. Note that even after correction, larger tires will reduce your actual MPG by 1–3 due to added weight and rolling resistance.

Frequently Asked Questions About MPG

Fill your tank completely and reset your trip odometer to zero. Drive normally until you need gas, then fill up again—note exactly how many gallons you added. Divide the miles driven by gallons used. Example: 312 miles ÷ 11.5 gallons = 27.1 MPG. Always use the same pump nozzle angle for consistent top-offs.
You can estimate MPG without a full fill-up by using your car's trip computer display if equipped. Alternatively, note your odometer reading, add a known amount of fuel (say 5 gallons), drive until empty, and apply the formula: miles driven ÷ gallons used. For best accuracy, always calculate over a full tank.
For 2026 model year vehicles, the EPA average combined fuel economy is around 29–32 MPG for new cars. A good benchmark: 30+ MPG combined for sedans, 25+ MPG for SUVs, 20+ MPG for trucks, and 50+ MPG for hybrids. The EPA fueleconomy.gov database lists official ratings for every vehicle.
EPA estimates are performed under controlled lab conditions. Real-world MPG is typically 10–20% lower due to city stop-and-go traffic, aggressive acceleration, cold weather (reduces MPG by 15–25% below 20°F), running the AC, highway speeds above 65 mph, and vehicle age or maintenance issues like dirty air filters or underinflated tires.
The EPA combines city and highway test results using a 55% city / 45% highway weighting formula. The final combined MPG = 1 ÷ (0.55/city_MPG + 0.45/highway_MPG). This harmonic mean approach more accurately reflects the average American driving mix than a simple average.
For trip planning, divide your route's total miles by your car's expected highway MPG. Then multiply the result by the current gas price per gallon for your fuel cost. Example: 450-mile trip, 32 highway MPG, $3.50/gallon → 450 ÷ 32 = 14.06 gallons × $3.50 = $49.22 in fuel costs.
Oversized tires affect MPG in two ways: (1) They increase rolling resistance and vehicle weight, typically reducing actual fuel efficiency by 1–3 MPG, and (2) They can cause your speedometer to read lower than your true speed, making your calculated MPG appear artificially high. Always correct for tire size when calculating true MPG with larger wheels.
Hybrid MPG is measured the same way—miles driven divided by gallons used—but hybrids recapture braking energy via regenerative braking, making city driving more efficient than highway driving. A Toyota Prius, for instance, achieves a higher city MPG than highway MPG. Plug-in hybrids (PHEVs) are also rated in MPGe (miles per gallon equivalent) for their electric range.
RV fuel economy varies widely by size. Class A motorhomes typically achieve 6–10 MPG, Class B campervans get 18–25 MPG, and Class C RVs average 10–15 MPG. Travel trailers rely on your tow vehicle's MPG, which drops 20–35% while towing depending on trailer weight and aerodynamics.
Every 1 MPG improvement saves roughly $0.10–0.15 per gallon at $3.50/gallon gas prices. If you drive 15,000 miles per year and improve from 25 MPG to 30 MPG, you'll use 100 fewer gallons annually—saving around $350. Our MPG savings calculator above lets you model these scenarios with your exact numbers.

Explore More Free Financial Calculators

Understanding your fuel costs is just one piece of vehicle ownership. Use our full suite of auto and financial tools to make smarter decisions.

Disclaimer

MPG calculations provided by this tool are estimates based on user-supplied inputs. Actual fuel economy varies with driving conditions, vehicle maintenance, weather, and other factors. EPA ratings sourced from fueleconomy.gov. Gas price estimates are illustrative; check EIA.gov for current national averages. Last updated: 2026.