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

  1. Base time = distance ÷ base speed. For 400 km at 200 km/h this is 2 hours.
  2. 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.
  3. Station delay = number of stops × minutes per stop ÷ 60, which converts the stop time to hours.
  4. 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.
  5. Peak hour delay = 20% of the base time when peak hours is set to Yes.
  6. 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.
  7. 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 ÷ Speed

400 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 ÷ 60

5 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 delay

Each 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

Divide the distance by the average speed of the train, then add time for station stops and for delays. 400 km at 200 km/h is 2 hours, and two 3-minute stops make it 2 h 06 min.
No. The map measures the straight line between the two places. Rail lines follow terrain, bridges, tunnels and stations, so the track is usually longer than the straight line. By how much depends on the route, so change the distance if you know the track length.
Use the average speed over the whole trip, not the maximum speed of the train. You can estimate it from a timetable by dividing the track distance by the scheduled running time.
Each stop adds the minutes the train stands at the station. Stopping also means slowing down and speeding up again, which this calculator does not model separately, so enter a slightly longer stop duration if you want to allow for that.
The time of day selection is saved with your report. The total uses the Peak Hours setting, which adds 20% of the base time when it is set to Yes.
The train type changes the speed shown in the segment table and the fuel illustration. The fuel figure is a rough planning number and not a measured value for any real train.
In this calculator rain adds 20%, fog 30% and snow 50% of the base time. These are planning assumptions, and real delays depend on the line and the operator.
Yes. It uses OpenStreetMap tiles and the Nominatim place search, which are free and need no account. Search only runs when you press the Search button.