Trip fuel cost calculator

Enter trip distance, vehicle fuel economy, and fuel price per gallon to get total fuel cost and gallons needed. This is not a route planner, does not fetch live fuel prices, and does not account for driving conditions that affect real-world MPG.

Trip details

Formulas

gallons = distance / MPG

cost = gallons × price_per_gallon

cost_per_mile = cost / distance

Where distance = trip distance in miles; MPG = vehicle fuel economy in miles per gallon; price_per_gallon = fuel price in dollars per gallon; gallons = fuel volume needed for the trip; cost = total fuel cost in dollars; cost_per_mile = fuel cost per mile driven.

Checked examples

A 300-mile trip at 30 MPG uses 10.00 gallons. At $3.50/gallon, the fuel cost is $35.00, or $0.1167 per mile.

A 480-mile trip at 25 MPG uses 19.20 gallons. At $4.00/gallon, the fuel cost is $76.80, or $0.1600 per mile.

A 150-mile trip at 40 MPG uses 3.75 gallons. At $3.75/gallon, the fuel cost is $14.06, or $0.0938 per mile.

Limits

Trip distance must be positive. Fuel economy (MPG) must be positive and non-zero. Fuel price must be positive. This calculator uses simple arithmetic only; it does not fetch live fuel prices or map data. Results are estimates based on the MPG and fuel price you enter. Not for: route planning or navigation; live fuel price lookup; electric vehicle charging cost; fuel economy tracking over time.

U.S. Department of Energy and EPA FuelEconomy.gov Trip Calculator and CalculatorLib Trip Fuel Cost Calculator.