DevCalc Logo
DevCalc

Calculate ownership and running figures

Mileage Calculator

Measure car, bike, CNG or EV efficiency from trip distance or odometer readings, then calculate energy cost per kilometre and per 100 kilometres.

Measure efficiency from a known distance and the fuel or electricity used over that same distance. For petrol and diesel, a repeatable tank-to-tank test is more useful than one short trip: refill to the same automatic cut-off, record the distance, and compare several fills under similar conditions.

Calculate mileage, fuel efficiency, electricity efficiency, and running costs for Petrol, Diesel, CNG, and Electric Vehicles.

Repeatable vehicle measurementReviewed: October 2026

Tank-to-tank measurement checklist

Distance divided by fuel used

Use the same unit and the same fill method at both ends of the test. Compare several complete refills rather than treating one short journey as the vehicle average.

Reference: DevCalc calculation methodology

Compare Similar Calculators

Fuel Cost Calculator

Calculate daily, monthly, yearly fuel expenses and cost per kilometre for petrol, diesel, and CNG vehicles.

View

Distance Calculator

Calculate the distance between two points instantly using the distance formula. Find distances in coordinate geometry accurately with our free Distance Calculator.

View

EV vs. Petrol Cost Calculator

Compare the total cost of ownership between Electric Vehicles (EVs) and petrol-powered cars. Calculate savings on fuel, energy, and maintenance to determine your long-term return on investment.

View

How the Mileage Calculator Works

1

Choose the matching method

Use trip distance when it is already known, or enter previous and current odometer readings to calculate the distance.

2

Enter consumption for the same trip

Add litres, kilograms of CNG, or kWh used over exactly the distance entered above.

3

Add the current unit price if needed

Enter the price per litre, kilogram, or kWh only when you want fuel-only running cost and trip expense.

4

Compare like-for-like readings

Review efficiency and cost, then repeat the measurement across similar routes or full tanks before judging a trend.

Mileage and running-cost formulas

Distance = Current odometer − Previous odometer; Efficiency = Distance ÷ Fuel or energy used; Cost per km = Unit price ÷ Efficiency

Petrol and diesel results are shown in km/L, CNG in km/kg, and electric-vehicle efficiency in km/kWh. The price field is optional. When it is supplied, total cost equals units consumed multiplied by the unit price, and cost per kilometre equals total cost divided by distance.

Example Calculation

Input: Current odometer 12,920 km; previous odometer 12,500 km; fuel added 28 L; fuel price ₹100/L

Output: Distance 420 km; mileage 15 km/L; fuel cost ₹2,800; fuel-only cost ₹6.67/km

Common Uses

  • • Tank-to-tank mileage checks
  • • Bike and car efficiency tracking
  • • CNG efficiency in km/kg
  • • EV efficiency in km/kWh
  • • Trip fuel or electricity budgeting

Questions about this calculator

Subtract the previous odometer reading from the current reading to get distance, then divide that distance by the fuel added for the same interval. For example, 12,920 minus 12,500 is 420 km; 420 divided by 28 litres is 15 km/L.

Fill to the first automatic nozzle cut-off, record the odometer, drive normally, and refill to the same cut-off. Divide the distance by the fuel added at the second fill. Combining several full-tank intervals reduces the effect of pump and fill variation.

Yes. Select CNG for a km/kg result or EV for km/kWh. The arithmetic is still distance divided by units consumed, but the units are different and should not be compared as though litres, kilograms, and kWh were interchangeable.

When a unit price is entered, the calculator multiplies consumption by price for total trip cost and divides that cost by distance. At ₹100 per litre and 15 km/L, the fuel-only running cost is about ₹6.67 per kilometre.

Short fills, different nozzle cut-offs, idling, traffic, route, speed, load, tyre pressure, weather and air-conditioning can change a single result. Compare several readings collected with the same method before treating a difference as a trend.

No. It includes only the fuel, CNG, or electricity represented by the entered unit price. Servicing, tyres, insurance, tolls, parking, finance costs and depreciation must be added separately for a total ownership-cost estimate.

Calculate mileage from a trip or odometer readings

The calculator supports two evidence-based inputs. If the trip distance is known, divide it by the fuel or energy consumed. If you recorded two odometer values, first subtract the earlier reading from the later reading. Both methods produce the same efficiency calculation when the distance and consumption cover the same journey.

Worked tank-to-tank example

A previous odometer reading of 12,500 km and a current reading of 12,920 km give a distance of 420 km. If the second refill adds 28 litres, mileage is 420 ÷ 28 = 15 km/L. At ₹100 per litre, the refill costs ₹2,800 and the fuel-only running cost is ₹2,800 ÷ 420 = ₹6.67 per km.

Use the correct unit

Petrol and diesel efficiency is normally expressed as km/L, CNG as km/kg, and electric efficiency as km/kWh. Each result answers how far the vehicle travelled per unit consumed. Do not compare the numeric values directly without also considering the price and energy represented by each unit.

Why repeated readings are better

A single short trip can be distorted by idling, traffic, refill variation, route and weather. For a tank-to-tank check, fill to the first automatic cut-off, record the odometer, drive normally, and refill using the same method. Combine distance and fuel across multiple fills for a more stable average.

What the cost result includes

The cost fields cover only the entered fuel or electricity price. They do not include maintenance, tyres, insurance, tolls, parking, financing or depreciation. Keep those costs separate when comparing total vehicle ownership.

Learn more

Latest helpful articles

Recent guides and verified updates selected for this calculator.

View all articles

Reviewed by the DevCalc Editorial Team

This page is maintained through a documented review of calculation behavior, examples, clarity and stated limitations. DevCalc is founded and maintained by software engineer Aditya Singh. Important financial, health, legal and government figures should still be confirmed with the relevant official source.