Updated on April 19th, 2026

Gas Mileage Calculator

Created By Jehan Wadia

miles
miles
gallons
/gal

Results
24.00 MPG
Average
24.00
MPG
L/100km
360
miles driven
$0.125
per mile
$45.00
Total Fuel Cost
Route Stops
A Start
B Destination
Segment Distances

Enter approximate driving distance for each segment:

A → B: miles

Route map preview
Distances are entered manually for each segment

Vehicle & Fuel Details
MPG
/gal
gal

Trip Summary
225
total miles
9.00
gallons needed
$27.00
Total Fuel Cost
$0.120
cost per mile
0.64
tank fills needed
Segment Breakdown
Segment Distance (mi) Fuel (gal) Cost
A → B 225 9.00 $27.00
Total 225 9.00 $27.00

Introduction

The Gas Mileage Calculator helps you figure out how many miles your car gets per gallon of gas. Just enter how far you drove and how much gas you used, and the calculator does the math for you. Knowing your gas mileage is important because it tells you how well your car uses fuel. A higher number means your car is more efficient and you spend less money at the pump. Whether you drive a truck, sedan, or SUV, tracking your gas mileage can help you save money and spot problems with your car early. If your mileage drops, it could mean your engine needs a tune-up or your tires need air. Use this simple tool to stay on top of your fuel costs and keep your car running its best.

How to Use Our Gas Mileage Calculator

Enter your driving distance and fuel details to find out your car's gas mileage, fuel cost, and efficiency rating. This tool has two modes: a Quick Calculator for simple mileage checks and a Trip Planner for estimating fuel costs on longer drives.

Quick Calculator

Unit System: Pick the unit system that works for you. Choose US (miles per gallon), Metric (kilometers per liter), or UK (miles per imperial gallon). The calculator will update all labels and default values to match your choice.

Distance Mode: Use the toggle switch to choose how you want to enter your distance. You can either type in your previous and current odometer readings, or enter the total distance you drove directly.

Previous Odometer Reading: If using odometer mode, type the number shown on your odometer before your trip started. This must be a positive number.

Current Odometer Reading: If using odometer mode, type the number shown on your odometer at the end of your trip. This number must be higher than your previous reading.

Distance Driven: If you toggled on direct distance mode, type the total number of miles or kilometers you drove.

Fuel Added to Tank: Enter the amount of fuel you put into your car in gallons, liters, or imperial gallons, depending on your chosen unit system.

Fuel Price (optional): Type the price you paid per gallon or liter of fuel. Pick your currency from the dropdown menu. If you fill this in, the calculator will show your total fuel cost and cost per mile or kilometer.

Click Calculate Mileage to see your results. You will get your fuel efficiency (like MPG or km/L), a color-coded rating from Excellent to Poor, the total distance driven, cost per mile or kilometer, and your total fuel cost. A gauge at the top gives you a quick visual of how your car is doing.

Trip Planner

Unit System: Just like the Quick Calculator, pick US, Metric, or UK units for your trip planning.

Route Stops: Enter your starting point and destination. You can also click Add Stop to include extra stops along your route, up to 10 total. Remove any extra stop by clicking the X button on its card.

Segment Distances: For each leg of your trip (like A to B, B to C), type in the driving distance. This lets you plan multi-stop routes with different distances between each stop.

Fuel Efficiency: Enter your car's fuel efficiency in MPG, km/L, or miles per imperial gallon. You can find this number in your car's owner manual or from a previous calculation using the Quick Calculator.

Fuel Price: Type the price per gallon or liter you expect to pay for fuel on your trip. Choose your currency from the dropdown.

Tank Size (optional): Enter the size of your car's fuel tank. If you provide this, the calculator will tell you how many full tank fills you will need for the entire trip.

Click Calculate Trip Cost to see your trip summary. You will get the total distance, total fuel needed, total fuel cost, cost per mile or kilometer, and the number of tank fills required. A segment breakdown table and chart show the distance, fuel, and cost for each leg of your trip.

What Is Gas Mileage?

Gas mileage tells you how far your car can travel on a set amount of fuel. In the United States, it is measured in miles per gallon (MPG). A higher MPG number means your car uses less fuel to go the same distance, which saves you money at the pump. In other countries, fuel efficiency is measured in kilometers per liter (km/L) or liters per 100 kilometers (L/100km).

How Is Gas Mileage Calculated?

The basic formula is simple: divide the distance you drove by the amount of fuel you used. For example, if you drove 360 miles and used 15 gallons of gas, your gas mileage is 360 ÷ 15 = 24 MPG. You can find the distance by subtracting your previous odometer reading from your current one, or by entering the distance directly if you already know it.

What Is Good Gas Mileage?

Gas mileage ratings vary a lot depending on the type of vehicle you drive:

Factors That Affect Your Gas Mileage

Several things can make your car use more or less fuel:

How to Improve Your Gas Mileage

You can take a few easy steps to get more miles out of every gallon:

Why Tracking Gas Mileage Matters

Keeping an eye on your gas mileage over time helps you spot problems early. If your MPG suddenly drops, it could be a sign that something is wrong with your car, like a failing oxygen sensor, a clogged fuel injector, or a tire losing air. Tracking your fuel usage also makes it easier to budget for gas, especially on long road trips where fuel is one of the biggest expenses. If you're financing your vehicle, an Auto Loan Calculator can help you understand your total car ownership costs alongside fuel expenses. Knowing your cost per mile helps you compare driving costs to other options like flying or taking a train. You can also check your car's horsepower to better understand the relationship between engine power and fuel consumption, and use a Tint Calculator if you're considering window tinting to help reduce air conditioner use and improve efficiency in hot climates.


Frequently Asked Questions

What is the difference between the Quick Calculator and the Trip Planner?

The Quick Calculator figures out your car's gas mileage based on one fill-up. You enter the distance you drove and how much fuel you used, and it gives you your MPG or km/L. The Trip Planner is for planning a drive before you take it. You enter your route stops, your car's fuel efficiency, and the gas price, and it tells you how much fuel and money the whole trip will cost.

How do I switch between miles and kilometers?

Use the unit toggle buttons at the top of the calculator. Pick US (mi/gal) for miles and gallons, Metric (km/L) for kilometers and liters, or UK (mi/imp.gal) for miles and imperial gallons. All the labels and default values will update automatically.

Should I use odometer readings or enter the distance directly?

Either way works. If you wrote down your odometer before and after a fill-up, use those readings. If you already know how far you drove, flip the toggle switch to enter the distance directly. Both methods give you the same result.

Do I need to enter a fuel price?

No, the fuel price field is optional. If you leave it blank, the calculator will still show your gas mileage and efficiency rating. But if you enter a price, you will also see your total fuel cost and cost per mile or kilometer.

How does the efficiency rating work?

The calculator converts your result to a US MPG equivalent and rates it on a scale. Excellent is 40+ MPG, Good is 30–39 MPG, Average is 22–29 MPG, Below Average is 15–21 MPG, and Poor is below 15 MPG. A color-coded badge and gauge show your rating at a glance.

What does L/100km mean and when does it show up?

L/100km stands for liters per 100 kilometers. It tells you how many liters of fuel your car uses to travel 100 km. A lower number is better. This result only shows up when you pick the Metric unit system.

How many stops can I add in the Trip Planner?

You can add up to 10 stops total, including your starting point and final destination. Click the Add Stop button to insert a new stop between your start and end points. Remove any extra stop by clicking the X on its card.

What does the tank fills needed number mean?

This number tells you how many full tanks of gas you will need for your entire trip. For example, if it says 1.50, you will need about one and a half full tanks. This only shows up if you enter your car's tank size in the Trip Planner.

How do I find my car's fuel efficiency for the Trip Planner?

Check your car's owner manual or the sticker on the driver's side door. You can also use the Quick Calculator tab to figure it out from a recent fill-up. Enter your distance and fuel used, and the MPG or km/L result is your fuel efficiency number.

Why did my results disappear or show an error?

The calculator checks your inputs in real time. If a number is missing, negative, or doesn't make sense (like a current odometer reading lower than the previous one), a red error message appears below that field. Fix the issue and the error will go away.

Can I use this calculator for a diesel vehicle?

Yes. The calculator works for any vehicle that uses liquid fuel, including diesel cars and trucks. Just enter the diesel you pumped as your fuel amount and the diesel price as your fuel price. The math is the same.

What currencies does the calculator support?

You can choose from five currency symbols: $ (US Dollar), € (Euro), £ (British Pound), C$ (Canadian Dollar), and A$ (Australian Dollar). Pick yours from the dropdown next to the fuel price field.

Does the Reset button erase everything?

Yes. Clicking Reset puts all fields back to their original default values and switches the unit system back to US. In the Trip Planner, it also resets your route to the default two-stop example.

How accurate is this gas mileage calculator?

The calculator is very accurate for the numbers you give it. The result depends on how precisely you measure your distance and fuel. For the best accuracy, fill your tank completely each time, record the exact gallons or liters pumped, and note your odometer reading before and after.

Can I calculate gas mileage for a motorcycle or RV?

Yes. This calculator works for any vehicle, including motorcycles, RVs, boats, or anything else that burns fuel. Just enter the correct distance and fuel amount, and it will give you the right mileage number.


Related Calculators

Tint Calculator

Visit Tint Calculator

Tire Size Calculator

Visit Tire Size Calculator

Fuel Cost Calculator

Visit Fuel Cost Calculator