Documentation

Purpose

This fuel calculator estimates fuel consumption, total fuel cost, and per-km cost from distance, fuel used, and fuel price to help evaluate vehicle efficiency.

Steps

  1. Enter trip distance in kilometers.
  2. Enter fuel used in liters.
  3. Enter current fuel price in CNY per liter.
  4. Review live results for L/100km, total cost, and cost per km.

Calculation Notes and Tips

Calculation Logic

  • L/100km = (Fuel Used / Distance) x 100.
  • Total Fuel Cost = Fuel Used x Fuel Price.
  • Cost per km = Total Fuel Cost / Distance.
  • If distance is less than or equal to 0, only total fuel cost is shown.

Use Cases

  • Track daily commuting fuel expenses and monthly vehicle costs.
  • Estimate road trip fuel budgets before departure.
  • Compare efficiency across vehicles, routes, and driving habits.

Notes

  • Use values from the same refuel cycle for better accuracy.
  • Decimal input is supported and normalized on blur.
  • All calculations run locally in your browser.