Portsmouth is a city in Rockingham County, New Hampshire, in the United States. It is the only city in the county, but only the fourth-largest community. It has a population of 21,233 at the 2010 census.