MPG Calculator

MPG Calculator

Growing AI Skill PRO

Enter Calculation

Formula

MPG=Miles DrivenGallons Used\text{MPG} = \frac{\text{Miles Driven}}{\text{Gallons Used}}

Example

MPG=30012.5=24\text{MPG} = \frac{300}{12.5} = 24
Usage stats

Advertisement

Results

Miles Per Gallon (MPG)
24
Kilometers per Liter 10.2
Liters per 100 Kilometers 9.8

Report an error on this page

What This MPG Calculator Does

This tool calculates your vehicle's fuel economy in miles per gallon (MPG), the standard fuel-efficiency measure used in the United States. You enter two numbers, and it instantly returns your MPG along with two helpful metric conversions: kilometres per litre (km/L) and litres per 100 km (L/100km). That makes it useful whether you drive in the US or want to compare against fuel ratings used elsewhere in the world.

The Two Inputs You Need

  • Miles Driven — the distance covered between two fill-ups. The cleanest way to measure this is to reset your trip odometer when you fill the tank.
  • Gallons of Fuel Used — the amount of fuel you put in at the next fill-up to top the tank back to full. These are US gallons.

The Formula Explained

The core calculation is simple:

  • MPG = Miles ÷ Gallons
  • km/L = MPG × 0.425144 (converting miles-per-US-gallon to kilometres-per-litre)
  • L/100km = (100 × 3.78541 × Gallons) ÷ (1.60934 × Miles), which converts gallons to litres (3.78541 L per gallon) and miles to kilometres (1.60934 km per mile)

If gallons is zero or blank, the calculator returns 0 to avoid dividing by zero.

Advertisement
Diagram showing miles driven divided by gallons used equals miles per gallon
MPG is total miles driven divided by gallons of fuel used.

Worked Example

Suppose you drove 300 miles and used 12 gallons of fuel:

  • MPG = 300 ÷ 12 = 25 MPG
  • km/L = 25 × 0.425144 = 10.63 km/L
  • L/100km = (100 × 3.78541 × 12) ÷ (1.60934 × 300) = 4542.49 ÷ 482.80 = 9.41 L/100km

So this trip returned 25 MPG, or about 9.4 litres per 100 kilometres.

Worked example: a car driving a distance with a fuel pump showing gallons used
A worked example: dividing the trip distance by the fuel used gives the vehicle's MPG.

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

Is this US gallons or UK (Imperial) gallons? The calculator uses US gallons (3.78541 litres each). An Imperial gallon is larger (about 4.546 litres), so don't mix the two or your result will be off.

How do I get an accurate reading? Fill the tank completely, reset your trip meter, drive normally, then refill to full again. The fuel added equals the gallons used over the miles shown on your trip meter.

Why is lower L/100km better but higher MPG better? They measure efficiency in opposite directions. MPG counts distance per fuel (more is better), while L/100km counts fuel per distance (less is better). Both describe the same trip.

Last updated:

Most popular in Personal Finance

View all Personal Finance calculators