Gas cost calculator

Enter the distance, your car's fuel economy and the price of gas to see how many gallons a trip takes, what it costs and what each passenger owes.

Units

Result

Gas cost of the round trip

$66.43

21.43 gallons for 600 miles

Breakdown
Gas needed21.43 gallons
Cost per mile11.1¢
Each of 2 people pays$33.21
  • Real mileage is often lower than the window-sticker number at high speed, with a loaded car, the A/C on or in city traffic.
  • Gas only: tolls, parking and wear on the car are not included.

This is an estimate for general information, not tax, legal or financial advice. Results depend on the figures you enter and on 2026 rules; your actual amounts may differ.

Last updated:

How it's calculated

Gallons used = miles driven ÷ MPG. With kilometers and L/100 km, liters = km × L/100 km ÷ 100, and liters are turned into US gallons at 3.785411784 liters per gallon. The cost is gallons × the price per gallon, the cost per person is the total ÷ the number of people, and the cost per mile (or km) is the total ÷ the distance. Round trip doubles the distance.

Example: a 300-mile trip each way (600 miles round trip) in a car that gets 28 MPG, with gas at $3.10 a gallon, uses 21.43 gallons and costs $66.43, or $33.21 for each of 2 people. That is 11.1 cents a mile.

Before a road trip, gas is usually the biggest cost you can predict. This calculator turns distance, fuel economy and the price at the pump into gallons, a total and a fair split between the people in the car. It works with miles and MPG, or with kilometers and liters per 100 km if that is how you think about your car.

What you need

  • Distance: one-way miles or kilometers from a map app. Tick round trip to double it, or enter the total if you have several stops.
  • Fuel economy: MPG, or L/100 km in metric mode.
  • Gas price: the price per gallon where you will fill up. Prices vary a lot between states and between a highway exit and a town a few miles away.
  • People: everyone splitting the gas money.

Example: a weekend trip

Two friends drive 300 miles each way in a car rated at 28 MPG on the highway, with regular at $3.10 a gallon. The round trip is 600 miles, which takes 21.43 gallons. The total is $66.43, or $33.21 each, and every mile costs 11.1 cents.

Now take a car that only gets 22 MPG on the same trip: it needs 27.27 gallons and costs $84.55, or $42.27 each. Fuel economy matters as much as the gas price.

Getting a realistic MPG

The window-sticker number comes from standardized lab tests, and real driving often comes in lower. The US Department of Energy notes on fueleconomy.gov that gas mileage usually drops quickly above 50 mph, and that aggressive driving with hard acceleration and braking can cut highway mileage by roughly 15 % to 30 %. Slowing down by 5 to 10 mph can improve fuel economy by about 7 % to 14 %.

Other things that lower MPG on a trip:

  • A full car and a loaded trunk, or a roof cargo box.
  • Towing a trailer or carrying bikes on the back.
  • Mountain roads and strong headwinds.
  • Running the air conditioning in hot weather.
  • Underinflated tires.

If you know your car’s real average from past trips, use that. Otherwise, take the highway rating and knock 10 % off for a safer estimate. A quick way to measure it yourself: fill the tank, reset the trip meter, and at the next fill-up divide the miles driven by the gallons you put in.

Metric mode

Choose kilometers and L/100 km if your car shows consumption in liters, as cars from Mexico, Canada or Europe do. Lower is better in L/100 km: 6 is very efficient, 12 is a large SUV. The calculator multiplies kilometers by the consumption to get liters, then converts to US gallons (1 gallon is exactly 3.785411784 liters) so you can use the price on the pump. A 500 km drive at 8 L/100 km uses 40 liters, which is 10.57 gallons and $32.76 at $3.10. If you want a rough MPG instead, 235.2 divided by L/100 km gives miles per gallon.

What gas money doesn’t cover

The result is gas only. A trip also costs tolls, parking, wear on tires and brakes, oil changes and depreciation. That is why the IRS business mileage rate, 72.5 cents a mile for the first half of 2026, is several times the gas cost per mile: it covers the full cost of owning and running a car. If you drive for work, see the mileage deduction calculator instead.

Tips to spend less

  • Fill up before you get on the interstate; stations right off highway exits often charge more.
  • Use cruise control on flat highways and keep a steady speed.
  • Check tire pressure before you leave, using the number on the driver’s door sticker.
  • Take the most efficient car if your group has a choice: on 600 miles, 28 MPG instead of 22 MPG saves $18.12 at $3.10 a gallon.

Frequently asked questions

How do I calculate gas cost for a trip?

Divide the miles you will drive by your car's miles per gallon to get the gallons you need, then multiply by the price per gallon. For 600 miles at 28 MPG and $3.10 a gallon: 600 ÷ 28 = 21.43 gallons × $3.10 = $66.43.

Which MPG number should I use?

For a road trip, use your car's highway MPG from the window sticker or fueleconomy.gov, or better, your own average from the trip computer. Lower it by 10% or more if you will drive fast, carry a full load, tow, use a roof box or run the A/C a lot.

How do I split gas money fairly?

The simplest way is to divide the total gas cost by everyone in the car, driver included, which is what the calculator does. Some groups leave the driver out because they also pay for wear, insurance and maintenance; in that case enter one person fewer.

Can I use kilometers and liters?

Yes. Choose kilometers and L/100 km and enter your car's consumption, for example 8 L/100 km. The price is still per US gallon, since that is how gas is sold in the US; the calculator converts liters to gallons. A 500 km drive at 8 L/100 km uses 40 liters, or 10.57 gallons, which costs $32.76 at $3.10 a gallon.

What about an electric car or a hybrid?

For a hybrid, enter its combined or highway MPG as usual. For an electric car, the cost depends on electricity prices per kWh and the car's efficiency, which this calculator does not handle. Check the car's kWh per 100 miles and your charging price instead.