Road Trip Planner
Planning a road trip? Our new calculator helps you estimate fuel costs and visualize your route!
Try it nowMPG Calculator
Free gas mileage calculator. Enter the miles you drove and the gallons you used to get your miles per gallon, cost per mile and fuel cost.
MPG Calculator
Free Fuel Efficiency Calculator with Cost Analysis
-- MPG
Plan your next trip with the Road Trip Cost Calculator
Estimate fuel costs, find hotels, and visualize your route with our interactive road trip planner!
- ✓ Calculate fuel expenses for any vehicle
- ✓ Interactive maps with real routes
- ✓ Estimate total trip costs including tolls
- ✓ Find hotels, attractions and overnight stops along the way

How to calculate miles per gallon
The formula is simple: MPG = miles driven ÷ gallons used. The trick is measuring the gallons honestly, which is why the best way to check your real gas mileage is the full-tank method.
- Fill the tank all the way and reset your trip meter (or write down the odometer reading).
- Drive normally until you need gas again. The more miles, the more accurate the result.
- Fill up again and note how many gallons it took. It's on the pump display and your receipt.
- Divide the miles by the gallons. That's your MPG.
Track a few tanks with the calculator above (Advanced mode adds several trips and your fuel cost) and you'll see your true average, which is usually more useful than any single tank.
Kilometers and liters
Outside the U.S., fuel economy is usually given in liters per 100 km. To convert, divide 235.21 by your MPG (30 MPG is 7.8 L/100km). For kilometers per liter, multiply MPG by 0.425. The calculator above switches units for you.
What is good gas mileage?
Good depends on what you drive. These are the EPA combined averages for 2024 and 2025 models in our vehicle database:
| Vehicle type | Average MPG |
|---|---|
| Hybrid car | 46.5 |
| Midsize sedan | 28.2 |
| Compact car | 27.5 |
| Small SUV / crossover | 25.4 |
| Minivan | 25.3 |
| Large SUV | 19 |
| Full-size pickup | 18.1 |
Want the official rating for your exact car? Look it up in the vehicle MPG checker or compare up to three cars with the fuel economy comparison tool.
What your gas mileage costs you this week
At the U.S. average of $3.64 a gallon for regular gas (EIA, week of November 23, 2026):
| Your MPG | Cost per mile | Cost per 1,000 miles |
|---|---|---|
| 15 MPG | 24.3¢ | $243 |
| 20 MPG | 18.2¢ | $182 |
| 25 MPG | 14.6¢ | $146 |
| 30 MPG | 12.1¢ | $121 |
| 40 MPG | 9.1¢ | $91 |
| 50 MPG | 7.3¢ | $73 |
Prices vary a lot by state. See gas prices by state this week, or get your own weekly cost by email with our gas price alerts.
Why your MPG is lower than the sticker
The EPA rating is measured in a lab under set conditions, so real-world mileage often comes in lower. The usual reasons:
- Highway speed. Most cars use noticeably more fuel above about 50 to 60 mph.
- Hard acceleration and braking. Smooth driving saves the most fuel of anything you can control.
- Cold weather and short trips. A cold engine and a cabin heater both burn extra fuel.
- Extra weight and drag. Roof racks, cargo boxes and a full trunk cost mileage, especially at speed.
- Low tire pressure. Check it monthly against the label inside the driver's door.
Planning a drive?
The Road Trip Cost Calculator works out the gas cost of any route with each state's gas price, plus stops and hotels. Or browse gas costs for 159 popular road trips. Thinking about a more efficient car? The Fuel Savings Calculator shows what a hybrid or EV would save you.
MPG calculator questions
How do I calculate miles per gallon?
Divide the miles you drove by the gallons it took to refill the tank. For example, 312 miles on 11.4 gallons is 312 ÷ 11.4 = 27.4 MPG. Fill the tank completely both times so the gallons match the miles.
How do I work out the gas cost of a trip?
Divide the trip distance by your car's MPG to get gallons, then multiply by the price per gallon. A 300-mile drive in a 30 MPG car uses 10 gallons, about $36.42 at this week's U.S. average of $3.64. Our Road Trip Cost Calculator does this for any route, using gas prices for each state you drive through.
What is good gas mileage?
It depends on the type of vehicle. In our EPA data for 2024 and 2025 models, the average is about 28.2 MPG for a midsize sedan, 25.4 MPG for a small SUV, 18.1 MPG for a full-size pickup and 46.5 MPG for a hybrid car. Beating the average for your class is good.
How do I convert MPG to liters per 100 km?
Divide 235.21 by your MPG. For example, 30 MPG is 235.21 ÷ 30 = 7.8 L/100km. To go the other way, divide 235.21 by the L/100km figure.
What does MPG mean for an electric car?
Electric cars are rated in MPGe, miles per gallon equivalent, where 33.7 kWh of electricity counts as one gallon of gas. What you actually pay depends on your electricity price, which you can check in our EV charging cost calculator. Open the EV charging cost calculator →
Gas price: U.S. Energy Information Administration. Vehicle averages: EPA fuel economy data.
Using this calculator
Simple mode takes one trip: miles and gallons. Advanced mode adds several fill-ups and your fuel price, then shows your average MPG, total cost and cost per mile. Both work in miles and gallons or kilometers and liters, and nothing you enter is stored.