To calculate gas for a trip, estimate how far you’ll drive, divide that distance by your vehicle’s fuel economy, and multiply the fuel needed by an expected pump price. The result is a planning estimate, not a guaranteed bill: traffic, detours, the load in your car and changing fuel prices can all affect the total. Start with the full route, including the return journey and likely local driving, then use a realistic fuel-economy figure and a price that reflects where you expect to fill up. These steps give you a more useful road-trip budget and make it easier to compare driving with other travel options.
For a vehicle rated in miles per gallon, use this formula:
Fuel needed in gallons = trip distance in miles ÷ miles per gallon
Then calculate the cost:
Estimated fuel cost = gallons needed × price per gallon
For example, suppose your planned trip covers 600 miles, your vehicle averages 30 miles per gallon, and you use an estimated price of $3.50 per gallon. The calculation is 600 ÷ 30 = 20 gallons, then 20 × $3.50 = $70. These figures are for illustration only; use your own route, vehicle and price estimate.
For a vehicle whose fuel economy is given in litres per 100 kilometres, use a different formula:
Fuel needed in litres = distance in kilometres × litres per 100 kilometres ÷ 100
For instance, an 800-kilometre trip in a vehicle using 8 litres per 100 kilometres would require about 64 litres. At an assumed price of $1.80 per litre, the estimated cost would be $115.20. Keep the units consistent: don’t combine miles with kilometres, or a fuel price per litre with a fuel quantity in gallons.
Also check which gallon a fuel-economy figure uses. If you’re working with miles per gallon, pair it with a price per gallon using the same gallon standard. When your distance, efficiency and pump-price units don’t match, convert them before calculating.

For a quick check, write down the three inputs before using a fuel-cost calculator: total distance, fuel economy and estimated price per unit of fuel. A calculator can handle the arithmetic, but it can’t make an incomplete route or an unrealistic efficiency figure accurate.
The table below uses a 600-mile trip and illustrative prices. Each row changes one assumption from the base estimate, so you can see which inputs may shift your budget. The example prices are not a forecast for any particular route.
| Scenario | Distance | Fuel economy | Price | Estimated cost |
|---|---|---|---|---|
| Base estimate | 600 miles | 30 mpg | $3.50 per gallon | $70 |
| More driving | 660 miles | 30 mpg | $3.50 per gallon | $77 |
| Lower fuel economy | 600 miles | 25 mpg | $3.50 per gallon | $84 |
| Higher fuel price | 600 miles | 30 mpg | $4.00 per gallon | $80 |
The distance increase in the table is an example, not a recommended allowance for every trip. If your plan includes several stops or an uncertain return route, estimate those miles directly. A lower fuel-economy figure or higher price can also change the total, so test those assumptions when you need a more cautious budget.
Route planners are useful for estimating road distance, but the displayed route may not include all your driving. Add the return journey, planned detours and likely local trips. If your itinerary is still taking shape, estimate the main route separately from optional activities; that makes it easier to update the total when plans change.
Check whether the route distance already includes a loop or a return leg. Accidentally counting the return twice can inflate your estimate, while calculating only the outbound leg can leave a large gap in the budget. Keep a short list of route segments and add them once.
Your vehicle’s published fuel-economy figure can provide a starting point, but actual use depends on the vehicle, route and driving conditions. If you have tracked fuel use on similar journeys, that experience may be more useful than relying on a single headline figure. For a rental car, the exact model or engine may not be confirmed when you book, so use an estimate that leaves room for that uncertainty.
Fuel use can change with stop-and-go traffic, steep roads, speed, weather, cargo and the number of passengers. A heavily loaded car or a route with frequent slowdowns may not match your usual open-road average. If the conditions are likely to differ substantially from your normal driving, avoid treating your best observed economy as a guarantee.

Prices can vary between places and change over time. For a broad trip estimate, use a reasonable planning price for the areas where you expect to buy fuel. If the route passes through locations with noticeably different prices, divide it into sections and estimate the fuel cost for each one rather than assuming every fill-up will match the price at home.
For a more detailed estimate, calculate the expected fuel used in each section and multiply it by the price you’re using for that section. Add the section costs together. That approach is more useful when the route is long or when you already know that you’ll be buying fuel in different areas; otherwise, one blended price is usually simpler for budgeting.
A single result is useful for comparing plans, but it shouldn’t be mistaken for the exact amount you’ll spend. Instead of adding an arbitrary percentage, identify what could change: extra driving, lower fuel economy, a higher pump price, or a combination. Then calculate a second, more cautious scenario using assumptions that make sense for your itinerary.
For example, you could compare the planned distance with a version that includes specific expected detours, then test a lower fuel-economy figure if you anticipate heavy traffic or a full car. This produces a range based on understandable reasons rather than a buffer chosen without reference to the trip.
Don’t confuse the fuel estimate with the full cost of driving. Tolls, parking, rental charges and other trip expenses belong in the wider travel budget, but they aren’t part of the fuel formula. Listing them separately helps you compare a road trip with a flight or another transport option on a like-for-like basis.
Fuel cost can help answer whether driving fits your budget, but it’s only one part of the comparison. For a rental, include the rental charge and any other costs that apply to your booking. For a personal vehicle, include road-related expenses you expect to pay, such as tolls and parking. Compare options for the same destinations and dates, and consider how many people are travelling.

If several travellers plan to share fuel costs, divide the estimated total by the number of people only if that reflects your actual arrangement. The per-person figure may help compare transport options, but it doesn’t include other car costs. A route that looks inexpensive on fuel alone may be less attractive once those costs are added.
You can also use the estimate to judge whether a fuel stop detour is worthwhile. Calculate the expected savings as the gallons you plan to buy multiplied by the price difference per gallon. Then estimate the detour’s fuel cost by dividing its added miles by your vehicle’s miles per gallon and multiplying by the expected fuel price. If the detour fuel cost is greater than the fuel-price savings, the cheaper stop may not reduce your spending, before accounting for the extra time.
Yes, if you plan to drive home on the same trip. Include both directions, plus any local driving or detours that you expect to make. If your itinerary is one-way, use only the distance you’ll actually drive.
You can use it as a starting point, but your trip may not match the conditions behind the published estimate. If you know your vehicle’s typical fuel economy on comparable journeys, use that as a practical reference. For an unfamiliar or rental vehicle, treat the result as an estimate rather than a promise.
For a simple budget, use a blended price that reasonably represents where you expect to refuel. For a more detailed calculation, split the route into sections, estimate fuel use and price for each, then add the section costs together.
Use a published estimate for the vehicle as an initial input, or choose a reasonable figure based on similar vehicles and the kind of driving planned. If the exact vehicle is unknown, calculate more than one scenario rather than relying on a precise-looking single answer.
The basic calculation estimates fuel from distance, fuel economy and price. Tolls, parking and rental costs are separate expenses, so add them independently when working out the total cost of a road trip.

To calculate gas for a trip, use the full driving distance, a realistic fuel-economy figure and an expected price per unit of fuel. Check the units, account for likely extra driving and test a cautious scenario if your plans are uncertain. You’ll have a clearer fuel budget and a better basis for comparing travel options before you set off.