Stamford is a city in Fairfield County, Connecticut, 34 mi outside of New York City. It is the largest city in the Western Connecticut Planning Region, and Connecticut's second-most populous city, behind Bridgeport. With a population of 135,470, Stamford passed Hartford and New Haven in population as of the 2020 census. It is in the Bridgeport-Stamford-Norwalk-Danbury metropolitan statistical area, which is part of the New York City metropolitan area (specifically, the New York–Newark, NY–NJ–CT–PA Combined Statistical Area).