Gas Trip Cost Calculator

Estimate the fuel cost of a trip from distance, your vehicle MPG, and the price of gas — with multi-leg trips and a round-trip option.

Inputs

Miles for the trip. For a multi-stop trip, list each leg separated by commas (e.g. 120, 85, 200).

Your vehicle's miles per gallon (US).

Price per US gallon of fuel.

Double the distance for there-and-back.

Result

Estimated fuel cost
$42.00
12.00 gal over 300 mi
  • Total distance300.0 mi
  • Fuel needed12.00 gal
  • Fuel cost$42.00
  • Cost per mile$0.140
Note — An estimate at constant MPG and price. Highway vs city driving, terrain, and load change real consumption; fuel prices vary by station and over the trip.

Step-by-step

  1. Total distance = 300.0 mi.
  2. Fuel needed = 300.0 mi ÷ 25 MPG = 12.00 gal.
  3. Cost = 12.00 gal × $3.50/gal = $42.00.

How to use this calculator

  • Enter the trip distance in miles (or list each leg, comma-separated, for a multi-stop trip).
  • Enter your vehicle's MPG and the price of gas per gallon.
  • Choose one-way or round trip.
  • Read the estimated fuel cost, gallons needed, and cost per mile.

About this calculator

Planning a road trip? This calculator estimates how much you will spend on fuel from three numbers: the distance you will drive, your vehicle's fuel economy in miles per gallon, and the current price of gas. It divides the distance by your MPG to find the gallons you will burn, then multiplies by the price per gallon. You can add up a multi-stop trip by entering each leg separated by commas, and tick the round-trip option to double the distance automatically. The result includes the total gallons, the dollar cost, and a handy cost-per-mile figure for comparing routes or vehicles. For the most realistic estimate, use your real-world highway MPG rather than the optimistic EPA combined figure, since most road-trip miles are at higher, less efficient speeds.

How it works — the formula

Gallons = Distance ÷ MPG Cost = Gallons × Price per gallon Cost/mile = Cost ÷ Distance

Distance over fuel economy gives the fuel volume required; multiplying by unit price gives the total. Round trip simply doubles the distance before the division.

Worked examples

Example 1
300 mi, 25 MPG, $3.50/gal
Inputs:
distance=300, mpg=25, price=3.50
Output:
12 gal × $3.50 = $42.00
Example 2
1000 mi, 30 MPG, $4.00/gal
Inputs:
distance=1000, mpg=30, price=4.00
Output:
33.33 gal × $4.00 = $133.33
Example 3
Round trip 250 mi, 20 MPG, $3.00
Inputs:
distance=250, mpg=20, price=3.00, roundTrip=yes
Output:
500 ÷ 20 × $3.00 = $75.00

Limitations

  • Assumes constant MPG and a single gas price for the whole trip.
  • Does not model elevation, load, or speed effects on economy.
  • Liquid fuel only — not for electric vehicles.

A planning estimate; real fuel spend varies with conditions and price changes en route.

Frequently asked

Divide the trip distance by your MPG to find gallons needed, then multiply by the gas price. For 300 miles at 25 MPG with $3.50 gas: 300 ÷ 25 = 12 gallons, × $3.50 = $42.00.

Related calculators

More tools you might like