Danville is located in Danville county Virginia with a geographic area of 42.8 square miles. The total population in Danville is 40,668 with 46.0% male and 54.0% female. Children under age 5 represent 5.8% of the population, under age 18 equal 21.9% of the population and over age 65 is 20.7% of the population. The median household income is $37,147, per capita income is $22,876. There are a total of 18,266 housing units with 50.3% owner occupied. Education includes 32.9% of residents that are high school graduates and 18.3% with a bachelor's degree or higher. The average temperature in Danville in the summer is 77 degrees, and in the winter 35 degrees.