Formula and method
Litres = total kilometres × L/100 km ÷ 100. L/100 km = 235.214583 ÷ US MPG, or 282.480936 ÷ Imperial MPG. Cost = litres × price per litre.
Worked example
A 100 km trip at 8 L/100 km uses 8 L. At $1.70 per litre, fuel costs $13.60. Selecting return trip doubles this to 200 km, 16 L, and $27.20.
Inputs, assumptions, and limitations
Choose US or Imperial gallons explicitly: they are different sizes. Fuel-price and economy units may differ because each is converted independently.
Use an expected average consumption for the actual trip. Weather, load, speed, hills, traffic, and idling can change fuel use.
The shared cost divides fuel only by the entered whole number of people. Parking, tolls, depreciation, maintenance, and other travel expenses are excluded.