Allegheny County is a county in Pennsylvania, United States. As of the 2020 census, the population was 1,250,578, making it the state's second-most populous county, after Philadelphia County.