THE NUMORIX GUIDE
How to use the Travel Cost Calculator
Last reviewed September 14, 2026
What this calculator does
The engine divides distance in miles by vehicle MPG for fuel needed, multiplies fuel by gas price for fuel cost, divides distance by average speed for driving time, adds tolls for total cost, and divides total cost by passengers when passenger count is positive.
Formula and method
The engine divides distance in miles by vehicle MPG for fuel needed, multiplies fuel by gas price for fuel cost, divides distance by average speed for driving time, adds tolls for total cost, and divides total cost by passengers when passenger count is positive. Driving time is split into floor(hours) and a rounded minute remainder for the displayed h m string.
Variables and inputs
Enter one-way or round-trip distance in miles, vehicle MPG, gas price in dollars per gallon, average speed in mph, total tolls in dollars, and passenger count. Passengers are used only to divide total cost per person; the engine does not assign different shares to the driver or individual legs.
Worked example
For 500 miles, 25 MPG, $3.50/gal, 65 mph, $10 tolls, and one passenger, fuel needed is 500 / 25 = 20.00 gallons and fuel cost is 20 x $3.50 = $70.00. Time is 500 / 65 = 7.69 hours, displayed as 7h 42m; total cost is $70 + $10 = $80.00.
How to interpret the result
The result is a fuel-and-toll scenario based on the distance and assumptions entered. Adding passengers changes only the per-person split, not fuel use, tolls, time, or the total vehicle cost.
Common mistakes to avoid
Enter the full round-trip distance when planning a return journey, use MPG rather than L/100km, and enter the price per gallon. Enter total tolls for the trip rather than a per-person toll if the cost is meant to be divided afterward.
Assumptions and limitations
The model assumes constant average speed and MPG and excludes traffic, stops, idling, parking, lodging, meals, maintenance, depreciation, vehicle fees, and changing fuel prices. It does not normalize a 60-minute rounded remainder, so unusual inputs near a whole hour can produce a displayed 60 minutes.