Before a road trip, gas is usually the biggest cost you can predict. This calculator turns distance, fuel economy and the price at the pump into gallons, a total and a fair split between the people in the car. It works with miles and MPG, or with kilometers and liters per 100 km if that is how you think about your car.
What you need
- Distance: one-way miles or kilometers from a map app. Tick round trip to double it, or enter the total if you have several stops.
- Fuel economy: MPG, or L/100 km in metric mode.
- Gas price: the price per gallon where you will fill up. Prices vary a lot between states and between a highway exit and a town a few miles away.
- People: everyone splitting the gas money.
Example: a weekend trip
Two friends drive 300 miles each way in a car rated at 28 MPG on the highway, with regular at $3.10 a gallon. The round trip is 600 miles, which takes 21.43 gallons. The total is $66.43, or $33.21 each, and every mile costs 11.1 cents.
Now take a car that only gets 22 MPG on the same trip: it needs 27.27 gallons and costs $84.55, or $42.27 each. Fuel economy matters as much as the gas price.
Getting a realistic MPG
The window-sticker number comes from standardized lab tests, and real driving often comes in lower. The US Department of Energy notes on fueleconomy.gov that gas mileage usually drops quickly above 50 mph, and that aggressive driving with hard acceleration and braking can cut highway mileage by roughly 15 % to 30 %. Slowing down by 5 to 10 mph can improve fuel economy by about 7 % to 14 %.
Other things that lower MPG on a trip:
- A full car and a loaded trunk, or a roof cargo box.
- Towing a trailer or carrying bikes on the back.
- Mountain roads and strong headwinds.
- Running the air conditioning in hot weather.
- Underinflated tires.
If you know your car’s real average from past trips, use that. Otherwise, take the highway rating and knock 10 % off for a safer estimate. A quick way to measure it yourself: fill the tank, reset the trip meter, and at the next fill-up divide the miles driven by the gallons you put in.
Metric mode
Choose kilometers and L/100 km if your car shows consumption in liters, as cars from Mexico, Canada or Europe do. Lower is better in L/100 km: 6 is very efficient, 12 is a large SUV. The calculator multiplies kilometers by the consumption to get liters, then converts to US gallons (1 gallon is exactly 3.785411784 liters) so you can use the price on the pump. A 500 km drive at 8 L/100 km uses 40 liters, which is 10.57 gallons and $32.76 at $3.10. If you want a rough MPG instead, 235.2 divided by L/100 km gives miles per gallon.
What gas money doesn’t cover
The result is gas only. A trip also costs tolls, parking, wear on tires and brakes, oil changes and depreciation. That is why the IRS business mileage rate, 72.5 cents a mile for the first half of 2026, is several times the gas cost per mile: it covers the full cost of owning and running a car. If you drive for work, see the mileage deduction calculator instead.
Tips to spend less
- Fill up before you get on the interstate; stations right off highway exits often charge more.
- Use cruise control on flat highways and keep a steady speed.
- Check tire pressure before you leave, using the number on the driver’s door sticker.
- Take the most efficient car if your group has a choice: on 600 miles, 28 MPG instead of 22 MPG saves $18.12 at $3.10 a gallon.