What Is Gas Mileage?
Your car's EPA sticker says 32 MPG highway. But after a month of real driving, you calculate 26 MPG. Why the gap? EPA ratings are measured in a laboratory under controlled conditions. Your actual gas mileage depends on driving habits, road type, vehicle load, tire pressure, weather, and traffic. This calculator uses real odometer data to give you an accurate measurement of your actual fuel efficiency, not a lab estimate.
According to the EPA's 2026 fuel economy rankings, the Toyota Prius hybrid leads with 57/56/57 MPG (city/highway/combined). The Hyundai Elantra Hybrid also ranks highly. For gasoline-only vehicles, compact sedans typically achieve 30 to 40 MPG highway. SUVs and trucks range from 15 to 25 MPG. Knowing your real-world MPG is essential for accurate budgeting and deciding when to service or replace a vehicle, especially with gas prices at $3.89 per gallon nationally as of July 2026.
What This Calculator Does
Enter your starting odometer reading, ending odometer reading, and the number of gallons added at fill-up. Optionally include the price per gallon to see your total fill-up cost and cost per mile.
- Inputs: Start odometer, end odometer, gallons used, price per gallon (optional)
- Outputs: MPG, miles driven, total fuel cost, cost per mile
How the Calculation Works
Miles Driven = End Odometer - Start Odometer
MPG = Miles Driven / Gallons Used
Cost per Mile = (Gallons x Price per Gallon) / Miles Driven
Subtract the starting odometer reading from the ending reading to get the miles driven since your last fill-up. Divide that number by the gallons pumped to get your MPG. This method gives a precise real-world efficiency figure based on your actual driving. For estimating fuel costs for a planned trip using your calculated MPG, our Fuel Cost Calculator projects total trip fuel expenses.
How to Use the Calculator
- Fill your tank completely and note the odometer reading (this is your start reading)
- Drive normally until your next fill-up
- Fill the tank again and note the new odometer reading (end reading)
- Enter both odometer values and the gallons pumped at this fill-up
- Optionally enter the price per gallon to see your cost per mile
Example Calculations
Example 1: Typical Sedan
Start: 22,000 miles. End: 22,380 miles. Gallons pumped: 12.5. Miles driven: 380. MPG: 380 / 12.5 = 30.4 MPG. At $3.89 per gallon, the fill-up cost $48.63, or $0.128 per mile.
Example 2: SUV on Highway
Start: 45,100 miles. End: 45,520 miles. Gallons pumped: 16.8. Miles driven: 420. MPG: 420 / 16.8 = 25 MPG. At $3.89 per gallon, the fill-up cost $65.35, or $0.156 per mile.
Example 3: Hybrid Comparison
A Toyota Prius driver tracks mileage between fill-ups: 520 miles on 9.2 gallons. MPG: 520 / 9.2 = 56.5 MPG. At $3.89 per gallon, the fill-up cost $35.79, or $0.069 per mile. Compare that to the SUV example above at $0.156 per mile: over 15,000 miles per year, the Prius saves $1,305 in fuel costs. For calculating the full cost of vehicle ownership, our Auto Loan Calculator projects monthly car loan payments.
Real-World Scenarios
Monitoring Vehicle Health
Carlos, a commuter in Los Angeles, has tracked his MPG for 6 months. His Honda Accord normally averages 28 MPG. In July, he notices a drop to 22 MPG with no change in driving habits. He takes the car to a mechanic who finds a failing oxygen sensor. After replacement ($280), MPG returns to 28. Without tracking, he would have continued wasting fuel at $3.89 per gallon. At 1,200 miles per month, the 6 MPG drop was costing him an extra $27 per month, or $324 per year. The repair paid for itself in under a year.
Comparing New vs. Old Vehicles
Linda in Minneapolis is deciding whether to replace her 2012 SUV (averaging 18 MPG) with a 2026 hybrid crossover (rated 38 MPG combined). At 15,000 miles per year and $3.89 per gallon, the SUV costs $3,241.67 annually in fuel. The hybrid would cost $1,535.53. Annual savings: $1,706.14. Over 5 years, that is $8,530.70 in fuel savings alone, before factoring in lower maintenance costs on a newer vehicle. To calculate trip fuel costs from known MPG, use the "Trip Cost from MPG" tab above.
Tracking Driving Habits
Tom, a sales representative in Dallas, tracks his MPG after each fill-up to measure the impact of smoother driving. Before conscious effort, his sedan averaged 24 MPG. After adopting gradual acceleration, cruise control on highways, and reduced idling, his average improved to 28 MPG over 3 months. At $3.89 per gallon and 20,000 annual miles, the 4 MPG improvement saves him $463 per year. The EPA reports that aggressive driving can reduce fuel efficiency by 15 to 30 percent, making habit changes one of the most cost-effective ways to save on fuel.
Why This Calculation Matters
Real-world MPG is always more useful than manufacturer estimates. It tells you what your vehicle actually costs to operate, helps you spot mechanical issues early, and lets you compare the true efficiency of different driving styles or routes. With gas prices up 20.5% year-over-year as of July 2026, even small MPG improvements translate to meaningful savings over a year of driving.
Common Mistakes to Avoid
- Partial fill-ups: Always start from a completely full tank for an accurate reading. Partial fills introduce error into the calculation because you cannot know exactly how much fuel was consumed
- Reading the pump wrong: Use the total gallons dispensed, not the dollar amount, for this calculation. The dollar amount includes price per gallon, which varies and does not tell you fuel volume
- Mixing highway and city data: For the most useful data, track city and highway miles separately if your driving varies significantly. Combined MPG averages can mask important differences
- One-fill conclusions: A single fill-up can be skewed by unusual driving, a different gas station with a different pump cutoff, or a partial fill. Average three to five consecutive fill-ups for a reliable MPG figure
- Not resetting the trip odometer: If you use the trip odometer instead of the main odometer, reset it to zero at each fill-up. This simplifies the calculation and reduces transcription errors
Limitations of This Calculator
This calculator is designed for gasoline and diesel vehicles. For hybrids, the same method works: miles driven divided by gallons used. For fully electric vehicles, efficiency is measured in miles per kilowatt-hour (kWh), which this tool does not support. For plug-in hybrids, MPG depends on the ratio of electric to gas driving, making a single fill-up calculation less meaningful. The calculator also does not account for fuel grade differences (regular, mid-grade, premium), which can affect both price and efficiency. Diesel vehicle owners should use the same formula but note that diesel fuel is priced differently from gasoline.
Authoritative Research & Resources
- Fueleconomy.gov: EPA Fuel Economy Guide - Official EPA resource for vehicle MPG ratings, real-world fuel efficiency tips, and the 2026 best fuel economy rankings including the Toyota Prius at 57 MPG combined
- EPA: Fuel Economy Program - Details on how EPA tests and rates vehicle fuel economy, including the 5-cycle testing procedure that produces city and highway estimates
- AAA Gas Prices (July 2026) - Daily updated national and state-level average gas prices, reporting $3.89 per gallon national average as of July 15, 2026