2020 census As of the
2020 census, Hamburg had a population of 2,536. The median age was 40.2 years. 25.3% of residents were under the age of 18 and 17.2% of residents were 65 years of age or older. For every 100 females there were 89.0 males, and for every 100 females age 18 and over there were 85.1 males age 18 and over. 0.0% of residents lived in urban areas, while 100.0% lived in rural areas. There were 1,016 households in Hamburg, of which 32.7% had children under the age of 18 living in them. Of all households, 42.7% were married-couple households, 17.5% were households with a male householder and no spouse or partner present, and 36.3% were households with a female householder and no spouse or partner present. About 30.8% of all households were made up of individuals and 14.1% had someone living alone who was 65 years of age or older. Of the 1,158 households 33.6% had children under the age of 18 living with them, 49.7% were married couples living together, 16.0% had a female householder with no husband present, and 30.7% were non-families. 27.7% of households were one person and 15.1% were one person aged 65 or older. The average household size was 2.55 and the average family size was 3.12. The age distribution was 27.9% under the age of 18, 7.9% from 18 to 24, 26.5% from 25 to 44, 20.4% from 45 to 64, and 17.3% 65 or older. The median age was 37 years. For every 100 females, there were 89.9 males. For every 100 females age 18 and over, there were 84.4 males. The median household income was $26,189 and the median family income was $36,875. Males had a median income of $28,696 versus $20,750 for females. The per capita income for the city was $14,599. About 20.8% of families and 25.2% of the population were below the
poverty line, including 35.1% of those under age 18 and 19.9% of those age 65 or over. ==Culture==