Skip to main content
Calcimator

Gas Mileage Calculator

Calculate your fuel economy in MPG, cost per mile, and annual fuel costs. Convert between MPG, L/100km, and km/L.

Fuel economy answers a simple question -- how far does a gallon of gas actually take you -- but the number that matters most in your wallet is what that translates to in dollars. This calculator starts from a trip you already drove: enter the distance covered and the gallons it took to refill the tank, and it computes miles per gallon (MPG) as distance divided by gallons used. From there it derives cost per mile (gas price divided by MPG) and projects that trip-level rate out to monthly and annual fuel spending using your typical annual mileage. It also converts MPG into the two metric fuel-economy conventions used outside the US: liters per 100 kilometers (L/100km), where a LOWER number is better since it measures fuel consumed rather than distance covered, and kilometers per liter (km/L), which like MPG has a higher-is-better convention. Because gas price and annual driving mileage don't factor into the MPG figure itself -- only into cost figures -- entering rough estimates for those two fields won't distort your actual fuel-economy result, only the dollar projections built on top of it.

InputsLoading live data…

miles
gal
$/gal

Results

Miles per Gallon

29.17 MPG

Cost per Mile$0.12
Trip Fuel Cost$42.00
Monthly Fuel Cost$120.00
Annual Fuel Cost$1,440.00
L/100km8.06
km/L12.4
How to Use This Calculator
  1. Enter the Distance Driven in miles for a recent trip.
  2. Enter the Gallons Used from your fill-up receipt.
  3. Set the current Gas Price per gallon.
  4. Optionally enter your Annual Driving miles to see projected monthly and annual fuel costs.
  5. Review the Miles per Gallon (MPG) result and metric equivalents (L/100km and km/L).

How the result changes with Gallons Used

Gallons UsedMiles per Gallon
1003.5 MPG
3501 MPG
6500.54 MPG
9000.39 MPG

What each input means

Distance Driven
Distance traveled or between points.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Distance Driven = 350, Gallons Used = 12, Gas Price = 3.5, Annual Driving = 12000 = 4 input(s) provided
  2. Calculate Miles per Gallon
    Miles per Gallon
    29.17 = 29.17
  3. Calculate Cost per Mile
    Cost per Mile
    0.12 = $0.12
  4. Calculate Trip Fuel Cost
    Trip Fuel Cost
    42 = $42

Engine last updated .

Frequently Asked Questions

Why does raising the gas price change my costs but not my MPG?

Miles per gallon measures the car's own fuel efficiency -- how much distance it gets from a fixed amount of fuel -- which depends only on Distance Driven and Gallons Used, not on what that fuel cost. Gas Price only enters the calculation once you move to dollar figures like Cost per Mile and Trip Fuel Cost; it has zero effect on the MPG number itself.

Does using more gallons on a trip always mean worse fuel economy?

Yes, holding distance fixed -- MPG is distance divided by gallons used, so for the same trip distance, using more gallons directly lowers the calculated MPG. This is the inverse relationship at the core of the calculator: burning more fuel to cover the same ground is definitionally worse mileage, whatever the underlying cause (traffic, terrain, driving style, or a less efficient vehicle).

What does a lower L/100km number mean, compared to a higher MPG number?

They point the same direction in terms of efficiency but read oppositely: MPG is "higher is better" (more miles per gallon), while L/100km is "lower is better" (fewer liters needed to cover 100 kilometers). A fuel-efficient car will show a HIGH MPG figure and a LOW L/100km figure simultaneously -- both describe the same underlying efficiency, just inverted.

How much does my annual driving distance affect projected yearly fuel cost?

Directly and proportionally -- Annual Fuel Cost is calculated from your Annual Driving mileage divided by MPG, then multiplied by Gas Price, so driving more miles per year raises the projected annual cost in direct proportion, holding fuel economy and gas price fixed. Doubling annual mileage roughly doubles the projected annual and monthly fuel cost figures.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Automotive & Motorcycles.