The average train between Edinburgh and Ayr takes 2h 33m and the fastest train takes 1h 59m. There is an hourly train service from Edinburgh to Ayr. 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 Edinburgh and Ayr. The earliest departure is at 6:25 AM in the morning, and the last departure from Edinburgh is at 10:59 PM which arrives into Ayr at 9:52 AM. All services require a transfer, and take on average 2h 33m. The schedules shown below are for the next available departures.

2h 54m • 1 change

2h 54m • 1 change

2h 55m • 1 change

2h 55m • 1 change

1h 59m • 1 change

2h 23m • 1 change

2h 13m • 1 change

2h 26m • 1 change

2h 23m • 1 change

2h 13m • 1 change

2h 26m • 1 change

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