How to Calculate Trip Gas Cost
Knowing the gas cost before a road trip helps you budget and decide how to share expenses.
This guide explains the method. To get your number right now, use the Gas Cost Calculator.
The formula
Gallons needed = trip distance ÷ miles per gallon. Trip cost = gallons needed × price per gallon. Cost per mile = trip cost ÷ distance.
Example 1
A 450 mile trip in a car that gets 30 mpg needs 450 ÷ 30 = 15 gallons. With gas at $3.40 a gallon, the cost is 15 × $3.40 = $51.00, or about 11.3 cents a mile. For a round trip, double the distance to get $102.
Example 2
A 600 mile trip in a vehicle that gets 25 mpg needs 24 gallons. At $3.20 a gallon, that is $76.80, or 12.8 cents a mile.
Splitting the cost
Divide the total fuel cost by the number of people. The $51 one-way trip shared by four people is $12.75 each. Many drivers also split tolls and parking, so agree on this before you go.
Find your real mpg
The number on the sticker is an estimate. To find yours, fill the tank, reset the trip meter, drive normally, then fill up again and divide the miles by the gallons you added. Our MPG Calculator does the division, and this guide explains the method.
Prices change along the route
Gas prices can vary by several tens of cents between states and even between nearby stations. If your trip crosses several states, estimate with an average price, or calculate each leg with its own price.
What changes your fuel use
- Higher highway speeds
- Heavy loads and roof racks
- Low tire pressure
- Heavy use of air conditioning
- Hills, stop-and-go traffic and cold weather
- Towing a trailer
Ways to save fuel
Keep tires inflated to the recommended pressure, avoid hard acceleration, use cruise control on highways and remove cargo you do not need. Plan the route to avoid heavy traffic. You can check the fuel economy of many models at fueleconomy.gov.
Driving vs other options
To compare driving with flying or the train, add the gas cost to tolls, parking and wear on the car, then divide by the number of travelers. Driving with several passengers is often cheaper per person than flying.
Calculate your trip
Use our Gas Cost Calculator to enter distance, mpg and gas price and see the total instantly. This is an estimate, and real costs depend on conditions on the road.
Estimating with a mix of highway and city driving
If 60% of your trip is highway at 32 mpg and 40% is city at 24 mpg, your blended fuel economy is not the simple average. Use 1 ÷ (0.6 ÷ 32 + 0.4 ÷ 24) = about 28.2 mpg. Using a blended number gives a more realistic gas estimate.
Example: a daily commute
A commute of 18 miles each way, 5 days a week, is 180 miles a week. At 28 mpg that is about 6.43 gallons. With gas at $3.50 a gallon, the weekly cost is about $22.50, and over 48 working weeks it is about $1,080.
Frequently asked questions
Which mpg should I use, city or highway?
Use highway mpg for long highway trips and combined mpg for mixed driving.
Does the air conditioning use much gas?
It can reduce fuel economy, especially in hot weather and at lower speeds.
What about electric cars?
The same idea works with kWh. Multiply the energy needed by the price per kWh.
Related calculators
- Gas Cost CalculatorFuel needed and cost of a trip
- MPG CalculatorYour car's real miles per gallon
Keep reading
Browse all calculators or all guides.