tooloora

Fuel Cost Calculator — trip cost, split per person

Enter distance, consumption and fuel price to see the liters or gallons needed, the total cost and each person’s share. Return trip, tolls, mpg and an electric-car mode included.

Runs locally — nothing is uploaded

Equals 15.38 km/L · 36.19 mpg (US) · 43.46 mpg (UK)

No live price: enter what the pump shows. The preset 1.80 is a worked example, not an average.

EUR

Amount for the whole trip. It is not doubled, but it is split.

€35.10
Total trip cost
19.5 L
Fuel needed
€11.70
Per 100 km

Fuel only, without extra costs.

€0.117
Per km

Distance driven: 300 km

CO₂ from the tailpipe

about 45.8 kg

Estimated with the US EPA factors: 8.887 kg CO₂ per US gallon of gasoline, 10.18 kg per gallon of diesel. Combustion only, without extraction and refining; for European blends such as E10 it is an approximation.

This calculator does not query any price service: it uses the price you enter.

It counts fuel or electricity plus the extra costs you enter — not wear, insurance or depreciation of the car.

Runs entirely in your browser — nothing is sent. Your entries are stored locally, and the address bar carries the numbers so you can share a calculation as a link.

What this fuel cost calculator does

Enter distance, consumption and fuel price: the calculator shows how much fuel the trip needs, what it costs and what each person pays. 300 km at 6.5 L/100 km and 1.80 per liter cost 35.10, a return trip 70.20. It splits tolls and parking as well, works with miles and mpg, and has an electric-car mode based on kWh. Everything runs locally in your browser.

How do I calculate the fuel cost of a trip?

Liters = distance in km ÷ 100 × consumption in L/100 km, then liters × price per liter. With miles and mpg it is even shorter: gallons = miles ÷ mpg, then gallons × price per gallon (for a UK price per liter, one imperial gallon is 4.54609 liters). Enter the one-way distance; the “Return trip” box doubles it. Your trip computer shows the consumption, or you work it out from fill-ups: liters added divided by kilometers driven, times 100 (for mpg: miles driven divided by gallons added). This is what 100 miles cost at 3.50 per US gallon:

ConsumptionGallons per 100 milesCost per 100 miles
20 mpg5.00 gal17.50
25 mpg4.00 gal14.00
30 mpg3.33 gal11.67
40 mpg2.50 gal8.75

How do I split the cost between passengers?

Enter how many people share the trip and, if needed, tolls and parking for the whole journey. The calculator rounds the total to the cent and gives any leftover cents to the first people, one each: 35.10 split four ways is 8.78 twice and 8.77 twice, which adds up to exactly 35.10 again. You can share the result as a link, so everyone sees the same numbers.

How does the calculator convert mpg and gallons?

Besides L/100 km it understands km/L and mpg based on either the US or the imperial (UK) gallon. The conversion rests on exact definitions: one mile is 1.609344 km, a US gallon is 3.785411784 liters (NIST Handbook 44, Appendix C) and an imperial gallon is 4.54609 liters (UK Weights and Measures Act 1985). That gives L/100 km = 235.215 ÷ mpg (US) or 282.481 ÷ mpg (UK). Picking mpg (US) switches the price to the US gallon. With mpg (UK) it stays per liter, because UK pumps show pence per liter: enter 142.9p as £1.429.

mpgL/100 km with US gallonsL/100 km with imperial gallons
2011.7614.12
307.849.42
405.887.06
504.705.65

What does the trip cost in an electric car?

Energy = distance ÷ 100 × consumption in kWh/100 km, then times the price per kWh. 300 km at 18 kWh/100 km need 54 kWh. The preset 37 cents per kWh is the German household average from the BDEW electricity price analysis of April 2026, which makes 19.98 euros; at a public charger, enter its price. Add charging losses as a percentage surcharge if your consumption figure only counts what leaves the battery; the size is your assumption.

How much CO₂ does the trip produce?

For gasoline and diesel the calculator estimates the tailpipe CO₂ with the factors of the US Environmental Protection Agency: 8,887 g of CO₂ per gallon of gasoline and 10,180 g per gallon of diesel. The 19.5 liters of gasoline from the 300 km example come to about 45.8 kg. Extraction, refining and transport of the fuel are not included, and for European blends such as E10 the figure is an approximation.

What the calculator deliberately leaves out

  • A live fuel price. That would need a server querying a price service. The preset 1.80 is a worked example, not an average.
  • Wear, insurance and depreciation. Only fuel or electricity and the extra costs you enter are counted.
  • Changing consumption. The maths use one fixed average.

Privacy

Your entries never leave your device; data is stored only locally. The address bar carries the numbers so you can send the calculation to your passengers as a link.

Frequently asked questions

How do I calculate the fuel cost of a trip?

Divide the distance by 100, multiply by the consumption in L/100 km, and multiply the liters by the price per liter. 300 km at 6.5 L/100 km need 19.5 liters; at 1.80 per liter that is 35.10. A return trip doubles both: 39 liters and 70.20. With mpg the calculator works in gallons instead: 300 miles at 30 mpg are exactly 10 gallons.

How do I split the cost between passengers?

The calculator rounds the total to the cent first and then divides it. If it does not divide evenly, the leftover cents go to the first people, one each: 35.10 split four ways is 8.78, 8.78, 8.77 and 8.77, which adds up to exactly 35.10. Tolls and parking go into the same pot, entered once for the whole trip.

How do I convert mpg to L/100 km?

Divide 235.215 by the mpg figure for US gallons, or 282.481 for imperial (UK) gallons. Both numbers follow from exact definitions: one mile is 1.609344 km, a US gallon is 3.785411784 liters (NIST Handbook 44) and an imperial gallon is 4.54609 liters (UK Weights and Measures Act 1985). 30 mpg (US) is therefore 7.84 L/100 km, while 30 mpg (UK) is 9.42 L/100 km.

What does the same trip cost in an electric car?

Multiply the distance by the consumption in kWh/100 km, divide by 100 and multiply by the price per kWh. 300 km at 18 kWh/100 km need 54 kWh, which costs 19.98 euros at 37 cents. Energy lost while charging is not in that figure; you can add it as a percentage surcharge, which the calculator labels as an assumption.

Why do I have to enter the fuel price myself?

Because a live price would need a server that queries a price service, and this calculator runs entirely in your browser. The preset 1.80 per liter is a worked example, not a current average. Enter the price at your pump; you can choose whether it is per liter, per US gallon or per imperial gallon.

Is any of my data uploaded?

No. The calculation runs in your browser and nothing is sent to a server. Your last entries are kept in local storage on your device so the tool opens where you left off, and the address bar carries the numbers so you can share a calculation as a link.