The average train between Ayr and Edinburgh Castle takes 2h 8m and the fastest train takes 1h 39m. The train runs at least 2 times per hour from Ayr to Edinburgh Castle. The journey time may be longer on weekends and holidays; use the search form on this page to search for a specific travel date.
Trains run every 30 minutes between Ayr and Edinburgh Castle. The earliest departure is at 5:15 AM in the morning, and the last departure from Ayr is at 11:05 PM which arrives into Edinburgh Castle at 6:47 AM. All services require a transfer at Glasgow Central and take an average of 2h 8m. The schedules shown below are for the next available departures.

2h 23m • 1 change
2h 3m • 1 change
1h 47m • 1 change
1h 48m • 1 change
2h 23m • 1 change
2h 3m • 1 change
1h 47m • 1 change
1h 48m • 1 change
2h 23m • 1 change
2h 3m • 1 change
1h 47m • 1 change
1h 48m • 1 change
2h 23m • 1 change
2h 3m • 1 change
1h 47m • 1 change
1h 48m • 1 change
2h 23m • 1 change
2h 3m • 1 change
1h 47m • 1 change
1h 48m • 1 change
2h 2m • 1 change
2h 6m • 1 change
1h 58m • 1 change
1h 59m • 1 change
2h 7m • 1 change
2h 8m • 1 change
2h 2m • 1 change
2h 5m • 1 changeWant to know about travelling from Ayr to Edinburgh Castle? We have put together a list of the most frequently asked questions from our users such as: What is the cheapest mode of transport? What is the quickest option? How much do tickets usually cost? and many more.
No, there is no direct train from Ayr to Edinburgh Castle. However, there are services departing from Ayr station and arriving at Edinburgh Waverley station via Glasgow Central station. The journey, including transfers, takes approximately 2h 8m.
Ayr to Edinburgh Castle train services, operated by ScotRail, depart from Ayr station.
Ayr to Edinburgh Castle train services, operated by ScotRail, arrive at Edinburgh Waverley station.
Book your Ayr to Edinburgh Castle train tickets online with Omio.
The distance between Ayr and Edinburgh Castle is 104.8 km. The road distance is 123 km.
You can take a train from Ayr to Edinburgh Castle via Glasgow Central, Glasgow Queen Street, and Edinburgh Waverley in around 2h 18m.