Transportation in Vietnam is improving rapidly in terms of both quantity and quality.
The Vietnamese railway network has a total length of 2,600 kilometres (1,600 mi), dominated by the 1,726 kilometres (1,072 mi) single track North–South Railway running between Hanoi and Ho Chi Minh City. The national railway network uses mainly 1,000 mm (3 ft 3 3⁄8 in) metre gauge, although there are several 1,435 mm (4 ft 8 1⁄2 in) standard gauge and mixed gauge lines in the North of the country. There were 278 stations on the Vietnamese railway network as of 2005, most of which are located along the North–South line. The Vietnamese railway network is owned and operated by the state-owned enterprise Vietnam Railways (VNR), which operates a number of different subsidiaries involved in construction, communications, training, and other activities connected to railway maintenance.
The overall condition of railway infrastructure in Vietnam varies from poor to fair; most of the network remains in need of rehabilitation and upgrading, having received only temporary repair from damages suffered during decades of war. A joint Japanese-Vietnamese evaluation team found that the poor state of railway infrastructure was the fundamental cause for most railway accidents, of which the most common types are train crashes against vehicles and persons, especially at illegal level crossings; derailments caused by failure to decrease speed was also noted as a common cause of accidents.
Two railways connect Vietnam to the People's Republic of China: the western Yunnan–Vietnam Railway, from Haiphong to Kunming, and the eastern railway from Hanoi to Nanning. The railway into Yunnan is a metre gauge line, the only such line to operate inside China; it may, however, be converted to standard gauge. Railway service along the Chinese portion of the route is currently suspended. Cross-border service was available until 2002, when floods and landslides, which frequently caused delays along the route, caused serious damage to the tracks on the Chinese side. Railway access to Nanning is done through the border at Đồng Đăng, in Lạng Sơn Province. Regular service generally entails stopping at the border, changing from a Vietnamese metre-gauge train to a Chinese standard-gauge train, and continuing on to Nanning.