Gas Cost Trip Calculator

Gas Cost Trip Calculator

Growing AI Skill PRO

Enter Calculation

Formula

Gas Cost=Distance (mi)MPG×Price per Gallon ($)\text{Gas Cost} = \frac{\text{Distance (mi)}}{\text{MPG}} \times \text{Price per Gallon (\$)}

Example

Gas Cost=30025×3.5=42\text{Gas Cost} = \frac{300}{25} \times 3.5 = 42
Usage stats

Advertisement

Results

Estimated Gas Cost for Trip
$42
total fuel cost
Fuel Needed 12 gallons

Report an error on this page

What Is the Gas Cost Trip Calculator?

This calculator estimates how much you'll spend on fuel for a trip. Enter the distance you plan to drive, your vehicle's fuel efficiency in miles per gallon (MPG), and the current price per gallon. It instantly returns the total gas cost and the number of gallons you'll burn — perfect for budgeting a road trip, comparing routes, or splitting fuel costs with passengers.

How to Use It

1. Enter the trip distance in miles. 2. Enter your car's MPG (check your dashboard average or window sticker). 3. Enter the price per gallon at the pump. The result shows your total fuel cost and gallons needed. Try a few prices to see how rising gas affects your budget.

The Formula Explained

The math is simple: divide the distance by your MPG to find how many gallons you need, then multiply by the price per gallon.

$$\text{Gas Cost} = \frac{\text{Distance (mi)}}{\text{MPG}} \times \text{Price per Gallon (\$)}$$

For example, a 300-mile trip in a car that gets 25 MPG needs \(300 \div 25 = 12\) gallons. At $3.50 per gallon, that's \(12 \times \$3.50 =\) $42.00.

Advertisement
Diagram of gas cost equals distance divided by MPG times price per gallon
Gas cost combines trip distance, fuel efficiency, and price per gallon.

Worked Example

Suppose you drive 450 miles for a weekend getaway, your SUV averages 30 MPG, and gas costs $4.20/gal. Gallons needed = \(450 \div 30 = 15\). Total cost = \(15 \times \$4.20 =\) $63.00.

Car traveling a route from start to destination with fuel and cost shown
A worked trip: distance and fuel use determine the total gas cost.

Converting Kilometers, Liters and L/100 km to Miles, Gallons and MPG

This calculator uses US units: distance in miles, fuel economy in US miles per gallon (MPG) and price per US gallon. If your trip or car data uses metric units, as in most countries outside the United States, convert it first with these exact definitions:

  • 1 mile = 1.609344 km (so km ÷ 1.609344 = miles)
  • 1 US gallon = 3.785411784 L
  • 1 imperial (UK) gallon = 4.54609 L

Metric fuel consumption (L/100 km) works the other way round from MPG: a lower number means a more efficient car. To convert it:

$$\text{US MPG} = \frac{235.215}{\text{L/100 km}}$$

If your figure is in kilometers per liter, multiply instead:

$$\text{US MPG} = \text{km/L} \times 2.352$$

To convert a fuel price per liter into a price per US gallon, multiply by 3.785. The currency doesn't change, so a price in euros per liter becomes euros per gallon:

$$\text{Price per US gallon} = \text{Price per liter} \times 3.785$$
L/100 km km/L US MPG Imperial (UK) MPG
5 20.0 47.0 56.5
6 16.7 39.2 47.1
7 14.3 33.6 40.4
8 12.5 29.4 35.3
10 10.0 23.5 28.2
12 8.3 19.6 23.5

Imperial MPG is not US MPG. Figures quoted in the UK use the larger imperial gallon, so they are about 1.201 times the US figure for the same car (4.54609 ÷ 3.785411784 ≈ 1.201). Divide a UK MPG figure by 1.201 before you enter it here. For example, 50 UK MPG ÷ 1.201 ≈ 41.6 US MPG. If you enter the UK number unchanged, the calculator will underestimate your fuel cost by about 17%.

Example: an 800 km trip in a car that uses 7 L/100 km, with fuel at $1.20 per liter.

  1. Distance: \(800 \div 1.609344 \approx 497.1\) miles
  2. Fuel economy: \(235.215 \div 7 \approx 33.6\) US MPG
  3. Price: \(1.20 \times 3.785 \approx 4.54\) per US gallon
  4. Cost: \(497.1 \div 33.6 \times \$4.54 \approx 14.79 \text{ gal} \times \$4.54 \approx \$67.17\)

Estimated trip cost: $67.17. You can check this in metric: \(800 \times 7 \div 100 = 56\) L, and \(56 \times \$1.20 = \$67.20\). The few cents of difference come only from rounding the converted inputs.

Advertisement

How MPG and Gas Price Change Your Trip Cost

The table below is for one fixed 500-mile trip. Each cell uses the same formula as the calculator:

$$\text{Cost} = \frac{\text{Distance}}{\text{MPG}} \times \text{Price per gallon}$$

For example, at 25 MPG and $3.50 per gallon: \(500 \div 25 = 20\) gallons, and \(20 \times \$3.50 = \$70.00\). Prices are in US dollars per US gallon. These prices are examples to show the pattern, not current pump prices anywhere.

MPG Gallons used $3.00/gal $3.50/gal $4.00/gal $4.50/gal
15 33.33 $100.00 $116.67 $133.33 $150.00
20 25.00 $75.00 $87.50 $100.00 $112.50
25 20.00 $60.00 $70.00 $80.00 $90.00
30 16.67 $50.00 $58.33 $66.67 $75.00
40 12.50 $37.50 $43.75 $50.00 $56.25
50 10.00 $30.00 $35.00 $40.00 $45.00

Price changes are linear. Cost rises in direct proportion to the price per gallon. On this trip, every extra $0.50 per gallon adds half the gallons used in dollars. At 20 MPG (25 gallons), that is \(25 \times \$0.50 = \$12.50\).

MPG works the other way. Cost is inversely related to MPG, so the same 5 MPG gain saves much more in a thirsty car than in an efficient one. At $3.50 per gallon on this trip:

  • Going from 15 to 20 MPG cuts fuel from 33.33 to 25.00 gallons. That saves 8.33 gallons, or \(\$116.67 - \$87.50 = \$29.17\).
  • Going from 40 to 45 MPG cuts fuel from 12.50 to 11.11 gallons. That saves only 1.39 gallons, or \(\$43.75 - \$38.89 = \$4.86\).

When you compare vehicles or driving habits, look at gallons used per trip rather than the MPG gap. The gallons figure is what you actually pay for.

Fuel prices this week: United States

Average retail prices of regular gasoline and diesel across the United States, week of 2026-11-09, taxes included, as published by the U.S. Energy Information Administration. Use them as the fuel price in the calculator above.

Regular gasoline (2026-11-09)
$3.995/gal +30.7% since 2025-11-10
Diesel (2026-11-09)
$6.127/gal +59.7% since 2025-11-10
Regular gasoline ($/gal)

World crude oil prices, October 2026

World market prices of crude oil in U.S. dollars per barrel, monthly averages from the World Bank. These are commodity prices, not pump prices: the price at the pump also includes refining, distribution and taxes, and it differs from country to country.

Crude oil, average of Brent, Dubai and WTI (2026-10)
$108.50/bbl +72.2% since 2025-10
Brent (2026-10)
$125.00/bbl +93.2% since 2025-10
WTI (2026-10)
$97.70/bbl +62.3% since 2025-10
Dubai (2026-10)
$102.70/bbl +59.7% since 2025-10
Crude oil, average of Brent, Dubai and WTI (2026-10) ($/bbl)

Pump prices in the EU, week of 2026-11-09

Pump prices of petrol (Euro-super 95) and diesel by EU country, week of 2026-11-09, taxes included. Use them as the fuel price in the calculator above.

EU average (petrol)
1.877 €/L
  1. Denmark2.391
  2. Netherlands2.196
  3. Finland2.144
  4. France2.088
  5. Germany2.067
  6. Greece2.042
  7. Italy1.995
  8. Ireland1.958
  9. Portugal1.922
  10. Latvia1.846
  11. Romania1.844
  12. Belgium1.844
  13. Lithuania1.843
  14. Estonia1.805
  15. Croatia1.749
  16. Spain1.730
  17. Cyprus1.699
  18. Slovakia1.691
  19. Hungary1.673
  20. Austria1.670
  21. Czechia1.653
  22. Slovenia1.634
  23. Luxembourg1.627
  24. Bulgaria1.582
  25. Sweden1.437
  26. Poland1.384
  27. Malta1.340
Petrol 95 (€/L)
CountryPetrol 95 (€/L)Diesel (€/L)
Denmark2.3912.435
Netherlands2.1962.361
Finland2.1442.485
France2.0882.178
Germany2.0672.253
Greece2.0422.099
Italy1.9952.218
Ireland1.9582.119
Portugal1.9222.135
Latvia1.8462.083
Romania1.8442.033
Belgium1.8442.357
Lithuania1.8432.225
Estonia1.8052.084
Croatia1.7492.025
Spain1.7301.898
Cyprus1.6992.000
Slovakia1.6911.965
Hungary1.6731.985
Austria1.6702.087
Czechia1.6531.899
Slovenia1.6341.950
Luxembourg1.6271.987
Bulgaria1.5821.896
Sweden1.4371.954
Poland1.3841.753
Malta1.3401.210

Latest figure: 2026-11-09 Data last updated 2026-11-11 · current

Source: U.S. Energy Information Administration (EIA), Gasoline and Diesel Fuel Update Public domain (U.S. government work); World Bank, Commodity Markets (Pink Sheet), modified CC BY 4.0; © European Union, Weekly Oil Bulletin (European Commission) CC BY 4.0

Prices per litre are converted by CalculatorLib from the bulletin's prices per 1,000 litres. Changes over one year are computed by CalculatorLib.

Source details and methodology

Fuel prices in United States: all figures and history

FAQ

What units does this use? Miles, MPG, and US dollars per gallon. Convert other units first if needed.

Should I use city or highway MPG? Use the figure closest to your trip — highway MPG for long drives, combined for mixed driving.

Does it include round trips? Enter the total distance you'll actually drive. For a round trip, double the one-way distance.

Last updated:

Most popular in Personal Finance

View all Personal Finance calculators