Fuel Cost Calculator - Trip Cost, Gallons & Cost per Mile
Estimate fuel cost for a trip or multiple trips using distance, vehicle MPG, and the price per gallon. See gallons needed, cost per trip, cost per mile, and total cost for repeated trips.
Trip Details
Estimate fuel cost from distance, MPG, and gas price.
Fuel Cost
Gallons needed and total cost.
Trip Cost
$37.50
10.71 gallons · $0.13/mile
Methodology and limitations
Last reviewed:
Methodology
Gallons = distance ÷ MPG; cost = gallons × price per gallon.
Limitations
Real-world MPG varies. Excludes tolls, parking, and non-fuel trip costs.
How Fuel Trip Cost Is Calculated
Estimate fuel cost for a trip or multiple trips using distance, vehicle MPG, and the price per gallon. See gallons needed, cost per trip, cost per mile, and total cost for repeated trips.
Method used
The calculator divides trip distance by vehicle fuel economy (MPG) to get gallons needed, then multiplies by price per gallon for total fuel cost.
Gallons = distance ÷ MPG; cost = gallons × price per gallon
Practical example
A 300-mile trip in a car averaging 28 MPG at $3.75 per gallon uses about 10.7 gallons and costs roughly $40.18 in fuel.
- Trip distance in miles
- Vehicle MPG
- Fuel price per gallon
The result shows gallons needed, total fuel cost, and cost per mile.
Assumptions
- MPG is the average fuel economy for the trip conditions entered.
- Fuel price is uniform along the route.
- Distance is one-way unless you double it manually for round trips.
What this includes
- Gallons consumed, total fuel cost, and cost per mile.
What this excludes
- Tolls, parking, vehicle wear, insurance per mile, electric-vehicle kWh costs, and regional fuel tax variations mid-route.
Related calculators
Frequently Asked Questions
How is fuel cost calculated?
Gallons needed equal distance divided by MPG. Trip cost equals gallons times price per gallon. For repeated trips, multiply per-trip cost by the number of trips. Enter realistic MPG and local pump prices so commuting or road-trip budgets stay close to what you will actually spend.
What MPG should I use?
Use your vehicle’s observed MPG or EPA estimates. Real-world economy varies with speed, traffic, hills, cargo, temperature, and tire pressure. Highway and city ratings differ—blend them for mixed routes. Updating MPG after a few tankfuls beats relying only on the window sticker.
Can I calculate cost for a round trip?
Yes. Double the one-way distance, enter full round-trip miles, or set trips to 2 for repeated one-way legs. Include detours and airport loops if they add meaningful miles. Round-trip math helps compare driving versus other transport on total fuel cost alone.
What is cost per mile?
Cost per mile equals fuel cost divided by distance driven. It helps compare vehicles, carpool savings, or alternate routes when gas prices spike. Lower MPG and higher pump prices both raise cost per mile. Remember this covers fuel only—depreciation and maintenance raise true cost per mile beyond this tool.
Does this include tolls or vehicle wear?
No. Outputs cover fuel cost only. Tolls, parking, maintenance, depreciation, insurance, and EV charging fees are excluded from the total. Add those separately when comparing overall trip cost or checking a per-mile reimbursement against what you actually spend on gasoline.