About this Gas Mileage Calculator
Fuel economy can be expressed in several ways, and the direction of “better” depends on the unit. The Gas Mileage Calculator in this script calculates fuel efficiency from actual distance travelled and fuel used, and it can also express consumption as litres per 100 kilometres and estimate trip fuel cost.
Its source formulas use Fuel Efficiency = Distance ÷ Fuel Used and Fuel Consumption = (Fuel Used ÷ Distance) × 100.
The reference table also connects km/L with US MPG, UK MPG, and L/100 km, noting that L/100 km works inversely: a lower value is better, while a higher km/L or MPG value is better.
This makes the page useful for checking real tank-to-tank mileage, comparing vehicles advertised in different unit systems, and seeing how efficiency translates into annual fuel use. The most meaningful input is usually measured fuel consumption over a representative distance rather than a single short trip.
What Is a Gas Mileage Calculator?
A Gas Mileage Calculator measures how efficiently a vehicle uses fuel. Enter the distance driven and the fuel consumed, and the script returns distance per unit of fuel, such as km/L.
It can also invert the relationship into L/100 km, which shows how many litres are required to cover 100 kilometres. If a fuel price is entered, Trip Cost = Fuel Used × Fuel Price gives the monetary cost of that measured journey.
Because the calculator can display both efficiency and consumption, it helps prevent a common comparison mistake: 20 km/L and 5 L/100 km describe the same relationship from opposite directions, so larger is better in the first format and smaller is better in the second.
Reading Your Results
Your result shows your calculated MPG (or L/100km) along with an estimated fuel cost if you entered a price per gallon. Track this figure over time to notice trends, since a sudden drop can indicate maintenance issues like underinflated tires or a failing engine component.
How to use this calculator
The calculator determines your fuel efficiency, fuel consumption, and total trip fuel cost.
1. Fuel Efficiency (km/L)
2. Fuel Consumption (L/100 km) (Equivalent Formula)
3. Trip Fuel Cost
4. If Both is Selected
Calculate Fuel Efficiency
Calculate Trip Cost
Example 1
Example 2
Example 3
Example 4
Fuel Economy Unit Conversion
| km/L | MPG (US) | MPG (UK) | L/100 km |
|---|---|---|---|
| 8 | 18.8 | 22.6 | 12.5 |
| 10 | 23.5 | 28.2 | 10.0 |
| 12 | 28.2 | 33.9 | 8.3 |
| 15 | 35.3 | 42.4 | 6.7 |
| 18 | 42.3 | 50.8 | 5.6 |
| 20 | 47.0 | 56.5 | 5.0 |
| 25 | 58.8 | 70.6 | 4.0 |
L/100 km is inverse: lower is better, unlike km/L and MPG where higher is better.
Fuel Economy Formula Reference
| Calculation | Formula |
|---|---|
| Mileage (km/L) | Distance Travelled ÷ Fuel Used |
| MPG | Miles Travelled ÷ Gallons Used |
| L/100 km | (Fuel Used ÷ Distance) × 100 |
| km/L to MPG (US) | km/L × 2.352 |
| km/L to L/100 km | 100 ÷ km/L |
| Fuel Needed | Distance ÷ Mileage |
Fill the tank fully, reset the trip meter, then refill to measure real mileage accurately.
Annual Fuel Cost Comparison (15,000 km/year at ₹100/L)
| Vehicle Mileage | Annual Fuel Used | Annual Cost |
|---|---|---|
| 10 km/L | 1,500 L | ₹1,50,000 |
| 15 km/L | 1,000 L | ₹1,00,000 |
| 18 km/L | 833 L | ₹83,300 |
| 22 km/L | 682 L | ₹68,200 |
| 25 km/L | 600 L | ₹60,000 |
Moving from 10 to 20 km/L saves more fuel than moving from 20 to 40 km/L.
Factors Affecting Your Gas Mileage Result
Distance and fuel used are the direct measured inputs, so any error in either one changes the reported economy. Short distances can be less representative because warm-up, traffic, idling, and one unusual trip can dominate the result; a longer tank-to-tank measurement usually gives a more stable average.
Unit selection matters because US gallons and UK gallons are not the same size, and L/100 km is an inverse consumption measure rather than a distance-per-fuel measure. The source reference recommends filling the tank, resetting the trip meter, and refilling to measure real mileage accurately.
Vehicle load, speed, road conditions, tyre pressure, driving style, air-conditioning use, and maintenance can all move actual efficiency from one tank to the next. Fuel price does not affect the mileage number itself; it only affects the trip-cost output.
When comparing vehicles, use the same unit and similar driving conditions so the difference reflects efficiency rather than measurement method.
Benefits of Using the Gas Mileage Calculator
- Calculate real fuel economy from distance and fuel used instead of relying only on the manufacturer’s claimed mileage.
- View efficiency as km/L, MPG, or L/100 km and avoid misreading an inverse consumption unit as though higher were better.
- Estimate trip fuel cost from the same measured fuel quantity by adding the price per litre or gallon.
- Compare repeated fill-ups to spot whether real-world efficiency is improving, declining, or simply varying with driving conditions.
- Translate fuel economy between common unit systems so vehicles from different markets can be compared on the same basis.
Frequently asked questions
How do I calculate km/L?
The script divides distance travelled by fuel used. If a vehicle travels 500 km on 40 L, the result is 500 ÷ 40 = 12.5 km/L.
How is L/100 km different from km/L?
L/100 km measures fuel consumed for a fixed distance, so lower is better. km/L measures distance travelled on one litre, so higher is better. The source uses L/100 km = (Fuel Used ÷ Distance) × 100.
Why can US MPG and UK MPG differ for the same vehicle?
The gallon sizes are different, so the numerical MPG values are not directly interchangeable. Use the unit system identified by the calculator or convert both vehicles to a common measure before comparing them.
What is the best way to measure my actual mileage?
The source reference suggests filling the tank fully, resetting the trip meter, driving normally, then refilling. Divide the recorded distance by the fuel required to refill the tank for a practical tank-to-tank estimate.
Does fuel price change my gas mileage?
No. Fuel price changes the trip-cost result, not the physical efficiency. Mileage is based on distance and fuel used; the cost is calculated separately by multiplying fuel used by the price per unit.
Final Words
The point of the Gas Mileage Calculator is not just to return a number, but to help you calculate real fuel economy from distance and fuel used instead of relying only on the manufacturer’s claimed mileage.
One important consideration is that distance and fuel used are the direct measured inputs, so any error in either one changes the reported economy.
If the situation changes, use the Gas Mileage Calculator again and view efficiency as km/L, MPG, or L/100 km and avoid misreading an inverse consumption unit as though higher were better.
Disclaimer
This calculator provides estimates for general informational and educational purposes only and should not be treated as financial, medical, legal, or professional advice. Results depend entirely on the accuracy of the figures you enter.
Always verify important decisions with a qualified professional, official documentation, or your financial institution before acting on any result shown here.
Related Calculators
Precise age calculator that determines your exact age in years, months, days, hours, and minutes from your birth date. Calculate age differences between dates, upcoming birthdays, and various time-related calculations with detailed breakdowns and multiple format options.
Use CalculatorCalculate work hours, overtime, time sheets, hourly wages, and time tracking for payroll and project management purposes.
Use CalculatorCalculate duration between two times or dates with precise time measurements.
Use CalculatorCalculate love compatibility percentage based on names for entertainment purposes.
Use CalculatorCalculate height conversions between different units and predict adult height based on current age.
Use CalculatorRoll virtual dice with customizable sides and quantities for games and probability.
Use CalculatorConvert shoe sizes between different international sizing systems and standards.
Use CalculatorCalculate heat index and apparent temperature based on air temperature and humidity levels.
Use CalculatorCalculate Grade Point Average (GPA) for academic performance tracking with support for different grading scales and credit systems.
Use Calculator


