MPG = miles driven ÷ US gallons of fuel used.
That formula answers the basic mileage question using two measurements: the distance traveled and the fuel consumed over the same journey. The Gas Mileage Calculator accepts those inputs, supports imperial and metric units, and displays MPG, L/100km, and km/L together.

Match the unit system to your records
Unit consistency comes before the arithmetic. The calculator's imperial setting uses miles and US gallons, while its metric setting uses kilometers and liters. Choose the system that matches the measurements in your fuel records.
- Imperial: Enter distance in miles and fuel used in US gallons. This is the appropriate choice for a US-gallon figure.
- Metric: Enter distance in kilometers and fuel used in liters. This avoids needing to convert either value first.
- One trip, one unit system: Do not combine miles with liters or kilometers with gallons. Distance and fuel must use matching units.
Although the mode is called imperial, its gallon input is specifically the US gallon. That distinction matters when comparing figures from different countries.
Run the mileage calculation
You can use the calculator directly or perform the same division with a basic calculator. The supported workflow is deliberately short.
- Choose imperial or metric. Set the unit system before entering values so the distance and fuel labels match your records.
- Enter the distance and fuel used. Use the distance covered between your measurements and the fuel consumed over that same interval.
- Read the output below the inputs. The calculator displays MPG, L/100km, and km/L at once.
Worked example: Formula: MPG = miles ÷ US gallons. Substitution: 300 miles ÷ 10 US gallons. Result: 30 MPG. The calculator also gives the L/100km and km/L equivalents for the same two inputs.
For metric consumption, the equivalent relationship is liters used ÷ kilometers driven × 100. This expresses the same fuel economy in the consumption format common in many countries.
Interpret MPG, L/100km, and km/L
One trip can be expressed in several valid ways, but the direction of “better” depends on the unit. MPG and km/L measure distance per amount of fuel, while L/100km measures the fuel used for a fixed distance.
| Output | What it measures | Formula | Better result |
|---|---|---|---|
| MPG | Efficiency: distance per fuel | Miles ÷ US gallons | Higher |
| L/100km | Consumption: fuel per distance | Liters ÷ kilometers × 100 | Lower |
| km/L | Efficiency: distance per fuel | Kilometers ÷ liters | Higher |
A higher MPG or km/L means better fuel economy; a lower L/100km also means better fuel economy. That is why a rising MPG and a falling L/100km agree rather than contradict each other.
For US MPG, the fixed relationship is L/100km = 235.214583 ÷ MPG. Use MPG or L/100km as the headline figure for your audience, but keep both available when comparing a US-gallon result with a metric result.
Measure distance and fuel over a full tank
The formula is simple, but measurement noise can make a personal result inconsistent. A full-tank method keeps the distance and fuel tied to the same interval.
- Fill the tank completely. Start with a known full tank.
- Reset the trip meter or note the odometer. This establishes the starting distance.
- Drive normally, then continue until you need to refill.
- Fill the tank completely again. Record the fuel amount shown by the pump. Because the tank was full at both measurements, this refill amount represents the fuel used over the recorded distance.
- Enter the distance difference and fuel used. The result then represents the measured full-tank cycle.
For a steadier personal baseline, repeat the full-tank process over several fill-ups instead of relying on one short trip. Short journeys can make a single reading noisy because the fuel consumed is only a small portion of the tank. If you use the odometer instead of the trip meter, subtract the starting reading from the ending reading.
Check the gallon standard before comparing results
MPG is only directly comparable when the gallon definition is the same. The calculator's imperial option uses the US gallon, which is 3.785411784 liters. A UK Imperial gallon is a different volume: 4.54609 liters, about 20% larger.
| Gallon standard | Volume | How to use it |
|---|---|---|
| US gallon | 3.785411784 liters | Used by the calculator's imperial option |
| UK Imperial gallon | 4.54609 liters | About 20% larger; do not mix it with US-gallon MPG |
Country labels are not interchangeable. Before comparing an MPG number with a figure from a UK source, check which gallon it uses. If your records are in kilometers and liters, enter them in metric mode. If they are in UK gallons, convert the fuel quantity to liters and the distance to kilometers before using metric mode; do not treat UK gallons as US gallons.
Use the result as a fuel-economy baseline
Once you have a repeatable baseline, you can use it to see whether changes in driving or maintenance affect fuel economy. Keep the measurement method consistent so the comparison remains meaningful.
- Keep tires at their correct pressure to reduce rolling resistance.
- Ease off hard acceleration and braking.
- Remove roof boxes and heavy items you do not need.
- Hold steady, moderate speeds because economy can fall sharply at high motorway speeds.
- Keep up regular servicing and use the recommended oil and fuel grade.
The result is an efficiency measure, not a score for the entire vehicle or a trip-cost estimate. A higher MPG is better within the same fuel-economy definition, but it does not include factors outside the distance-and-fuel calculation.
Understand the calculator's limits
The calculator has a narrow purpose: it converts the distance and fuel used you supply into three fuel-economy views. It does not estimate how much fuel a vehicle should use, identify a vehicle model, or calculate trip cost. If only the distance is known, there is not enough information for a valid MPG result.
Accuracy therefore depends on the inputs. Use matched units, make sure the fuel amount covers the same distance, and check the gallon standard before relying on the figure. Results appear as you type, there is no button to press, and nothing is uploaded.
For a deeper look, see How to Calculate Grades in Excel With Formulas.
For a deeper look, see Hardness Conversion Calculator Formula: A Practical Guide.