What is this calculator for?
You filled up at 432 miles on the odometer, took 14.2 gallons. You want to know your actual MPG vs the EPA estimate on the window sticker. Or you're tracking a long-term trend to see if your car's fuel economy is degrading (a sign of needed maintenance). The gas mileage calculator handles the math: miles driven between fill-ups Γ· gallons added = MPG.
Real-world MPG typically differs from EPA estimates. EPA city/highway/combined ratings are based on standardized test cycles in controlled conditions. Actual MPG varies based on driving style (hard acceleration costs 10-20% MPG), driving conditions (city traffic vs highway, hilly vs flat), climate (cold weather costs 15-25% MPG in winter), vehicle load (extra weight reduces MPG), tire pressure (low pressure costs 3-8% MPG), aerodynamic accessories (roof racks, cargo carriers cost 5-15% on highway).
This calculator handles single-tank MPG calculations, rolling averages over multiple tanks (more reliable than single-tank readings due to variability), and projected annual fuel cost based on your typical MPG and annual mileage.
How to use this calculator
For single-tank MPG: enter miles driven since last fill-up and gallons added at the current fill-up. Both numbers come from your fuel pump receipt and odometer reading. The calculator divides miles by gallons.
For accurate measurement, fill the tank completely each time β partial fills give inconsistent readings. Reset your trip odometer at each full fill-up; read it at the next full fill-up. Some drivers calculate MPG every fill-up; others average 3-5 tanks for a more stable number.
For multi-tank averaging: enter the past 3-5 fill-ups. The calculator computes weighted average MPG (total miles Γ· total gallons across all tanks) β more reliable than averaging the per-tank MPG numbers.
The calculator can also compare to EPA estimates: enter your car's EPA city, highway, and combined ratings. Shows your real-world MPG vs each EPA number and the percentage variance.
Understanding your results
The calculator returns your MPG for the entered tank or averaged across tanks. Plus annual fuel cost projection at your typical mileage and gas price.
How to read it. 432 miles Γ· 14.2 gallons = 30.4 MPG. If your car is EPA-rated 32 combined: you're at 95% of EPA β typical real-world result for moderate driving. If your car is EPA-rated 28: you're 8% above EPA, suggesting either efficient driving or favorable conditions.
The MPG trends to track. A gradual decline of 5-10% over months suggests something is wrong: dirty air filter ($20 fix, 3-5% MPG impact), low tire pressure (free fix, 3-8% impact), fouled spark plugs ($100-200 fix, 5-10% impact), failing oxygen sensor ($150-300 fix, 10-15% impact), bad mass airflow sensor ($200-500 fix, 5-10% impact). Sudden drop of 20%+ suggests major issue: misfire, transmission slipping, brake dragging. Worth taking to mechanic for diagnostic if MPG drops consistently across multiple tanks.
The seasonal variation. Most cars drop 15-25% MPG in deep winter (sub-30Β°F daily highs) vs summer. Cold engines burn richer mix during longer warm-up; winter fuel blend has slightly lower energy content; cold tires have higher rolling resistance; AC blasting heated air requires engine load. Tracking MPG year-round shows the predictable seasonal pattern; concerning drops are those beyond expected seasonal variation.
The driving-style impact. Hard accelerations and sudden braking cost 10-30% MPG. Driving 75 MPH vs 65 MPH costs 10-15% MPG (aerodynamic drag increases with the square of speed). Idling for 1+ minutes when stopped burns more gas than restarting. Smooth driving, anticipating stops, and reasonable speeds can add 15-25% to your MPG without changing anything else about the car. Hypermiler techniques can push another 10-20% beyond that but are impractical for daily commuting.
A worked example
Daniel tracks his 2018 Honda Accord's MPG over five fill-ups:
Tank 1: 380 miles, 13.1 gallons. MPG: 29.0.
Tank 2: 412 miles, 13.8 gallons. MPG: 29.9.
Tank 3: 365 miles, 13.4 gallons. MPG: 27.2.
Tank 4: 401 miles, 13.7 gallons. MPG: 29.3.
Tank 5: 392 miles, 13.6 gallons. MPG: 28.8.
Total: 1,950 miles Γ· 67.6 gallons = 28.8 MPG average. EPA-rated combined: 33 MPG. Daniel is at 87% of EPA β a bit below typical (most drivers are 90-95% of EPA). Likely causes: he drives mostly stop-and-go urban miles (closer to EPA city of 30 than highway of 38), occasional spirited acceleration, slightly under-inflated tires (last checked 4 months ago).
He addresses three things: (1) Checks tire pressure β all four are 3-5 psi low. Inflates to door-sticker spec. (2) Air filter β original from new, 75K miles. Replaces ($22, 10 min job at home). (3) Drives more conservatively for 2 weeks β gentler acceleration, anticipating stops.
Next 5 tanks of data:
Tank 6-10 average: 31.4 MPG. Improvement of 2.6 MPG, about 9%. Annual savings at his 13,000 miles/year and $3.60/gallon: he was using 451 gallons/year ($1,624), now uses 414 gallons/year ($1,490). Annual savings: $134. Over 5 years: $670. The total cost of his "improvements": $22 (air filter) plus tire-air refills (free).
Six months later: MPG drops to 27.8 over 3 consecutive tanks. Now 2.6 MPG below his recent baseline β sustained drop. He takes the car to his mechanic. Diagnostic finds oxygen sensor reading slightly out of range β replaced for $180. Next 3 tanks: MPG back to 31.0+. The $180 fix paid for itself in 14 months of fuel savings; if he'd ignored the drop, the engine would have eventually compensated with richer fuel for years until check-engine light triggered larger repair.
Related resources
For trip and commute cost planning, see Fuel Cost Calculator. For broader transportation cost decisions, the Auto Loan Calculator and Tire Size Calculator. For commute-related life decisions, the Cost of Living Comparison. The US Department of Energy fueleconomy.gov publishes EPA ratings for every vehicle and user-reported real-world MPG for crowdsourced verification.