Gas Trip Cost Calculator

Enter the distance, fuel economy and gas price to see your fuel cost right away.

AD
miles
mpg
$/gal
people
days
Cost per trip
—
One way
Fuel needed 0 gal
Cost per person $0.00
Estimated monthly fuel cost $0.00
Monthly cost per person $0.00

Enter the distance, fuel economy and gas price and the cost is calculated automatically.

🔒 Nothing is sent to a server. The calculation runs only in your browser, and your entries are saved only in this browser (they reload the next time you open the page).

How it is calculated

See the formula and a worked example

The fuel cost formula

Fuel cost is distance ÷ MPG × price per gallon. Dividing the distance by your MPG gives the gallons you need, and multiplying that by the price per gallon gives the cost. For example, with a 30-mile one-way trip, 25 MPG and gas at $3.60 a gallon, 30 ÷ 25 = 1.2 gallons, so 1.2 × $3.60 = about $4.32. Choose ‘Round trip’ and the distance doubles to 60 miles. Add 20 commute days a month and you can see the monthly fuel cost in one go.

How to use

Choose the fuel type and ‘One way’ or ‘Round trip’, then enter the one-way distance in miles
Enter your car’s fuel economy (MPG) and the current gas price ($ per gallon) from the pump or a gas-price app
The cost per trip appears right away. Add riders to see each person’s share, or commute days for a monthly total
AD

How this gas trip cost calculator works

This gas trip cost calculator shows what a drive costs in fuel. Enter the distance in miles, your car’s miles per gallon (MPG) and the price per gallon. The result updates as you type: the trip cost, the gallons needed and the cost per person when you share the ride. Choose One way or Round trip (the distance is doubled), and add commute days per month for a monthly fuel budget. Pick Regular, Premium or Diesel so the price label matches the pump. Your entries are stored only in your browser.

The formula

fuel cost = distance ÷ miles per gallon × price per gallon

Say your commute is 30 miles each way, your car gets 25 MPG and gas costs $3.60 a gallon. One way you burn 30 ÷ 25 = 1.2 gallons, which costs 1.2 × $3.60 = $4.32. Round trip doubles the distance to 60 miles, so you use 2.4 gallons and spend $8.64 a day. Over 20 commute days that is about $172.80. If two coworkers carpool and split the fuel, each pays $4.32 a day on a round trip. The tool follows exactly this arithmetic.

Finding your MPG

Check the window sticker or fueleconomy.gov, which lists EPA ratings for city, highway and combined driving. For a real-world number, fill the tank, reset the trip meter, drive normally and fill up again. Divide the miles driven by the gallons you added.

Why your real cost can differ

  • Speed. Gas mileage drops at higher highway speeds because of air resistance.
  • Weather, terrain and load. Cold, headwinds, hills, heavy cargo and roof racks all lower MPG.
  • Tires and prices. Underinflated tires waste fuel, and gas prices differ by state, city and station, so use the price you actually pay.

Ways to lower your fuel bill

  • Carpool and split the cost with the Bill Split Calculator.
  • Keep tires inflated to the pressure on the driver’s door sticker.
  • Accelerate and brake smoothly, and combine errands into one trip.

Frequently asked questions

How do I calculate the gas cost of a trip?

Divide the distance in miles by your car’s miles per gallon to get the gallons needed, then multiply by the price per gallon. For 100 miles at 25 MPG and $3.50 a gallon, you need 4 gallons and spend $14.

What MPG should I use?

Use the combined rating on your car’s sticker or on fueleconomy.gov, or your own measured average. For a long highway drive the highway number is more accurate, and for commuting in traffic the city number is closer.

Does the calculator convert kilometers or liters?

The tool is set for miles, MPG and dollars per gallon. One mile is about 1.609 kilometers and one US gallon is about 3.785 liters. To turn MPG into liters per 100 km, divide 235.2 by the MPG. The Unit Converter can help with other conversions.

How does the commute days field work?

It multiplies the cost of one trip by the number of days. For a daily round trip, set the trip to Round trip first so each day counts both directions.

Can I split the cost between passengers?

Yes. Enter the number of riders and the tool shows each person’s share of the trip and, if you entered commute days, the monthly share.

Is my data stored or shared?

Your inputs are saved only in your own browser so the form is filled when you return. Nothing is sent to a server. Use the Clear inputs button to remove them.

Related tools

AD

To compare fuel costs more precisely

After you work out the gas cost from distance and fuel economy, you can continue with these tools if several people split the cost or you need to convert units.

Bill Split CalculatorUnit ConverterPercentage Calculator

How this tool is checked

Last regular check

How it calculates Fuel cost is distance (doubled for a round trip) divided by MPG and multiplied by the gas price, then split between people.

How we check Before release, results go through calculation regression tests plus screen and accessibility checks, and the check date changes only when these checks pass again.

Run by Toolssok · About · Report an error