Elgin is located in Bastrop county Texas with a geographic area of 6.6 square miles. The total population in Elgin is 10,231 with 48.9% male and 51.1% female. Children under age 5 represent 5.4% of the population, under age 18 equal 24.6% of the population and over age 65 is 12.1% of the population. The median household income is $70,313, per capita income is $25,543. There are a total of 3,033 housing units with 63.7% owner occupied. Education includes 21.7% of residents that are high school graduates and 17.6% with a bachelor's degree or higher. The average temperature in Elgin in the summer is 83 degrees, and in the winter 49 degrees.