Fuel Cost Calculator
This fuel cost calculator estimates trip gas cost from distance, MPG, and price per gallon. Toggle round trip to double the distance.
Last updated
How the Fuel Cost Calculator Formula Works
Divide the distance you'll drive by your miles per gallon to get the gallons needed, then multiply by the price per gallon.
cost = (distance * trips / mpg) * pricePerGallon- distancemiOne-way distance of the trip.
- mpgmi/galYour vehicle's fuel economy.
- price$/galCurrent price of fuel per gallon.
- roundTriptoggleDoubles the distance when on.
cost = (distance * trips / mpg) * pricePerGallon- distance
- mi
- One-way distance of the trip.
- mpg
- mi/gal
- Your vehicle's fuel economy.
- price
- $/gal
- Current price of fuel per gallon.
- roundTrip
- —
- Doubles the distance when on.
Using the Fuel Cost Calculator
Enter distance (one way)mi
Type the figure you already have — the result updates as you type.
Enter fuel economymi/gal
Type the figure you already have — the result updates as you type.
Enter gas price$/gal
Type the figure you already have — the result updates as you type.
Enter round trip
Switch this on or off depending on which applies to you. This one is optional.
Read the result
The figure updates live as you type, so there is nothing to submit. Press Calculate if you want the answer brought into view — useful on a phone, where the keyboard covers the result panel.

A Real Worked Example
A 300-mile one-way trip at 30 miles per gallon needs 10 gallons. At $3.50 per gallon, that's $35.00 in fuel.
What Else to Know
Why Your Real MPG Won't Match the Window Sticker
Every new car's fuel economy label carries three numbers: city, highway, and combined. The EPA calculates combined MPG as a weighted average of the city and highway figures, weighting city at 55% and highway at 45%, on the assumption that a typical driver splits their miles roughly that way. Highway MPG usually comes in higher because the engine holds a steady, efficient RPM in top gear on the open road, without the repeated stop-start losses of city driving, where every red light burns fuel spent accelerating up to speed only to throw that energy away braking again.
That's also why the gap between a car's city and highway numbers tells you something real: a vehicle with a small city-to-highway spread tends to hold its efficiency more consistently across driving conditions, while a wide spread means the number you get depends heavily on where you actually drive it. Hybrids often break this pattern entirely, since regenerative braking recovers energy during the stop-and-go that wastes it in a conventional engine, which is why many hybrids rate equal or better in the city than on the highway.
None of this means the sticker number is wrong, only that it's a standardized lab estimate, not a promise. The EPA's own label discloses that actual fuel economy depends on driving habits, vehicle maintenance, accessory use such as air conditioning, weather, road conditions, and how loaded the vehicle is, and that any of these can push real mileage away from the rated figure in either direction.
That's the reason this calculator asks for your own MPG figure rather than assuming the window-sticker number: whatever you've actually been getting, from your dashboard readout or your own gallons-and-odometer tracking, will produce a far more accurate cost estimate than the EPA combined rating alone.
How Driving Habits, Tire Pressure, and Load Change What You Actually Burn
Three things move real-world fuel economy more than almost anything else, and all three are things you control rather than facts about the car itself. Driving style is the biggest lever: the EPA's fueleconomy.gov reports that aggressive driving, meaning speeding, rapid acceleration, and hard braking, can lower gas mileage by roughly 15% to 30% at highway speeds and 10% to 40% in stop-and-go traffic, and that each 5 mph driven over 50 mph functions like paying an extra 29 cents per gallon, with slowing back down typically recovering 7% to 14% in fuel economy.
Tire pressure is a smaller effect but a nearly free one to fix: keeping tires at the recommended pressure improves gas mileage by about 0.6% on average and up to 3% in some cases, while under-inflation costs roughly 0.2% of fuel economy for every 1 psi the average tire pressure drops below spec, a number that adds up quickly if a car has been running low for months without anyone noticing.
Load and cargo matter too, though less dramatically for ordinary trips: an extra 100 pounds in the vehicle can reduce MPG by about 1%, and roof-mounted cargo boxes are worse than people expect, cutting fuel economy by roughly 2% to 8% in city driving, 6% to 17% on the highway, and 10% to 25% at interstate speeds, since a large blunt shape on the roof fights wind resistance the whole trip. A rear-mounted cargo box or hitch tray avoids most of that penalty, costing only about 1% to 2% in the city and 1% to 5% on the highway.
None of these factors change the arithmetic this calculator runs, only the MPG figure you should be entering — if you know your driving tends to run aggressive, your tires run low, or you're loading the car heavily for the trip, entering a lower MPG than the window-sticker number will get you a more honest cost estimate.
Cost Per Mile vs. Total Trip Cost: Which Number to Use
Total trip cost answers one question well: what will this specific drive cost in gas. Divide that total by the distance, though, and you get cost per mile, which answers a different and often more useful question: how expensive is this vehicle to run, independent of any one trip's length. That distinction matters most when you're comparing two vehicles or deciding whether a longer route with cheaper gas actually saves money.
A 45-MPG hybrid and a 15-MPG truck driven the same 300 miles at the same price per gallon will show very different total costs, but cost per mile makes the underlying efficiency gap explicit and comparable across trips of any length, which is why it's the number worth tracking if you're weighing a vehicle purchase or comparing routes rather than just budgeting one drive. It's also worth knowing that fuel is only part of what a mile actually costs to drive.
The IRS publishes a standard mileage rate each year, meant to approximate the full cost of operating a vehicle including gas, depreciation, insurance, and maintenance combined, not fuel alone, and it runs several times higher than a fuel-only cost-per-mile figure — which is expected, since it's answering a broader question than this calculator does. If cost per mile is the number you're after, take the fuel cost this calculator returns and divide by your entered distance; the result is directly comparable across vehicles and trips as long as the gas price you used stays consistent between the comparisons.
Turning One Trip's Cost Into a Weekly, Monthly, or Yearly Number
This calculator answers a single trip's cost, but stretching the same math over a week, a month, or a year answers a different, often more practical question: what fuel actually costs as an ongoing expense rather than a one-off drive. The extension isn't a new formula, just the same one applied to a different distance. Know how many miles you typically drive in a week? Enter that instead of a one-way trip distance, and the result becomes your weekly fuel spend. From there, multiply by roughly 52 for a rough annual figure, or plug in your average monthly mileage directly for a more precise year-end estimate, since mileage rarely repeats identically from one week to the next.
A daily commute is the easiest version of this to get right, since the distance barely changes day to day. A 24-mile round-trip commute in a 30-MPG car at $3.50 a gallon comes to $2.80 a day. Five days a week puts that at $14.00, and a 50-week working year, allowing for holidays and the occasional day worked from home, lands commuting fuel cost at roughly $700 for that one vehicle. Every number here moves with whatever distance, MPG, and price you actually enter; what stays fixed is the arithmetic, which is the same calculation this tool already runs, just repeated at a larger scale.
The one place simple multiplication breaks down is gas price volatility. A number that holds in August won't necessarily hold in December, since fuel prices shift with the season, regional supply, and broader market conditions. For a realistic annual budget, it's usually more useful to run the math with a slightly higher price than today's average, or to re-check it every couple of months against a current average, than to treat one day's price as a year-long constant.
Frequently Asked Questions About the Fuel Cost Calculator
How do I calculate fuel cost for a trip?
To calculate the fuel cost of a trip, divide the total distance by your vehicle's miles per gallon to get the gallons needed, then multiply by the current price per gallon. For a three hundred mile trip in a car that gets thirty miles per gallon at three fifty per gallon, you would need ten gallons costing thirty-five dollars. Toggle round trip to double the distance automatically.
How much gas will my road trip cost?
Enter your one-way distance, your vehicle's real-world MPG, and the current price per gallon into the calculator above, and toggle round trip on if you're driving there and back. The result is your estimated total fuel cost plus the gallons you'll need. For the most accurate figure, use the MPG you've actually been getting rather than the EPA-rated number on the window sticker, since real driving conditions rarely match the lab test exactly.
How do I calculate my car's miles per gallon?
Fill your tank completely and note the odometer reading. Drive normally until the tank is low, then fill up again and record how many gallons it took to refill. Divide the miles driven between fill-ups by the gallons used, and that's your real-world MPG. Doing this over two or three tanks and averaging the results gives a more reliable number than a single fill-up, since driving conditions vary trip to trip.
Why is my real-world MPG different from the EPA rating?
The EPA's combined rating is a lab-tested weighted average, 55% city and 45% highway, meant to represent a typical driver, not your specific driving. The EPA's own label discloses that driving habits, vehicle maintenance, air conditioning use, weather, road conditions, and how loaded the vehicle is can all push actual mileage away from the rated figure in either direction, so a real gap between your dashboard number and the sticker is normal.
Does tire pressure affect gas mileage?
Yes. Under-inflated tires increase rolling resistance, and the EPA's fueleconomy.gov reports that gas mileage drops by roughly 0.2% for every 1 psi the average tire pressure falls below the recommended level. Keeping all four tires properly inflated improves mileage by about 0.6% on average and up to 3% in some cases, which makes a tire gauge one of the cheapest fuel-saving tools available.
How much does speeding affect fuel economy?
Considerably. According to fueleconomy.gov, each 5 mph you drive over 50 mph is roughly equivalent to paying an extra 29 cents per gallon, and aggressive driving overall, meaning speeding plus hard acceleration and braking, can lower gas mileage by 15% to 30% at highway speeds and 10% to 40% in stop-and-go traffic. Slowing down and driving smoothly typically recovers 7% to 14% of that lost fuel economy.
What is cost per mile and why does it matter?
Cost per mile is your total fuel cost divided by the distance driven, and it's the more useful figure when you're comparing vehicles or routes rather than budgeting a single trip. A 300-mile drive costs a fixed dollar amount, but cost per mile stays comparable regardless of trip length, which is why it's the better metric for judging which car is cheaper to run or whether a detour to cheaper gas is actually worth it.
Where can I find the current average gas price?
The U.S. Energy Information Administration (EIA) publishes a weekly national average for regular gasoline based on a nationwide survey of retail stations, and AAA publishes a daily average alongside state-level breakdowns. Both are free and far more current than a fixed number printed in an article, since gas prices shift week to week and vary widely by region and season.
Does round trip double my fuel cost?
Yes, assuming you drive the same route both ways at the same fuel economy and gas price. Toggling round trip on in the calculator above simply doubles the one-way distance you entered before running the math, which mirrors driving there and back. If your return route differs significantly in traffic, terrain, or distance, it's more accurate to run the calculator separately for each leg.
How can I lower my fuel costs on a trip?
The biggest levers are the ones you control directly: drive at a steady speed rather than accelerating hard and braking late, avoid drifting much past 50 to 60 mph on the highway, keep tires properly inflated, and remove roof cargo boxes when not needed, since they can cut highway fuel economy by 6% to 17%. None of these change your car's rated MPG, but they narrow the gap between that rating and what you actually burn.
Is the IRS mileage rate the same as fuel cost?
No. The IRS standard mileage rate is meant to approximate the full cost of operating a vehicle, including depreciation, insurance, and maintenance alongside fuel, which is why it runs several times higher than a fuel-only cost-per-mile figure. It's the right number for reimbursing business driving; it's not a gas-price estimate. This calculator only estimates the fuel portion of a trip's cost.
Does a roof cargo box reduce gas mileage?
Yes, more than most drivers expect. The EPA's fueleconomy.gov reports that a large roof-top cargo box can cut fuel economy by roughly 2% to 8% in city driving, 6% to 17% on the highway, and 10% to 25% at interstate speeds, since its blunt shape fights wind resistance for the entire trip. A rear-mounted cargo box or hitch tray avoids most of that penalty, costing only about 1% to 5%.
How much does a full tank of gas cost?
Multiply your tank's capacity in gallons by the current price per gallon: a 14-gallon tank at $3.50 a gallon costs $49 to fill from empty. This calculator is built around trip distance rather than tank size, but you can approximate the same number by entering your car's real-world range on a full tank as the distance and your actual MPG, which returns a cost close to what a full fill-up runs at that price.
How do I estimate my monthly or yearly fuel costs?
Run the calculator with your typical weekly or monthly mileage instead of a single trip's distance, then scale the result: multiply a weekly figure by roughly 52 for a rough annual number, or use your average monthly mileage directly for a more precise estimate. Because gas prices shift throughout the year, it's worth rechecking the calculation every couple of months against a current average rather than assuming today's price holds for the next twelve.
References
- [1] U.S. Energy Information Administration. “Gasoline and Diesel Fuel Update.” EIA.gov. Accessed 2026-08-23.
- [2] U.S. Environmental Protection Agency. “Learn More About the Gasoline Fuel Economy Label.” FuelEconomy.gov. Accessed 2026-08-23.
- [3] U.S. Environmental Protection Agency. “Driving More Efficiently.” FuelEconomy.gov. Accessed 2026-08-23.
- [4] U.S. Environmental Protection Agency. “Keeping Your Car in Shape.” FuelEconomy.gov. Accessed 2026-08-23.
- [5] Internal Revenue Service. “Standard Mileage Rates.” IRS.gov. Accessed 2026-08-23.
Related calculators
- AP Calculus AB Score CalculatorEstimate your AP Calculus AB score from your MCQ and FRQ points. Uses the real 108-point composite formula and a published historical AP score curve.Open
- Final Grade CalculatorFind the exact score you need on your final exam to hit your target grade. Enter your current grade, goal, and the final's weight for an instant answer.Open
- GPA CalculatorCalculate your semester or cumulative GPA on the standard unweighted 4.0 scale. Add each course's grade and credit hours for an instant weighted average.Open