The Schafberg Railway () is a metre gauge cog railway in Upper Austria and Salzburg leading from Sankt Wolfgang im Salzkammergut up to the Schafberg (1,783 m). With a total length of 5.85 km it gains about 1,200 m in height difference. Railway operation started in 1893.