Extra late night services and more carriages have been promised to get people to and from the Edinburgh Festival.
With hundreds of thousands due to flock to the capital, services are expected be extremely busy and customers are being encouraged to plan their travel in advance.
Fifers will benefit from an extra Edinburgh to Glenrothes train via Dunfermline on Fridays only from today to August 24, departing at 11.59pm and calling at all stations.
There will also be an extra Edinburgh to Dundee train on Fridays and Saturdays until August 25, departing at 11.52pm and calling at all stations except Edinburgh Gateway and Springfield. The last train is normally at 11.09pm.
Extra carriages will be added on all routes out of Edinburgh Waverley, with services between the capital and Fife, Perth and Dundee seeing an increase of 11% on last year.