The math
- Metric: fuel (L) = distance × consumption ÷ 100 · cost = fuel × price/L
- Imperial: fuel (gal) = distance ÷ mpg · cost = fuel × price/gal
Consumption numbers: a small hatchback ≈ 5–6 L/100km, midsize sedan ≈ 7–9, SUV ≈ 9–12, heavy truck 15+. Your real number comes from the trip computer or: liters filled ÷ km driven × 100.
Quick ways to save
- Smooth acceleration and steady highway speed (90–100 km/h) beat hard braking + speeding by 10–20%.
- Tire pressure: under-inflated tires cost ~3% efficiency. Roof racks cost more at highway speed.
- Idling burns ~0.5–1 L/hour — switch off for stops longer than a minute.
What happens in the page
calc() branches on the unit system. In metric it divides distance by one hundred, multiplies by the litres-per-hundred-kilometres figure and then by the price per litre; in imperial it divides miles by the miles-per-gallon figure to get gallons and multiplies by price per gallon. The two paths are kept separate instead of converting everything to one base, because fuel economy figures are quoted per hundred kilometres in one system and per gallon in the other, and converting the quoted number introduces its own rounding.
Where it breaks down
Consumption is held constant, so the answer describes a steady cruise. Cold starts, traffic, air conditioning, roof racks, load and driving style all move real consumption by ten to thirty percent, and the error compounds over a long trip. Tolls, parking, ferries and depreciation are not included — this is fuel only. Prices are typed by you; there is no live feed, deliberately, because a stale rate presented as current would be worse than no rate.
Privacy: no data leaves this tab
Distance, consumption and price are multiplied locally. There is no fuel-price feed and no location lookup, so neither your route nor your location is transmitted.
Frequently asked questions
Why is my real cost higher than this?
Because the calculator assumes one steady consumption figure. A motorway cruise gets close; a city trip with cold starts does not.
Can it estimate an electric car?
Not directly — electricity is priced per kilowatt hour and consumption is quoted per hundred kilometres, so the arithmetic differs. Use the appliance energy cost calculator instead.
Does it include tolls or ferry fares?
No. Only fuel. Add fixed costs separately, since they do not scale with distance in the same way.