Auto

Gas Mileage Calculator

Calculate your miles per gallon, cost per mile, and estimate fuel costs for any trip. Two modes: calculate MPG from fill-up data, or plan a trip's fuel budget.

Quick Answer

MPG = Miles Driven ÷ Gallons Used. The average US car gets about 25.4 MPG. To calculate trip fuel cost: divide trip distance by your MPG to get gallons needed, then multiply by gas price. Example: a 500-mile trip at 28 MPG with $3.50/gal gas costs about $62.50 in fuel.

Results

30.0
MPG
$0.117
Cost per Mile
$35.00
Total Fuel Cost
12.8
km/L

About This Tool

The Gas Mileage Calculator helps you understand your vehicle's fuel efficiency and plan the fuel budget for any road trip. It operates in two modes. The Calculate MPG mode takes your fill-up data (miles driven and gallons used) and computes your actual miles per gallon, cost per mile, and total fuel expenditure. The Trip Planner mode estimates how much fuel and money a planned trip will require based on your vehicle's MPG and current gas prices.

How to Calculate MPG

Fill your tank completely. Reset your trip odometer. Drive normally until you need fuel again. Fill up completely and note how many gallons it took. Divide the miles driven by the gallons used. That is your actual MPG. Repeat this over several fill-ups for a more accurate average. Your real-world MPG will typically be 10-20% lower than the EPA estimate, depending on driving conditions and habits.

Factors That Affect Fuel Efficiency

Highway driving yields better MPG than city driving because constant speed is more efficient than frequent acceleration and braking. Aggressive driving (rapid acceleration, speeding, hard braking) can lower MPG by 15-30%. Proper tire inflation, regular maintenance, removing excess weight, and using cruise control all improve fuel economy. Air conditioning increases fuel consumption by 3-4%, while open windows at highway speeds create drag that has a similar effect.

Understanding Cost Per Mile

Cost per mile is the most practical metric for budgeting. If your vehicle gets 28 MPG and gas costs $3.50 per gallon, your fuel cost per mile is about $0.125. For a 12,000-mile annual driving average, that is roughly $1,500 per year in fuel alone. Improving your MPG by even 2-3 points through better driving habits can save $100-200 annually.

Frequently Asked Questions

What is a good miles per gallon?
The US fleet average is about 25.4 MPG. A compact car typically gets 30-40 MPG, a midsize sedan 25-35 MPG, an SUV 20-28 MPG, and a pickup truck 15-22 MPG. Hybrid vehicles achieve 40-60 MPG. Anything above average for your vehicle class is considered good fuel economy.
Why is my actual MPG lower than the EPA estimate?
EPA estimates are derived from standardized laboratory tests that may not reflect real-world conditions. Factors like cold weather, short trips, aggressive driving, traffic congestion, roof racks, towing, and hilly terrain all reduce actual MPG. Real-world fuel economy is typically 10-20% below the EPA combined estimate.
How do I calculate gas cost for a road trip?
Divide the trip distance by your vehicle's MPG to find gallons needed. Multiply gallons by the gas price per gallon. For example: 500 miles ÷ 28 MPG = 17.86 gallons × $3.50/gal = $62.50. Use our Trip Planner mode above for instant calculations.
Does driving speed affect gas mileage?
Yes, significantly. Most vehicles achieve peak fuel efficiency between 45-65 mph. Above 65 mph, aerodynamic drag increases rapidly. According to the Department of Energy, every 5 mph above 50 mph is roughly equivalent to paying an additional $0.20-0.30 per gallon of gas. Slowing from 75 to 65 mph can improve MPG by 10-15%.
How much money can I save by improving my MPG?
For a driver covering 12,000 miles per year with gas at $3.50/gallon: improving from 25 to 30 MPG saves about $280 per year. Going from 20 to 25 MPG saves about $420 per year. The biggest savings come from improving low MPG vehicles, because each MPG point matters more at the bottom of the scale.

Was this tool helpful?