# Road Trip Cost Calculator Example

Estimate a road trip budget in Calcul.io by turning distance and fuel efficiency into litres, adding fuel, lodging, and meals, and checking the total.

## Road trip cost

Estimate fuel first, then add the costs that are easy to forget. The sample assumes 640 km of driving, 6.8 litres per 100 km, and prices in US dollars.

```calculio
distanceKm = 640
consumptionLPer100Km = 6.8
fuelLitres = distanceKm * consumptionLPer100Km / 100
fuelPricePerLitre = 1.74$
fuelCost = fuelLitres * fuelPricePerLitre
lodging = 280$
meals = 210$
tripTotal = fuelCost + lodging + meals
```

## How it works

1. Change `distanceKm` and `consumptionLPer100Km` to match your route and car.
2. Update the fuel price, lodging, and meals as you book each part of the trip.
3. Use `fuelCost` and `tripTotal` to keep the intermediate amount visible.

The calculator keeps the numbers editable, so you can compare a second route by adding another group below a blank line.

[Next: split an event budget per guest](https://calcul.io/examples/event-budget/index.md)
