Last updated:
Use this free gas mileage calculator to find how much gas a trip will cost, split the cost between riders, or work out your car’s real miles per gallon. Enter the distance, your MPG and the price of gas, or enter the miles you drove and the gallons you used.
Gas Mileage Calculator examples
1. A one-way trip. 300 miles at 28 MPG with gas at $3.45 a gallon uses 10.71 gallons and costs $36.96, which is about $0.123 a mile.
2. A round trip shared by two. The same trip there and back is 600 miles, 21.43 gallons and $73.93. Split between 2 people that is $36.97 each.
3. Find your MPG. Driving 312 miles on 11.6 gallons is 26.9 MPG, or about 8.7 liters per 100 km. At $3.60 a gallon the fuel cost $41.76.
4. A long road trip. 1,250 miles at 32 MPG with gas at $3.20 uses 39.06 gallons and costs $125.00.
Fuel economy changes with speed, load, weather and traffic. Use your car’s real average MPG for the best estimate.
Quick answer: A 300-mile trip at 28 MPG with gas at $3.45 a gallon uses 10.71 gallons and costs $36.96.
How to Use the Gas Mileage Calculator
For trip fuel cost:
- Enter the distance in miles.
- Enter your car’s fuel economy in MPG.
- Enter the gas price per gallon.
- Choose one way or round trip, and the number of people sharing the cost.
- Press Calculate.
To find your MPG:
- Choose “My car’s gas mileage (MPG)”.
- Enter the miles driven and the gallons you put in to refill.
- Add a gas price if you want the cost per mile.
- Press Calculate.
The Formulas
- Gallons needed = distance / MPG. 300 / 28 = 10.71 gallons.
- Trip cost = gallons x price per gallon. 10.71 x $3.45 = $36.96.
- MPG = miles driven / gallons used. 312 / 11.6 = 26.9 MPG.
- Cost per mile = trip cost / distance. $36.96 / 300 = $0.123.
A round trip doubles the distance. The same trip there and back is 600 miles, 21.43 gallons and $73.93. Split between 2 people, that is $36.97 each.
How to Measure Your Real MPG
The number on a car’s sticker is a lab estimate. Your own result can be better or worse. To measure it:
- Fill the tank completely and reset the trip meter, or note the odometer.
- Drive as you normally do, until the tank is about half empty or lower.
- Fill the tank again to full and note the gallons added.
- Divide the miles by the gallons.
Do this for two or three tanks and take the average. A single tank can be skewed by a long highway drive or a cold week.
Metric Units
Outside the US, fuel economy is often given in liters per 100 kilometers (L/100 km), where a lower number is better, or in kilometers per liter. The calculator shows both. To convert by hand, L/100 km = 235.215 / MPG. 26.9 MPG is about 8.7 L/100 km.
What Changes Your Gas Mileage?
- Speed. Fuel economy usually drops at higher highway speeds.
- Driving style. Hard acceleration and braking use more fuel.
- Weight and drag. Heavy loads, roof racks and open windows hurt economy.
- Tire pressure. Under-inflated tires increase fuel use.
- Weather and short trips. Cold engines and heating or air conditioning use more fuel.
- Maintenance. A well-tuned engine with clean filters runs more efficiently.
Because of these factors, add a margin for a long trip, or use a lower MPG than the rated one.
Planning a Road Trip Budget
Fuel is only part of the cost. For a longer trip, also count tolls, parking, food, lodging and wear on the car. If you share the drive, agree how to split the gas up front. The “people sharing the cost” box divides the fuel cost evenly.
For a 1,250-mile trip at 32 MPG with gas at $3.20 a gallon, the calculator gives 39.06 gallons and $125.00 in fuel. Gas prices change by state and by week, so check the current price along your route.
Frequently Asked Questions
How do I calculate gas cost for a trip?
Divide the distance by your MPG to get gallons, then multiply by the price per gallon. For 300 miles at 28 MPG and $3.45, that is 10.71 gallons and $36.96.
How do I calculate MPG?
Divide the miles you drove by the gallons you used to refill. 312 miles on 11.6 gallons is 26.9 MPG.
What is a good MPG?
It depends on the type of vehicle. Small cars and hybrids usually do much better than large trucks and SUVs. Compare your car with its official rating at fueleconomy.gov.
How do I convert MPG to L/100 km?
Divide 235.215 by the MPG. 30 MPG is about 7.8 L/100 km.
Why is my real MPG lower than the sticker?
The sticker is a standard test result. Speed, traffic, weather, cargo, tire pressure and driving style all change real-world MPG.
This calculator is for information only. Fuel use and gas prices vary with conditions.
