As of 2011[update] Indian census, Mohammadabad had a population of 24,687. The sex ratio is 864 women per 1000 men. Mohammadabad has an average literacy rate of 78.5%, substantially higher than the national average. The male literacy rate is 85.63%, and female literacy is 70.12%. In Mohammadabad, 18% of the population is under 6 years of age.