Petersburg is located in Prince george county Virginia with a geographic area of 22.7 square miles. The total population in Petersburg is 30,791 with 45.6% male and 54.4% female. Children under age 5 represent 6.9% of the population, under age 18 equal 21.0% of the population and over age 65 is 16.8% of the population. The median household income is $43,029, per capita income is $24,789. There are a total of 13,231 housing units with 36.1% owner occupied. Education includes 29.3% of residents that are high school graduates and 23.8% with a bachelor's degree or higher. The average temperature in Petersburg in the summer is 78 degrees, and in the winter 35 degrees.