Trip and Commute Fuel Cost Calculator
Estimate the gas cost of a commute or trip from the distance, your highway MPG, the gas price, one-way or round trip, and how much of the driving is in town. The driving-conditions setting turns highway MPG into an effective MPG, which is what sets it apart from a plain distance ÷ MPG calculator.
Last updated: September 2026
Total Fuel Cost
$6.43
Formula below · 2 sources (fueleconomy.gov, eia.gov) · Updated Sep 2026
Compare with similar
About this calculator
Fuel cost is calculated by working out how many gallons a trip needs, then multiplying by the price per gallon. The formula is: Fuel Cost = (distance × tripType) ÷ (fuelEfficiency × conditionsFactor) × gasPrice. Distance is the one-way distance in miles, and tripType is 1 for one way or 2 for a round trip. The Driving Conditions factor turns your rated MPG into an effective MPG: 1.0 for efficient highway driving, 0.85 for mixed city/highway, 0.70 for city only and 0.60 for stop-and-go traffic, so enter your highway MPG and let the factor reduce it. These factors are rough averages: EPA city ratings for conventional cars usually sit around 70–85% of the highway rating, and fueleconomy.gov notes stop-and-go and aggressive driving can cut mileage much further. Hybrids are the exception, often doing as well or better in town, so for a hybrid pick Highway or enter your measured MPG. Dividing miles by effective MPG gives gallons used, and multiplying by the gas price gives the cost of the trip. For a recurring trip, multiply the result by the number of trips.
How to use
Example (the defaults): your commute is 25 miles one way, your car gets 32 mpg on the highway, gas costs $3.50/gallon, you pick Mixed City/Highway (0.85) and Round Trip. Effective MPG = 32 × 0.85 = 27.2. Gallons per round trip = (25 × 2) / 27.2 ≈ 1.838 gallons. Cost per round trip = 1.838 × $3.50 ≈ $6.43, which is what the calculator shows. For five commuting days a week, multiply by 5: about $32.17 a week.
Frequently asked questions
How can I reduce my fuel costs for a daily commute?
The most impactful way to cut fuel costs is to improve fuel efficiency through proper tire inflation, regular maintenance, and smoother driving habits. Carpooling or combining errands into a single trip also reduces total miles driven, directly lowering consumption. Switching to a higher-mpg vehicle or hybrid can cut fuel spending by 30–50% over the same route. Monitoring real-time gas prices with apps like GasBuddy helps you refuel at cheaper stations along your route.
What is a good fuel efficiency rating for a car in miles per gallon?
For most passenger cars, a fuel efficiency of 30 mpg or more is considered good for combined city and highway driving. Compact cars and hybrids often achieve 35–50 mpg, while trucks and large SUVs may only get 15–22 mpg. Electric vehicles are typically measured in MPGe (miles per gallon equivalent), often exceeding 100 MPGe. When comparing vehicles, even a difference of 5 mpg can save hundreds of dollars per year on a daily commute.
How do I calculate fuel cost for a road trip?
To calculate road trip fuel cost, divide the total one-way or round-trip distance by your car's fuel efficiency to get gallons needed. Then multiply gallons by the expected average gas price along your route. For example, a round trip to a town 200 miles away (400 miles in all) in a 28-mpg car at $3.60/gallon costs (400 / 28) × $3.60 ≈ $51.43; here you would enter 200 as the one-way distance, pick Round Trip and Highway. This calculator automates that math and lets you adjust for trip type and driving conditions; for recurring journeys, multiply the result by the number of trips.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.