Skip to calculator
Automotive

Gas Cost Calculator

Estimate gallons of fuel and gas cost for a trip from distance, fuel economy and fuel price.

Free online toolWorks in your browserNo sign-up required

Gas Cost Calculator

Roadmap #31–60

Automotive calculator collection

Use the connected calculators in this build for related estimates without starting over.

Category hub →

How to use this gas cost calculator

Enter the requested values above and select Calculate. Change any input to compare scenarios.

Formula and method

Gallons needed = distance ÷ MPG. Fuel cost = gallons needed × price per gallon.

Example

A 300-mile drive at 30 MPG uses about 10 gallons. At $3.50 per gallon, estimated fuel cost is $35.

Important assumptions

Real-world fuel economy varies with speed, weather, traffic, idling, vehicle load and driving style.

Budget a trip by miles, fuel economy and price

A 360-mile drive at 30 MPG requires 12 gallons. At $3.75 per gallon, estimated fuel cost is $45, excluding tolls, parking, and vehicle wear.

What to check: Actual MPG changes with speed, terrain, wind, traffic, and load. Use realistic highway/city MPG rather than the best-ever dashboard figure.

Compare with the Trip Fuel Cost calculator when that better matches the question you are trying to answer.

Frequently asked questions

What does the Gas Cost Calculator calculate?

Estimate gallons of fuel and trip cost from distance, fuel economy and gas price.

How does the calculation work?

Gallons needed = distance ÷ MPG. Fuel cost = gallons needed × price per gallon.

Is this calculator free?

Yes. ERICH Calculators is free to use and no account is required.

Trip gas cost formula

Fuel needed = distance ÷ MPG   •   Fuel cost = fuel needed × price per gallon

For a more complete budget including tolls and other costs, use the Road Trip Cost Calculator.

Transparency

Method, assumptions & corrections

See how formulas, sources and limitations are handled across ERICH Calculators.