Road Trip Cost Calculator — work out your gas cost and split it
Free road trip cost calculator. Enter your trip distance, fuel economy and gas price, and see how many gallons of gas you need, the total gas cost, the cost per mile and the cost per person.
Work out your road trip gas cost
Enter your trip distance in miles, your fuel economy in miles per gallon, the gas price per gallon and the number of people splitting the cost. The results update as you type.
This calculator works out the gas cost only. It does not add tolls, food, lodging or any other trip costs.
How the road trip cost is calculated
The calculator uses three steps, in this order.
Gallons of gas needed = trip distance ÷ fuel economy
Total gas cost = gallons of gas needed × gas price per gallon
Cost per person = total gas cost ÷ number of people
Worked example: a 300-mile trip at 30 mpg needs 300 ÷ 30 = 10 gallons of gas. At $3.50 per gallon, the total gas cost is 10 × $3.50 = $35.00. Split between 2 people, the cost per person is $35.00 ÷ 2 = $17.50 each. The cost per mile is $35.00 ÷ 300 = $0.12 per mile.
How fuel economy changes the gas bill
The same 300-mile trip at $3.50 per gallon costs less when your fuel economy is higher, because fewer gallons are needed. Splitting the cost divides the total gas cost by the number of people.
| Fuel economy | Gallons needed | Total gas cost |
|---|---|---|
| 20 mpg | 15 gallons | $52.50 |
| 30 mpg | 10 gallons | $35.00 |
| 40 mpg | 7.5 gallons | $26.25 |
Higher mpg, lower bill
At 20 mpg the 300-mile trip needs 15 gallons and costs $52.50, at 30 mpg it needs 10 gallons and costs $35.00, and at 40 mpg it needs 7.5 gallons and costs $26.25.
Splitting the cost
Splitting the cost divides the total gas cost by the number of people. A $35.00 total split between 2 people is $17.50 per person.
Cost per mile
Cost per mile is the total gas cost divided by the trip distance. For a $35.00 total over 300 miles, the cost per mile is $0.12 per mile.
Road trip cost questions
How does the road trip cost calculator work?
Enter your trip distance in miles, your fuel economy in miles per gallon, the gas price per gallon, and the number of people splitting the cost. The calculator divides the distance by your fuel economy to get the gallons needed, multiplies the gallons by the gas price to get the total gas cost, and divides the total by the number of people to get the cost per person.
How many gallons of gas will I need for my road trip?
Divide your trip distance by your fuel economy: gallons = distance ÷ mpg. For a 300-mile trip at 30 mpg, 300 ÷ 30 = 10 gallons.
How much will gas cost for my road trip?
Multiply the gallons needed by the gas price per gallon: total gas cost = gallons × gas price. For 10 gallons at $3.50 per gallon, 10 × $3.50 = $35.00.
How is the cost per person calculated?
Divide the total gas cost by the number of people splitting the cost: cost per person = total gas cost ÷ people. For a $35.00 total split between 2 people, $35.00 ÷ 2 = $17.50 per person.
What is the cost per mile?
Divide the total gas cost by the trip distance: cost per mile = total gas cost ÷ distance. For a $35.00 total over 300 miles, $35.00 ÷ 300 = $0.12 per mile.
Does this calculator include tolls, food or lodging?
No — this calculator works out the gas cost only. It does not add tolls, food, lodging or any other trip costs.
Does this page store my data?
No — calculations run in your browser only, nothing is uploaded, saved or shared.
Related tools
- Average speed calculator — calculate average speed instantly.
- Speed distance time calculator — find speed, distance or time.
- Car speed test — test a car speedometer with GPS.
- Stopping distance calculator — calculate braking distance.
- Speed converter — convert between MPH, KPH, knots, m/s and more.
- 0-60 mph calculator — calculate 0 to 60 acceleration time.
Ready to see your real speed?
Plan the cost of your trip here, then open the full live GPS speedometer on the homepage for MPH, KPH, knots and m/s, trip distance and average speed.
Open live speedometer