# Road Trip Fuel and Charging Cost > Fuel or charging cost of a road trip, leg by leg with country prices, split fairly per person. Enter the legs of a road trip with the price per litre or kWh you expect in each country, your car’s consumption and extras such as tolls, vignettes or ferries. You get the energy and cost per leg, the total, the cost per 100 km and each person’s share to the cent. No routing service is used: enter the kilometres yourself or let two coordinates give an estimate. Part of usefulweb.site (https://usefulweb.site/). Part of [Hearth](https://hearth.usefulweb.site/) (ownerApp: hearth). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://hearthtripenergycost.usefulweb.site/ (interactive tool at https://hearthtripenergycost.usefulweb.site/tool) - JSON API: POST https://hearthtripenergycost.usefulweb.site/api/v1/calculate with a JSON object of inputs (schema: https://hearthtripenergycost.usefulweb.site/api/v1/tool) - OpenAPI: https://hearthtripenergycost.usefulweb.site/openapi.json - MCP (Streamable HTTP): https://hearthtripenergycost.usefulweb.site/mcp - tool `hearth_trip_energy_cost` ## Inputs - energy (select): Vehicle - consumption (number): Consumption per 100 km (litres or kWh) - lossPercent (number): Charging losses (%, electric only) - Energy you pay for at the charger that does not reach the battery. Enter your own figure if you know it. - roundTrip (boolean): Drive every leg there and back - legs (table): Legs - extras (table): Tolls, vignettes, ferries, parking (optional) - people (integer): Split between (people) - names (text): Names (optional, comma-separated) - currency (text): Currency code - from (text): Estimate from (latitude, longitude; optional) - With “to”, the straight-line distance × 1.46 (European road circuity) fills one leg without kilometres. - to (text): Estimate to (latitude, longitude; optional) ## Method - Energy per leg = distance × consumption ÷ 100 (doubled for “there and back”); for electric cars the energy you pay for is the battery energy × (1 + charging losses). Cost per leg = energy × your price, rounded to the cent. - Extras (tolls, vignettes, ferries, parking) are added once. The total is split equally between the people with the largest-remainder method in whole cents — the same method as the Tip & Bill Split Calculator — so the shares add up exactly to the total. - Optional distance estimate: the WGS84 geodesic distance between two coordinates (Karney 2013, RavingDesk geo engine) × 1.46, the average road circuity for Europe from Ballou, Rahardja & Sakai (2002); the Detour Budget Planner uses the same factor. It fills one leg left at 0 km. No routing or map service is contacted. - Prices are yours: enter what you expect to pay in each country. The cheapest and dearest legs by price show where filling up or charging is worth planning. ## Limits - An estimate: real consumption depends on speed, load, weather and traffic. Check toll and vignette rules for every country you drive through.