Location type


Name and dates

Shawfair (2015-)

Station code: National Rail ScotRail
Where: Midlothian, Scotland
Opened on the Borders Railway (Network Rail).
Opened on the Millerhill Deviation (Network Rail).


This is a two platform station on the Millerhill Deviation (Network Rail), a new section of line required for the re-opening of the railway between Edinburgh (Newcraighall) and Tweedbank, south of Galashiels.

It is located on a passing loop which starts at Newcraighall South Junction (formerly Millerhill Yard Down Secondary Sorting Sidings). This location is just south of Newcraighall North Junction and Newcraighall station. The loop runs south to King's Gate Junction close to the site of Sheriffhall [2nd] via the station.

The line is supported and promoted by the Borders Railway Community Rail Partnership .



Nearby stations
Niddrie [3rd]
Niddrie [1st]
Niddrie Junction [2nd]
Sheriffhall [1st]
Sheriffhall [2nd]
Niddrie [1st] (Unlikely 2)
Niddrie [1st] (Unlikely 1)
Red Row
Monktonhall Colliery
Monktonhall Colliery Loading
Woolmet Colliery
Millerhill Yard Down Arrival Sidings
Millerhill Yard Down Hump
Millerhill South Junction
Edmonstone Colliery Engine Pit
Edmonstone Iron Works
Millerhill Wagonworks
Millerhill West Junction
Millerhill Junction
Millerhill Yard Down Sorting Sidings
Millerhill EGIP Depot
Millerhill Yard Up Sorting Sidings
Location names in dark blue are on the same original line.


To the immediate east of Shawfair is the course of the Edinburgh and Dalkeith Railway. This was replaced, due to its having several tight bends, by a new alignment further east for the opening of the Edinburgh and Hawick Railway (North British Railway), itself given up and not used for the opening of the Borders Railway due to the construction of the Edinburgh City Bypass on a long oblique over the trackbed.

Chronology Dates

06/09/2015Edinburgh and Hawick Railway (North British Railway)Millerhill Deviation (Network Rail)
Newcraighall North Junction to Tweedbank opened to passengers with stations at Shawfair, Eskbank, Newtongrange, Gorebridge, Stow, Galashiels and Tweedbank. Newcraighall Junction renamed Newcraighall North Junction.

News items

13/08/2021New Edinburgh village will be 'biggest urban expansion in recent times' [edinburghlive]
09/09/2020Has the Borders Railway delivered for Midlothian? [Midlothian Advertiser]
31/03/2016Community groups adopt new Midlothian stations [Midlothian Advertiser]
12/02/2015Borders Railway track laying complete [BBC News]
20/12/2013Borders Railway a year down the line - Video [Midlothian Advertiser]
28/10/2013Mines blocked to stop Borders Railway collapse [Evening News]
16/08/2013Railway boost for Shawfair [Midlothian Advertiser]
14/05/2013Borders rail link: £150m plan for Penicuik spur [Evening News]
18/04/2013Borders to Edinburgh rail line: Workers begin digging route [BBC News]
16/09/2003Appeal to extend Edinburgh CrossRail to Shawfair