Ankeny is a city in Polk County, Iowa. The population was 27,118 at the 2000 census. A special census taken by the city in 2005 counted 36,161 residents, while the United States Census Bureau estimated that 42,287 residents lived there in 2008. It is part of the Des Moines–West Des Moines Metropolitan Statistical Area.