Fuel Cost Calculator
Know what a trip costs in fuel — and what each passenger owes.
How the calculator works
Everything is first converted to a common basis: the distance becomes kilometers, the consumption becomes liters per kilometer, and the price becomes currency per liter. Liters needed are simply distance × consumption per km; the cost is liters × price per liter; and the per-kilometer figure divides the cost by the distance so short and long trips can be compared honestly. The conversions are exact — a mile is 1.609344 km, a US gallon is 3.785412 liters, a UK gallon 4.54609 — so an 8 L/100 km car and its 29.4 MPG twin produce the same trip cost. Gallon output is shown as a second row for drivers used to thinking in gallons.
Formula
Cost = Fuel × price per liter
Where:
- distance — trip length, converted to km if entered in miles
- consumption — normalized to L/100 km from any supported unit
- price — normalized to per-liter if entered per gallon
Example
A 500 km trip in a car rated 8 L/100 km with fuel at $1.50 per liter: the trip needs 500 × 8 ÷ 100 = 40 liters, costing $60.00 — 12 cents per kilometer. Split between four colleagues carpooling, each pays $15.00. The same car rated 29.4 MPG (US) on a 310-mile trip and $5.68-per-gallon fuel produces the identical $60.00 — the units change, the money does not.