A railway spiral rises on a steady curve until it has completed a loop, passing over itself as it gains height, allowing the railway to gain vertical elevation in a relatively short horizontal distance.
It is an alternative to a zig-zag, and avoids the need for the trains to stop and reverse direction while ascending.
[1][2] The term "loop" is also often used for a railway that curves sharply and goes back on itself: if the railway crosses itself, then it forms a spiral or helix; otherwise, it forms the much more common horseshoe curve or bend.
[38][39] The Darjeeling Himalayan Railway originally had five or six spirals but only five in operation at any one time.
[56][57] There are three spirals on the 1,000 mm (3 ft 3+3⁄8 in) gauge railway line from Kenya to Uganda.