FREE · INSTANT RESULT · WITH THE FORMULA
Home / Automotive / Gas Mileage Calculator
Auto · Fuel economy

Gas Mileage Calculator

Find your true gas mileage. Enter the miles you drove and the gallons it took to fill back up, and get MPG.

Gas mileage
28.1 MPG
MPG = miles driven ÷ gallons used

TL;DR: A gas mileage calculator determines your vehicle"s fuel efficiency and helps estimate travel costs based on distance and gas prices.

  • Calculate your car"s MPG by dividing the miles driven on a tank by the gallons used to refill it.
  • Estimate trip fuel costs using the formula: (Distance ÷ MPG) x Gas Price.
  • Factors like driving habits, tire pressure, and vehicle load significantly impact actual fuel economy.
  • Online calculators automate these calculations, providing quick estimates for trips and vehicle efficiency.
  • Fuel efficiency is measured in Miles Per Gallon (MPG) in the US/UK and Litres per 100 kilometres (L/100km) elsewhere.

How Does a Gas Mileage Calculator Work?

A gas mileage calculator computes a vehicle"s fuel efficiency using the distance driven and the amount of fuel consumed. The primary goal is to determine metrics like miles per gallon (MPG) or litres per 100 kilometres (L/100km). These tools can function in two ways: calculating your vehicle"s historical fuel economy based on past fill-ups or forecasting the fuel cost for a future trip.

To calculate historical MPG, the tool requires two consecutive odometer readings and the amount of fuel added to the tank between those readings. For trip cost estimation, the required inputs are the total trip distance, the vehicle"s average MPG, and the current price per gallon or litre of fuel. The underlying calculation for trip cost is straightforward: divide the trip distance by your car"s fuel efficiency to find the total gallons needed, then multiply that amount by the price of gas.

How to Manually Calculate Your Car's Miles Per Gallon (MPG)

To manually calculate your car"s MPG, divide the number of miles driven on a tank of gas by the number of gallons required to refill the tank. This method provides the most accurate measure of your vehicle"s real-world fuel consumption.

Follow these steps for an accurate calculation:

  • Step 1: Fill the Tank. Go to a gas station and fill your fuel tank completely. Do not top off after the pump automatically stops.
  • Step 2: Record Mileage. Immediately record your car's current odometer reading or reset the trip meter to zero.
  • Step 3: Drive Normally. Use your vehicle as you typically would, driving until the tank is at least half empty for a representative sample.
  • Step 4: Refill the Tank. Return to the gas station and fill the tank completely again. Note the exact amount of fuel added, as shown on the pump.
  • Step 5: Record Final Mileage. Note the new odometer reading or the total miles shown on your trip meter.
  • Step 6: Calculate MPG. Subtract the initial odometer reading from the final one to get the miles driven. Divide the miles driven by the number of gallons you just added. The result is your vehicle's MPG for that period.

How to Estimate Fuel Cost for a Trip

To estimate the fuel cost for a trip, you must know the total distance in miles, your vehicle"s average MPG, and the local price of gas per gallon. The core formula for this calculation is (Total Distance / Vehicle"s MPG) * Price Per Gallon. This provides a reliable estimate of how much you will spend on fuel to reach your destination.

For example, for a 400-mile trip in a car that achieves 25 MPG, you would need 16 gallons of fuel (400 miles / 25 MPG). If the price of gas is known, multiplying it by 16 gives you the total estimated fuel cost. Online fuel cost calculators automate this process, often allowing you to input your start and end points to determine distance automatically.

Factors That Affect Your Vehicle's Fuel Economy

A vehicle's actual fuel economy is influenced by a combination of driving habits, vehicle condition, and environmental factors. The MPG rating provided by manufacturers is an estimate based on standardized testing conditions and often differs from real-world performance. Understanding these variables can help you improve your gas mileage.

The table below outlines the primary factors that impact fuel consumption.

Factor CategorySpecific InfluencesImpact on Fuel Economy
Driving StyleAggressive acceleration, hard braking, speedingDecreases MPG significantly
Vehicle MaintenanceLow tire pressure, clogged air filters, old spark plugsDecreases MPG
Vehicle LoadCarrying excess weight, using roof racks or cargo boxesDecreases MPG due to added weight and drag
EnvironmentalCold weather, strong headwinds, driving on hilly terrainDecreases MPG
Trip TypeFrequent short trips, stop-and-go city trafficDecreases MPG compared to steady highway driving

MPG vs. L/100km: Understanding Fuel Efficiency Metrics

Miles per gallon (MPG) is the standard fuel efficiency metric in the United States and the United Kingdom, while litres per 100 kilometres (L/100km) is the common standard in Canada, Australia, and mainland Europe. MPG measures the distance a vehicle can travel on one gallon of fuel; a higher MPG value is better. In contrast, L/100km measures the volume of fuel needed to travel 100 kilometres; a lower L/100km value is better.

Because the two metrics have an inverse relationship, converting between them is not a simple multiplication. Online calculators can perform the conversion, or you can use the following standard formulas:

  • To convert L/100km to MPG: 235.21 / (L/100km value) = MPG
  • To convert MPG to L/100km: 235.21 / (MPG value) = L/100km

Frequently Asked Questions

What is a good MPG for a car? A good MPG depends on the vehicle class; for a new non-hybrid passenger car, an MPG rating above 30 is generally considered efficient. SUVs and trucks typically have lower average MPG ratings due to their size and weight, while hybrid and electric vehicles offer significantly higher equivalent fuel economy.

How do you calculate fuel needed per mile? To calculate the fuel needed per mile, you find the inverse of your car"s miles per gallon rating. Simply divide 1 by your vehicle"s MPG (for example, 1 ÷ 25 MPG = 0.04 gallons per mile).

Does using AC use more gas? Yes, using the air conditioning system increases fuel consumption and reduces a vehicle's MPG. The impact is most noticeable in hot weather, during stop-and-go city driving, and in older vehicles, but less pronounced at steady highway speeds.

Is it better to have a full or empty gas tank? Keeping your tank at least one-quarter full is better for the health of your car"s fuel pump, as the gasoline helps cool the pump"s electric motor. While a full tank adds weight that can slightly decrease fuel efficiency, this effect is minimal compared to the risk of damaging the fuel pump by consistently running the tank near empty.