Fuel Cost Calculator

Estimate how much fuel a trip may use and what that fuel may cost based on miles, MPG, and gas price per gallon.

Enter trip and fuel details

Use expected trip miles, realistic vehicle fuel economy, and the gas price you expect to pay.

miles
MPG
$/gallon
Your result

Estimated trip fuel cost

Updates automatically as you change the inputs.

Estimated fuel cost
$37.50
Fuel needed10.71 gal
Trip distance300 mi
Cost per mile$0.125

How to use the fuel cost calculator

Enter the miles you expect to drive, the vehicle's realistic miles per gallon, and gas price per gallon. The calculator divides distance by MPG to estimate gallons, then multiplies by price.

Trip fuel cost formula

Calculation formulaTrip fuel cost formula
Used for the result above
Gallons needed = miles ÷ MPG. Fuel cost = gallons needed × price per gallon.

Real fuel economy can change with speed, weather, traffic, elevation, tire pressure, idling, and vehicle load.

Example: Hannah budgets for a road trip

Hannah plans a 300-mile trip in a car averaging 30 miles per US gallon. The trip needs approximately 300 ÷ 30 = 10 gallons. At $3.50 a gallon, the estimated fuel cost is $35.

For a return trip of the same distance, enter 600 miles. Parking, tolls, maintenance, and differences in traffic or driving conditions are separate from the fuel estimate.

The three inputs that drive trip fuel cost

Distance determines how far the vehicle must travel, MPG estimates how many miles are covered per gallon, and gas price sets the dollar cost of each gallon. The model first calculates gallons needed, then multiplies by price per gallon.

If you are planning a round trip, make sure the distance includes both directions. For a multi-stop route, use the total planned mileage rather than the straight-line distance between the start and destination.

Real-world MPG can differ from the dashboard or EPA estimate

Fuel economy changes with speed, traffic, idling, temperature, terrain, tire pressure, cargo, towing, and driving style. A planning result is more useful when the MPG input reflects how the vehicle actually performs on similar trips.

If you have fuel receipts, calculate recent real-world MPG and use that number. Otherwise, compare a conservative and optimistic MPG scenario to create a cost range.

Gas price can vary along the route

The calculator uses one average price per gallon for the entire trip. Long routes can cross regions with meaningfully different fuel prices, so the final cost can differ even when mileage is accurate.

For a rough trip budget, use an average or slightly conservative fuel price rather than the cheapest station at the starting point.

Assumptions and limitations

What the estimate assumes

Tolls, parking, charging, maintenance, and other vehicle costs are not included.

Fuel Cost Calculator FAQs

Should I use highway or combined MPG?

Use the fuel economy that best matches the trip. Combined MPG is a reasonable starting point for mixed driving.

Does the calculator include a return trip?

Only if your entered mileage includes it.

What if gas prices change during the trip?

Use an average expected price or run separate calculations for different legs.

Does this calculate EV charging cost?

No. This tool is based on miles per gallon and gasoline price.

How do I calculate gas cost for a trip?

Divide trip miles by MPG to estimate gallons needed, then multiply gallons by the average price per gallon.

Should I use highway MPG or city MPG?

Use the fuel-economy figure that best matches the route. For mixed driving, a recent real-world average is often more useful than either rating alone.

Fuel-cost estimate only. Real mileage and gas prices vary with driving conditions, vehicle condition, and location.