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.
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.
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.
- Distance: \(800 \div 1.609344 \approx 497.1\) miles
- Fuel economy: \(235.215 \div 7 \approx 33.6\) US MPG
- Price: \(1.20 \times 3.785 \approx 4.54\) per US gallon
- 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.
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
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
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
| Country | Petrol 95 (€/L) | Diesel (€/L) |
|---|---|---|
| Denmark | 2.391 | 2.435 |
| Netherlands | 2.196 | 2.361 |
| Finland | 2.144 | 2.485 |
| France | 2.088 | 2.178 |
| Germany | 2.067 | 2.253 |
| Greece | 2.042 | 2.099 |
| Italy | 1.995 | 2.218 |
| Ireland | 1.958 | 2.119 |
| Portugal | 1.922 | 2.135 |
| Latvia | 1.846 | 2.083 |
| Romania | 1.844 | 2.033 |
| Belgium | 1.844 | 2.357 |
| Lithuania | 1.843 | 2.225 |
| Estonia | 1.805 | 2.084 |
| Croatia | 1.749 | 2.025 |
| Spain | 1.730 | 1.898 |
| Cyprus | 1.699 | 2.000 |
| Slovakia | 1.691 | 1.965 |
| Hungary | 1.673 | 1.985 |
| Austria | 1.670 | 2.087 |
| Czechia | 1.653 | 1.899 |
| Slovenia | 1.634 | 1.950 |
| Luxembourg | 1.627 | 1.987 |
| Bulgaria | 1.582 | 1.896 |
| Sweden | 1.437 | 1.954 |
| Poland | 1.384 | 1.753 |
| Malta | 1.340 | 1.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
- U.S. Energy Information Administration (EIA), Gasoline and Diesel Fuel Update — Weekly retail gasoline and diesel prices
- World Bank, Commodity Markets (Pink Sheet), modified — Commodity Markets (Pink Sheet), monthly prices
- © European Union, Weekly Oil Bulletin (European Commission)
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.