The average train between Ayr (Station) and Edinburgh takes 2h 31m and the fastest train takes 1h 57m. There is an hourly train service from Ayr (Station) to Edinburgh. 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 hourly between Ayr (Station) and Edinburgh. The earliest departure is at 5:36 AM in the morning, and the last departure from Ayr (Station) is at 11:05 PM which arrives into Edinburgh at 7:31 AM. All services require a transfer, and take on average 2h 31m. The schedules shown below are for the next available departures.

2h 32m • 1 change

2h 12m • 1 change

2h 39m • 1 change

2h 38m • 1 change

2h 16m • 1 change

2h 23m • 1 change

2h 21m • 1 change

2h 3m • 1 change

2h 16m • 1 change

2h 23m • 1 change

2h 21m • 1 change

2h 3m • 1 change
Want to know about travelling from Ayr (Station) to Edinburgh? 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 (Station) to Edinburgh. However, there are services departing from Ayr (Station) station and arriving at Edinburgh station via Glasgow Central. The journey, including transfers, takes approximately 2h 31m.
Ayr (Station) to Edinburgh train services, operated by ScotRail, depart from Ayr station.
Ayr (Station) to Edinburgh train services, operated by ScotRail, arrive at Edinburgh Waverley station.
Book your Ayr (Station) to Edinburgh train tickets online with ScotRail and Cross Country.
The distance between Ayr (Station) and Edinburgh is 104.9 km. The road distance is 139 km.
You can take a train from Ayr to Edinburgh Waverley via Glasgow Central in around 2h 39m.