Method and assumptions
Accept distance in km or mi, calculate fuel use from L/100km, US MPG, or Imperial MPG, then multiply by the price entered for the matching volume unit. US and Imperial gallons are treated separately, while the selected currency only labels the result and no live exchange rate is applied. Inputs stay in the browser, and actual cost can vary with traffic, roads, idling, load, vehicle condition, and price changes.