How to use the Fuel Cost calculator
- Enter your numbers. Fill in trip distance, fuel economy, gas price per gallon, trip type, split between.
- Read your results. Results update instantly. The headline shows the fuel cost; the breakdown below show the details.
The formula
Fuel cost = gallons × price per gallon
Choose round trip to double the distance. Enter the number of people splitting the cost to see each share.
Getting accurate inputs
- Distance: from your map app’s route.
- MPG: highway trips often get close to the EPA highway rating; city driving, heavy loads, roof boxes, cold weather and high speeds reduce it. FuelEconomy.gov lists ratings for every model since 1984.
- Gas price: use the current local average; prices vary widely by state.
Cost per mile
Fuel cost per mile is price ÷ mpg: at $3.20 a gallon and 30 mpg it’s about 10.7¢ a mile. Total driving cost is higher once you add depreciation, insurance and maintenance; the IRS 2026 business mileage rate covers all of those.
Worked example
With these inputs: trip distance (miles) 250; fuel economy (mpg) 28; gas price per gallon $3.25; trip type One way.
The calculator gives a fuel cost of $29.02 (250 miles). Other results: gallons needed 8.93, cost per mile $0.12, cost per 100 miles $11.61, monthly cost, this trip every weekday $628.72.
What your results mean
This is the cost of fuel only. Tolls, parking and wear on the car are extra.
Tips
- Use your car’s real-world mpg, not just the sticker.
- Fill up before entering high-price areas like airports and highways.
- Check tire pressure: underinflation lowers mpg.
Frequently asked questions
How do I calculate gas cost for a trip?
Divide miles by mpg to get gallons, then multiply by the price per gallon.
What is the gas cost per mile?
Price per gallon divided by mpg, e.g. $3.20 ÷ 30 = about $0.11 per mile.
How much gas does a 300-mile trip use?
At 25 mpg, 12 gallons; at $3.20 a gallon that’s $38.40.
Does driving faster use more gas?
Yes. FuelEconomy.gov notes efficiency usually drops quickly above about 50 mph.
How do I calculate my real mpg?
Fill up, reset the trip meter, drive, refill and divide miles driven by gallons added.
Related calculators
Auto Loan calculator · Auto Lease calculator · Electricity & Solar calculator · Budget (50/30/20) calculator · All home, auto & energy calculators
Sources
More details and reference
Every input explained
What each box means, what kind of value it expects, and the example value the calculator starts with (shown in light gray until you type your own).
- Trip distance: a number; example 250.
- Fuel economy: a number; example 28.
- Gas price per gallon: a dollar amount; example $3.25.
- Trip type: a choice from the list; options: One way, Round trip.
- Split between: a number. Optional; leave it blank if it doesn’t apply.
Sources and review date
Last reviewed October 2026. Figures come from the 2 sources listed above, which we check against each agency’s latest publication. See sources and methodology or report a problem.