The Bergen Line, or the Bergen Railway (Norwegian: Bergensbanen or Nynorsk: Bergensbana), is a 371-kilometre (231 mi) long scenicstandard gauge railway line between Bergen and Hønefoss, Norway. The name is often applied to the entire route from Bergen to Oslo, including the Randsfjord and Drammen lines between Hønefoss and Oslo, covering a total distance of 496 kilometres (308 mi). It is the highest mainline railway line in Northern Europe, crossing the Hardangervidda plateau at 1,237 metres (4,058 ft) above sea level.
The railway opened from Bergen to Voss in 1883 as the narrow gaugeVoss Line. In 1909 the route was continued over the mountain to Oslo and the whole route converted to standard gauge, and the Voss Line became part of the Bergen Line. The line is single track, and was electrified in 1954–64. The Bergen Line is owned and maintained by Bane NOR, and served with passenger trains by Vy Tog and freight trains by CargoNet. The Flåm Line remains as the only branch line, after the closure of the Hardanger Line. The western section from Bergen to Voss is also served by the Bergen Commuter Rail, and was shortened following the 1966 opening of the Ulriken Tunnel.
The Bergen Line as a through line is used for up to five express trains operated by Norwegian State Railways, as well as freight trains by CargoNet. From Myrdal to Bergen there are commuter rail services operated by NSB.
The total distance from Oslo to Bergen via Drammen is 493 kilometres (306 mi), while the Bergen Line proper is 372 kilometres (231 mi). The line has 182 tunnels, totaling ca. 73 kilometres (45 mi), of which ten are over 2.0 kilometres (1.2 mi). Finse Station remains the highest elevated station at 1,222.2 metres (4,010 ft), while the highest point is now in the Finse Tunnel at 1,237 metres (4,058 ft).