The calculation
Fuel cost is distance divided by efficiency, times the price per unit. In US units: miles ÷ MPG gives gallons, times the price per gallon. In metric: distance ÷ 100 × L/100km gives litres, times the price per litre. Both are handled here — just pick the units your dashboard and pump use.
MPG and L/100km run in opposite directions
This confuses people who switch between systems. With MPG, higher is better — more miles per gallon. With L/100km, lower is better — fewer litres to cover the same distance. A car doing 30 MPG uses about 7.8 L/100km. Do not compare the two numbers directly; convert first or use the matching unit.
Real-world figures beat the sticker
Manufacturer efficiency figures are measured in ideal conditions. Real driving is worse, sometimes by 10% to 30%, because of cold starts, headwinds, roof boxes, air conditioning, a heavy right foot and stop-start traffic. For a trip you actually want to budget for, use the efficiency you observe on your own fill-ups rather than the brochure number.
Splitting and round trips
The per-person figure makes carpooling easy to settle, and the round-trip line saves you doubling in your head. For a fair split, divide the total fuel cost by the number of people in the car, driver included — or let the per-person figure above do it. To split a meal the same way, the tip calculator handles the bill and the gratuity.