Gas Estimator

Gas Estimator

Growing AI Skill PRO

Enter Calculation

Official valueYour valueOfficial value: 3.995 USD/gal · U.S. Energy Information Administration ·

Formula

Trip Cost=DE×Pwhere{D=Distance(mi)E=Efficiency(mpg)P=Fuel Price(/gal)\begin{gathered} \text{Trip Cost} = \frac{D}{E} \times P \\[1.5em] \text{where}\quad \left\{ \begin{aligned} D &= \text{Distance}\ (\text{mi}) \\ E &= \text{Efficiency}\ (\text{mpg}) \\ P &= \text{Fuel Price}\ (\text{/gal}) \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Estimated Trip Cost
$15.98
Trip Input Details
Distance 100 miles
Fuel Efficiency 25 miles per gallon
Fuel Price $3.995/gal
One-Way Trip Results
Fuel Needed 4.00 gallons
Trip Cost $15.98
CO₂ Emissions 35.55 kg
Round Trip Estimates
Total Fuel Needed 8.00 gallons
Total Cost $31.96
Total CO₂ Emissions 71.10 kg

Report an error on this page

What Is the Gas Cost Calculator?

The Gas Cost Calculator helps you estimate how much fuel a trip will cost before you set off. Whether you're planning a road trip, budgeting a daily commute, or splitting fuel costs with friends, this tool turns your distance, vehicle efficiency, and current fuel price into a clear dollar (or any currency) figure. It works worldwide because it supports both imperial and metric units — miles or kilometers, miles per gallon (mpg), kilometers per liter (kpl), or liters per 100 km — and lets you enter the price per gallon or per liter to match your region.

How to Use It

  • Distance: Enter the total trip distance in miles or kilometers.
  • Fuel efficiency: Enter your vehicle's economy using the unit you prefer (mpg, kpl, or L/100 km).
  • Fuel price: Enter the current pump price per gallon or per liter.
  • The calculator instantly shows how much fuel you'll use and the total cost.

You can find your vehicle's efficiency on the manufacturer's spec sheet, your dashboard trip computer, or by dividing distance traveled by fuel used over a few fill-ups.

The Formula Explained

The core math is simple. First, work out the fuel needed, then multiply by price:

$$\text{Trip Cost} = \frac{D}{E} \times P \\[1.5em] \text{where}\quad \left\{ \begin{aligned} D &= \text{Distance}\ (\text{miles}) \\ E &= \text{Efficiency}\ (\text{mpg}) \\ P &= \text{Fuel Price}\ (\text{USD/gal}) \end{aligned} \right.$$
  • Using mpg: Fuel used = Distance \(\div\) mpg, then Cost = Fuel used \(\times\) price per gallon.
  • Using L/100 km: Fuel used = (Distance \(\div\) 100) \(\times\) L/100 km, then Cost = Fuel used \(\times\) price per liter.
Advertisement
Diagram showing trip cost equals distance divided by fuel efficiency times fuel price
The gas cost formula: divide distance by fuel efficiency, then multiply by fuel price.

Worked Example

Suppose you're driving 300 miles in a car that gets 30 mpg, with gas priced at $3.50 per gallon:

  • Fuel used = \(300 \div 30 = 10\) gallons
  • Total cost = \(10 \times \$3.50 =\) $35.00

For a metric example: 480 km at 7 L/100 km, fuel at $1.60/L \(\rightarrow (480 \div 100) \times 7 = 33.6\) liters \(\times \$1.60 =\) $53.76.

Worked example showing a car traveling a distance with fuel gauge and resulting cost
Worked example: distance, fuel efficiency, and price combine into a total trip cost.

Fuel Unit and Efficiency Conversions

These volume and length factors are exact by definition:

  • 1 US gallon = 3.785411784 litres (exact)
  • 1 imperial (UK) gallon = 4.54609 litres (exact)
  • 1 mile = 1.609344 km (exact)

The efficiency conversions follow from those definitions:

$$\text{L/100 km} = \frac{235.215}{\text{mpg (US)}} \qquad \text{L/100 km} = \frac{282.481}{\text{mpg (imperial)}}$$$$\text{L/100 km} = \frac{100}{\text{kpl}} \qquad \text{kpl} = \text{mpg (US)} \times 0.425144$$

Fuel price converts the same way as volume:

$$\text{price per litre} = \frac{\text{price per US gallon}}{3.785411784}$$

So $3.50 per US gallon is about $0.9246 per litre, and €1.60 per litre is about €6.057 per US gallon. Always pair the price unit with the efficiency unit — a price per gallon with an L/100 km figure gives a meaningless answer.

Common equivalents (US mpg basis)

mpg (US) L/100 km km per litre (kpl) mpg (imperial equivalent)
15 15.7 6.4 18.0
20 11.8 8.5 24.0
25 9.4 10.6 30.0
30 7.8 12.8 36.0
40 5.9 17.0 48.0
50 4.7 21.3 60.0
60 3.9 25.5 72.1

Worked check for one row: \(235.215 \div 20 = 11.76\) L/100 km, and \(20 \times 0.425144 = 8.50\) kpl.

Why the two gallons matter

The imperial gallon used in the United Kingdom is about 20.1% larger than the US gallon (4.54609 L versus 3.785411784 L). A car rated at 40 mpg in UK magazines is roughly 33 mpg on the US scale — the same physical consumption of about 7.1 L/100 km. If your source figure comes from a UK publication, convert it before entering it, or the trip cost will be underestimated by roughly a fifth. Note also that fuel is sold by the US gallon in the United States, by the imperial gallon in a few jurisdictions, and by the litre across most of Europe, Asia, Africa and Latin America (as well as in Canada and the UK at the pump).

Advertisement

Interpreting Your Estimated Trip Cost

The number this calculator returns is fuel cost only, at one assumed price and one steady efficiency figure, for one distance. It does not include tolls, congestion or road-user charges, ferries, parking, tyres, oil, servicing, insurance, registration, depreciation, or the cost of a rental. For an electric vehicle it does not apply at all — that calculation uses kWh and a per-kWh tariff instead of volume and a per-litre or per-gallon price.

Why the real number is usually a little higher

The formula assumes constant consumption over the whole distance. Actual on-road consumption moves with:

  • Speed — aerodynamic drag grows with the square of speed, so sustained high-speed motorway running consumes noticeably more per kilometre than a moderate cruise.
  • Load and towing — passengers, luggage, roof boxes and trailers add mass and drag.
  • Terrain — climbs, mountain passes and constant elevation change raise consumption; only part of the energy comes back on descent.
  • Traffic pattern — stop-and-go driving and idling burn fuel while covering little or no distance.
  • HVAC use — air conditioning and, in some vehicles, cabin heating draw extra engine load.
  • Cold starts and short trips — an engine below operating temperature runs richer, so a series of short hops costs more per mile than one long drive of the same total length.
  • Tyre pressure and condition — under-inflated tyres increase rolling resistance.
  • Fuel grade and blend — seasonal and ethanol-blended fuels differ slightly in energy content per litre.

For these reasons the result is best read as a baseline, closer to a lower bound than an average, for anything other than gentle steady-state driving. A practical habit is to add a margin of roughly 10–20% for demanding conditions (mountains, heavy load, winter, heavy traffic) and to remember that fuel prices along an unfamiliar route may be higher than at your home station.

Cost per mile or per kilometre

Dividing the total by the distance gives a unit figure you can compare across vehicles, routes and fuel prices:

$$\text{Cost per mile} = \frac{\text{Trip Cost}}{D} = \frac{P}{E}$$

Notice the right-hand form: the per-mile fuel cost depends only on price and efficiency, not on how far you drive. Example — a 1,200-mile road trip in a vehicle averaging 25 mpg with fuel at $3.60 per US gallon:

$$\frac{1200\ \text{mi}}{25\ \text{mpg}} = 48\ \text{gal} \qquad 48 \times \$3.60 = \$172.80$$

That gives a trip total of $172.80 and a unit cost of $172.80 ÷ 1,200 = $0.144 per mile, which is the same as $3.60 ÷ 25. In metric terms, a car at 6 L/100 km with fuel at €1.60/L costs \(0.06 \times 1.60 = €0.096\) per kilometre.

Splitting the cost between passengers

To share fuel among travellers, divide the total by the number of people contributing:

$$\text{Share per person} = \frac{\text{Trip Cost}}{n}$$

The same $172.80 trip split three ways is $57.60 each; split four ways it is $43.20 each. If the group is only sharing part of the route, apply the per-mile figure to the shared segment instead: 400 shared miles × $0.144 = $57.60 to divide. Whether non-fuel costs (tolls, parking, wear) are also shared is an arrangement to agree in advance — this calculator does not model them.

Rated economy versus observed economy

Manufacturer economy figures come from standardised laboratory test cycles — EPA ratings in the United States, WLTP in the European Union and the United Kingdom, and other national procedures elsewhere (for example Japan's WLTC-based labelling). These cycles are designed for comparability between vehicles, not for predicting your specific route, and observed on-road economy commonly differs from the rated figure in either direction. The most reliable input is your own measured average: fill the tank, record the odometer, drive normally, refill, and divide the distance covered by the fuel added. Repeating that over several tanks smooths out fill-level variation and gives a figure that already contains your real driving conditions.

This section is descriptive only. It explains what the arithmetic does and does not cover; it is general information rather than financial or professional advice about vehicle purchases, travel budgets or fuel hedging.

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

Frequently Asked Questions

Does this account for traffic or terrain? No. The estimate assumes steady, real-world efficiency. Heavy traffic, hills, and aggressive driving raise consumption, so add a buffer of 10–15% for tough conditions.

Can I use it for a round trip? Yes — simply enter the total round-trip distance, or double a one-way figure.

What about electric vehicles? This tool is designed for gasoline and diesel vehicles. EVs use cost per kWh instead, which requires a different calculation.

Last updated:

Most popular in Personal Finance

View all Personal Finance calculators