Calculating gas cost for a trip starts with three inputs: how far you’ll drive, how many miles your vehicle travels per gallon, and what you expect to pay for fuel. Divide the distance by the vehicle’s fuel economy to estimate gallons needed, then multiply by the price per gallon. For a useful budget, include the return journey, driving at your destination, and any likely detours. Use a realistic fuel-economy figure rather than assuming ideal conditions, and treat the fuel price as an estimate that may change along the route.
The basic calculation is simple once the inputs are in the same units:
Estimated gas cost = total distance ÷ fuel economy × fuel price
For example, suppose a hypothetical trip covers 600 miles, the vehicle averages 30 miles per U.S. gallon, and fuel is budgeted at $3.50 per gallon. The estimate is 600 ÷ 30 = 20 gallons, then 20 × $3.50 = $70. These figures are for demonstrating the math, not a quote for current fuel prices or a forecast for a particular route.
For a vehicle whose consumption is measured in litres per 100 kilometres, use a different calculation:
Estimated cost = distance in kilometres × litres per 100 kilometres ÷ 100 × price per litre
For instance, if a hypothetical car uses 7 litres per 100 kilometres over a 500-kilometre drive, it would use about 35 litres. Multiply that amount by the expected price per litre to estimate the cost. Don’t mix U.S. miles per gallon with imperial gallons or metric distances; the units must match.
Start with the full itinerary, not just the distance between your starting point and destination. A route planner’s one-way mileage can be a helpful starting point, but it won’t include the return drive unless you add it. If you’re visiting several places, add the distance for each leg.
Include likely driving after arrival, such as trips between your accommodation, activities, shops, or restaurants. You don’t need to predict every short errand. Instead, estimate a reasonable allowance based on your plans, then revise it if your itinerary changes.
Check what your route estimate includes. Some tools may offer alternate routes or calculate a route that avoids certain roads. Confirm that the selected route matches your plan, especially if you expect to take a scenic detour, avoid toll roads, or stop somewhere along the way. If you already know a stop will add distance, include it rather than treating it as an unexpected expense.

Fuel economy has a direct effect on the result: a vehicle that uses more fuel per mile needs more gallons for the same distance. Your car’s published estimate can provide a starting point, but the figure you see during a road trip may differ from an ideal or combined rating.
If you have recent records from similar driving, use your own average. A previous trip in comparable conditions may be more useful than a headline figure, particularly if your planned drive involves sustained highway travel, traffic, hills, cold weather, or a heavily loaded vehicle. If you don’t have personal records, use the vehicle’s stated fuel-economy information as a planning estimate and leave room for variation.
For a straightforward personal estimate, note the miles driven and gallons used across a normal fill-to-fill period, then divide miles by gallons. For example, if your records show 300 miles driven using 10 gallons, the observed average is 30 miles per gallon. This method reflects that period of driving; it isn’t a guarantee of what the vehicle will achieve on a different route.
Driving conditions, vehicle load, speed, traffic, and route elevation can all affect fuel use. You don’t need to adjust for every factor individually. Use a conservative estimate if the trip differs substantially from your usual driving, and avoid treating a single unusually efficient journey as a dependable average.
Fuel prices can vary by location and change over time, so the price where you start may not represent the whole drive. For a quick estimate, use a reasonable expected price per gallon for the route. If you already know where you plan to refuel, estimate each section separately using the expected price for that section.
For a segmented estimate, calculate the fuel needed on each leg and multiply it by that leg’s expected price:
Trip cost = (leg 1 gallons × leg 1 price) + (leg 2 gallons × leg 2 price) + …
To estimate a leg’s gallons, divide its distance by the vehicle’s expected miles per gallon. This approach is more useful when you have a specific itinerary or expect prices to differ across locations. If you don’t know where you’ll stop, a single estimated price is simpler; just recognize that it is a planning average, not a promise about what you’ll pay.

The following examples use hypothetical inputs to show how the calculation changes. The prices are placeholders, not current market information. Each example assumes a vehicle averaging 30 miles per U.S. gallon.
| Planning scenario | Distance | Fuel price used | Calculation | Estimated gas cost |
|---|---|---|---|---|
| Base example | 600 miles | $3.50 per gallon | 600 ÷ 30 × $3.50 | $70 |
| Extra local driving | 660 miles | $3.50 per gallon | 660 ÷ 30 × $3.50 | $77 |
| Higher assumed fuel price | 600 miles | $3.85 per gallon | 600 ÷ 30 × $3.85 | $77 |
The comparison shows why a small change to the distance or assumed fuel price can change the budget. In the second row, the additional 60 miles represent local driving or a detour. In the third, the route is unchanged but the assumed price is higher. For your own trip, replace every example input with your planned distance, a suitable fuel-economy estimate, and a current estimate for your route.
A calculated figure is a baseline, not a guaranteed bill. You may drive farther than planned, encounter different road conditions, or pay a different price at the pump. To make the budget more useful, decide which uncertainty matters most and test it separately.
You can also round the final budget up to a convenient amount. Rounding makes the figure easier to plan around, but it shouldn’t replace realistic assumptions. If your route or fuel economy is uncertain, revise the inputs first.
The formula estimates the cost of fuel consumed on the drive. It doesn’t necessarily match the amount you spend at individual fuel stops: you might begin with a partly full tank, refuel before leaving, or return with fuel still in the tank. For trip budgeting, estimated consumption is usually the clearer measure of the journey’s fuel cost.
Gas is only one part of a road-trip budget. Tolls, parking, accommodation, meals, and vehicle-related costs are separate expenses, so add them as their own line items rather than folding them into the fuel calculation. If the trip uses a plug-in hybrid, estimate its gasoline use separately from electricity; the basic gas formula covers only the fuel portion.

If you’re sharing the drive’s fuel cost, first agree whether you’re splitting the estimated trip total or reimbursing actual fuel purchases. The two methods can produce different results if the vehicle starts with fuel in the tank or ends the trip with some remaining. A shared estimate is easiest when everyone understands what it covers and whether local driving is included.
Add the outbound and return driving distances, plus any planned stops and local driving. Divide that total by your vehicle’s miles per gallon, then multiply by the expected price per gallon.
Use recent records from similar driving if you have them, since they reflect how your vehicle has been performing. Otherwise, the car’s stated estimate is a reasonable starting point, but allow for differences in route and driving conditions.
No. The trip-cost formula estimates the fuel consumed during the drive, whether it comes from fuel already in the tank or from fuel bought along the way. The amount you purchase during the trip may be different.
Break the drive into legs, estimate the gallons needed for each, and multiply each amount by the expected price for that part of the route. Add the leg costs together. If you don’t know your stops, use one reasonable planning price and treat the total as an estimate.
Yes, but use the metric formula: kilometres driven × litres per 100 kilometres ÷ 100 gives the estimated litres used. Multiply that result by the expected price per litre.

To budget before you leave, total the full driving distance, select a fuel-economy figure that suits your vehicle and route, and multiply the estimated fuel used by a realistic price. Then test a modestly longer drive or higher fuel price if either is uncertain. That gives you a practical estimate of gas cost for the trip and a clear starting point for the rest of your road-trip budget.