Fuel Calculator
Fuel Calculator tool
About Fuel Calculator
This tool does two fuel-related calculations. In 'cost' mode, given a trip distance, vehicle consumption, and fuel price, it computes fuel needed, total cost, and cost per distance unit. In 'distance' mode, given a budget, consumption, and fuel price, it computes the maximum distance you can drive and how much fuel that budget buys. Metric uses L/100km and km; imperial uses MPG and miles.
How to Use
1. Pick a Calculation mode: 'Trip cost' or 'Distance from budget'. 2. Pick a Unit system: Metric or Imperial. 3. Enter the trip Distance (cost mode) or Budget (distance mode). 4. Enter Consumption — L/100km for metric, MPG for imperial. 5. Enter Fuel Price (per litre metric, per gallon imperial). 6. Click Calculate. Non-positive values show a 'fill all fields' toast; Reset clears inputs.
Calculation Formulas
Cost mode — metric: fuelNeeded = distance × consumption / 100 (L); imperial: fuelNeeded = distance / consumption (gal). totalCost = fuelNeeded × price; costPerUnit = totalCost / distance (per km or per mile). Distance mode — fuelAmount = budget / price; metric maxDistance = fuelAmount × 100 / consumption (because consumption is L/100km); imperial maxDistance = fuelAmount × consumption (because consumption is miles per gallon). Results are formatted to 2 decimals.
▶Why does imperial consumption use MPG while metric uses L/100km?
▶What currency symbol is used for the price and cost?
▶Can I compute cost for an electric vehicle?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee