Automotive

Instant, private, and free

Gas Mileage Calculator.

Calculate your car's MPG, L/100km, and trip fuel cost.

On-device calculationNo signup
01

Set your values

Results update as you type.

Measurement System

How to Use

Enter the distance you drove, the fuel you used, and the fuel price to compute your vehicle's fuel economy and the cost of the trip.

FAQs

How is MPG calculated?

MPG = Distance (miles) ÷ Fuel Used (gallons). For metric mode, we compute L/100km = (Fuel Used in L ÷ Distance in km) × 100.

What is the difference between MPG and L/100km?

MPG (US/imperial) is distance per fuel unit — higher is better. L/100km (metric) is fuel per fixed distance — lower is better.

How do I estimate trip cost?

Trip Cost = Fuel Used × Fuel Price. Use the cost-per-mile value to project costs across longer distances.

Use Cases

Track Your Vehicle's Fuel Efficiency

Monitor your car's MPG or L/100km over time to identify changes in fuel economy, which can indicate maintenance issues or driving habit impacts.

Example: After a road trip, enter 300 miles and 10 gallons to see your MPG.

Budget for a Trip

Estimate the total fuel cost for an upcoming journey by entering the expected distance, your vehicle's typical fuel consumption, and current fuel price.

Example: Plan a 500-mile trip with a car that gets 25 MPG and gas at $3.50/gallon.

Frequently Asked Questions

How do I calculate my car's MPG?
Enter the distance traveled and the fuel used (in gallons) into the calculator. It will automatically compute your miles per gallon (MPG) by dividing distance by fuel used.
Can I use liters and kilometers?
Yes, the calculator supports metric units. Enter distance in kilometers and fuel used in liters to get fuel economy in L/100km, along with trip fuel cost and cost per kilometer.
What is cost per mile?
Cost per mile is the total fuel cost for your trip divided by the distance traveled. It helps you understand the fuel expense for each mile driven.

Tips & Common Mistakes

Tips

  • For accurate MPG, fill your tank completely, reset your trip odometer, and record the distance and fuel needed to refill next time.
  • Use the same units (imperial or metric) for both distance and fuel to avoid calculation errors.
  • Check your tire pressure regularly; under-inflated tires can lower fuel economy.
  • Compare your calculated MPG with the EPA rating for your vehicle to spot potential issues.

Common Mistakes to Avoid

  • Mixing units, such as entering miles with liters, which leads to incorrect results.
  • Using the fuel price per gallon when you entered fuel in liters, or vice versa.
  • Forgetting to include the fuel used for the entire trip, not just a portion.

Last updated: August 13, 2026