Rockham was platted in 1886. It was named after Rockhampton, in Australia. A post office has been in operation in Rockham since 1887. The Chicago & North Western Railway constructed a rail line from Redfield, South Dakota to Faulkton, South Dakota in 1886. Rockham was founded as a stop on the railway that year, in 1886 on land originally homesteaded by Anders Opperud, and was incorporated on March 4, 1909. Rockham's first school, the F.M. Brown School, was erected in 1884; the Rockham Public School was built in 1915. Rockham received its first telephone service in 1903 and electrical power was distributed throughout the city in 1919. In 1925, the Rockham Public School was damaged by a tornado. In 1970, the Chicago & North Western Railway abandoned its rail line from Redfield to Gettysburg, leaving Rockham without rail service for hauling grain. The Rockham Public School closed in 1972. Rockham celebrated its centennial on July 4–6, 1986.
As of the census of 2010, there were 33 people, 13 households, and 6 families residing in the town. The population density was. There were 28 housing units at an average density of. The racial makeup of the town was 100.0% White. There were 13 households, of which 23.1% had children under the age of 18 living with them, 46.2% were married couplesliving together, and 53.8% were non-families. 38.5% of all households were made up of individuals, and 15.4% had someone living alone who was 65 years of age or older. The average household size was 2.54 and the average family size was 4.00. The median age in the town was 34.5 years. 36.4% of residents were under the age of 18; 0.0% were between the ages of 18 and 24; 15.2% were from 25 to 44; 27.4% were from 45 to 64; and 21.2% were 65 years of age or older. The gender makeup of the town was 60.6% male and 39.4% female.
2000 census
As of the census of 2000, there were 53 people, 18 households, and 14 families residing in the town. The population density was 107.2 people per square mile. There were 27 housing units at an average density of 54.6 per square mile. The racial makeup of the town was 98.11% White, and 1.89% from two or more races. There were 18 households, out of which 38.9% had children under the age of 18 living with them, 77.8% were married couples living together, and 22.2% were non-families. 22.2% of all households were made up of individuals, and 5.6% had someone living alone who was 65 years of age or older. The average household size was 2.94 and the average family size was 3.43. In the town, the population was spread out, with 30.2% under the age of 18, 1.9% from 18 to 24, 35.8% from 25 to 44, 15.1% from 45 to 64, and 17.0% who were 65 years of age or older. The median age was 36 years. For every 100 females, there were 112.0 males. For every 100 females age 18 and over, there were 105.6 males. The median income for a household in the town was $35,625, and the median income for a family was $68,750. Males had a median income of $23,750 versus $16,667 for females. The per capita income for the town was $19,511. None of the population and none of the families were below the poverty line.