Sanford is located in York county Maine with a geographic area of 47.8 square miles. The total population in Sanford is 21,166 with 47.4% male and 52.6% female. Children under age 5 represent 5.6% of the population, under age 18 equal 22.9% of the population and over age 65 is 17.1% of the population. The median household income is $58,294, per capita income is $30,386. There are a total of 8,760 housing units with 63.5% owner occupied. Education includes 35.3% of residents that are high school graduates and 18.2% with a bachelor's degree or higher. The average temperature in Sanford in the summer is 68 degrees, and in the winter 25 degrees.