How to Use the Gas Mileage Calculator: Steps and a Worked Example
Work out gas mileage and cost per mile from your odometer readings and fill-up. This guide shows what to enter, a worked example with real numbers, and the limits to keep in mind. The Gas Mileage Calculator tool is free, needs no account and runs in your browser.
What you need
- Units: choose US (miles, gallons, feet, inches), Metric (km, litres, metres, cm)
- Starting odometer (miles, or km in metric), for example 45200
- Ending odometer (miles, or km in metric), for example 45550
- Fuel added (gallons, or litres in metric), for example 12.5
- Price per gallon (or per litre in metric, optional), for example 3.50
Step by step
- Open the Gas Mileage Calculator tool.
- Choose Units.
- Fill in Starting odometer (miles, or km in metric).
- Fill in Ending odometer (miles, or km in metric).
- Fill in Fuel added (gallons, or litres in metric).
- Fill in Price per gallon (or per litre in metric, optional).
- Read the result, which updates as soon as the inputs change.
Worked example
With these inputs:
- Units: US (miles, gallons, feet, inches)
- Starting odometer (miles, or km in metric): 45200
- Ending odometer (miles, or km in metric): 45550
- Fuel added (gallons, or litres in metric): 12.5
- Price per gallon (or per litre in metric, optional): 3.50
the tool returns:
Distance: 350 miles
Gas mileage: 28 mpg
Fuel cost: $43.75
Cost per mile: $0.13
How it works
The calculation is: US: mpg = (end − start) ÷ gallons. Metric: L/100 km = litres ÷ (end − start) × 100. Enter the starting odometer, ending odometer, fuel added and price per gallon and the result appears straight away. Everything runs in your browser, so nothing you type is uploaded.
Things to keep in mind
Accurate only if the tank is filled to the same level at both readings.
Related tools
If this is not quite what you need, try Speed Distance Time Calculator, Electricity Cost Calculator or Tire Size Calculator.