What this calculator does
This gas mileage (fuel economy) calculator works out how efficiently your vehicle uses fuel from two simple numbers: the distance you traveled and the amount of fuel you consumed. It is a pure unit-conversion and arithmetic tool, so it applies anywhere in the world. It reports your result in four common formats at once: MPG (US), MPG (Imperial), kilometers per liter (km/L) and liters per 100 km (L/100km). "Gas" or "gasoline" here means petrol.
How to use it
Choose how you want to enter distance. With Trip Distance you type a single distance value; with Odometer Readings you enter the start and end odometer values and distance is computed as end minus start. Pick the distance unit (miles or km) and enter the fuel used along with its unit (US gallons, Imperial gallons or liters). Optionally add a fuel price (per gallon or liter) to get the total trip cost and cost per mile/km, or a per-distance price for a mileage-reimbursement style total.
The formula explained
Distance and fuel are first normalized to a canonical set of units. Then $$\text{MPG (US)} = \dfrac{\text{miles}}{\text{US gallons}}$$ $$\text{MPG (Imperial)} = \dfrac{\text{miles}}{\text{Imperial gallons}}$$ $$\text{km/L} = \dfrac{\text{km}}{\text{liters}}$$ and $$\text{L/100km} = \dfrac{\text{liters}}{\text{km}} \times 100$$ Note that a US gallon (\(3.785411784\ \text{L}\)) is smaller than an Imperial gallon (\(4.54609\ \text{L}\)), so the same fuel gives a higher MPG figure in Imperial units. L/100km is inverse: lower is better.
Worked example
Drive 250 miles on 12 US gallons. $$\text{MPG (US)} = \frac{250}{12} = 20.83$$ Converting, \(12\ \text{US gal} = 45.42\ \text{L} = 9.99\ \text{Imp gal}\) and \(250\ \text{mi} = 402.34\ \text{km}\), so MPG (Imp) = 25.02, km/L = 8.86 and L/100km = 11.29. At $3.50 per US gallon the trip costs $$3.50 \times 12 = \$42.00$$ or about $0.168 per mile.
Fuel prices this week: United States
Average retail prices of regular gasoline and diesel across the United States, week of 2026-11-16, 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-16)
- $3.805/gal +24.3% since 2025-11-17
- Diesel (2026-11-16)
- $5.937/gal +53.5% since 2025-11-17
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-16 Data last updated 2026-11-17 · 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
Why are US and Imperial MPG different? Because the gallons differ in size. An Imperial gallon is about 20% larger, so Imperial MPG figures are about 20% higher for the same real economy.
Is lower L/100km better? Yes. L/100km measures fuel used per fixed distance, so a smaller number means a more efficient vehicle.
Can I use odometer readings? Yes. Switch to Odometer Readings and enter the start and end values; the distance is the difference, which must be positive.