A fuel cost calculator tells you what the gas for a trip will actually cost before you turn the key. Enter the distance, your vehicle’s fuel efficiency in miles per gallon, and the local gas price, and you get the total fuel cost, gallons needed, and cost per mile — plus a per-person share if you are splitting the drive with friends.
It is equally useful for one-off road trips and recurring costs: run your daily commute through it to see what driving to work really costs per month, or compare the fuel bill of a 28 MPG sedan against a 19 MPG SUV on the same route.
How Trip Fuel Cost Is Calculated
The calculation takes three inputs and two steps:
Gallons Needed = Distance ÷ MPG Total Fuel Cost = Gallons × Price per Gallon
For a 300-mile trip in a car that gets 28 MPG with gas at $3.20 per gallon: 300 ÷ 28 = 10.71 gallons, and 10.71 × $3.20 = $34.29. Cost per mile is simply total cost divided by distance — about 11.4 cents per mile in this example.
Your car’s window-sticker MPG is a lab estimate; the most accurate figure is your own. Fill the tank, reset the trip odometer, drive normally, and divide miles driven by gallons at the next fill-up. Most modern cars also display a running average MPG on the dash.
How to Improve Your MPG
Small habits meaningfully change fuel consumption:
- Slow down: fuel economy typically drops sharply above 60 mph — every 5 mph over 65 costs roughly 7% in efficiency
- Keep tires inflated to spec: underinflation can cost 0.2% MPG per 1 PSI drop across all tires
- Drive smoothly: aggressive acceleration and hard braking can cut highway MPG by 15%–30%
- Remove roof racks and cargo boxes when unused — aerodynamic drag is a major highway penalty
- Shed excess weight: about 1% MPG per extra 100 lbs in the trunk
- Avoid long idling: idling burns fuel at 0 MPG; restarting uses less gas than idling over about 10 seconds
- Use cruise control on flat highways to hold a steady, efficient speed
Example: A 300-Mile Road Trip, Split Three Ways
Three friends drive 300 miles each way in a sedan averaging 28 MPG, with gas at $3.20 per gallon — near the recent US national average, though state prices commonly range from under $2.80 in the Gulf states to over $4.50 in California.
Round trip distance = 600 miles. Gallons = 600 ÷ 28 = 21.43. Fuel cost = 21.43 × $3.20 = $68.57, or $22.86 per person — cheaper than most single bus tickets for the same route.
The same trip in a 19 MPG SUV costs $101.05 ($33.68 each), and in a 50 MPG hybrid just $38.40 ($12.80 each). Vehicle choice changes this trip’s fuel bill by nearly 3×.
Frequently Asked Questions
How do I calculate the gas cost for a trip?
Divide the trip distance by your car’s MPG to get gallons needed, then multiply by the price per gallon. Example: 250 miles ÷ 25 MPG = 10 gallons; 10 × $3.20 = $32.00. For a round trip, remember to double the distance first.
What is the average cost of gas per mile?
At $3.20 per gallon, a 25 MPG car costs about 12.8 cents per mile in fuel; a 15 MPG truck about 21 cents; a 50 MPG hybrid about 6.4 cents. Note that the IRS standard mileage rate (70 cents per mile for 2025) is much higher because it also covers depreciation, insurance, and maintenance.
How can I find my car’s real MPG?
Fill the tank completely, reset your trip odometer, and drive normally. At the next full fill-up, divide the miles on the trip odometer by the gallons it took to refill. Repeat over two or three tanks for a reliable average. Real-world MPG often runs 10%–20% below the EPA sticker in city driving.
Does driving faster use more gas?
Yes. Aerodynamic drag grows with the square of speed, so fuel economy falls quickly above about 60 mph. The Department of Energy estimates each 5 mph over 65 mph costs roughly 7% in fuel efficiency — on a long trip, cruising at 75 instead of 65 can add 15% or more to your gas bill.
Is it cheaper to drive or fly?
For solo travelers on long routes, flying often wins once you count fuel, meals, and lodging en route. Driving usually wins for groups: a 600-mile round trip at 28 MPG and $3.20/gal costs about $69 in gas total, versus $150–$400 per person to fly. Add wear and tear (roughly 10–15 cents per mile) for a fair comparison.