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.
The city is situated in the municipality of Yautepec. In the 2020 census, Cocoyoc recorded 10,178 residents, making it the third-largest settlement in Yautepec.