How to calculate gas cost for a road trip
The formula is simple: miles ÷ MPG × price per gallon. Add tolls and parking, then divide by the number of people sharing the ride.
Example: a 300-mile drive each way (600 miles round trip) in a car that averages 28 MPG uses 600 ÷ 28 = 21.4 gallons. At $4.27 a gallon that is $91.50 in gas, or $45.75 each for two people. The default price is the U.S. average for regular gasoline published by the Energy Information Administration (EIA) for the week of October 26, 2026 – prices vary a lot by state, so enter what you see at the pump.
Metric option
Renting a car abroad or using a European spec sheet? Switch to metric: fuel used = km × L/100 km ÷ 100. For reference, 1 US gallon = 3.785 L and 1 mile = 1.609 km; 28 MPG (US) is about 8.4 L/100 km.
Tips for a more accurate estimate
- Use real MPG, not the sticker: roof boxes, a fully loaded car, steady 75+ mph highway speeds, hills and heavy A/C can all lower your mileage.
- Check prices along the route: gas can be noticeably cheaper or pricier across a state line; averaging the prices you expect gives a better total.
- Add a buffer: detours, traffic and looking for parking add miles. Many people add 5–10% to the distance from the map app.
- Splitting fairly: if one person owns the car, some groups also chip in for wear and tear on top of gas – that is a personal agreement, not part of the fuel cost.
Related calculators
For a single tank or a regular route, use the fuel cost calculator; to work out your car's real MPG from a fill-up, use the fuel efficiency calculator; and for the yearly cost of driving to work, see the commute cost calculator.
Frequently Asked Questions
How do I calculate gas cost for a trip?
Divide the total miles by your car's MPG to get gallons, then multiply by the price per gallon. 600 miles ÷ 30 MPG × $4 = $80.
How many gallons of gas will I need for a 500-mile trip?
Divide 500 by your MPG. At 25 MPG you need 20 gallons; at 35 MPG about 14.3 gallons. Remember to double the distance for a round trip.
How do you split gas money between passengers?
The simplest way is to divide the total fuel cost (plus tolls and parking) equally by the number of people in the car. If people join for only part of the trip, split each leg separately.
What is the average gas price in the US right now?
The EIA publishes a weekly U.S. average for regular gasoline. For the week of October 26, 2026 it was $4.269 per gallon. Local prices can be well above or below that.
Is it cheaper to drive or fly?
For two or more people on trips under a few hundred miles, driving is often cheaper on fuel alone, but add tolls, parking, lodging and the value of your time before deciding.