Mileage Calculator

This mileage calculator works out your car's fuel economy from the distance you drove and the fuel you used, and shows the answer in km per liter, liters per 100 km, US MPG and UK MPG at once. Add the price per liter to see what each kilometer, mile and 100 km really costs you. For a fleet or a long-term log, paste or drop a CSV of fill-ups with odometer readings and fuel amounts: each row's distance is taken from the previous reading, results are added as new columns and the whole log downloads as a CSV, with several files bundled into one ZIP. It is free, runs entirely in your browser, and your fuel records never leave your device. The full-tank method gives the most reliable figure: fill to the click, reset the trip meter, drive normally, then fill again and enter the trip distance and the liters of that second fill.

Fuel economy equivalents

km/LL/100 kmMPG (US)MPG (UK)
812.518.822.6
101023.528.2
12.5829.435.3
156.735.342.4
2054756.5

When to use it

  1. Check whether your car's real-world km/L matches the figure the dealer quoted.
  2. Turn a month of fuel receipts and odometer readings into a fleet mileage report.
  3. Compare the cost per km of a petrol car with a hybrid before trading in.
  4. Spot a sudden drop in fuel economy that points to tire pressure or engine trouble.
  5. Convert an imported car's MPG rating into km/L or L/100 km.

How to Use

  1. Enter the distance driven and pick km or miles.
  2. Enter the fuel used and pick liters or gallons.
  3. Optionally add the fuel price per liter for running cost.
  4. For many fill-ups, paste a CSV or drop files in batch mode and download the results.

Features

  1. km/L, L/100 km, US and UK MPG
  2. Cost per km, per mile and per 100 km
  3. Odometer-based fill-up log
  4. CSV, TSV and Excel batch input
  5. ZIP download for many files
  6. 100% client-side

FAQs

How do I calculate my car's mileage?

Fill the tank, reset the trip meter, drive, fill again, then divide the kilometers driven by the liters of the second fill. That gives km/L.

How do I convert km/L to L/100 km?

Divide 100 by the km/L figure. 12.5 km/L is 8 L/100 km.

Why are US and UK MPG different?

A UK gallon is 4.546 L and a US gallon is 3.785 L, so the same car shows about 20% higher MPG in UK units.

Can I process a whole fill-up log?

Yes. Paste or drop a CSV with odometer and fuel columns; each row is calculated from the gap to the previous reading, and the results download as a CSV.

Is my data uploaded?

No. Everything is calculated in your browser and nothing is sent to a server.

Technical Details

Distance is converted to kilometers (1 mile = 1.609344 km) and fuel to liters (1 US gallon = 3.785411784 L, 1 UK gallon = 4.54609 L). Fuel economy is then km ÷ liters for km/L, liters ÷ km × 100 for L/100 km, and miles ÷ gallons for US and UK MPG. With an optional price per liter the tool multiplies liters by price for the fuel cost and divides by distance for cost per km. In batch mode an odometer column is turned into per-fill distances by subtracting the previous row's reading (the full-tank method), so the first row is the baseline and a reading that goes backwards is flagged on that row only.

Calculators & Converters

Calculators & Converters

  • Land Area Converter (Marla, Kanal, Acre)
  • Tire Size Calculator
  • Depth of Field Calculator
  • Gear Ratio and RPM Calculator
  • Engine Displacement Calculator
  • Compression Ratio Calculator
  • Horsepower, Torque and kW Calculator
  • Wheel Offset and Backspacing Calculator