Calculating gas for a trip starts with three inputs: the distance you expect to drive, your vehicle’s fuel economy, and the price you expect to pay per gallon. Divide miles by miles per gallon (MPG) to estimate gallons used, then multiply by the price per gallon. For a useful budget, include the return journey, likely detours, and driving conditions that could lower your MPG. Gas prices can also vary along the route, so treat the result as an estimate rather than a guaranteed total.
For a U.S. road trip, use this formula:
Estimated gas cost = (total miles ÷ MPG) × price per gallon
For example, suppose your planned trip covers 600 miles, your vehicle averages 30 MPG, and you estimate gas will cost $3.50 per gallon. The trip would use about 20 gallons: 600 ÷ 30 = 20. At $3.50 per gallon, the estimated fuel cost is $70.
The figures in this example are for illustration only, not a current price forecast. The formula estimates fuel consumed along the route. It does not automatically account for road conditions, changes in fuel prices, or miles you haven’t included in your route total.
A route planner’s destination mileage is a starting point, not always the final trip total. Check whether the route figure is one way or round trip, then add any driving you expect to do after arrival. A road trip can involve more than the main highway journey: local errands, sightseeing, and a changed route all add miles.

For example, if your route planner shows a one-way distance, don’t use that number as the full total for a trip that includes a drive home. If you’re unsure how much local driving you’ll do, estimate a reasonable allowance based on your itinerary. It’s better to make that allowance visible in your calculation than to bury it in an unexplained buffer.
MPG is the number of miles a vehicle travels on one gallon of fuel. For a trip estimate, a recent average from your vehicle’s trip computer or fuel records can be more relevant than a general rating, particularly if you know how the vehicle performs on similar drives. If you don’t have a personal figure, use the vehicle’s combined estimate as a starting point.
Your actual MPG may differ from a published estimate. Sustained higher speeds, heavy traffic, hills, cold weather, extra passengers or luggage, and a trailer can all affect fuel use. A vehicle that gets different mileage in city and highway driving may also perform differently on a route with a mixture of both.
If you expect the trip to be more demanding than your usual driving, use a lower MPG figure for budgeting. For instance, if you are choosing between a vehicle’s general rating and a lower average you’ve observed while carrying a full load, the lower figure gives you a more cautious estimate. For a rental, check the likely model or vehicle class when possible; if the exact car is unknown, avoid relying on the most favorable MPG figure.
The price per gallon is the least predictable input in the calculation. Prices can differ between locations and change over time, so a price from your home area may not represent what you’ll pay during the trip. For a more useful estimate, check the route shortly before departure using fuel-price listings or a route-planning tool, and consider where you’ll realistically stop.
If the route crosses areas where you expect prices to differ, estimate fuel cost by leg instead of applying one price to the whole journey. You don’t need to predict the exact station you’ll use. A reasonable price range for each part of the drive is enough to show whether a higher-cost scenario would materially change your budget.
A single figure can make a trip budget look more certain than it is. The examples below show how the estimate changes when the distance, MPG, or assumed price changes. All values are hypothetical; the table is a calculation aid, not a statement of current fuel prices.

| Scenario | Trip distance | Assumed MPG | Price per gallon | Estimated fuel cost |
|---|---|---|---|---|
| Baseline | 600 miles | 30 MPG | $3.50 | $70.00 |
| Lower MPG and higher price | 600 miles | 25 MPG | $3.80 | $91.20 |
| Extra driving, lower MPG, and higher price | 700 miles | 25 MPG | $3.80 | $106.40 |
The baseline uses 600 ÷ 30 = 20 gallons, then multiplies 20 by $3.50. In the last row, the added 100 miles and lower MPG raise the estimated fuel use to 28 gallons. This comparison helps you see whether your budget depends on unusually favorable assumptions. If it does, revise the estimate or set aside more money for fuel.
One average MPG and one average price are usually enough for a straightforward drive. A segment-by-segment calculation is more useful when fuel economy will vary noticeably between parts of the trip, or when the expected price differs across places where you plan to refuel.
For each leg, divide its miles by the MPG you expect under those conditions, then multiply the resulting gallons by that leg’s expected price. Add the leg costs together:
Trip fuel cost = (leg 1 miles ÷ leg 1 MPG × leg 1 price) + (leg 2 miles ÷ leg 2 MPG × leg 2 price) + any additional legs
For example, suppose one hypothetical leg is 240 miles at 30 MPG and $3.40 per gallon. That leg uses about 8 gallons and costs $27.20. A second leg of 360 miles at 24 MPG and $3.80 per gallon uses 15 gallons and costs $57. Together, the estimate is $84.20.
This method is especially helpful if one leg involves slower, stop-and-go driving while another is mostly highway travel, or if your planned refueling areas have different expected prices. If you don’t have enough information to assign separate MPG figures, use one conservative average for the whole route instead of implying more precision than you have.
Write down the assumptions behind your estimate: total miles, MPG, price per gallon, and any extra distance included. That makes it easy to update the calculation if your itinerary changes or you get better information about the vehicle. It also helps you identify which factor is most likely to push the total higher.

Fuel cost is only one part of a road-trip budget. Keep tolls, parking, rental charges, and other transport expenses separate so the gas estimate remains clear. If you’re making a full trip budget, add those costs as their own lines rather than treating them as fuel.
The formula estimates the cost of fuel consumed on the trip. That can differ from the amount you spend at the pump during the journey. For instance, you may fill the tank before leaving or finish the trip with fuel still in it. For budgeting, count the estimated fuel used; for tracking purchases, record the actual fill-ups separately so the two figures aren’t confused.

Divide your total trip miles by your vehicle’s MPG to estimate the gallons needed. Multiply those gallons by the price per gallon you expect to pay. Include return miles and likely extra driving in the total distance.
Use a recent average from your own driving if it reflects the vehicle and conditions you expect on the trip. Otherwise, combined MPG is a practical starting point for a route with mixed driving. Use a more cautious figure if you expect heavy loads, challenging driving conditions, or substantial stop-and-go traffic.
Break the drive into legs, estimate gallons for each leg by dividing its miles by the expected MPG, and multiply by the estimated price for that area. Add the leg costs together. If you don’t know where you’ll refuel, calculate a range using plausible prices instead of relying on a single precise figure.
The formula estimates fuel consumed during the trip, regardless of when you paid for it. A fill-up before departure can supply fuel for the journey, so don’t omit that fuel from the trip budget simply because the purchase happened earlier.
For a vehicle rated in liters per 100 kilometers, divide the trip distance in kilometers by 100, then multiply by the vehicle’s liters-per-100-kilometers figure. Multiply the resulting liters by the expected price per liter. Keep the distance, fuel-economy, and price units consistent throughout the calculation.
To estimate gas for a trip, total the miles you’ll actually drive, choose an MPG figure suited to your vehicle and route, and multiply the gallons needed by an expected per-gallon price. Check your assumptions before departure and update the estimate if the route or vehicle changes. That gives you a practical fuel budget without mistaking an estimate for a fixed cost.