WayAuto Blog
How to calculate gas cost for a road trip
A simple way to work out how much gas a road trip will cost: get the real distance, use your real mpg, add a buffer, and split it fairly. With a worked example.
You've picked the place, found somewhere to stay, and maybe already argued about the playlist. Then someone asks the practical question: how much is gas going to cost? It sounds like it should be easy to answer, but most of us just guess. The guess is usually too low, because it forgets the drive home, the detour to that lookout everyone wanted to see, and the fact that a loaded car on the highway doesn't get the mileage on the sticker.
Here's how I work it out in four steps, with a real example and a fair way to split the cost with friends.
The formula in one line
Every estimate comes down to two steps: how much fuel you'll burn, and what it costs.
gallons needed = trip miles ÷ your mpg
gas cost = gallons needed × price per gallon
Take your total miles and divide by your mpg, then multiply by the price per gallon. The rest of this guide is about putting the right numbers into those two lines.
If you think in kilometers and liters, the idea is the same, just flipped, since L/100 km already tells you fuel per distance:
liters needed = trip km ÷ 100 × your L/100 km
fuel cost = liters needed × price per liter
For metric, divide the kilometers by 100, then multiply by your L/100 km and the price per liter. If your car's rating is in a different unit, the mpg to L/100 km converter will sort it out first.
Step 1: Get the real driving distance on your iPhone
Straight-line distance is useless here. You want the distance along the roads you'll actually drive, and Apple Maps gives you that in a few taps.
- Open the Maps app.
- Type your destination into the search field, or touch and hold a spot on the map.
- Tap Directions. Maps shows one or more driving routes, each with its time and distance.
- If you plan to skip toll roads or highways, tap Avoid below the destination and choose your options, since that can change the distance.
- Write down the distance of the route you'll really take, not just the fastest one.
Add your stops
Maps also lets you add stops to a driving route. Add the hotel, the town where you'll stop for lunch, and the scenic detour, and the total gets much more honest.
Don't forget the way back
This one catches almost everyone. If you're driving home again, double the distance. A 412-mile trip is an 824-mile trip once you come back.
Step 2: Use the mpg your car really gets
The number on the window sticker or in the spec sheet is a lab rating. It's a good starting point, but real road trips tend to land a little below it. A few ways to get a better number:
- Check your trip computer. Most modern cars show average fuel economy on the dashboard. Reset it before a long highway drive and you'll have a real figure for your car.
- Do a fill-up test. Fill the tank, reset the trip meter, drive normally, then fill up again. Divide the miles on the trip meter by the gallons you just put in. That's your real mpg.
- Look up the official rating. If you don't know your car's figures at all, fueleconomy.gov lists EPA ratings by year, make, and model. Use the highway number for a mostly highway trip.
Speed matters more than most people expect. According to fueleconomy.gov, gas mileage usually decreases rapidly at speeds above 50 mph, and each 5 mph you drive over 50 mph is like paying an additional $0.28 per gallon for gas. So if you'll spend hours at 75 mph with a full trunk, knock a little off your mpg.
Step 3: Find the price of gas
For a US trip, AAA publishes a daily national average and state averages at gasprices.aaa.com. As of November 17, 2026, AAA's national average for regular was $3.7818 a gallon, which I'll round to $3.78 for the example below.
Prices change daily and vary between states, so check the states on your route close to when you leave.
Step 4: Add a buffer
Your route in Maps is the plan. Real trips include wrong turns, a drive into town for dinner, looking for parking, and idling in traffic. A buffer of around 10% keeps the estimate from coming up short.
That's my own rule of thumb, not an official figure. Go a little higher if you'll do lots of city driving at the destination.
Worked example: an 824-mile round trip
Say you're driving 412 miles each way for a long weekend, with three people in the car. The car is rated around 30 mpg on the highway, but with luggage and highway speeds you expect closer to 28 mpg. Gas is $3.78 a gallon.
- Total distance: 412 miles × 2 = 824 miles.
- Gallons needed: 824 ÷ 28 = about 29.4 gallons.
- Gas cost: 29.4 gallons × $3.78 = about $111.
- With a 10% buffer: $111 × 1.1 = about $122.
- Split three ways: $122 ÷ 3 = about $41 each.
So instead of a vague "maybe $80?", you have a number you can actually budget around: plan for about $122, or roughly $41 a person.
Here's the same 824-mile trip at $3.78 a gallon for different kinds of cars, before the buffer:
| Fuel economy | Gallons needed | Gas cost |
|---|---|---|
| 20 mpg | 41.2 | $156 |
| 25 mpg | 33.0 | $125 |
| 28 mpg | 29.4 | $111 |
| 30 mpg | 27.5 | $104 |
| 35 mpg | 23.5 | $89 |
| 40 mpg | 20.6 | $78 |
| 50 mpg | 16.5 | $62 |
The gap between 20 and 30 mpg is about $52 on one trip, which matters if you're choosing which car to take. The jump from 40 to 50 mpg saves much less, about $16, for the same 10 mpg. The higher your mpg already is, the less each extra mpg saves. The mpg to L/100 km guide explains why.
How to split gas money fairly
Once you have the total, there are a few common ways to share it:
- Split it evenly. Everyone pays the same share. It's the simplest option and works well when everyone is along for the whole trip.
- Split by distance. If one friend only rides for the first half, they pay for the miles they were in the car. This takes a bit more math but feels fairer on trips with pickups and drop-offs.
- Driver pays less. Some groups let the person whose car it is pay a smaller share, since they're also covering wear and tear on their car.
Whatever you choose, agree on it before you leave.
Check your estimate after the trip
The best way to get better at this is to compare your estimate with what really happened. Your receipts and the trip meter are enough: add up what you paid at the pump, check the miles, and see how close you were.
If you'd rather not keep track by hand, WayAuto, an iPhone app I make, logs your drives in the background, so the distance for every leg is already saved when you get home. It doesn't track fuel or receipts, so it won't do the money side for you. What it does is give you the real miles to put into the formula.
- Open a drive from the trip. Its duration and distance are shown at the top of the drive.
- To jot down what you paid, tap Notes on that drive and type it in, for example "Filled up $48.20, 12.6 gal." Then submit the note.
- For the whole trip, open your License and tap All Drive Stats. The Drive Distance section shows how far you drove, and you can change the Stats period.
Every drive also adds to the map of every road you've driven, which is a nice way to look back at the route. You can read more about how that works in Is there an app that tracks where you've driven? WayAuto is free to use while it's in beta.
If you need detailed fuel logs, cost per mile over months, or receipts for work, a dedicated fuel log app is a better fit than WayAuto. For a road trip budget, though, the real distance plus the formula above gets you most of the way.
Common mistakes
- Forgetting the return trip. It's the most common one, and it cuts your estimate in half.
- Using the sticker mpg. Real highway trips with luggage and speed usually come in lower. Use your trip computer or a fill-up test if you can.
- Using the fastest route instead of the real one. If you're avoiding tolls or adding a scenic road, the distance changes.
- Ignoring driving at the destination. Getting around town, finding food, and parking all add miles that aren't on the route to get there.
- Mixing up US and UK gallons. A UK mpg figure is about 20% higher than a US one for the same car. If your rating comes from a UK review, convert it first with the mpg to L/100 km converter.
- Mixing units. Kilometers with mpg gives you nonsense. Convert everything to one system first. The miles to km converter helps with the distance part.
If you want the bigger picture beyond one trip, How to figure out how many miles you drive a year uses the same kind of math for your whole year of driving.
Questions
How do I calculate gas cost for a road trip?
Divide the total trip miles by your car's mpg to get the gallons you'll need, then multiply by the price per gallon. Remember to include the drive home and add about 10% for detours and driving around at your destination.
How many gallons of gas will I need for a 500-mile trip?
It depends on your car. At 25 mpg you'd need 20 gallons, and at 30 mpg about 16.7 gallons. Divide 500 by your mpg to get your number.
Is it cheaper to drive at 65 or 75 mph?
Usually 65 mph. According to fueleconomy.gov, gas mileage usually drops quickly above 50 mph, and each extra 5 mph over 50 is like paying about $0.28 more per gallon. The exact effect depends on the car.
How do I find my car's real mpg?
Fill the tank, reset the trip meter, and drive as you normally would. At the next fill-up, divide the miles on the trip meter by the gallons you put in. Many cars also show average mpg on the trip computer.
How should friends split gas money on a road trip?
The simplest way is to divide the total gas cost evenly by the number of people. If someone joins for only part of the trip, splitting by the miles each person rode is fairer. Agree on the method before you leave.