2020 census As of the
2020 census, Elgin had a population of 1,717. The median age was 41.4 years. 24.8% of residents were under the age of 18 and 22.9% were 65 years of age or older. For every 100 females there were 102.5 males, and for every 100 females age 18 and over there were 96.2 males. 0% of residents lived in urban areas, while 100.0% lived in rural areas. There were 707 households in Elgin, of which 28.4% had children under the age of 18 living in them. Of all households, 43.6% were married-couple households, 21.5% were households with a male householder and no spouse or partner present, and 26.2% were households with a female householder and no spouse or partner present. About 27.7% of all households were made up of individuals and 15.8% had someone living alone who was 65 years of age or older. There were 714 households, of which 31.4% had children under the age of 18 living with them, 51.5% were
married couples living together, 10.4% had a female householder with no husband present, 5.6% had a male householder with no wife present, and 32.5% were non-families. 27.3% of all households were made up of individuals, and 8.9% had someone living alone who was 65 years of age or older. The average household size was 2.40 and the average family size was 2.85. The median age in the city was 43.9 years. 24.1% of residents were under the age of 18; 5.6% were between the ages of 18 and 24; 21.9% were from 25 to 44; 30.4% were from 45 to 64; and 17.8% were 65 years of age or older. The gender makeup of the city was 51.4% male and 48.6% female.
2000 census As of the census of 2000, there were 1,654 people, 638 households, and 444 families residing in the city. The population density was . There were 699 housing units at an average density of . The racial makeup of the city was 97.16% White, 0.06% African American, 0.73% Native American, 0.06% Asian, 0.36% Pacific Islander, 1.03% from other races, and 0.60% from two or more races. Hispanic or Latino of any race were 1.33% of the population. There were 638 households, out of which 31.8% had children under the age of 18 living with them, 55.5% were married couples living together, 11.4% had a female householder with no husband present, and 30.4% were non-families. 23.5% of all households were made up of individuals, and 10.7% had someone living alone who was 65 years of age or older. The average household size was 2.58 and the average family size was 3.06. In the city, the population was spread out, with 28.4% under the age of 18, 7.6% from 18 to 24, 25.2% from 25 to 44, 23.8% from 45 to 64, and 15.1% who were 65 years of age or older. The median age was 36 years. For every 100 females, there were 98.3 males. For every 100 females age 18 and over, there were 94.3 males age 18 and over. The median income for a household in the city was $31,449, and the median income for a family was $35,529. Males had a median income of $31,250 versus $17,500 for females. The
per capita income for the city was $14,861. About 8.8% of families and 14.2% of the population were below the
poverty line, including 22.5% of those under age 18 and 9.3% of those age 65 or over. ==Education==