 India census, Mohammadabad had a population of 20,504.Males constitute 53% of the population and females 47%.Mohammadabad has an average literacy rate of 59%, lower than the national average of 59.5%