Skip to main content
Toolskmpl-mileage-calculator9 min read

How to calculate bike or car mileage: the tank-to-tank method

Worked fuel logs show why the first fill never counts, how partial top-ups are carried forward and why a plain average of tanks gives the wrong km/l.

Published

Cover banner: How to calculate bike or car mileage: the tank-to-tank method, with the free KMPL Mileage Calculator

To calculate bike or car mileage, fill the tank to the brim and note the odometer; at the next brim fill, divide the kilometres covered by the litres the pump put in. 540 km on 36.2 litres is 14.92 km/l. Never count the first fill's litres, and average three or more tanks as total distance divided by total litres.

Why the fuel gauge cannot give you the number

The odometer measures distance well enough; the fuel side is the problem. A fuel gauge shows a level, not a quantity in litres, and the needle on most vehicles is not marked in litres at all. Reading "half a tank" twice and calling it 50% of the tank's capacity gives you a figure that can be off by more than the difference you are trying to measure.

The only instrument in the chain that measures litres is the fuel pump. So the method has to be built around the pump: start and end the measured stretch at the same reference level, a full tank, and let the pump tell you exactly how much fuel was burnt in between. That is the whole idea behind the brim-to-brim method, also called tank-to-tank, and it is what the AltFTool KMPL Mileage Calculator and Bike Mileage Tracker expect you to enter.

The brim-to-brim method, fill by fill

The procedure is the same for a 5-litre scooter tank and a 45-litre car tank:

  1. Fill the tank until the nozzle clicks off on its own, and do not top it up by hand afterwards.
  2. Write down the odometer reading. You can note the litres too, but they will not be counted.
  3. Ride or drive as you normally would until the tank is at least half empty.
  4. Return to the same pump if you can, with the vehicle parked the same way, and fill until it clicks off again.
  5. Write down the new odometer reading and the litres shown on the pump.
  6. Divide the distance since the last full fill by those litres to get km/l for that tank.

The reason for "the same pump, parked the same way" is that "full" is only a reference level if it is the same level each time. Nozzle cut-off points differ between pumps, and a vehicle parked on a slope, or a motorcycle on its side stand instead of upright, holds a different amount before the nozzle clicks.

KMPL Mileage Calculator

Enter each brim-to-brim fill and get km/l, L/100 km, US and UK mpg averaged over every tank.

Open KMPL Mileage Calculator

Why the first fill's litres never count

The first fill tops up fuel that was burnt before you started measuring. The distance that fuel paid for is not in your log, so including it inflates the litres and drags the result down. Here is a worked car log, computed with the KMPL Mileage Calculator:

FillOdometer (km)Litres dispensedDistance since last fillkm/l for this tank
1 (baseline)20,00038.0 (not counted)––
220,54036.2540 km14.92
321,01033.1470 km14.20
421,62541.8615 km14.71

Correctly, 1,625 km on 111.1 litres is 14.63 km/l. Add the baseline's 38 litres to the total and the same log reports 10.90 km/l, a quarter lower, for a car that did not change at all. A spreadsheet that sums every fill-up, including the first, makes exactly this mistake.

Average several tanks, weighted by distance

One tank is a small sample, and how full "full" ends up is the biggest source of noise. On a small tank the effect is large: 180 km on 3.0 litres is 60.00 km/l, but if the second fill happens to take half a litre more or less, the same ride reads 51.43 or 72.00 km/l. That is why a single tank can look better or worse than the bike really is, and why three or four consecutive tanks give a figure worth trusting.

How you average those tanks matters too. This worked motorcycle log, with an example price of ₹100 per litre, includes a partial top-up and one very short tank. Computed with the Bike Mileage Tracker:

StretchFills in the stretchDistanceLitreskm/l
12,000 → 12,310 km1 full310 km5.062.00
12,310 → 12,640 km1 partial (2.0 L) + 1 full (3.6 L)330 km5.658.93
12,640 → 12,700 km1 full60 km1.250.00

Two things happen here. First, the partial top-up does not close a stretch. Its 2.0 litres are carried forward and counted when the next full tank closes the stretch, so the log stays accurate even though you did not brim it every time. Second, the overall figure is total distance over total litres: 700 km on 11.8 litres is 59.32 km/l. A plain average of the three per-tank numbers gives 56.98 km/l, because it gives the 60 km stretch the same weight as the 330 km one. The distance-weighted figure is the one that matches what you actually pay: at the example price this log works out to ₹1.69 per kilometre, or about 15.2 litres and ₹1,517 a month at 900 km.

km/l, L/100 km and mpg from the same log

Once you have km/l, every other unit is arithmetic. Litres per 100 km is 100 divided by km/l. For miles per gallon, the calculator uses the exact legal definitions: a mile is 1.609344 km, a US gallon is 3.785411784 litres and an imperial gallon is 4.54609 litres. That makes 1 km/l equal to 2.352 US mpg or 2.825 imperial mpg.

km/lL/100 kmUS mpgUK (imperial) mpg
156.6735.2842.37
402.5094.09112.99
502.00117.61141.24
601.67141.13169.49

If you are comparing your figure with a review or a spec sheet from another country, check which gallon it uses before deciding your vehicle is underperforming. The same 15 km/l is 35 mpg to an American reader and 42 mpg to a British one. The MPG to KMPL Converter handles both directions.

Mistakes that skew the result

  • Topping up after the click. Squeezing in extra fuel by hand changes the reference level, and the next tank will read too high or too low.
  • Mixing pumps or parking positions. Different cut-off points mean a different "full" each time.
  • Logging the price instead of the litres. Rupee amounts change with the fuel price; litres do not. If you only kept the bill, divide it by the price per litre printed on it.
  • Dropping a partial fill from the log. If you skip writing down a top-up, its litres vanish and the next stretch looks better than it was. Log it as partial instead.
  • Judging from one tank. As shown above, half a litre on a small tank moves the answer by several km/l.
  • Averaging the per-tank numbers. Divide total distance by total litres instead.

Once you have a measured figure, the Fuel Cost Calculator turns it into a trip cost, and the Highway vs City Mileage Estimator shows how a mix of city and highway driving moves it.

Frequently asked questions

At least three consecutive brim-to-brim stretches. One tank is distorted by how full each fill ended up; over several tanks those errors partly cancel, and the distance-weighted average settles down.

Not accurately. Without a known level at the start and end, you do not know how much fuel was used. You can add partial top-ups in between, but each measured stretch has to start and end with a full tank.

You can, but it is less reliable than brim-to-brim. Running a bike dry and adding exactly 1 litre depends on how empty the tank really was, and the bike may stall in traffic. Over one litre a small error in the remaining fuel moves the figure a lot; a full tank spreads the same error over five or more litres.

Yes. km/l, kmpl and km per litre are three ways of writing the same unit: kilometres travelled per litre of fuel.

Divide the amount paid by the price per litre printed on the bill to get the litres, then divide the kilometres since the last full tank by those litres. A ₹360 fill at ₹100 a litre is 3.6 litres.

Reader feedback

Was this guide helpful?

Your signal helps the editorial team improve stale or unclear guides faster.

Written by

Every figure was computed on 2026-11-13 with the site's own code: computeMileageFromFills and convertMileage (kmpl-mileage-calculator/lib.js) and computeFuelLog (bike-mileage-tracker/lib.js). The fuel logs and the ₹100 price are worked examples, not measurements of a real vehicle.

Your inbox, your topics

What do you want more of?

Pick the topics you'd like in your inbox. We've ticked one that matches this guide — change them freely.

Topics you want more of

Up to 200 characters.

Privacy policy

Discussion

0 comments

Loading discussion