Want a Custom tool for Yourself?

Need a Custom Tool? We build custom tools that can save hours per employee per day.

Mileage Calculator

Work out mileage and running cost from distance, fuel consumed, and fuel price. A quick way to compare vehicles or plan a trip budget accurately.

Mileage Calculator





Result will appear here...


Last updated: April 9, 2026

Created by: Eon Tools Dev Team

Reviewed by: Skanda Aryal



What the mileage calculator does

In a lot of the world, mileage does not mean the number ticking up on your odometer. It means how far your vehicle goes on one liter of fuel. Ask someone in South Asia what mileage their bike gives and they will tell you a number like 50, meaning 50 kilometers to a liter. That is the number this tool works out.

You tell it the distance you drove, the fuel that took, and what the fuel cost, and it gives you your mileage in kilometers per liter, the same thing as liters per 100 km, and the part that actually hits your pocket, what each kilometer costs you to drive.

How to use it

Three boxes, all in metric.

  1. Distance Travelled. How far you drove, in kilometers.
  2. Fuel Consumed. How much fuel that distance used, in liters.
  3. Cost of Fuel. The price you paid per liter.

Press Calculate to see your mileage and your running cost. Press Reset to clear the boxes.

How your mileage and running cost are worked out

Your mileage is one simple division, distance over fuel:

Mileage (km/L) = distance ÷ fuel consumed

The tool also turns that into liters per 100 km, which is the same fact written the other way, useful if you ever need to compare against a car quoted in those units. Then it works out the money. The cost of every kilometer is your total fuel spend spread over the distance:

Cost per km = (fuel consumed × price per liter) ÷ distance

And it shows your total fuel cost too, which is simply the fuel you used times its price. So in one go you get how efficient your vehicle is and what it is costing you to drive.

An example with real numbers

Say you drove 300 km, that used 20 liters, and fuel was 1.20 per liter.

  • Mileage = 300 ÷ 20 = 15 km/L
  • The same as liters per 100 km = (20 ÷ 300) × 100 = 6.67
  • Cost per km = (20 × 1.20) ÷ 300 = 0.08 per km
  • Total fuel cost = 20 × 1.20 = 24

So the vehicle gave 15 kilometers to a liter, and each kilometer cost you eight cents, with the whole 300 km costing 24 in fuel. That cost-per-kilometer figure is the one worth remembering, because you can multiply it by any trip to know the fuel bill in advance.

Cost per kilometer, and why it is the number that matters

Mileage in km per liter tells you how efficient your vehicle is, but cost per kilometer tells you what driving actually costs, and that is the figure you can plan a budget around. Once you know it, every trip becomes a quick multiplication. A 40 km daily commute at eight cents a kilometer is about 3.20 a day in fuel. Over a month of working days, that is a real line in your budget, worked out from your own driving rather than a guess. It is also the cleanest way to compare two vehicles, because it folds both the mileage and the fuel price into a single honest number.

What good mileage looks like in km per liter

It depends heavily on the vehicle, so treat these as rough markers, not rules. A small, efficient petrol car often gives somewhere around 15 to 20 km/L, a larger car or SUV less, and many motorcycles a good deal more, sometimes 40 to 60 km/L. If your figure lands well below what is normal for your vehicle, it is worth measuring again over a longer run before reading too much into it, since a single short trip can mislead.

Getting a few more kilometers out of every liter

If your mileage looks low, a handful of habits tend to help, and none of them cost anything.

  • Keep your tires at the right pressure. Soft tires drag, and dragging burns fuel.
  • Go easy on the throttle and the brakes. Smooth, steady driving stretches a liter further than quick bursts and hard stops.
  • Lose the dead weight. A boot full of things you are not using is fuel you are paying to carry around.
  • Keep the vehicle serviced. A clean air filter, good spark plugs, and fresh oil all quietly protect your mileage.

Questions people ask

What does mileage mean here, km per liter or total distance?

Here it means fuel efficiency, your kilometers per liter, which is how the word is used across much of the world. It is not the total reading on your odometer.

How does km per liter relate to miles per gallon?

They measure the same idea, distance on a set amount of fuel, just in different units. One km per liter is about 2.35 miles per US gallon. If you need to switch between them exactly, the dedicated converters handle it.

How do I know how much fuel I used?

Fill the tank, note the distance you cover, then fill again. The fuel it takes to top back up is what that distance used. Your pump receipt gives you the liters.

Why is my real mileage lower than the company figure?

Company mileage figures come from controlled test conditions. Your roads, traffic, weather, load, and riding or driving style all use more fuel, so a real figure somewhat below the quoted one is exactly what to expect.

References

  1. National Institute of Standards and Technology (NIST), Special Publication 811: Guide for the Use of the International System of Units (SI). https://www.nist.gov/pml/special-publication-811
  2. U.S. Department of Energy and U.S. Environmental Protection Agency, FuelEconomy.gov: Gas Mileage Tips. https://www.fueleconomy.gov/feg/drive.shtml


Skanda Aryal

Skanda Aryal is a full stack engineer focused on accessible web experiences, with personal interests in time zones, travel, hiking, and geography. His enjoys playing with utilities tied to movement, schedules, places, and time based coordination. At Eon Tools, he reviews geography, transportation, times now, and date and time tools.