Hafiz Khalid · hmsk.life

Mileage Log

Log your business miles and get the allowance at the official rate

For employees and the self-employed in Germany, the UK and the US. Germany: a Fahrtenbuch form to keep by hand, with every entry the Finanzamt expects, and the commuting and business trip allowances. UK and US: log trips in your browser and get the claim per tax year at the official rates.

Runs
In your browser
Signup
Not needed
Licence
MIT, open source
Topic
Money and paperwork
  1. 1.

    Use it free

    Open it in your browser. The first result needs no signup.

  2. 2.

    Run it yourself

    Open source under MIT. Take the code to your own server.

  3. 3.

    Stay in touch

    One email when it gets a new feature. Nothing else.

Screenshot of Mileage Log in the browser, with example data: German Fahrtenbuch to print, plus UK HMRC and US IRS mileage claims from your trips, at the 2026 rates. (open the full-size image)
Fig. 1: Mileage Log with example data.

What it does

  1. Germany: prints a Fahrtenbuch with every column the Finanzamt expects (date, odometer start and end, destination, purpose, customer, route), numbered rows, carry-over totals and a page of filling-in rules.
  2. Says plainly that an editable spreadsheet or browser log is not an ordnungsgemäßes Fahrtenbuch (BFH VI R 64/04), so the German log is a form you fill in by hand, not a file.
  3. Entfernungspauschale for 2025 and 2026 (0.38 € from the first km since 2026, 4,500 € cap unless you drive your own car) and the 0.30 € / 0.20 € per km rate for business trips.
  4. UK: HMRC approved mileage allowance per tax year (55p for the first 10,000 miles from 2026-27, 45p before, then 25p; motorcycles 24p; bikes 20p; 5p per passenger) and the Mileage Allowance Relief left to claim after what your employer paid.
  5. US: IRS standard mileage rate by trip date, including the mid-2026 change from 72.5¢ to 76¢, plus medical, moving and charity miles and parking and tolls.
  6. Trips stay in your browser. Export as CSV or print to PDF, import the CSV back. Every rate is listed with its official source and checked by a built-in self-test.

Why I built it

When I looked for a free Fahrtenbuch template, most of them were Excel files, and the Finanzamt does not accept a log you can edit afterwards without a trace. So the German part of this tool gives you a proper paper form and the allowance maths, and says honestly why it does not store your log. For the UK and the US, where a simple record of trips is enough, it keeps the log and does the per-year arithmetic, including the 2026 rate changes that many calculators still miss.

Hafiz

Limits. Not tax advice. Rates checked against GOV.UK, the IRS and German law on 19 October 2026. HMRC raised the car rate to 55p for 2026-27 and the IRS raised the business rate to 76¢ from 1 July 2026.

Run it on your own server

Static files, no build step and no dependencies. Any web server works; tests run with Node.js 20+ (node --test tests/).

Stack
HTML, JavaScript
Licence
MIT
git clone https://github.com/Shazi1212/hmsk-mileage.git

Also for your paperwork

Newsletter

Hear when Mileage Log gets better.

One email when Mileage Log or another tool gets a real update. A few times a year, no tracking.