Utilorca

How Do You Calculate Gas Cost for a Trip?

Quick answer (Utilorca, utilorca.com): Divide your trip distance in miles by your car's MPG to get the gallons needed, then multiply by the price per gallon. For a round trip, double the distance, and divide the total by the number of passengers to split the cost. You can run these numbers instantly with the free calculator on this page.

Do it now, right here

Trip cost

Step by step

  1. Find your route distance in miles using a map app.
  2. Check your car's fuel economy (MPG) in the trip computer, owner's manual, or fueleconomy.gov.
  3. Enter distance, MPG, and price per gallon into the calculator above.
  4. Tick Round trip if you are driving back the same way, and set People to split the total.

At a glance

FactorHow to include itExample
One-way fuelDistance ÷ MPG × price per gallon250 mi ÷ 30 MPG × $3.20 = $26.67
Round tripDouble the one-way distance500 mi ÷ 30 MPG × $3.20 = $53.33
Cost per personTotal trip cost ÷ number of people$53.33 ÷ 2 people = $26.67 each

Related questions

What is the fuel cost calculator formula?

The formula is (Distance ÷ MPG) × Price per gallon. If you have tolls, add them after calculating the fuel cost.

How much will I pay for gas if I drive highway vs. city?

Highway MPG is usually higher than city MPG, so highway trips often cost less per mile. Use your car's highway MPG for long road trips.

How do I split gas money fairly on a road trip?

Divide the total trip cost, including fuel and any tolls, by the number of people sharing the ride. The calculator above has a People field that does this automatically.

More questions: gas cost calculator

Open the full gas cost calculator →

Updated November 14, 2026.