2020 census As of the
2020 census, Petersburg had a population of 1,014, 375 households, and 272 families. The median age was 42.0 years. 26.1% of residents were under the age of 18 and 18.5% of residents were 65 years of age or older. For every 100 females there were 96.5 males, and for every 100 females age 18 and over there were 97.6 males age 18 and over. Of the 375 households in Petersburg, 33.6% had children under the age of 18 living in them. Of all households, 55.7% were married-couple households, 15.7% were households with a male householder and no spouse or partner present, and 24.8% were households with a female householder and no spouse or partner present. About 24.8% of all households were made up of individuals and 11.0% had someone living alone who was 65 years of age or older. of 2000, 1,262 people, 428 households, and 342 families were residing in the city. The
population density was 1,574.8 people/sq mi (609.1/km). The 498 housing units averaged 621.4/sq mi (240.3/km). The
racial makeup of the city was 61.89% White, 2.14% African American, 1.66% Native American, 32.09% from other races, and 2.22% from two or more races. Hispanics or Latinos of any race were 61.09% of the population. Of the 428 households, 39.7% had children under 18 living with them, 64.7% were married couples living together, 10.5% had a female householder with no husband present, and 19.9% were not families. About 19.4% of all households were made up of individuals, and 13.8% had someone living alone who was 65 or older. The average household size was 2.95, and the average family size was 3.36. In the city, the age distribution was 31.7% under 18, 8.6% from 18 to 24, 25.7% from 25 to 44, 20.0% from 45 to 64, and 14.0% who were 65 or older. The median age was 33 years. For every 100 females, there were 96.6 males. For every 100 females age 18 and over, there were 87.4 males. The median income for a household in the city was $30,263, and for a family was $33,047. Males had a median income of $24,511 versus $17,237 for females. The
per capita income for the city was $13,531. About 14.5% of families and 19.6% of the population were below the
poverty line, including 26.8% of those under age 18 and 17.3% of those age 65 or over. ==Education==