How to Calculate Gas Cost for a Road Trip

To calculate a road trip's gas cost, divide the trip distance by your vehicle's miles per gallon to find the gallons you will use, then multiply by the price per gallon. A 300-mile trip in a car that gets 25 mpg uses 12 gallons; at $3.50 per gallon that is $42.00, or about $0.14 per mile.

The Two-Step Fuel Cost Formula

Estimating fuel cost takes just two steps. First, work out how many gallons the trip needs by dividing the distance by your fuel economy: gallons = miles ÷ MPG. Second, multiply the gallons by the price per gallon to get the total cost.

For a round trip, double the one-way distance before you start. Cost per mile — the total divided by the distance — is a handy figure for comparing driving against other options or splitting costs on a shared trip.

Use Your Real-World MPG

For an accurate estimate, use your car's real-world fuel economy rather than the EPA sticker number. Highway driving often beats the sticker, while city traffic, towing, roof racks and cold weather fall short. Most trip computers display a recent or lifetime average MPG you can enter directly.

Speed matters too: fuel economy typically drops above about 55–60 mph, so a fast highway pace can noticeably raise the fuel bill on a long drive.

Why MPG Matters More Than Price

Over a long trip, fuel economy has a bigger effect on cost than small changes in pump price. On a 300-mile trip at $3.50 per gallon, improving from 20 to 30 mpg cuts the fuel cost from $52.50 to $35.00 — a third less. The same trip only changes by a few dollars if the gas price moves ten cents.

That is why efficient driving — steady speeds, proper tire pressure, and less idling — pays off most for high-mileage drivers.

Frequently Asked Questions

How do I calculate the gas cost of a trip?

Divide the distance by your MPG to get gallons used, then multiply by the price per gallon. For 300 miles at 25 mpg and $3.50/gal, that is 12 gallons × $3.50 = $42.00.

Should I use city or highway MPG?

Use the figure that matches your trip, or your trip computer's real-world average for the best accuracy. Highway MPG suits long interstate drives; city MPG suits stop-and-go traffic.

How much does higher MPG really save?

A lot over distance. On a 300-mile trip at $3.50/gal, going from 20 to 30 mpg drops the fuel cost by about a third. The savings grow with the miles you drive.

Does this work for electric vehicles?

No — this method is for gasoline. For an EV, calculate cost from your electricity rate (dollars per kWh) and the car's efficiency (miles per kWh) instead.

Looking for a different calculator?

CalculatorPlus has free tools across finance, construction, math, health and more — each one showing the formula and a worked example.