India census, Ayyampettai had a population of 6022. Males constitute 52% of the population and females 48%. Ayyampettai has an average literacy rate of 66%, higher than the national average of 59.5%; with 58% of the males and 42% of females literate. 10% of the population is under 6 years of age.