Fuel Economy Calculator

Enter each fill-up — distance, volume, optional cost — and the tool computes economy and cost per km instantly. Records are saved automatically so you always see running averages.

⛽ New fill-up

How to Use

1
Log a fill-up

Enter the distance (km), fuel volume (L), and optionally the total cost. Date defaults to today. Click "Add" to save.

2
See instant economy

Each entry shows fuel economy (km/L) and cost per km. More distance per liter = better economy.

3
Track running averages

All-time average, last-5 average, total distance, and total cost update automatically. Export as CSV for spreadsheet analysis.

FAQ

How is fuel economy calculated?

Economy = distance (km) / fuel (L). e.g., 500 km / 40 L = 12.5 km/L. Each entry is computed automatically.

How is the running average computed?

All-time average = total distance / total fuel — a weighted average that's more accurate than averaging per-entry numbers. Last-5 average uses only the most recent 5 entries.

Can I skip the cost field?

Yes — cost is optional. Without it, cost-per-km and total cost are skipped, but economy still works.

My records disappeared

Records live in localStorage, so they're cleared by "Clear browsing data" or private/incognito mode. Export to CSV regularly to keep a copy.

Is anything sent to a server?

No. All calculations and storage stay in your browser; nothing leaves the page.