Updated
Using Gas mileage calculator
Miles/gallon = distance/fuel. In metric mode, km/L = kilometres/litres and L/100 km = 100 × litres/kilometres. Modes label the entered quantities; they do not convert gallon definitions.
Use a consistent fill-to-fill interval. This does not convert US and imperial gallons; the result follows the gallon unit you enter.
A worked example
With miles traveled = 300, gallons used = 10, the miles per gallon is 30.
Before you use the result
Use a consistent fill-to-fill interval. This does not convert US and imperial gallons; the result follows the gallon unit you enter.
Example results for miles traveled
These examples use Gallons used: 10; Input mode: Miles and gallons. They are reference calculations, not recommended settings.
| Miles traveled | Miles per gallon |
|---|---|
| 150 | 15 |
| 300 | 30 |
| 600 | 60 |
Cite this page
ToolOctopus. “Gas mileage calculator.” Updated 2026-09-26. https://tooloctopus.com/gas-mileage-calculator.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.
