Gas Mileage Calculator
Calculate your vehicle's fuel efficiency, cost per mile, and trip and annual fuel costs. Supports both MPG and L/100km.
Fuel Economy
25.0
MPG · Average
Cost / mi
$0.14
per mi
Trip Cost
$140
40.0 gallons
Annual Cost
$1,680
fuel / year
Estimated fuel cost for trips of various lengths at your current efficiency.
What is a Gas Mileage Calculator?
A gas mileage calculator is a tool that measures how efficiently your vehicle uses fuel. It takes the distance you have driven and the amount of fuel you consumed, then calculates your fuel economy — expressed as miles per gallon (MPG) in the United States or liters per 100 kilometers (L/100km) in most other parts of the world. Beyond the raw efficiency number, it translates your mileage into real money: cost per mile, the cost of an upcoming road trip, and your total annual fuel spending.
Knowing your true gas mileage is more useful than relying on the manufacturer's EPA sticker, which is measured under ideal laboratory conditions. Your real-world fuel economy depends on how and where you drive, your vehicle's condition, the weather, and even how much cargo you carry. By calculating your actual MPG over several tanks of fuel, you get an honest picture of your vehicle's performance and your fuel budget.
This calculator is valuable for budgeting, comparing vehicles before a purchase, planning long road trips, tracking whether maintenance has improved efficiency, and identifying when something may be wrong with your car. A sudden drop in MPG is often the first sign of a mechanical issue such as low tire pressure, a clogged air filter, or failing oxygen sensors.
How to Use the Gas Mileage Calculator
Choose Your Units
Select US (miles, gallons, MPG) or metric (kilometers, liters, L/100km) depending on your region.
Enter Distance & Fuel
Input how far you drove and how much fuel you used. For best accuracy, measure between two full tank fill-ups.
Add the Fuel Price
Enter the price you pay per gallon or liter so the calculator can estimate your real costs.
Review Your Results
See your fuel economy, cost per mile, planned trip cost, and projected annual fuel spending instantly.
How Fuel Economy Is Calculated
The core formulas are straightforward, and the calculator adds cost projections on top:
1. Miles Per Gallon (US)
MPG = Miles Driven ÷ Gallons Used
2. Liters per 100 km (Metric)
L/100km = (Liters Used ÷ Kilometers) × 100
3. Cost Per Distance
Cost per Mile = (Fuel Used × Fuel Price) ÷ Distance
4. Trip Cost
Trip Cost = (Trip Distance ÷ MPG) × Fuel Price
Worked example: If you drove 300 miles and used 12 gallons, your fuel economy is 300 ÷ 12 = 25 MPG. At $3.50 per gallon, your cost per mile is (12 × $3.50) ÷ 300 = $0.14/mile, and a 1,000-mile road trip would cost (1,000 ÷ 25) × $3.50 = $140 in fuel.
Example Calculations
Tips to Improve Your Gas Mileage
Keep tires properly inflated
Underinflated tires can lower fuel economy by up to 3%. Check pressure monthly and before long trips.
Drive smoothly
Avoid rapid acceleration and hard braking. Gentle, steady driving can improve MPG by 15-30% on the highway.
Slow down
Fuel economy drops quickly above 50 mph. Every 5 mph over 50 is like paying more per gallon.
Remove excess weight
An extra 100 lbs can cut MPG by about 1%. Clear out cargo and remove roof racks when not in use.
Keep up with maintenance
Clean air filters, fresh oil, and properly working sensors keep your engine running efficiently.
Use cruise control
Maintaining a constant speed on the highway helps avoid the fuel waste of speeding up and slowing down.
Understanding Fuel Economy and Its Real Cost
Fuel economy has a major impact on the total cost of owning a vehicle. Over a typical 12,000-mile year, the difference between a vehicle that gets 20 MPG and one that gets 40 MPG can be more than $1,000 annually at current fuel prices. Across a 5-10 year ownership period, that gap can grow to many thousands of dollars — often more than the price difference between two vehicles you are comparing.
It helps to understand the "MPG illusion." Because MPG is a ratio, improving from 10 to 20 MPG saves far more fuel than improving from 40 to 50 MPG, even though both are a 10-MPG jump. This is why fuel cost per mile and gallons used per year are often more meaningful measures than MPG alone, and why many countries use L/100km, which scales more intuitively with actual consumption.
Tracking your fuel economy over time also serves as a simple diagnostic tool. A gradual decline can indicate worn spark plugs, a dirty air filter, or aging tires, while a sudden drop may point to a failing oxygen sensor, a stuck brake caliper, or a fuel system problem. By calculating your MPG every few tanks, you can catch these issues early — before they become expensive repairs.
| Vehicle Type | Typical MPG | Efficiency Rating |
|---|---|---|
| Hybrid / Compact | 45-55 MPG | Excellent |
| Sedan | 30-40 MPG | Good |
| Crossover / Small SUV | 25-30 MPG | Average |
| Large SUV | 18-22 MPG | Below Average |
| Full-Size Truck | 15-20 MPG | Poor |
Compare official fuel economy ratings at FuelEconomy.gov (the official U.S. government source) and review fuel-saving driving tips from the U.S. Department of Energy.
Frequently Asked Questions
What is a gas mileage calculator?
A gas mileage calculator measures your vehicle’s fuel efficiency by dividing the distance you drove by the amount of fuel you used. In the US this is expressed as miles per gallon (MPG), while many other countries use liters per 100 kilometers (L/100km). It also estimates your fuel cost per mile, per trip, and per year.
How do I calculate my car’s MPG?
Fill your tank completely and reset your trip odometer. Drive normally until you need to refuel, then fill up again and note how many gallons it took and the miles shown on the trip odometer. Divide the miles driven by the gallons added: MPG = miles ÷ gallons. For example, 300 miles on 12 gallons equals 25 MPG.
What is a good MPG for a car?
For modern gasoline cars, 25-30 MPG is average, 30-40 MPG is good, and above 40 MPG is excellent (typically hybrids). Trucks and large SUVs often get 15-20 MPG, while compact and hybrid vehicles can exceed 50 MPG. Electric vehicles are measured in MPGe instead.
How can I convert MPG to L/100km?
Divide 235.215 by your MPG figure to get L/100km. For example, 30 MPG equals 235.215 ÷ 30 = about 7.84 L/100km. Note that with L/100km a lower number means better efficiency, which is the opposite of MPG where higher is better.
Why is my real-world MPG lower than the EPA rating?
EPA ratings are measured under controlled laboratory conditions. Real-world factors like aggressive acceleration, high speeds, cold weather, short trips, heavy cargo, low tire pressure, and running the air conditioner all reduce actual fuel economy. It is normal to see 10-25% lower than the sticker rating.
Does driving style really affect fuel economy?
Yes, significantly. Aggressive driving (rapid acceleration and hard braking) can lower fuel economy by 15-30% at highway speeds and 10-40% in stop-and-go traffic. Smooth acceleration, maintaining steady speeds, using cruise control, and removing excess weight can all noticeably improve your MPG.
Related Calculators
Electricity Cost Calculator
Estimate appliance energy costs
Solar Panel Savings Calculator
Calculate solar savings
Moving Cost Calculator
Estimate moving expenses
Disposable Income Calculator
Find your after-tax income
Savings Rate Calculator
Track your savings rate
Inflation Calculator
See how prices change over time