The nearest railway station to St Andrews is Leuchars, situated around six miles from the town. The station facilities include 24-hour parking, a waiting room and taxi rank.

Those travelling to St Andrews by train should take the Edinburgh to Dundee or Edinburgh to Aberdeen line to Leuchars. For those travelling from south of Edinburgh, the Edinburgh to Aberdeen line links up with the London North Eastern Railway (LNER) line from London to Edinburgh, which allows visitors to travel from London to Leuchars on a direct route.

Alternatively, the Edinburgh Gateway station links Edinburgh Airport to Leuchars on the rail network. Those flying into Edinbugh may travel to the Edinburgh Gateway station and join a train for Leuchars.

Visitors also have the option of taking the Caledonian Sleeper service, which runs between London Euston and Leuchars overnight.

From Leuchars, St Andrews is easily reached by bus, taxi or car.