Gas Mileage Calculator

Calculate your vehicle's fuel economy in miles per gallon (MPG) from the miles you drove and the gallons you used. The result also shows the equivalent in liters per 100 kilometers.

Fuel economy

29.1 MPG

8.1 L/100km

Who should use it: Drivers checking their real-world fuel economy after a fill-up or trip.

How to use this calculator

  1. 1Enter the miles you drove.
  2. 2Enter the gallons of fuel you used over that distance.
  3. 3Review your fuel economy in MPG and L/100km.

Understanding the inputs

Miles drivenThe distance you covered, in miles.
Gallons usedThe amount of fuel consumed over that distance, in US gallons.

How the calculation works

The calculator divides the miles driven by the gallons used to get miles per gallon (MPG). It also converts that to liters per 100 kilometers using the fixed factor 235.215 ÷ MPG, which is the standard relationship between US MPG and L/100km. This measures your actual fuel economy from real driving data, which is different from the Fuel Cost calculator that estimates a trip's cost from an assumed MPG.

MPG = miles ÷ gallons; L/100km = 235.215 ÷ MPG

Worked example

Scenario: You drove 320 miles and used 11 gallons.

Result: MPG = 320 ÷ 11 ≈ 29.1 MPG; L/100km = 235.215 ÷ 29.1 ≈ 8.1 L/100km.

How to interpret your result

The MPG figure is your real fuel economy over the distance you drove — higher is more efficient. The L/100km figure is the same efficiency expressed in the metric unit used in many countries, where lower is more efficient. Your result reflects actual driving conditions, so it may differ from the manufacturer's advertised MPG.

Factors that can affect the result

  • Miles driven: a longer distance with the same fuel use raises your MPG.
  • Gallons used: more fuel for the same distance lowers your MPG.
  • Driving conditions: city driving, heavy loads, and high speed reduce real-world MPG.
  • Fill-up accuracy: topping off inconsistently can skew the gallons figure and the resulting MPG.

Limitations and assumptions

  • Uses miles and US gallons only; it does not accept kilometers or liters directly.
  • The L/100km conversion uses the US gallon (235.215 factor); imperial gallons use a different factor.
  • Reflects only the driving recorded; a single trip may not represent your typical fuel economy.
  • Does not account for fuel used while idling or before the odometer reading was taken.

Frequently asked questions

Related calculators

Related guides

Methodology

The calculator divides miles driven by gallons used to get MPG, then converts to liters per 100 kilometers using the fixed factor 235.215 ÷ MPG (based on the US gallon).

Sources and references

  • Mathematical basis — MPG is a direct distance-per-volume ratio; the 235.215 factor is the standard US-gallon conversion between MPG and L/100km
Last reviewed: August 2026. Read our editorial policy.

Disclaimer: Results are provided for informational purposes and may vary depending on the values entered, the assumptions described above, and rounding. They are not a substitute for professional advice specific to your situation. Read the full disclaimer.