Skip to main content
Everyday5 min read•Updated February 27, 2026

How to Calculate Gas Mileage

Modern vehicle dashboards display estimated fuel economy, but these readings rely on engine sensor approximations that often read 2% to 5% optimistic. The pump-to-pump manual method provides true, ground-truth fuel efficiency.

Quick Answer & Summary

Fill your tank to full and reset your trip odometer. On your next fill-up, fill the tank completely again and divide the trip odometer miles by the exact gallons pumped.

Quick FormulaMPG = Miles Driven (Trip Odometer) / Gallons Pumped to Refill
Instant Example348 miles driven ÷ 11.2 gallons pumped = 31.07 MPG

Understanding the Concepts

Understanding fuel economy metrics helps you monitor vehicle mechanical health and budget for road trips.

Miles Driven (Trip Distance)

The distance traveled between two consecutive full-tank fill-ups, recorded on your trip odometer.

Example: 310.5 miles recorded between fuel stops.

Gallons Pumped (Fuel Volume)

The exact volume of gasoline required to return the fuel tank to completely full, measured by the gas station pump meter.

Example: 10.35 gallons pumped until auto-shutoff.

Cost Per Mile

The direct financial fuel cost to drive one mile, calculated by dividing the price per gallon by your vehicle MPG.

Example: $3.60 per gallon ÷ 30 MPG = $0.12 per mile.

City vs. Highway Cycles

City driving burns more fuel due to frequent braking and idling; highway driving maintains steady momentum in top gear.

Example: A car rated at 24 City / 34 Highway averages ~28 combined MPG.

The Formula

Fuel Economy & Travel Cost Formulas
MPG = Miles Driven / Gallons Pumped
Fuel Cost per Mile = Price per Gallon / MPG
Trip Fuel Cost = (Trip Distance / MPG) × Price per Gallon
  • MPG: Distance traveled per unit volume of fuel.
  • Cost Per Mile: Measures operating cost independent of vehicle make.
  • Trip Fuel Cost: Enables accurate road trip budgeting.

Step-by-Step Calculation

1

Visit a gas station and fill your vehicle tank completely until the pump nozzle clicks off automatically.

2

Reset your vehicle trip odometer (Trip A) to 0.0, or record your total odometer mileage.

3

Drive your normal daily commute and errands until your tank is roughly 1/4 to 1/2 full.

4

Return to a gas station and fill the tank completely again until the auto-shutoff clicks.

5

Record the miles displayed on Trip A and the exact gallons pumped from the fuel receipt.

6

Divide trip miles by gallons pumped to determine your real-world MPG.

Worked Practical Examples

Example 1: Commuter Sedan Weekly Fuel Check

A driver travels 348.5 miles on a tank and takes 11.24 gallons to refill.

→ Miles Driven = 348.5 miles.
→ Gallons Refilled = 11.24 gallons.
→ MPG = 348.5 ÷ 11.24 = 31.005 MPG.
Calculated Result:The car achieved 31.0 MPG.

Example 2: Calculating Cost per Mile for Road Trip Budgeting

Gasoline costs $3.60 per gallon and your crossover SUV achieves 24 MPG.

→ Cost per Mile = $3.60 ÷ 24 = $0.15 per mile.
→ For a 600-mile weekend road trip: 600 miles × $0.15 = $90.00.
Calculated Result:Driving costs $0.15 per mile ($90.00 total for the 600-mile trip).

Example 3: Comparing Commute Costs (Sedan vs. Full-Size Truck)

A 40-mile daily round-trip commute (200 miles/week) at $3.50/gal gasoline.

→ Sedan (32 MPG): 200 miles ÷ 32 = 6.25 gal × $3.50 = $21.88/week ($1,137/yr).
→ Truck (16 MPG): 200 miles ÷ 16 = 12.50 gal × $3.50 = $43.75/week ($2,275/yr).
→ Difference = $1,138 annual fuel savings.
Calculated Result:The 32 MPG sedan saves $1,138 in fuel costs each year.

Example 4: Averaging Across Multiple Fill-ups

Tracking 3 tanks to eliminate pump auto-shutoff variance: Tank 1 (320 mi / 10.5 gal), Tank 2 (290 mi / 9.8 gal), Tank 3 (340 mi / 11.0 gal).

→ Total Miles = 320 + 290 + 340 = 950 miles.
→ Total Gallons = 10.5 + 9.8 + 11.0 = 31.3 gallons.
→ Average MPG = 950 ÷ 31.3 = 30.35 MPG.
Calculated Result:The three-tank combined average is 30.4 MPG.

Real-World Considerations

Winter Blend Fuels & Temperature

Refineries switch to winter-blend fuel containing butane from October to April, which has ~1.5% lower energy density. Cold engine warm-up cycles and dense winter air further reduce fuel economy by 10% to 15%.

Practical Impact: A seasonal MPG drop in winter is normal and rarely indicates a mechanical fault.

Underinflated Tires

Tires naturally lose 1 to 2 PSI for every 10°F drop in ambient temperature. Underinflation increases tire rolling resistance.

Practical Impact: Maintaining manufacturer door-jamb PSI ratings recovers 2% to 4% in fuel economy.

Highway Aerodynamics & Speed

Aerodynamic drag increases with the square of speed. Driving at 75 MPH requires roughly 25% more engine energy than driving at 65 MPH.

Practical Impact: Cruising at 65 MPH instead of 75 MPH saves significant fuel over long distances.

Common Mistakes to Avoid

Using total fuel tank capacity instead of gallons pumped

Looking up vehicle tank capacity (e.g. 15 gallons) and dividing trip miles by 15 produces incorrect results because the tank was not empty when refilled.

How to fix it: Always divide by the exact gallons printed on your gas station receipt.

Topping off past the first auto-shutoff click

Clicking the nozzle repeatedly forces fuel into the vapor recovery system, altering your baseline and risking evaporative canister damage.

How to fix it: Stop pumping the moment the nozzle clicks off automatically.

Relying solely on short trip meter readings

Calculating MPG over a single 40-mile highway stretch fails to represent combined real-world driving.

How to fix it: Calculate fuel economy across an entire tank or average across 3 consecutive fill-ups.

Practical Tips & Mental Math Shortcuts

The 3-Tank Average: Averaging 3 consecutive fill-ups eliminates pump sensitivity and parking slope variances.
Check Air Filter and Oxygen Sensors: A sudden 15%+ drop in fuel economy often indicates a dirty engine air filter or a failing O2 sensor.
Remove Cargo Boxes When Not in Use: Roof-mounted ski boxes and bicycle racks increase aerodynamic drag, cutting highway efficiency by up to 10%.

Frequently Asked Questions

Final Takeaway

Summary & Best Practices

The pump-to-pump calculation remains the gold standard for measuring vehicle fuel efficiency. By dividing actual trip miles by gallons pumped, monitoring tire pressure, and averaging multiple fill-ups, you can track vehicle performance and budget travel costs with precision.