The Hanko–Hyvinkää railway is a 149-kilometer-long railway line in Finland that connects the port city of Hanko to the railway junction in Hyvinkää. It provides a transport link from the southernmost point of mainland Finland to the national rail network, intersecting with the Helsinki–Riihimäki main line.
The railway was originally constructed as a private venture by the Hanko Railway Company (Hangö Jernvägsaktiebolag). It was completed in 1873, making it the first privately owned railway in the Grand Duchy of Finland. The primary purpose of the line was to facilitate trade through the port of Hanko, which benefited from being one of the few Finnish ports to remain largely ice-free during winter months.
Following financial difficulties faced by the private owners, the railway was purchased by the Finnish state in 1875 and integrated into the State Railways (now VR Group). Historically, the line has been significant for both freight transport—particularly timber, paper, and imported vehicles—and passenger services.
A major modernization project for the line, including electrification and safety improvements, commenced in the early 2020s. The electrification of the entire Hyvinkää–Hanko section was completed and inaugurated in 2024, allowing for the introduction of electric locomotives and improved operational efficiency. Passenger traffic on the line currently consists of regional services, often requiring a transfer at Karjaa for connections to Helsinki or Turku.