Fuel Mileage Calculator

How many miles per gallon is your car actually getting?

Calculate your vehicle's actual fuel efficiency and compare it with EPA ratings to optimize your driving costs.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Most drivers guess their fuel efficiency, but the only accurate measurement comes from dividing actual miles driven by gallons purchased. Your fuel gauge and trip computer estimate consumption based on engine sensors, but real-world factors like traffic patterns, weather, and driving style create significant variations from these predictions.

The calculation reveals your vehicle's true operating cost per mile, which varies dramatically based on maintenance and driving habits. A properly maintained car driven smoothly can exceed EPA ratings by 15-20%, while aggressive acceleration and poor maintenance can reduce efficiency by 25% or more.

Tracking efficiency over multiple tanks exposes patterns that single measurements miss. Seasonal variations, route changes, and vehicle condition all influence the numbers. This data helps you optimize driving habits and catch maintenance issues before they become expensive problems.

When To Use This
Right tool, right situation

Use this calculator every time you fill up to build a comprehensive efficiency database for your vehicle. Track the data monthly to spot trends that indicate maintenance needs, seasonal variations, or changes in driving patterns that affect fuel costs.

Calculate efficiency separately for different driving scenarios - city commuting, highway trips, and mixed driving - to understand where your vehicle performs best. This information helps with route planning and vehicle selection for different types of trips.

Do not rely on single-tank calculations for major decisions like vehicle purchases or maintenance diagnoses. Short trips, extreme weather, or unusual driving conditions can skew individual measurements significantly. Use this tool for tracking trends rather than evaluating one-time efficiency readings.

Common Mistakes
Why results sometimes look wrong

The biggest measurement error comes from inconsistent filling practices. Stopping at the first click versus topping off can create 0.5-1 gallon differences, which translates to 3-5 MPG calculation errors. Always fill using the same method and the same pump speed for consistent measurements.

Many drivers calculate efficiency using trip odometer resets at random points rather than full tank to full tank. This approach misses partial fuel consumption and creates artificially high or low readings. Only measure from completely full tank to completely full tank for accurate results.

Comparing single-tank measurements leads to false conclusions about vehicle performance or driving efficiency. Weather, traffic conditions, and route variations can swing individual tank calculations by 20% or more. Track at least five consecutive fill-ups before drawing conclusions about changes in efficiency or vehicle condition.

The Math
Worked examples and deeper derivation

The core calculation divides distance by fuel volume, but the units matter significantly for international comparisons. US MPG measures miles per gallon, while most countries use liters per 100 kilometers - these scales move in opposite directions, with lower L/100km indicating better efficiency.

Converting between systems requires understanding that 1 MPG equals approximately 235.2 divided by L/100km. A car achieving 30 MPG consumes about 7.8 L/100km, while 25 MPG equals 9.4 L/100km. These conversions help when researching international vehicle specifications.

Cost per mile calculations multiply fuel price by consumption rate. For US units, divide fuel price per gallon by your MPG. For metric units, multiply L/100km by fuel price per liter, then divide by 100. This standardized cost comparison works across different vehicles and fuel types.

Weekly Commute Tracking
347 miles driven, 12.8 gallons used, $3.45 per gallon
Your car achieves 27.1 MPG, which costs $0.127 per mile. This beats the EPA average of 25 MPG for similar vehicles, saving you about $200 annually in fuel costs.
Highway vs City Comparison
Interstate trip: 480 miles, 16.2 gallons used
Highway driving yields 29.6 MPG, significantly higher than city driving. This 20% improvement means your car runs most efficiently at steady highway speeds between 55-65 mph.
Maintenance Check
Recent tank: 298 miles, 18.5 gallons used
Only 16.1 MPG indicates potential issues like dirty air filter, low tire pressure, or needed tune-up. Compare this to your normal efficiency to catch maintenance problems early.
Expert Unlock
The thing most explanations skip

Professional fleet managers track efficiency to within 0.1 MPG accuracy by standardizing measurement protocols and accounting for variables like fuel temperature expansion, which can affect readings by 2-3%. They also separate efficiency data by driver, route, and vehicle load to identify optimization opportunities that individual drivers typically miss.

How accurate is my fuel mileage calculation?

Why is my calculated MPG different from the dashboard display?
Dashboard displays estimate based on engine sensors and driving patterns, while manual calculation uses actual fuel purchased. Your calculation is more accurate because it measures real consumption. Dashboard estimates can be off by 5-10% due to driving conditions and calibration differences.
Should I calculate mileage on every tank or just highway trips?
Track every tank for 3-5 fill-ups to get your true average efficiency. Highway-only calculations show best-case performance but don't reflect real-world driving costs. Mixed driving gives you the most useful number for budgeting and vehicle comparisons.
What MPG difference justifies buying a more efficient car?
A 10 MPG improvement saves about $500-800 annually for average drivers. Calculate the break-even point by dividing the price difference by annual fuel savings. Cars with 35+ MPG versus 25 MPG make financial sense if you drive over 15,000 miles yearly.

Need something this doesn't cover?

Suggest a tool — we'll build it →