The city lies within the municipality of Yautepec. Cocoyoc reported 10,178 inhabitants in the 2020 census and is the third-largest community in Yautepec.
Yautepec contains the city. According to the 2020 census, Cocoyoc had a population of 10,178 inhabitants and ranks as the third-largest community within Yautepec.