Multi Trip Mileage Calculator: How It Works
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator works out the total distance, fuel used, and cost for a multi-stop road trip. You enter each leg’s distance (and optionally your vehicle’s fuel efficiency and fuel price), and it returns the cumulative mileage, total fuel consumption, and total fuel cost. It also shows the average distance per leg so you can spot unusually long or short stretches.
Formula
The core formula is simple addition and division:
Total distance = d1 + d2 + d3 + d4 (all in the same unit, usually km or miles)
Fuel used = Total distance ÷ fuel efficiency
Fuel cost = Fuel used × fuel price per liter (or gallon)
Average per leg = Total distance ÷ number of legs entered
Variables:
- d1, d2, d3, d4 – distance of each leg (km or miles)
- eff – vehicle fuel efficiency (km/l or miles per gallon)
- price – cost of one unit of fuel (currency per liter or per gallon)
If you leave a leg blank (0), it is excluded from the average calculation.
Worked Example
Using the defaults: legs of 120 km, 85 km, 200 km, and 0 km (leg 4 empty), efficiency 14 km/l, fuel price 1.50 currency/l.
- Total distance = 120 + 85 + 200 + 0 = 405 km
- Fuel used = 405 ÷ 14 = 28.9 liters (rounded to 1 decimal)
- Fuel cost = 28.9 × 1.50 = 43.35 currency
- Number of legs entered = 3 (since leg 4 is 0), so average = 405 ÷ 3 = 135 km per leg
The calculator’s outputs match: 405.0 km, 28.9 l, 43.35, 135.0 km.
When to Use a Multi-Trip Mileage Calculator
This tool is useful for planning road trips, commuting cost estimates, or comparing routes. For example, if you’re driving from home to a cabin with a detour to pick up supplies, you can enter each segment separately. It also helps when you want to estimate weekly mileage for multiple short trips (work, school, errands) to budget fuel or claim reimbursement.
It works for any number of legs up to four in this version, but the formula scales easily. You can also use it in reverse: if you know total distance and fuel used, you can calculate efficiency.
How to Read the Results
The total distance is the sum of all legs – this is what you’d use for odometer tracking. Fuel used tells you how many liters (or gallons) you’ll consume at the given efficiency. Fuel cost is the estimated spend, assuming a constant fuel price – in reality, prices vary by station, so this is an estimate. The average per leg helps you see if one leg dominates the trip; for instance, a 400 km leg plus a 5 km leg gives an average of 202.5 km, which hides the short leg’s triviality.
If you drive an electric vehicle, replace “fuel efficiency” with “energy consumption” (kWh per 100 km) and “fuel price” with electricity cost per kWh – the math is identical.
Common Mistakes to Avoid
- Mixing units: If you enter distances in miles but efficiency in km/l, the result is off by 1.609. Always keep the same unit system.
- Forgetting to include all legs: A skipped leg (0) is fine, but if you accidentally leave a real leg as 0, your total is wrong.
- Using the average per leg as a planning figure: The average is a summary, not a prediction for any single leg.
- Assuming constant fuel price: Fuel costs fluctuate; for a long trip, your actual cost may vary by 5–10%.
- Rounding too early: If you round fuel used to 29 liters and then multiply by price, you get 43.50 instead of 43.35. Keep full precision until the final step.
Limits of This Calculator
This calculator assumes a single constant fuel efficiency for the entire trip. Real-world efficiency varies with speed, terrain, load, and weather. For a more accurate estimate, use separate legs with different efficiencies if you know them (e.g., highway vs. city). Also, it does not account for tolls, parking, or vehicle wear – those are separate costs. The formula is exact for the inputs, but the inputs themselves are estimates.
For trips with many stops (more than 4), you can combine legs or use a spreadsheet. The underlying math is the same.
Alternatives and Related Tools
If you need a more detailed route planner, map services like Google Maps or Waze can give point-to-point distances and estimated times, but they don’t calculate fuel cost unless you manually enter efficiency and price. Many fuel-tracking apps log your actual mileage and efficiency over time, which gives a more personalized average than a generic value. For business use, mileage reimbursement rates are set by your employer or government – this calculator can help you estimate what to claim, but always use the official rate for the final figure.
You can also use this calculator for non-driving purposes: cycling distances, walking routes, or even shipping distances (though fuel cost becomes shipping cost per unit distance).
Frequently Asked Questions
How do I calculate mileage for multiple trips in one day?
Add each trip’s distance as a separate leg. For example, commute to work (10 km), lunch errand (3 km), and return home (10 km) gives a total of 23 km. Enter those as d1, d2, d3, and leave d4 blank.
What if I don’t know my car’s fuel efficiency?
Check your owner’s manual, or use the average from your last few fill-ups: divide miles driven by gallons filled. Many cars also show a trip computer with current average. If you don’t have that, use a typical value for your vehicle class – but the result will be less precise.
Can I use miles per gallon instead of km per liter?
Yes. Enter distances in miles and efficiency in MPG. The fuel used will be in gallons, and the cost will be per gallon. The calculator doesn’t convert units – it just uses what you enter, so keep everything consistent.
Why does the average per leg exclude zero legs?
If you enter 0 for a leg, it means you didn’t take that leg. Including zeros would artificially lower the average. The calculator counts only legs with a positive distance. If you actually drove 0 km for a leg (e.g., a cancelled stop), excluding it is correct.
Is fuel cost accurate for long trips?
It’s an estimate. Fuel prices change, and your efficiency may drop on highways (or improve, depending on speed). For a rough budget, it’s fine. For exact costs, use actual receipts and track your odometer.
Can I use this for a delivery route with many stops?
Yes, but with only four legs, you’ll need to group stops. For example, combine all stops in a city into one leg. For complex routes with dozens of stops, a dedicated route optimization tool would be better – but for a simple multi-stop trip, this calculator works.
Related
Formula used
in d1 | Leg 1 distance | km | 120 | 0 in d2 | Leg 2 distance | km | 85 | 0 in d3 | Leg 3 distance | km | 200 | 0 in d4 | Leg 4 distance | km | 0 | 0 in eff | Fuel efficiency | km/l | 14 | 0 in price | Fuel price | currency/l | 1.50 | 0 out total | Total distance | km | d1+d2+d3+d4 | 1 out fuel | Fuel used | l | (d1+d2+d3+d4)/eff | 1 out cost | Fuel cost | currency | ((d1+d2+d3+d4)/eff)*price | 2 out avg | Average per leg | km | (d1+d2+d3+d4)/count(d1,d2,d3,d4) | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.