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…
Results
Miles per Gallon
29.17 MPG
How to Use This Calculator
- Enter the Distance Driven in miles for a recent trip.
- Enter the Gallons Used from your fill-up receipt.
- Set the current Gas Price per gallon.
- Optionally enter your Annual Driving miles to see projected monthly and annual fuel costs.
- Review the Miles per Gallon (MPG) result and metric equivalents (L/100km and km/L).
How the result changes with Gallons Used
| Gallons Used | Miles per Gallon |
|---|---|
| 100 | 3.5 MPG |
| 350 | 1 MPG |
| 650 | 0.54 MPG |
| 900 | 0.39 MPG |
What each input means
- Distance Driven
- Distance traveled or between points.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersDistance Driven = 350, Gallons Used = 12, Gas Price = 3.5, Annual Driving = 12000 = 4 input(s) provided
- Calculate Miles per GallonMiles per Gallon29.17 = 29.17
- Calculate Cost per MileCost per Mile0.12 = $0.12
- Calculate Trip Fuel CostTrip Fuel Cost42 = $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.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Road Trip Cost Calculator
Estimate the total cost of a road trip including fuel, hotels, meals, and tolls. Split costs between passengers.
Automotive & MotorcyclesEV vs Gas Cost Comparison
Compare the total cost of owning an electric vehicle vs a gas car. Includes fuel, maintenance, and purchase price over time.
Automotive & MotorcyclesFuel Cost Calculator
Calculate fuel cost for a trip based on distance, fuel price, and fuel efficiency (MPG or L/100km). See cost per mile/km.
Travel & TourismTrip Fuel Cost Calculator
Calculate fuel cost for a trip based on distance, fuel efficiency, and fuel price. Plan your travel budget.
Fleet ManagementFleet Fuel Economy Tracker
Track fleet-wide MPG and fuel costs across all vehicles.
More in Automotive & Motorcycles.