Skip to content

Trip Fuel Cost Calculator

Calculate how much you'll spend on gas for your road trip.

The Fuel Cost Formula

To calculate how much you will spend on fuel, determine the total volume of fuel required by dividing distance by fuel efficiency, and then multiply by the price of fuel.

DistanceTotal distance of the trip in miles
Fuel EconomyVehicle fuel efficiency in miles per US gallon (MPG)
Price per UnitCost of fuel per US gallon

Calculating Fuel Cost

Let's calculate the fuel cost for a 300-mile road trip in a vehicle with a fuel economy of 30 MPG, when gas costs $3.50 per gallon.

1. Calculate Fuel Needed
Divide total trip miles by the vehicle's miles per gallon.
2. Multiply by Fuel Price
Multiply the gallons of fuel required by the price per gallon.
Resulting Fuel Cost
The total cost of fuel for your road trip is $35.00.

Road Trip Planning

Gas prices vary by region and week. The US Energy Information Administration publishes average retail prices for the nation and for each region every week, which is a reasonable price to plan with before you check stations along your route.

How trip fuel cost is calculated

The calculator divides trip distance in miles by fuel economy in miles per US gallon to get gallons used, then multiplies by price per gallon. Gallons and cost are rounded to two decimals. Distance and price raise the cost in direct proportion. Fuel economy works the other way: moving from 25 to 30 MPG is a 20% gain in economy but cuts fuel use by 1 − 25 ÷ 30 = 16.7%, because gallons used equal distance ÷ MPG.

All three boxes assume US units. NIST lists the US gallon as 3.785412 litres and the Canadian and UK imperial gallon as exactly 4.54609 litres. An imperial MPG figure must be converted before you type it: US MPG = imperial MPG × 0.8327.

Second worked example: a 640-mile round trip at the current US average price

Inputs: 640 miles, 27 MPG, $4.284 per gallon, the EIA's US average retail price for regular gasoline on October 19, 2026. Step 1: 640 ÷ 27 = 23.70 gallons. Step 2: 23.70 × $4.284 = $101.55. The calculator shows $101.55 and 23.7 gallons.

Split four ways, the fuel comes to $101.55 ÷ 4 = $25.39 per person. EIA updates its prices weekly with Monday-dated data, so check the latest figure for your region before a long drive.

Using litres per 100 km and kilometres

Canadian ratings are published in L/100 km, where a lower number means less fuel. Convert to US MPG with 235.21 ÷ (L/100 km); the constant is 100 × 3.785412 litres per US gallon ÷ 1.609344 km per mile. A vehicle rated 8.4 L/100 km is 235.21 ÷ 8.4 = 28.0 US MPG. For imperial MPG the constant is 282.48.

Distances in kilometres convert with ÷ 1.609344, an exact factor. A price per litre becomes a price per US gallon when multiplied by 3.785412, so $1.55 per litre is $5.87 per US gallon. You can also skip conversion entirely: litres needed = km × (L/100 km) ÷ 100, and cost = litres × price per litre.

Label ratings are a starting point. Fueleconomy.gov notes that EPA estimates come from laboratory tests, and that driver behaviour, driving conditions, maintenance, fuel characteristics and weather all change real results. Miles and gallons logged between your own fill-ups give a better MPG figure for this tool.

Limits and edge cases

  • Inputs are US-only: miles, miles per US gallon and dollars per US gallon. Convert metric or imperial figures first.
  • One fuel economy figure is applied to the whole trip; towing, roof loads, cold weather, idling and city traffic usually lower it.
  • One price is used for the whole route, although prices vary by region.
  • Electric vehicles, tolls, parking and wear costs are not covered.
  • If a box is cleared or set to zero, the last valid result stays on screen until the inputs are valid again.

Sources checked

Frequently Asked Questions

How do I calculate fuel cost?
Fuel Cost = (Distance / MPG) × Gas Price.
What MPG should I enter?
Use your own figure if you track it: miles driven between fill-ups divided by gallons added. Otherwise look up the EPA rating for your model on fueleconomy.gov, and expect real results to vary with driving style, weather and load.
How do I improve MPG?
Keep tires at the pressure on the door placard, accelerate smoothly, remove roof racks and extra weight, and keep up with maintenance. Fueleconomy.gov lists driver behavior and maintenance among the factors that change real-world fuel economy.
Does this calculator use US or imperial gallons?
US gallons (3.785412 litres). An imperial gallon is 4.54609 litres, so multiply an imperial MPG figure by 0.8327 before entering it.
How do I use an L/100 km rating?
Divide 235.21 by the L/100 km figure to get US MPG. For example, 8.4 L/100 km is about 28.0 US MPG. Convert kilometres to miles by dividing by 1.609344.

About the Fuel Cost Calculator

Calculate your trip fuel cost based on distance, your vehicle's MPG, and current local gas prices before you drive.

Results are estimates; verify regulated rates, eligibility rules, and professional decisions with the cited primary source.

Important: Educational Purposes OnlyThe calculators, estimates, and financial formulas provided on CalculatorVillage.com are for informational and educational purposes only. They are not intended as certified financial planning, tax, legal, or investment advice. Actual rates, terms, and returns will vary. Always consult with a qualified professional before making significant financial decisions.