Plan any road trip in seconds. Enter your trip distance, your vehicle's fuel efficiency (MPG) and the fuel price per gallon, and this free fuel cost calculator works out exactly how many gallons you'll need, what the trip will cost, and what you pay per mile. Switch between one-way and round-trip, and compare your car with a second vehicle or an EV to see which is cheaper for the journey.
Current as of November 2026. The default fuel price is the AAA national average for regular gasoline: $4.01 per gallon as of November 9, 2026 (AAA, gasprices.aaa.com). Prices vary by state and station and change daily, so always edit the price to match your local pump price before you rely on the result.
Enter a second vehicle's MPG and fuel price above to see which one is cheaper for this trip.
Trip: 300 miles • Fuel efficiency: 30 MPG • Fuel price: $3.50 per gallon (one-way)
Gallons needed = 300 miles ÷ 30 MPG = 10 gallons
Total fuel cost = 10 gallons × $3.50 = $35.00
Cost per mile = $35.00 ÷ 300 miles = $0.117 per mile (about 12 cents a mile)
Try it yourself: set the sliders to 300 miles, 30 MPG and $3.50 per gallon and the calculator will show the same $35.00 result.
This calculator uses three simple formulas. First, it divides your trip distance by your vehicle's miles per gallon (MPG) to find the gallons of fuel needed. Then it multiplies those gallons by the fuel price per gallon to get your total fuel cost. Finally, it divides the total cost by the distance to give your cost per mile. Choose "Round trip" and the distance is doubled before the same maths runs. The comparison box repeats the calculation for a second vehicle or an EV (using its MPGe and charging cost) and shows how much you would save or spend extra on the same trip.
Formulas: Gallons = Distance ÷ MPG • Total cost = Gallons × Price per gallon • Cost per mile = Total cost ÷ Distance
Disclaimer: Results are estimates only. Fuel prices change daily and vary by location, and real-world fuel economy depends on driving conditions, vehicle condition and load. This tool is for planning purposes and is not financial advice.