Trip Fuel Cost
Fuel cost from distance, MPG, and price per gallon.
About this calculator
This calculator estimates fuel cost for a trip from three inputs -- Trip Miles, MPG (fuel economy), and $/Gallon (local gas price) -- using Gallons = Trip Miles divided by MPG, then Est. Fuel Cost = Gallons times $/Gallon. Because Est. Fuel Cost is a product of Trip Miles, $/Gallon, and the inverse of MPG, all three inputs move it by an essentially equal share in percentage terms: raising Trip Miles or $/Gallon raises the cost by roughly the same proportion, and raising MPG lowers it by close to that same proportion, so no single input dominates the total -- they all matter about equally.
$/100 Mi, by contrast, works out to exactly $/Gallon divided by MPG times 100: because the Trip Miles term cancels out of that ratio algebraically, this per-100-mile cost figure is completely unaffected by how long your actual trip is -- a one-mile errand and a cross-country drive at the same MPG and gas price show the identical $/100 Mi. Gallons Needed similarly ignores $/Gallon entirely, since it's purely Trip Miles divided by MPG. This is a simple linear model: it does not account for highway vs. city driving splits, elevation change, idling in traffic, or a vehicle's real-world MPG varying with speed and load.
Inputs
Results
Est. fuel cost
$45.28
≈ 9 cups of coffee
How to Use This Calculator
- Enter the Trip Miles — use one-way distance or round-trip distance depending on your planning horizon.
- Set MPG to your vehicle's real-world fuel economy (check your dashboard or past fill-ups).
- Enter the current $ / Gallon for your area.
- Read Est. Fuel Cost — your total fuel spend for the trip.
- Check Gallons Needed to plan how many fill-ups you'll need, and $ / 100 Mi to compare fuel costs for different vehicles.
Recommended for this calculation
We may earn a commission if you sign up through these links.
Keep every tire at the right pressure, always
AstroAI Portable Tire Inflator Air Compressor, 12V DC
See on AmazonTrack every oil change and repair in one place
Car Maintenance Log Book, Repair & Service Record Book
See on AmazonBe ready before trouble finds you on the road
142 PCS Emergency Roadside Kit with Jumper Cables
See on AmazonAstroAI: As an Amazon Associate I earn from qualifying purchases.
KNB Publishing: As an Amazon Associate I earn from qualifying purchases.
Roadside Safety: As an Amazon Associate I earn from qualifying purchases.
How the result changes with MPG
| MPG | Est. fuel cost |
|---|---|
| 21 | $69.00 |
| 71 | $20.41 |
| 130 | $11.15 |
| 180 | $8.05 |
What each input means
- Trip miles
- One-way or round-trip distance.
- MPG
- Vehicle fuel economy.
- $ / gallon
- Local gas price.
How this is calculated
Worked example, using the default values
- Identify Input ParametersTrip miles = 420, MPG = 32, $ / gallon = 3.45 = 3 input(s) provided
- Calculate Est. fuel costEst. fuel cost = gallons * price45.28 = $45.28
- Calculate GallonsGallons = miles / mpg13.13 = 13.13
- Calculate $ / 100 mi10.78 = $10.78
Engine last updated . Checked against 1 independently-derived test — how we verify calculators.
Frequently Asked Questions
Which input has the biggest effect on Est. Fuel Cost?
None of them dominates -- Trip Miles, MPG, and $/Gallon each move Est. Fuel Cost by roughly the same percentage, because the formula (Trip Miles / MPG) x $/Gallon treats all three as a direct or inverse multiplier of equal weight. A given percentage change in any one of them shifts total cost by close to that same percentage.
Why doesn't Trip Miles affect the $/100 Mi figure?
$/100 Mi is Est. Fuel Cost divided by Trip Miles (times 100), and Est. Fuel Cost is itself Trip Miles divided by MPG times $/Gallon -- so Trip Miles cancels out of the ratio algebraically, leaving $/100 Mi equal to $/Gallon divided by MPG regardless of how far you're actually driving.
Does the gas price affect how many Gallons Needed I'll use?
No -- Gallons Needed is calculated purely as Trip Miles divided by MPG, so $/Gallon has zero effect on it. Changing the price per gallon changes only the dollar totals (Est. Fuel Cost and $/100 Mi), never the number of gallons your vehicle actually consumes for the trip.
Does a higher MPG always lower my fuel cost?
Yes -- MPG appears only in the denominator of both Gallons Needed and Est. Fuel Cost, so a higher MPG always produces fewer gallons and a lower total cost for the same Trip Miles and $/Gallon, and it lowers $/100 Mi by that identical proportion.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Fuel Cost Calculator
Calculate fuel cost for a trip based on distance, fuel price, and fuel efficiency (MPG or L/100km). See cost per mile/km.
Travel & TourismTrip Fuel Cost Calculator
Calculate fuel cost for a trip based on distance, fuel efficiency, and fuel price. Plan your travel budget.
HVACBoiler Sizing Calculator
Size heating boilers based on building heat loss, domestic hot water load, pickup factor, efficiency, and altitude derating.
Automotive & MotorcyclesRoad Trip Cost Calculator
Estimate the total cost of a road trip including fuel, hotels, meals, and tolls. Split costs between passengers.
Automotive & MotorcyclesGas Mileage Calculator
Calculate your fuel economy in MPG, cost per mile, and annual fuel costs. Convert between MPG, L/100km, and km/L.
More in Automotive & Motorcycles.