ADVERTISEMENT

Mobile Banner
320×100

Gas Mileage Calculator

Calculate your vehicle's fuel efficiency in MPG or L/100km. Track gas consumption and optimize your driving costs.

Gas Mileage Formulas

Miles Per Gallon (US)

Loading formula...

Liters per 100km

Loading formula...

Cost Per Mile

Loading formula...

MPG to L/100km

Loading formula...
miles
gallons
$/gal

Understanding Gas Mileage and Fuel Efficiency

Gas mileage, measured in miles per gallon (MPG) in the US or liters per 100 kilometers (L/100km) elsewhere, tells you how efficiently your vehicle uses fuel. Higher MPG means better efficiency and lower fuel costs. The average new car in 2024 achieves about 26 MPG, while hybrids can exceed 50 MPG.

Knowing your vehicle's actual fuel economy helps you budget for gas, plan trips, and identify potential mechanical issues. If your car's MPG suddenly drops, it might indicate tire problems, engine issues, or needed maintenance.

MPG Calculator

Calculate fuel efficiency from your fill-up data.

🚗

Trip Planner

Estimate fuel costs for any upcoming trip.

📊

Vehicle Comparison

Compare annual fuel costs between vehicles.

💰

Cost Analysis

See your cost per mile for budgeting.

How to Calculate Your Gas Mileage

Calculating your car's actual MPG is simple but requires tracking your fill-ups. The most accurate method uses the 'full tank' approach over multiple fill-ups.

1️⃣

Fill Your Tank Completely

At the gas station, fill your tank to the auto-shutoff point. Don't top off—it can damage your evaporative emissions system and skew measurements.

2️⃣

Reset Your Trip Odometer

Set your trip odometer to zero at the pump. If you don't have a trip odometer, note your current mileage.

3️⃣

Drive Normally

Use your car as you normally would. Mix of city and highway driving gives the most representative results. Avoid tracking during unusual trips.

4️⃣

Fill Up Again

At your next fill-up, fill to the same auto-shutoff point. Note the gallons pumped and your trip odometer reading (or calculate miles driven).

5️⃣

Calculate MPG

Divide miles driven by gallons used. Example: 300 miles ÷ 12 gallons = 25 MPG. Track over several fill-ups for a reliable average.

📱

Use Our Calculator

Enter your distance and fuel used above for instant results, including cost per mile and efficiency rating compared to average vehicles.

Factors That Affect Fuel Economy

Your actual MPG can vary significantly from the EPA estimate based on driving conditions, habits, and vehicle maintenance. Understanding these factors helps you maximize efficiency.

🚦

City vs. Highway Driving

Highway driving is typically 20-30% more fuel-efficient than city driving due to constant speed and less braking. Stop-and-go traffic is the worst for MPG.

🌡️

Temperature

Cold weather reduces fuel economy 10-20% due to longer warm-up times, increased air density, and winter fuel blends. Hot weather with A/C can reduce MPG 5-25%.

Driving Style

Aggressive driving (rapid acceleration, hard braking, speeding) can lower MPG by 15-30% on highways and 10-40% in city traffic. Smooth, steady driving maximizes efficiency.

🛞

Tire Pressure

Under-inflated tires increase rolling resistance. Every 1 PSI drop below optimal pressure reduces fuel economy by about 0.2%. Check monthly and before long trips.

📦

Vehicle Load

Extra weight reduces MPG—about 1% per 100 lbs. Roof racks and cargo boxes increase aerodynamic drag, reducing highway MPG by 2-8% (even more at higher speeds).

🔧

Maintenance

A well-tuned engine with clean air filters, fresh oil, and properly functioning oxygen sensors optimizes fuel efficiency. Neglected maintenance can reduce MPG by 4% or more.

Average MPG by Vehicle Type

Fuel economy varies dramatically by vehicle type. Here's what to expect from different categories:

Vehicle TypeAverage MPGAnnual Fuel Cost*Best Choice For
Electric Vehicle 100+ MPGe $500-800 Daily commuting, eco-conscious
Hybrid 45-55 MPG $900-1,200 City driving, fuel savings
Compact Car 28-35 MPG $1,300-1,600 Budget, single/couple
Midsize Sedan 25-32 MPG $1,400-1,800 Families, comfort
Small SUV/Crossover 24-30 MPG $1,500-1,900 Versatility, cargo
Full-Size SUV 18-23 MPG $2,000-2,500 Large families, towing
Pickup Truck 17-22 MPG $2,100-2,700 Work, hauling, towing
Sports Car 18-28 MPG $1,600-2,500 Performance, enthusiasts

*Based on 12,000 miles/year and $3.50/gallon average

Tips to Improve Your Gas Mileage

Small changes in driving habits and maintenance can significantly improve your fuel economy. Here are proven strategies:

🐢

Drive the Speed Limit

Fuel economy drops rapidly above 50 mph. Each 5 mph over 50 is like paying an extra $0.20-$0.30 per gallon. Use cruise control on highways for consistent speed.

🔮

Anticipate Traffic

Look ahead and coast to stops instead of braking hard. Accelerate gradually from stops. This 'hypermiling' technique can improve MPG by 10-20%.

❄️

Minimize Idling

Idling gets 0 MPG. Modern cars don't need to 'warm up'—just start and go gently. Turn off the engine if stopped for more than 60 seconds.

🌬️

Reduce Drag

Remove roof racks when not in use. Keep windows closed at highway speeds (A/C is more efficient above 40 mph). Avoid driving with the tailgate down.

⚖️

Lighten the Load

Remove unnecessary items from your trunk. Don't haul golf clubs or tools you don't need. Every 100 lbs reduces MPG by about 1%.

📅

Plan and Combine Trips

A warmed-up engine is more efficient. Combine errands into one trip. Avoid rush hour when possible—idling in traffic kills MPG.

Understanding EPA Fuel Economy Ratings

The EPA tests vehicles in controlled laboratory conditions to provide standardized fuel economy ratings. Understanding these ratings helps you compare vehicles, but real-world results often differ.

🏙️

City MPG

Simulates urban driving with frequent stops, low speeds, and idling. Includes cold starts. Represents a worst-case scenario for most drivers.

🛣️

Highway MPG

Simulates highway driving at higher speeds with no stops. Usually the highest rating. Realistic if you do mostly freeway commuting.

🔄

Combined MPG

Weighted average: 55% city, 45% highway. The 'headline' number on window stickers. Good overall estimate for mixed driving.

⚠️

Real-World Variance

Most drivers achieve 10-15% lower than EPA estimates. Your driving style, terrain, and conditions affect actual results. Track your own MPG for accurate budgeting.

How to use this gas mileage calculator

  1. Pick a unit system with the US (MPG) / Metric (L/100km) toggle so the inputs match how you measure fuel and distance.
  2. Choose a mode: Calculate MPG for actual fuel economy from a fill-up, Trip Cost for an upcoming trip, or Compare Vehicles for annual cost differences.
  3. In Calculate MPG mode, enter Distance Traveled (miles since last fill-up) and Fuel Used (gallons pumped to fill the tank back up). Add Gas Price for cost-per-mile.
  4. In Trip Cost mode, enter Trip Distance, your Vehicle MPG, and current Gas Price. In Compare mode, enter both vehicles' MPG, Annual Miles, and gas price.
  5. Click Calculate. The result shows MPG (or L/100km), an efficiency rating, cost per mile, and trip or annual savings figures depending on the mode.

Examples

Basic: classic 'miles divided by gallons' fill-up

A commuter resets the trip odometer at a full tank. At the next fill-up, the odometer reads 300 miles and the pump dispensed 10 gallons to refill the tank.

Result30.0 MPG, which converts to 7.84 L/100km. At $3.50/gallon, that is about $0.117 per mile driven.

MPG = miles / gallons = 300 / 10 = 30. To convert, the calculator uses 235.215 / 30 = 7.84 L/100km. Cost per mile is gas price / MPG = 3.50 / 30 ≈ $0.117. Thirty MPG is roughly the 2025 US light-vehicle combined average, so this driver is in line with the fleet.

Intermediate: trip cost for a 500-mile road trip

A driver planning a 500-mile weekend trip in a sedan rated for 28 MPG wants to budget fuel at $3.79/gallon before deciding whether to drive or fly.

ResultAbout 17.9 gallons needed and roughly $67.68 in fuel for the one-way trip — closer to $135 round trip.

Gallons needed = trip distance / MPG = 500 / 28 ≈ 17.86 gallons. Trip cost = gallons × price = 17.86 × 3.79 ≈ $67.68. Real-world fuel use can be 5%–15% higher than the EPA-based MPG figure depending on terrain, A/C use, and headwinds, so budgeting an extra 10% is sensible.

Edge case: comparing a 22 MPG SUV with a 45 MPG hybrid

A household drives 15,000 miles per year and is choosing between keeping a 22 MPG SUV or trading down to a 45 MPG hybrid sedan. Gas is $3.60/gallon.

ResultSUV burns about 682 gallons/year ($2,455). Hybrid burns about 333 gallons/year ($1,200). Switching saves roughly $1,255 per year on fuel.

Annual gallons = annual miles / MPG. SUV: 15,000 / 22 ≈ 682. Hybrid: 15,000 / 45 ≈ 333. Multiply each by $3.60 to get cost. The bigger the gap at low MPG, the bigger the savings — going 22 → 45 MPG saves far more fuel than going 35 → 45 MPG, because MPG and gallons-per-mile are inversely related.

How it works

MPG is defined as miles driven divided by gallons consumed: MPG=Miles/Gallons\text{MPG} = \text{Miles} / \text{Gallons}. The metric counterpart is liters per 100 kilometers: L/100km=(Liters/Kilometers)×100\text{L/100km} = (\text{Liters} / \text{Kilometers}) \times 100. MPG is a 'higher is better' rate; L/100km is 'lower is better,' which is why countries that use it call it consumption rather than economy.

Converting between the two uses the constant 235.215, derived from the unit conversions of miles to kilometers (1.60934) and gallons to liters (3.78541): L/100km=235.215/MPG\text{L/100km} = 235.215 / \text{MPG}. So 25 MPG is 9.41 L/100km, and 50 MPG is 4.70 L/100km. The relationship is inverse, which means equal-sized MPG gains save more fuel at the bottom of the scale than at the top.

Cost per mile is gas price divided by MPG. Annual fuel cost is annual miles divided by MPG, multiplied by price per gallon. The calculator's Compare Vehicles mode runs that equation for two vehicles using the same annual mileage and gas price, then subtracts to give the savings figure.

Trip Cost mode multiplies trip distance by gallons-per-mile (1 / MPG) and then by price. The math is identical whether you measure in MPG or L/100km — only the units differ. The calculator switches input labels and conversion factors based on the US/Metric toggle so the underlying formula is consistent.

When to use this calculator

  • Tracking real-world fuel economy. Log every fill-up to see your actual MPG over time. A sudden drop of more than 10% often signals tire pressure, oxygen sensor, or air filter issues worth investigating.
  • Budgeting a road trip. Estimate fuel cost before you leave so the total trip budget — fuel, lodging, food — is realistic. Useful when comparing driving vs. flying for distances under about 600 miles.
  • Shopping for a new vehicle. Plug each candidate's EPA combined MPG and your real annual mileage into Compare Vehicles to see lifetime fuel cost differences before any other purchase math.
  • Comparing EVs and hybrids vs. gas. For EVs, use the MPGe figure from the window sticker (typically ~100–130 MPGe) as the MPG input to get a rough fuel-equivalent cost — then sanity-check against your local electric rate.
  • Reimbursing or expensing mileage. Cost-per-mile is the per-mile fuel figure used in mileage reimbursement and per diem calculations. Combine with your actual MPG and current pump price for an accurate rate.

Common mistakes

  • MistakeComparing your real MPG to the highway sticker number.
    FixThe combined MPG on the window sticker (55% city / 45% highway) is the right benchmark for most drivers. Even then, expect to land 5%–15% below it in normal real-world driving.
  • MistakeOnly measuring one tank and treating that as your MPG.
    FixTopping off, partial fills, and one-off long highway trips skew a single tank significantly. Average at least three to five fill-ups for a stable number.
  • MistakeMixing units — entering kilometers in the miles field, or liters in the gallons field.
    FixFlip the US/Metric toggle first. The input labels and the suffixes ('miles', 'gallons', '$/gal') change to match — use them as a sanity check before clicking Calculate.
  • MistakeAssuming higher MPG always justifies a more expensive vehicle.
    FixCompute annual savings against the price premium. A $5,000 premium for a hybrid that saves $600/year takes about eight years to pay back at constant fuel prices — that may or may not fit your ownership horizon.
  • MistakeTreating MPGe like MPG for cost comparisons.
    FixMPGe converts kWh to gallon-equivalents of energy, not dollars. Electricity at $0.16/kWh is far cheaper per mile than gasoline, so EVs typically beat their MPGe-based cost estimate. Use kWh and your real electric rate for an apples-to-apples cost figure.

Frequently asked questions

How do I calculate MPG?

Divide miles driven by gallons used. The most reliable way is the full-tank method: fill the tank, reset the trip odometer, drive normally until the next fill-up, then fill up again and divide the trip-odometer miles by the gallons the pump dispensed. Repeat for several tanks and average them — single-tank MPG is too noisy for a real number.

Why is my actual MPG lower than the EPA window sticker?

EPA ratings come from a controlled lab cycle on a dynamometer with fixed temperatures, no headwind, no A/C, and a standardized acceleration profile. Real driving has hills, cold starts, traffic, A/C, headwinds, and aggressive acceleration, so most drivers land 5%–15% below the combined-MPG sticker — sometimes more in winter or in stop-and-go cities.

How do I convert MPG to L/100km?

Use the constant 235.215: L/100km = 235.215 / MPG. So 30 MPG = 7.84 L/100km, 40 MPG = 5.88 L/100km, and 50 MPG = 4.70 L/100km. The relationship is inverse, so equal MPG gains save more fuel at low MPG (15 → 20 saves more gas per mile than 40 → 45).

What affects fuel economy the most?

Speed and driving style are usually the biggest levers. Fuel economy typically peaks around 45–65 mph and drops sharply above that due to aerodynamic drag. Hard acceleration and braking, cold weather, low tire pressure, roof racks, heavy loads, and short trips where the engine never warms up all reduce MPG measurably. Maintenance — fresh oil, clean air filter, healthy oxygen sensors — keeps the baseline where it should be.

How can I improve my gas mileage?

Drive at or near the speed limit, keep tires inflated to the door-sticker pressure, remove roof racks and cargo boxes when not in use, combine errands so the engine stays warm, avoid idling, and accelerate gently. According to the DOE, aggressive driving can cut highway MPG by up to a third, and proper tire inflation alone improves economy by roughly 3% on average.

Why is city MPG so much lower than highway MPG?

City driving wastes energy on repeated acceleration and braking, idles at stoplights (zero MPG by definition), and runs the engine cold for the first several minutes of a trip. Highway driving holds a steady speed near the engine's efficiency sweet spot. The 20%–30% gap between city and highway numbers is normal for a conventional gas vehicle. Hybrids invert this — they often get better city MPG because regenerative braking recovers energy at every stop.

What is MPGe and how does it apply to electric vehicles?

MPGe (miles per gallon of gasoline-equivalent) is the EPA's way of expressing EV efficiency in MPG terms. It converts kWh to gallon-equivalents of energy using 33.7 kWh = 1 gallon of gasoline by energy content. A typical EV is rated around 100–130 MPGe. MPGe is useful for comparing energy efficiency across powertrains, but real driving cost depends on your local electric rate (kWh) versus gas price, not the MPGe number alone.

Does premium gas improve MPG in a regular-gas car?

No. The FTC and EPA have both stated that using premium fuel in a car designed for regular provides no measurable MPG, power, or longevity benefit. The only time premium matters is when your owner's manual lists it as required (not just recommended) — running regular in a premium-required car can trigger knock retard, reducing power and fuel economy slightly.

How much does A/C affect fuel economy?

A/C typically reduces MPG by 5%–25%, with the largest hit on short city trips. At highway speeds, A/C is more efficient than open windows because windows create aerodynamic drag. Rule of thumb: below 40 mph, windows down; above 40 mph, A/C on. Modern variable-displacement A/C compressors have smaller MPG impacts than older fixed-displacement systems.

How big are the savings between, say, 25 MPG and 35 MPG?

At 12,000 miles per year and $3.50/gallon: 25 MPG burns 480 gallons ($1,680/year), 35 MPG burns 343 gallons ($1,200/year), a savings of about $480/year or $4,800 over 10 years. Going from 15 to 25 MPG saves more — about $1,120/year — because the gallons-per-mile difference is larger at the low end of the MPG scale.

Sources

Methodology

The calculator implements MPG = miles / gallons and the metric equivalent L/100km = (liters / km) × 100, with the standard 235.215 conversion constant between them. Trip and comparison modes apply gallons-per-mile (1/MPG) to distances and prices. Formulas, efficiency tiers, and benchmark figures are grounded in U.S. EPA fueleconomy.gov, the DOE Alternative Fuels Data Center, NHTSA CAFE data, and U.S. EIA retail fuel prices. Real-world MPG variance language reflects EPA guidance that on-road economy typically lands 5%–15% below combined-sticker estimates.

Pro Tips

  • Bookmark this calculator for quick access in the future
  • Use the share button to send your results to others
  • Try different scenarios to compare outcomes
  • Check out our related calculators for more insights

Found this calculator helpful? Share it with others:

Embed this calculator