What this calculator does
This fuel cost calculator estimates what a drive costs in gas. Divide the trip distance by your miles per gallon to get gallons, then multiply by the price at the pump. The result is useful for comparing a road trip with a flight, splitting fuel costs among passengers, or deciding whether a longer but cheaper route is worth it. Use your own measured mpg rather than the window-sticker figure for a realistic number.
How to use it
- Enter the one-way trip distance in miles.
- Enter your vehicle's real fuel economy in mpg.
- Enter the price you expect to pay per gallon.
- Review the gallons needed, total cost, and cost per mile.
- Add the return leg, or double the distance, to price the whole trip.
How it works
Example calculations
Example 1: 300 miles at 25 mpg
At $3.50 a gallon, 300 miles at 25 mpg needs 12 gallons and costs $42.00. That is 14 cents per mile, or about $14 for every 100 miles driven.
Example 2: 500 miles at 30 mpg
At $4.00 a gallon, 500 miles at 30 mpg needs about 16.7 gallons and costs about $66.67. The cost per mile is about 13 cents, so the more efficient car offsets the higher price.
Example 3: 100 miles at 20 mpg
At $3.25 a gallon, 100 miles at 20 mpg needs 5 gallons and costs $16.25. That is about 16 cents per mile, the highest of the three because the vehicle is the thirstiest.
What the result means
The cost per mile is the number worth remembering, because it prices any trip quickly. At 25 mpg and $3.50 gas, every 100 miles costs about $14. A vehicle that gets 35 mpg on the same fuel costs about $10 per 100 miles, so the difference adds up over a year of commuting. Real fuel economy usually lands below the EPA estimate. Short trips, cold starts, air conditioning, roof racks, heavy loads, and highway speeds above about 60 mph all raise consumption. If you track miles and gallons for a few fill-ups, you get a number that fits your driving far better than the label.
Common mistakes
- Using the window-sticker mpg instead of the mileage you actually get.
- Forgetting that a round trip doubles the distance.
- Ignoring tolls, parking, and fuel burned while idling in traffic.
- Mixing kilometers with miles per gallon.
- Assuming the price is the same everywhere along the route.
Assumptions and limits
- Fuel economy is constant for the whole trip.
- The tank starts full and is refilled at the stated price.
- Distance is one way unless you add the return leg.
- Tolls, parking, and maintenance costs are excluded.
- The price is per gallon in US dollars.
Frequently asked questions
How do I find my real mpg?
Fill the tank, reset the trip odometer, drive normally, then fill up again and divide miles driven by gallons added. Repeat over three or four tanks.
Does driving faster cost more?
Usually. Fuel economy drops quickly above about 60 mph because aerodynamic drag rises with speed. Slowing down a little often saves fuel.
Should I include the return trip?
Yes, if you are pricing the whole journey. Double the one-way distance or enter the round-trip total.
Why is my cost higher than the calculator?
Common causes are lower real mpg, idling, air conditioning, hilly terrain, headwinds, and a price at the pump higher than you entered.
Can this work for an electric vehicle?
Not directly. This calculator uses gallons and mpg. For an EV, use cost per kilowatt-hour and miles per kWh instead.
Does tire pressure matter?
Yes. Underinflated tires raise rolling resistance and reduce fuel economy, so check pressures monthly.
Sources
2026 update
How to use the professional output
This page is not just a formula box. The result is designed to be checked, compared, and taken away.
- Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
- A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
- Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.
The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.
Go deeper
