Formula and method
Measured distance divided by consumed fuel gives distance per volume. Normalize distance and gallons before showing US MPG, Imperial MPG, km/L and L/100 km. The separate energy input powers the Gasoline Gallon Equivalent output: divide entered energy by 33.7 kWh/GGE. An energy equivalent is not another fuel’s physical gallon volume.
US MPG = miles / US gallons consumed
Gallons per Mile = 1 / US MPG
L/100 km = 235.214583333… / US MPG
GGE = entered energy (kWh) / 33.7
Energy (kWh) = energy (MJ) / 3.6
Understanding your inputs
- Distance unit
- miles or kilometers
- Measured distance traveled
- Enter mi. Accepted input range: 0.001–10000000.
- Consumed fuel unit
- US gallons or Imperial gallons or liters
- Measured fuel consumed
- Enter US gal. Accepted input range: 0.001–100000.
- Energy unit for GGE comparison
- kWh or MJ
- Total energy for GGE comparison
- Enter kWh. Accepted input range: 0.001–100000000. Separate energy comparison input. Example: 12 gasoline gallon equivalents × 33.7 kWh. Do not enter another fuel’s gallons as kWh.
Worked example
The measured example is 360 mi over 12 US gallons, giving 30 US MPG and 0.03333 US gal/mi. The separate energy example is 404.4 kWh, equal to 12 GGE under the stated convention.
Example inputs
- Distance unit
- miles
- Measured distance traveled
- 360 mi
- Consumed fuel unit
- US gallons
- Measured fuel consumed
- 12 US gal
- Energy unit for GGE comparison
- kWh
- Total energy for GGE comparison
- 404.4 kWh
Default result: Measured gas mileage: 30.00 mpg (US).
Assumptions
- Consumed fuel is measured over the same distance interval, preferably between comparable fill levels.
- The GGE energy quantity is a separate input; the example does not assert a fixed heating value for every real blend.
Limitations
- Unequal fill levels and odometer error affect measured economy. Average multiple intervals by total distance divided by total fuel.
- Energy-based distance is a scenario comparison, not an EPA-certified MPGe rating or a prediction of engine efficiency.
Common mistakes
- Dividing fuel by distance while labelling the result MPG.
- Entering a count of diesel gallons or battery capacity as energy consumed without conversion and measurement.
Sources and methodology
Method reviewed October 1, 2026. Formulas are implemented independently; references explain the dimensions, ratings or application requirements.
- NIST — SI conversion factors ↗
Miles, liters, US/Imperial gallons and reciprocal fuel-economy conversions.
- US EPA — fuel economy and annual fuel cost conventions ↗
MPG, consumption per distance and estimated annual fuel costs depend on explicit assumptions.
- US Department of Energy — gasoline energy-equivalent convention ↗
33.7 kWh per gasoline gallon equivalent for energy-based comparisons.
Frequently asked questions
What is Gallons per Mile?
It is fuel volume divided by traveled distance, the reciprocal of MPG. Lower values mean less fuel consumed at equal distance.
Why does GGE have its own input?
Different fuels have different energy content. Enter the actual or specified energy quantity; this tool does not invent a universal gallons-to-energy factor for every fuel.