Gas Mileage Calculator

Gas Mileage Calculator

Growing AI Skill PRO

Enter Calculation

Formula

MPG=Distance (mi)Fuel (gal)\text{MPG} = \frac{\text{Distance (mi)}}{\text{Fuel (gal)}}

Example

MPG=30012=25\text{MPG} = \frac{300}{12} = 25
Usage stats

Advertisement

Results

Fuel Economy
25
in your selected unit system
Miles per gallon (MPG) 25
Liters per 100 km 4
Distance per fuel unit 25

Report an error on this page

What is a gas mileage calculator?

A gas mileage calculator measures how efficiently your vehicle uses fuel. By comparing the distance you traveled with the amount of fuel you burned, it tells you your fuel economy. Two common ways to express this are miles per gallon (MPG), used in the United States, and liters per 100 kilometers (L/100km), used in most other countries. The tool works for cars, motorcycles, trucks, and any fuel-powered vehicle.

How to use it

Fill your tank completely and reset your trip odometer. Drive normally until you need to refuel, then fill up again. Enter the distance shown on the trip odometer and the amount of fuel it took to refill the tank. Choose your unit system and the calculator returns your MPG, L/100km, and distance traveled per unit of fuel.

Comparison of distance-per-fuel versus fuel-per-distance measures
MPG measures distance per fuel (higher is better) while L/100km measures fuel per distance (lower is better).

The formula explained

Fuel economy is simply a ratio. To get MPG, divide the distance by the fuel used: \(\text{MPG} = \dfrac{\text{distance}}{\text{fuel}}\). To express consumption in metric terms, divide fuel by distance and scale to 100 km: \(\text{L/100km} = \dfrac{\text{fuel}}{\text{distance}} \times 100\). A higher MPG means better efficiency, while a lower L/100km means better efficiency.

$$\text{MPG} = \dfrac{\text{distance}}{\text{fuel used}} \qquad \text{L/100km} = \dfrac{\text{fuel used}}{\text{distance}} \times 100$$
Advertisement

Worked example

Suppose you drove 300 miles and used 12 gallons of gas. Your mileage is \(300 \div 12 = \) 25 MPG. If those same numbers were 300 km on 12 liters, your consumption would be \((12 \div 300) \times 100 = \) 4 L/100km, and your distance per liter would be 25 km/L.

$$300 \div 12 = 25 \text{ MPG} \qquad (12 \div 300) \times 100 = 4 \text{ L/100km}$$
Diagram of a car traveling a distance using a measured amount of fuel
Gas mileage relates the distance driven to the amount of fuel consumed.

MPG to L/100km Conversion Table

MPG measures distance per unit of fuel (higher is more efficient), while L/100km measures fuel per distance (lower is more efficient). The two are inversely related, so the conversion is a division, not a multiplication. Note that US and imperial (UK) gallons differ in size, so the same MPG number means different efficiency depending on which gallon is used.

US gallons: \(\text{L/100km} = \dfrac{235.215}{\text{MPG (US)}}\). Imperial gallons: \(\text{L/100km} = \dfrac{282.481}{\text{MPG (UK)}}\).

MPG L/100km (US gal) km/L (US gal) L/100km (imperial gal) km/L (imperial gal)
10 23.52 4.25 28.25 3.54
15 15.68 6.38 18.83 5.31
20 11.76 8.50 14.12 7.08
25 9.41 10.63 11.30 8.85
30 7.84 12.75 9.42 10.62
35 6.72 14.88 8.07 12.39
40 5.88 17.01 7.06 14.16
50 4.70 21.26 5.65 17.70

To get km/L from L/100km, divide 100 by the L/100km value. As a shortcut, km/L = MPG (US) × 0.425144, or MPG (UK) × 0.354006. Values are rounded to two decimals.

Conversion Constants Used

Constant Value
1 US gallon 3.785411784 L (exact by definition)
1 imperial gallon 4.54609 L (exact by definition)
1 mile (international) 1.609344 km (exact by definition)
US conversion constant 235.215 (L/100km × MPG)
Imperial conversion constant 282.481 (L/100km × MPG)

The derived constants come from converting 100 km into miles and one gallon into liters:

$$\frac{3.785411784 \times 100}{1.609344} \approx 235.215 \qquad \frac{4.54609 \times 100}{1.609344} \approx 282.481$$

Because \(\text{MPG} = \dfrac{\text{miles}}{\text{gallons}}\), multiplying MPG by L/100km always gives the same constant for a given gallon type, which is why the same constant converts in both directions.

Advertisement

Typical Fuel Economy Ranges by Vehicle Type

The ranges below are rough, general combined (city and highway) figures for gasoline vehicles, based on the kind of data published by the US EPA (fueleconomy.gov). They use US gallons, are approximate, and vary widely by model, year, engine, and driving conditions. They are not figures for any specific model. Check official ratings for the vehicle you care about.

Vehicle class Approx. MPG (US) Approx. L/100km
Compact car 28–38 6.2–8.4
Midsize sedan 25–35 6.7–9.4
SUV 18–30 7.8–13.1
Pickup truck 15–25 9.4–15.7
Hybrid (car) 40–55 4.3–5.9
Motorcycle 40–70 3.4–5.9

Real-world mileage is often lower than official ratings in cold weather, with aggressive driving, heavy loads, towing, under-inflated tires, or lots of short trips. For the most reliable personal figure, fill the tank, record the odometer, and calculate over several full tanks. Note that official test procedures differ by region (for example EPA in the US versus WLTP in Europe), so ratings from different standards are not directly comparable.

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

Is higher MPG better? Yes — more miles per gallon means you use less fuel to travel the same distance.

How do I convert MPG to L/100km? They are inverse-style measures; this calculator shows both at once so you do not have to convert manually.

Why is my real-world mileage lower than the sticker? City driving, idling, heavy loads, and aggressive acceleration all reduce efficiency below the rated figure.

Last updated:

Most popular in Personal Finance

View all Personal Finance calculators