Gas Mileage Calculator
Calculate your vehicle’s gas mileage, MPG, fuel economy, and cost per mile in seconds using your actual odometer readings and fuel used.
Was this calculator helpful?
Your feedback helps us improve our calculators.
What Is a Gas Mileage Calculator?
A gas mileage calculator measures how efficiently your vehicle uses fuel over a specific distance. Instead of estimating fuel economy from the dashboard display, you can calculate it from the distance you actually traveled and the amount of gas used.
For US units, fuel economy is normally shown in miles per gallon (MPG). MPG tells you how many miles you can travel on one gallon of gas.
For example, if your vehicle gets 30 MPG, it means it can travel approximately 30 miles using one gallon of fuel under the conditions measured.
With metric units, fuel consumption is commonly expressed as liters per 100 kilometers (L/100km) or fuel efficiency as kilometers per liter (km/L).
This calculator supports both measurement systems, making it useful for checking gas mileage, tracking fuel efficiency, and estimating driving costs.
How to Use the Gas Mileage Calculator
The calculator uses your odometer readings and fuel added to determine your vehicle's actual fuel economy.
Step 1: Choose US Units or Metric Units
Select the measurement system you want to use.
US Units uses:
Miles for odometer readings
Gallons for fuel
MPG for the main fuel economy result
Metric Units uses:
Kilometers for odometer readings
Liters for fuel
L/100km for the main fuel economy result
Step 2: Enter the Current Odometer Reading
Enter the mileage or kilometer reading currently displayed on your vehicle's odometer.
For example, enter 12,360 miles if that is your current reading.
Step 3: Enter the Previous Odometer Reading
Enter the odometer reading recorded at your previous fill-up.
The calculator subtracts the previous reading from the current reading to determine how far you traveled.
For example:
12,360−12,000=360 miles
Step 4: Enter the Fuel Added
Enter how much fuel was required to refill your vehicle.
Use gallons when US Units is selected or liters when Metric Units is selected.
For the most meaningful fill-up calculation, record the odometer when filling the tank and compare it with the next fill-up made to the same level, ideally a full tank.
Step 5: Enter the Gas Price (Optional)
Enter the price per gallon or liter if you also want to estimate your fuel spending.
This field is optional, so you can still calculate fuel economy without entering a gas price.
Step 6: Click Calculate
Select Calculate to see your results.
Depending on the selected unit system, the results show:
Fuel economy
Distance traveled
Additional fuel-economy conversion
Total fuel cost
Cost per mile or kilometer
Use Clear when you want to reset the fields and perform another calculation.
How to Calculate Gas Mileage
If you want to know how to calculate gas mileage manually, you need two basic pieces of information:
Distance traveled
Fuel used
For US measurements, divide the number of miles traveled by the gallons of gas used.
Step 1: Calculate Distance Traveled
Subtract the previous odometer reading from the current odometer reading:
Distance Traveled=Current Odometer−Previous Odometer
Step 2: Calculate Miles Per Gallon
The standard MPG formula is:
MPG=Gallons UsedMiles Traveled
This is the basic method used to calculate MPG from a fill-up.
Gas Mileage Example
Suppose your vehicle has the following readings:
Previous odometer: 12,000 miles
Current odometer: 12,360 miles
Fuel added: 15 gallons
First, calculate the distance:
12,360−12,000=360 miles
Then calculate miles per gallon:
MPG=15360
MPG=24
Your vehicle's measured gas mileage is therefore:
24 MPG
In other words, the vehicle traveled an average of 24 miles for each gallon of gas used during that period.
How to Calculate Gas Mileage Using Kilometers and Liters
When Metric Units is selected, the mpg calculator expresses the primary result as liters per 100 kilometers (L/100km).
The formula is:
L/100km=Kilometers TraveledLiters Used×100
For example, suppose you traveled 360 kilometers and used 15 liters of fuel:
L/100km=36015×100
L/100km≈4.17
Your fuel consumption is approximately:
4.17 L/100km
The calculator also provides the equivalent km/L value.
The formula for kilometers per liter is:
km/L=Liters UsedKilometers Traveled
Using the same example:
km/L=15360=24
So the vehicle travels 24 kilometers per liter.
MPG vs. L/100km: What Is the Difference?
MPG and L/100km both describe fuel efficiency, but they work in opposite ways.
With MPG, a higher number generally indicates better fuel efficiency because the vehicle travels farther on each gallon.
With L/100km, a lower number indicates better fuel efficiency because the vehicle uses fewer liters to travel 100 kilometers.
For example, a vehicle getting 35 MPG is more fuel-efficient than one getting 20 MPG when both MPG values use the same gallon definition and test conditions. Similarly, a vehicle using 5 L/100km is more efficient than one using 9 L/100km.
How Many Miles to a Gallon of Gas?
The number of miles you can travel on a gallon of gas depends on your vehicle and driving conditions.
If your calculated fuel economy is 24 MPG, your vehicle traveled about 24 miles per gallon of gas during the measured period.
However, MPG is an average rather than a guarantee that every gallon will take you exactly that far. Real-world gas mileage can change because of traffic, speed, weather, terrain, vehicle load, tire pressure, maintenance, and driving habits.
The best way to understand your own vehicle's real-world fuel economy is to calculate gas mileage over several fill-ups rather than relying on a single measurement.
Why Calculate Your Gas Mileage?
Tracking gas mileage gives you a clearer picture of how your vehicle is performing in everyday driving.
It can help you:
Monitor changes in fuel efficiency over time
Estimate how much fuel your regular driving requires
Calculate your approximate fuel cost per mile or kilometer
Compare fuel consumption under different driving conditions
Understand the effect of driving habits on fuel use
Create more realistic fuel budgets
Notice unusual changes in fuel economy that may warrant further investigation
A sudden MPG change does not automatically mean something is wrong with the vehicle. Weather, traffic, trip length, fuel measurement differences, and other conditions can also affect the result.
When and Where Is a Gas Mileage Calculator Useful?
A gas mileage calculator can be useful whenever you want to understand how much fuel your vehicle actually uses.
Daily commuting: Track the fuel efficiency and approximate fuel cost of regular trips.
Road trips: Review fuel consumption and driving costs over longer distances.
Vehicle comparison: Compare real-world fuel economy between vehicles when the measurements are collected consistently.
Fuel budgeting: Estimate how much each mile or kilometer is costing you in fuel.
Efficiency tracking: Compare results across several fill-ups to identify longer-term changes in fuel consumption.
How to Get a More Accurate Gas Mileage Calculation
Gas mileage calculations are only as reliable as the information you enter. A consistent fill-up method can improve your results.
Fill the Tank Consistently
The amount of fuel added should represent the fuel consumed over the measured distance. One practical method is to fill the tank, record the odometer, drive normally, and then refill to approximately the same level before recording the new odometer reading and gallons added.
Record Odometer Readings Carefully
Even a small data-entry error can affect the MPG calculation, particularly over short distances.
Make sure the current odometer reading is greater than the previous reading.
Measure Across Multiple Fill-Ups
A single tank can be affected by traffic, weather, idling, short trips, or differences in how completely the tank was filled.
Tracking several fill-ups provides a better picture of typical fuel economy.
Keep Your Units Consistent
Do not enter kilometers into fields expecting miles or liters into fields expecting gallons.
Select the appropriate US Units or Metric Units tab before entering your information.
Use Actual Fuel Added
Use the amount shown on the fuel pump or receipt instead of estimating how much fuel you think the vehicle used.
Common Gas Mileage Calculation Mistakes
Mixing Miles and Kilometers
Using kilometers with gallons or miles with liters without the proper conversion can produce misleading results. Choose the correct unit system before calculating.
Reversing the Odometer Readings
The current odometer should be the newer, larger reading. Subtracting them in the wrong order will not represent your actual distance traveled.
Using an Inaccurate Fuel Amount
The MPG calculation depends directly on the amount of fuel used. Estimated fuel quantities can reduce accuracy.
Comparing MPG and L/100km as If They Work the Same Way
Higher MPG means better fuel efficiency, while lower L/100km means better fuel efficiency.
Judging Fuel Economy From One Short Trip
Short measurements can be heavily affected by traffic, idling, cold starts, and other temporary conditions. Longer-term tracking generally provides a more useful picture.
Frequently Asked Questions (FAQs)
How do I calculate gas mileage?
Subtract your previous odometer reading from your current reading to find miles traveled. Then divide the miles traveled by the gallons of fuel used:
MPG=Gallons UsedMiles Traveled
For example, 300 miles traveled using 10 gallons equals 30 MPG.
How do you calculate miles per gallon?
To calculate miles per gallon, divide the distance traveled in miles by the number of gallons used during that distance. If you traveled 400 miles on 16 gallons, your fuel economy is 25 MPG.
What does MPG mean?
MPG stands for miles per gallon. It measures how many miles a vehicle travels for each gallon of fuel used.
Is higher MPG better?
Generally, yes. A higher MPG means a vehicle travels farther using the same amount of fuel. When comparing L/100km instead, a lower value indicates lower fuel consumption.
How many miles can I drive on one gallon of gas?
It depends on your vehicle's fuel economy and driving conditions. A vehicle averaging 30 MPG travels about 30 miles per gallon based on that measured average.
How do I calculate fuel cost per mile?
First calculate the total fuel cost, then divide it by the distance traveled:
Cost Per Mile=Miles TraveledTotal Fuel Cost
For example, $60 of fuel used over 400 miles equals $0.15 per mile.
Why does my gas mileage change?
Fuel economy can change due to driving speed, traffic, idling, weather, road conditions, vehicle load, tire pressure, maintenance, and other factors. Normal variation between fill-ups is common.
Can I calculate gas mileage using kilometers and liters?
Yes. Select Metric Units and enter the current odometer and previous odometer in kilometers and fuel added in liters. The mpg calculator returns fuel consumption in L/100km along with an additional km/L conversion.
What is the difference between MPG and L/100km?
MPG measures how far a vehicle travels per gallon of fuel, so a higher value indicates greater fuel efficiency. L/100km measures how much fuel is consumed to travel 100 kilometers, so a lower value indicates greater fuel efficiency.
Conclusion
Knowing how to calculate gas mileage can help you understand your vehicle's real-world fuel efficiency and fuel expenses. The Gas Mileage Calculator simplifies the process by using your current and previous odometer readings with the amount of fuel added to calculate MPG or L/100km automatically.
If you enter the optional gas price, you can also see your estimated total fuel cost and cost per mile or kilometer. Tracking these results over multiple fill-ups can give you a more useful picture of your vehicle's typical fuel consumption.
Helpful Resources
Pro Tips
Keep track of your fuel consumption regularly to monitor changes in your vehicle's efficiency.
Consider factors that can affect gas mileage, such as driving habits, tire pressure, and vehicle maintenance.
Use the calculator to compare the fuel efficiency of different vehicles or to evaluate the impact of modifications on your current vehicle.
Remember that real-world gas mileage can vary based on driving conditions, load, and weather.
Use the calculator to plan fuel costs for trips and to budget for fuel expenses.