Gas Mileage Calculator

Enter miles driven and gallons used to find your actual gas mileage in MPG, or plan a trip's fuel use and gasoline cost.

Actual fuel economyHigher MPG means more miles traveled on each US gallon.
Expected trip fuel costGasoline only. Other vehicle and trip expenses are not included.
Trip fuel-cost range, low endCalculated with your High fuel economy value.
Trip fuel-cost range, high endCalculated with your Low fuel economy value.
Expected fuel neededEstimated gasoline for the full entered trip distance.
Trip fuel range, low end
Trip fuel range, high end
Gasoline cost for the measured interval
Gasoline cost per mileThis does not include maintenance, insurance, or other ownership costs.
Metric fuel economy
Fuel used per 100 kilometersLower L/100 km means less fuel used for the same distance.
Did we solve your problem today?


How to use our Gas Mileage Calculator

  1. Choose "Actual gas mileage" for driving you have already completed, or choose "Trip fuel plan" for a future route.
  2. For actual mileage, enter miles from a trip odometer and gallons from the next refill receipt. Measure from one complete fill to the next for the best comparison.
  3. For a trip, enter the full driving distance, expected MPG, and gas price. Include return travel only when it is part of the distance you entered.
  4. Click Calculate. In Trip fuel plan, open Advanced options and enter both low and high MPG values if you want a planning range for gallons and fuel cost.
  5. Check the direction of the result: for the same trip, higher MPG should need fewer gallons, and a higher gas price should increase fuel cost.
Example inputs for Gas Mileage Calculator
Example inputs for Gas Mileage Calculator

Definitions

MPG: Miles per US gallon. Higher MPG means the vehicle travels farther on each gallon.

Fuel economy: How far a vehicle travels for a given amount of fuel. EPA gasoline labels list city, highway, and combined MPG values. [1]

Complete fill: Filling the tank to the same full level at the start and end of a measured driving interval.

Expected fuel economy: The MPG you expect for a planned trip. It can come from a label value, dashboard history, or your measured average.

km/L: Kilometers per liter. Like MPG, a higher value means better fuel economy.

L/100 km: Liters needed to travel 100 kilometers. A lower value means less fuel is used for the same distance.

Gasoline cost per mile: Gasoline spending divided by miles driven. It does not include other vehicle costs.


Fuel needed for a 500-mile tripGallons needed at three fuel-economy levels. Higher MPG means fewer gallons and lower fuel cost for the same trip distance.Fuel needed for a 500-mile tripGallons needed at three fuel-economy levels20 MPG25 US gal25 MPG20 US gal30 MPG16.7 US galFuel economy scenario
Fuel needed for a 500-mile trip
Higher MPG means fewer gallons and lower fuel cost for the same trip distance.

Common mistakes and quick fixes

Mistake: Entering the ending odometer reading as miles driven.
Fix: Check What do you want to calculate? and then recalculate. Subtract the starting odometer reading from the ending reading, or use the trip odometer distance.

Mistake: Using gallons from a partial refill.
Fix: Check What do you want to calculate? and then recalculate. Record miles and gallons from one complete fill to the next complete fill so the fuel amount matches the driving interval.

Mistake: Entering one-way map miles for a trip that includes a return drive.
Fix: Check What do you want to calculate? and then recalculate. Enter the full planned driving distance, including the return route and any expected local driving.

Mistake: Using city, highway, combined, and personal measured MPG as if they are interchangeable.
Fix: Check What do you want to calculate? and then recalculate. Use the MPG that best fits the planned route, or use your own refill-based average. EPA labels show separate city, highway, and combined values. [1]

Mistake: Filling in only low MPG or high MPG for the planning range.
Fix: Check What do you want to calculate? and then recalculate. Enter both values, with low MPG no higher than expected MPG and high MPG no lower than expected MPG.

Mistake: Treating gasoline cost per mile as the full cost of driving.
Fix: Check What do you want to calculate? and then recalculate. This number covers gasoline only. Add tolls, parking, insurance, maintenance, and depreciation separately if they matter for your decision.


Limitations & Key Assumptions / Boundary Conditions

  • Actual MPG is only as accurate as the miles and gallons entered. A partial refill can make the gallons fail to match the driving interval.
  • A single tank may differ from a longer average because of traffic, speed, weather, terrain, cargo, towing, tire condition, and idling.
  • Trip results assume that the entered MPG and gas price apply for the entire distance. Actual MPG and pump prices can change during a trip.
  • The optional low-to-high range uses only the MPG values you enter. It is a planning estimate, not a guaranteed fuel-use or spending range.
  • All input gallons are US gallons. Do not enter Imperial gallons or liters without converting them first.
  • Fuel-cost results include gasoline only. They exclude tolls, parking, maintenance, depreciation, insurance, lodging, food, and other trip expenses.

Methodology

Actual gas mileage

The calculator divides miles driven during a measured refill interval by US gallons used.

MPG = miles driven / gallons used

For example, 300 miles divided by 10 US gallons is 30 MPG. If gas costs $4.071 per US gallon, the 10 gallons cost $40.71. Dividing $40.71 by 300 miles gives $0.1357 per mile before display rounding.

Measured-interval gasoline cost = gallons used * gas price

Gasoline cost per mile = measured-interval gasoline cost / miles driven

Trip fuel plan

For a planned drive, the calculator divides the full trip distance by expected MPG to estimate gallons needed. It then multiplies the estimated gallons by the gas price.

Expected fuel needed = trip distance / expected fuel economy

Expected trip fuel cost = expected fuel needed * gas price

For example, a 500-mile trip at 25 MPG needs 20 US gallons. At $4.071 per US gallon, estimated gasoline cost is $81.42. If you enter both low and high MPG values, high MPG creates the lower gallons and cost endpoint, while low MPG creates the higher endpoint.

Low-end trip gallons = trip distance / high fuel economy

High-end trip gallons = trip distance / low fuel economy

Metric equivalents

The actual MPG result is converted using 1 mile = 1.609344 kilometers and 1 US gallon = 3.785411784 liters.

km/L = MPG * 1.609344 / 3.785411784

L/100 km = 100 / km/L


Sources