The New York and New Haven Railroad (NY&NH) was a railroad connecting New York City to New Haven, Connecticut, along the shore of Long Island Sound. It opened in 1849, and in 1872 it merged with the Hartford & New Haven Railroad to form the New York, New Haven & Hartford Railroad.