As of 2001 India census, Baghpat had a population of 36,365. Males constitute 53% of the population and females 47%. Baghpat has an average literacy rate of 66%, higher than the national average of 59.5%; with 82% of the males and 58% of females literate. 13% of the population is under 6 years of age. Major castes are Jats, Yadav, Gujjars, Tyagis and Rajputs besides Dalits and a large number of Muslims.