Free Calculator USA

Gas Cost Calculator

Work out the gas needed and the fuel cost of any road trip from distance, mpg and gas price. Free, instant and no sign-up.

Use this when: you want to plan a trip and see how much fuel and money it will take. Do not know your car's real fuel economy yet? Work it out first with the MPG Calculator.

How the gas cost calculator works

Enter how far you plan to drive, how many miles per gallon your vehicle gets and the current price of gas. The calculator shows how many gallons you need, the total fuel cost and the cost per mile.

The formula

Gallons needed = distance ÷ miles per gallon. Trip cost = gallons needed × price per gallon. Cost per mile = trip cost ÷ distance.

Example

A 300 mile trip in a car that gets 28 mpg needs about 10.7 gallons. At $3.50 a gallon the trip costs about $37.50, or roughly 12.5 cents per mile.

How much gas will a trip use?

Gas used is distance divided by miles per gallon, so the more efficient the car, the less you burn. For the same 300 mile trip, a 28 mpg car uses about 10.7 gallons and a 35 mpg car uses about 8.6 gallons.

Compare two cars to see your gas savings

Run the calculator once for each car and subtract the two costs. At $3.50 a gallon, the 35 mpg car saves about $7.50 on that 300 mile trip. Over 12,000 miles a year, a 28 mpg car costs about $1,500 in gas and a 35 mpg car about $1,200, a saving of roughly $300 a year. Use your own mpg and local gas price for a real figure.

Trip gas cost at $3.50 a gallon

This table shows the fuel cost of common trip lengths at three fuel economy levels, using $3.50 a gallon as an example. Enter your own gas price in the calculator for a real figure.

Distance25 mpg30 mpg35 mpg
100 miles$14.00$11.67$10.00
250 miles$35.00$29.17$25.00
500 miles$70.00$58.33$50.00
1,000 miles$140.00$116.67$100.00

Round trips and sharing costs

For a round trip, double the distance. To split the cost with passengers, divide the total fuel cost by the number of people in the car.

Tips to lower your fuel bill

Real mileage drops with high speeds, heavy loads and city traffic, so use your highway mpg for long trips.

Frequently asked questions

Where do I find my car's mpg?

Check the owner's manual, the window sticker or the listing for your model on fueleconomy.gov.

Is the result exact?

No, it is an estimate. Traffic, speed, weather and load change your real mileage.

How do I calculate gas cost for a road trip?

Divide the distance by your miles per gallon to get the gallons needed, then multiply by the price per gallon. Add both directions for a round trip. Our guide to budgeting a road trip covers the other costs.

How much does it cost to drive 100 miles?

At 28 mpg and $3.50 a gallon, 100 miles uses about 3.6 gallons and costs about $12.50. Your own mpg and local gas price will change that.

How many gallons of gas do I need for 500 miles?

Divide 500 by your mpg. A 25 mpg car needs 20 gallons, and a 35 mpg car needs about 14.3 gallons.

Related calculators

Keep reading

Browse all calculators or all guides.