Transportation

Gas Mileage Calculator

Track fuel economy, compare unit systems, and estimate trip fuel costs from your last fill-up.

Pro tip: Results update automatically while you edit values, so you do not need to click Calculate.

Live Result

Your Efficiency Snapshot

Compare your latest fill-up across the most common mileage formats.

Gas mileage 24.0 mpg (US)

9.8 L/100 km or 10.2 km/L

Distance Traveled 360 miles
Fill Expense $45.00
Unit Cost $0.125 / mile
Distance per Dollar 8 miles / $

Distance traveled since last time is 360 miles. Your fill expense this time is $45.00. Your unit cost is $0.125 per mile or 8 miles per dollar.

Core Formula

How It Works

Distance

current odometer - previous odometer

US MPG

distance miles / US gallons added

Metric Consumption

(liters added / distance km) * 100

Cost

fuel added * price per unit

Quick Conversions

Useful Constants

MPG (US) to L/100 km 235.215 / mpg
MPG (US) to km/L mpg * 0.425144
MPG (UK) to MPG (US) mpg * 0.832674
Miles to km mi * 1.60934
Common Questions

Gas Mileage FAQs

Answers on MPG math, fuel-cost estimates, conversion logic, and how to get cleaner tank-to-tank mileage readings.

Q1. What is gas mileage and why does it matter?

Gas mileage, commonly expressed as miles per gallon (MPG), measures how far your vehicle can travel on one gallon of fuel. The higher your MPG, the less fuel you burn for a given distance and the less money you spend at the pump. Even modest improvements of 3 to 5 MPG can translate into hundreds of dollars in annual savings.

Q2. How do I calculate my gas mileage (MPG)?

The basic formula is MPG = miles driven divided by gallons used. Use the fill-up method: fill the tank, record the odometer, drive normally, fill again, record the new odometer, and divide miles traveled by gallons added.

Example: (12,360 - 12,000) / 15 = 24 MPG.

Q3. What is the fill-up method (tank-to-tank method)?

The fill-up method is the most accurate way to measure real-world fuel economy. Always fill until the pump clicks off, then divide miles traveled by the gallons added on the next fill. This removes partial-fill guesswork.

Q4. How do I calculate fuel consumption in metric units (L/100 km)?

L/100 km = (liters used / kilometers driven) * 100. Example: (50 / 600) * 100 = 8.33 L/100 km. With L/100 km, lower is better.

Q5. What is km/L and how is it different from L/100 km?

km/L measures how many kilometers you travel per liter. It is the inverse of L/100 km: km/L = 100 / L/100 km. Higher km/L means better efficiency.

Q6. What's the difference between US MPG and UK (Imperial) MPG?

UK gallons are larger. UK MPG is about 20% higher than US MPG for the same efficiency. Conversions: US MPG = UK MPG * 0.832674 and UK MPG = US MPG * 1.20095.

Q7. How do I convert between MPG and L/100 km?

Use 235.215 as the constant: L/100 km = 235.215 / MPG and MPG = 235.215 / L/100 km.

Q8. What inputs does the gas mileage calculator need?

Current odometer, previous odometer, fuel added, and optional fuel price. The calculator handles the rest instantly.

Q9. What does the calculator output?

Primary efficiency result, cross-unit conversions, and cost metrics when fuel price is provided (total expense, cost per distance, distance per dollar).

Q10. Can I use this calculator for diesel vehicles?

Yes. The math is the same for gasoline, diesel, biodiesel, and ethanol blends. Just enter the volume added.

Q11. Why does my calculated MPG differ from my car's dashboard display?

Dashboard estimates can be off by 5 to 15%. The odometer-plus-pump method measures actual fuel and distance. For best accuracy, average 3 to 5 consecutive fill-ups.

Q12. Does this calculator work for hybrid or plug-in hybrid vehicles?

It works for standard hybrids. For plug-in hybrids it only captures the gasoline portion, so electric-only miles inflate MPG. It does not apply to fully electric vehicles.

Q13. What is considered good gas mileage?

  • Excellent: 35+ MPG (under 6.7 L/100 km) for hybrids and small hatchbacks
  • Good: 25 to 35 MPG (6.7 to 9.4 L/100 km) for midsize sedans and compact SUVs
  • Average: 15 to 25 MPG (9.4 to 15.7 L/100 km) for full-size SUVs and older vehicles
  • Poor: under 15 MPG (over 15.7 L/100 km) for heavy-duty trucks and performance cars

Q14. Why is my gas mileage worse in winter?

Cold starts, winter-blend fuel, accessory load, and lower tire pressure all reduce efficiency. Combined, these can cut fuel economy by 15 to 30% in very cold conditions.

Q15. Why is my gas mileage worse in the city vs. highway?

Stop-and-go driving wastes energy in braking and idle time. Highway driving is steadier and generally more efficient, with peak efficiency often around 45 to 55 mph.

Q16. How much does speed affect gas mileage?

Aerodynamic drag rises quickly with speed. Above about 50 mph, fuel economy drops noticeably. Every 5 mph over 50 can feel like paying about $0.30 more per gallon.

Q17. What is the cost per mile or cost per kilometer?

Cost per mile = total fuel cost divided by miles driven. Example: $45 / 360 miles = $0.125 per mile.

Q18. What are the top ways to improve gas mileage?

  • Drive at steady, moderate speeds (45 to 55 mph when safe)
  • Avoid rapid acceleration and hard braking
  • Keep tires properly inflated
  • Remove unnecessary weight and roof racks
  • Use cruise control on highways
  • Avoid excessive idling
  • Combine short trips to keep the engine warm

Quick win: smoother driving can improve city MPG by 10 to 20% with no cost.

Q19. Does AC hurt gas mileage?

Yes. At low speeds, open windows are often more efficient. At highway speeds, AC is usually better than open windows due to drag.

Q20. Does premium gas improve gas mileage?

Only if your vehicle requires it. Otherwise, premium fuel provides no meaningful MPG benefit.

Q21. How does tire pressure affect fuel efficiency?

Each 1 PSI below the recommended pressure reduces fuel economy by about 0.2%. Check monthly and before long trips.

Q22. Does vehicle maintenance affect MPG?

Yes. Dirty air filters, worn spark plugs, misalignment, and incorrect oil can all reduce efficiency. A tuned engine can improve MPG by up to 4%.

Q23. How much can driving habits really save?

Improving from 20 MPG to 25 MPG at 12,000 miles per year can save about $480 annually at $4.00 per gallon.

Q24. What are the key conversion constants?

  • 1 US gallon = 3.78541 liters
  • 1 UK gallon = 4.54609 liters
  • 1 mile = 1.60934 kilometers
  • MPG (US) to L/100 km = 235.215 / mpg
  • MPG (US) to km/L = mpg * 0.425144
  • US gallon to UK gallon = value * 0.832674

Q25. How do I convert US gallons to UK gallons?

US gallons to UK gallons: multiply by 0.832674. UK gallons to US gallons: multiply by 1.20095.

Q26. What is the EPA fuel economy rating?

The EPA provides city, highway, and combined MPG ratings for new vehicles. Real-world MPG is often 10 to 20% lower because lab conditions differ from actual driving.

Q27. Can I track my gas mileage over time?

Yes. Record each fill-up, calculate MPG per tank, track your running average, and watch for sudden drops that may indicate maintenance issues.

Still have questions?

Our Gas Mileage Calculator handles all the math for you. Enter your odometer readings and fuel amount to get results in MPG, L/100 km, km/L, or UK MPG in seconds.

Pro tip: revisit this FAQ seasonally. Your fuel economy changes with weather, driving patterns, and vehicle age.

Data Integrity Last verified: April 2026

Methodology and source verification

The fuel-economy math on this page is cross-checked against standard tank-to-tank mileage formulas, official EPA and DOE fuel-economy guidance, and widely used unit-conversion constants for MPG, L/100 km, and km/L. The calculator estimates fuel efficiency and trip cost from your inputs, but it does not replace vehicle-specific EPA label testing, manufacturer specifications, or long-term tracking across multiple fill-ups.

Verified
Reference basis: the calculation engine uses odometer distance divided by fuel added for mileage, inverse-distance formulas for L/100 km and km/L conversions, and direct fuel-price multiplication for trip cost outputs. The explanatory copy is anchored to EPA fuel-economy labeling guidance, DOE consumer fuel-economy guidance, and official MPG interpretation references.
Official MPG baseline

EPA fuel economy label guidance

Used for the meaning of MPG estimates and the distinction between comparable EPA label values and individual real-world results.

Read EPA fuel economy label guidance
Federal fuel-economy context

DOE fuel economy consumer guidance

Used for practical real-world efficiency factors such as speed, idling, cargo, and driving habits that affect mileage outcomes.

Read DOE fuel economy guidance
Testing and comparability

EPA basic fuel economy labeling information

Used for the reminder that EPA fuel economy values are based on standardized testing and are intended as a comparison baseline.

View EPA labeling information
MPG interpretation

EPA gasoline label text guide

Used for the explanation that MPG is one of several ways to interpret fuel economy and that cost and distance metrics also matter.

Read the EPA gasoline label guide