⛽ Fuel Cost Calculator

Calculate fuel costs for trips. Enter distance, fuel efficiency, and price per gallon or liter.

About the Fuel Cost Calculator

This fuel cost calculator runs entirely in your browser. Enter the trip distance, your vehicle's fuel consumption (L/100km or MPG), and the fuel price, then click Calculate to see the fuel needed and total cost. Nothing is uploaded — all math happens on your device.

How fuel cost is calculated

For L/100km mode: fuel needed = distance ÷ 100 × L/100km. For MPG mode: fuel needed = distance ÷ MPG. The total cost is fuel × price per unit.

fuel = (distance / 100) × L_per_100km  |  fuel = distance / MPG
cost = fuel × price

How to use the calculator

  1. Enter the trip Distance and pick km or miles.
  2. Enter your vehicle's Fuel consumption and pick L/100km or MPG.
  3. Enter the Fuel price and pick per Liter or per Gallon.
  4. Click Calculate to see fuel needed, total cost, and cost per distance.

Frequently asked questions

What's the difference between L/100km and MPG? L/100km measures liters of fuel per 100 km (lower is better). MPG measures miles per gallon (higher is better).

Does the calculator convert between km and miles? It uses your selected distance unit and matches it with the efficiency mode for accurate results.

What if my efficiency is 0? The calculator will warn you, since fuel needed would be undefined.

Does this tool save my data? No. All calculations happen locally in your browser.