Train Journey Duration Calculator
Estimate how long a train journey takes from the distance, average speed, station stops and conditions. Find the distance on a free map, then see the trip on an animated timeline.
Find the distance on a map
Map data © OpenStreetMap contributors. Places found with Nominatim, routes by routing.openstreetmap.de. Free services: distances by road are estimates and can differ from your exact path.
What is a train journey time calculator?
A train journey time calculator estimates how long a rail trip takes from the distance, the average speed of the train, the number of station stops and the conditions on the day. The basic idea is the same one you learn in school: time equals distance divided by speed. A real train trip is longer than that bare number because trains stop at stations, slow down on older track, and run slower in snow, fog or heavy rain. This calculator starts from the simple time and then adds each of those effects, so you can see where the extra minutes come from.
You can type the distance yourself, or search for the From and To places on the free map and press the button to fill in the distance. The map measures the straight line between the two places. Rail lines almost never run in a straight line, because they follow valleys, bridges, tunnels and existing stations. The real route is therefore usually longer than the straight line, and by how much depends on the route. Treat the map figure as a starting point, and change the distance if you know the track length from a timetable or a rail operator.
What the calculator takes into account
- Distance and base speed: these give the base journey time.
- Track type: high-speed, mainline, regional or local track adds an increasing share of extra time.
- Station stops: the number of stops multiplied by the minutes the train stands at each one.
- Weather: rain, snow and fog add extra time because trains run more slowly.
- Peak hours and passenger load: busy trains and busy lines take longer to board and to run.
How the journey time is calculated step by step
- Base time = distance ÷ base speed. For 400 km at 200 km/h this is 2 hours.
- Track effect = base time × (track factor − 1). The factors are 1.0 for high-speed, 1.2 for mainline, 1.4 for regional and 1.6 for local track.
- Station delay = number of stops × minutes per stop ÷ 60, which converts the stop time to hours.
- Weather delay = base time × (weather factor − 1). The factors are 1.0 for clear, 1.2 for rain, 1.3 for fog and 1.5 for snow.
- Peak hour delay = 20% of the base time when peak hours is set to Yes.
- Loading delay = base time × (passenger load factor − 1). The factors are 1.0 for light, 1.1 for moderate, 1.2 for heavy and 1.3 for maximum.
- Adjusted time = base time + all the delays above. Total delay is the adjusted time minus the base time.
Worked examples
- High-speed line: 400 km at 200 km/h, high-speed track, clear weather, light load, no peak, 2 stops of 3 minutes. Base time 400 ÷ 200 = 2 h. Station delay 2 × 3 ÷ 60 = 0.1 h. All other delays are 0. Adjusted time 2.1 h = 2 h 06 min.
- Mainline in the rain: 150 km at 100 km/h, mainline track, rain, moderate load, no peak, 3 stops of 2 minutes. Base time 1.5 h. Track effect 1.5 × 0.2 = 0.3 h. Station delay 3 × 2 ÷ 60 = 0.1 h. Weather delay 1.5 × 0.2 = 0.3 h. Loading delay 1.5 × 0.1 = 0.15 h. Adjusted time 1.5 + 0.3 + 0.1 + 0.3 + 0.15 = 2.35 h = 2 h 21 min.
- Straight line versus the real route: London to Edinburgh is about 534 km in a straight line. At 120 km/h that is 534 ÷ 120 = 4.45 h = 4 h 27 min. If the track between them were 600 km long, the same speed would give 600 ÷ 120 = 5 h. This is why you should check the track distance when you know it.
Other straight-line distances from the map, for reference: Paris to Lyon about 392 km and Madrid to Barcelona about 505 km. These are distances over the Earth's surface and not track lengths, so the real rail distance is not the same.
How to use the timeline
After you calculate, the timeline shows the journey as a bar. The width of each part is proportional to its minutes: blue for riding, amber for standing at stations and red for the extra time added by track, weather, peak hours and load. The train marker runs along the bar from start to arrival, and the Replay button runs it again.
Tips for planning a train trip
- Use the average speed of the whole trip, not the top speed of the train. A train that can run at 300 km/h may average much less once stops and slower sections are counted.
- Check the timetable of the operator for the real running time and use this calculator to compare scenarios such as bad weather or a busier train.
- Allow extra time for changes. Platform changes, delays on the first train and walking between stations are not part of the running time.
- Arrive at the station early for long trips, and allow more time at large stations.
- Travelling outside peak hours often gives a quieter train and a more predictable trip.
- If you enter a distance from the map, remember that it is a straight line and that the rail route is usually longer. Increase the distance if you know the track length.
Formulas Used
Base journey time
Time = Distance ÷ Speed400 km at 200 km/h takes 2 hours. Use the average speed over the whole trip.
Station delay
Station delay (hours) = Stops × Minutes per stop ÷ 605 stops of 4 minutes add 20 minutes, which is 0.33 hours.
Adjusted journey time
Adjusted time = Base time + Track effect + Station delay + Weather delay + Peak hour delay + Loading delayEach delay except the station delay is the base time multiplied by a factor minus 1, so slower conditions add more time on longer trips.
Straight-line distance (haversine)
d = 2R · asin( √( sin²(Δφ/2) + cos φ₁ · cos φ₂ · sin²(Δλ/2) ) )Used by the map to measure the shortest distance between two places over the Earth's surface. R is about 6,371 km.
Variables Explained
Distance (km)
Length of the journey. From the map this is the straight line, and rail routes are usually longer, so adjust it if you know the track length.
Base speed (km/h)
Average speed of the train while it is running, without delays.
Station stops
Number of stops where the train stands and passengers get on and off.
Stop duration (minutes)
Average time the train stands at each stop.
Track, weather, peak hours, load
Conditions that add extra time to the base journey.
Fuel consumption
A rough illustration based on distance, train type and load. It is not a measured figure for a particular train.
Important Notes
This calculator gives an estimate for planning. Real journey times depend on the timetable, signalling, engineering work, track condition, delays on the day and the train you take. Always check the official timetable of the rail operator before you travel.
The distance from the map is a straight line between two places. Rail routes are usually longer, by an amount that varies from route to route.
The delay factors are simple planning assumptions and are not official railway figures. The fuel figure is an illustration only.
Frequently Asked Questions
Related Calculators
Estimated Travel Time Calculator
Distance and Travel TimeDriving Time Calculator
Distance and Travel TimeTravel Duration Calculator
Distance and Travel TimeFlight Time Calculator
Distance and Travel TimeRoad Trip Time Estimator
Distance and Travel TimeWalking Time Calculator
Distance and Travel TimeTrain Journey Duration Calculator
Distance and Travel TimeBike Ride Time Calculator
Distance and Travel TimeTravel Time Delay Calculator
Distance and Travel TimeQuick Tips
- 1Verify distance calculations
- 2Consider traffic and delays
- 3Check current rates and prices
- 4Plan for contingencies