The average household size was 2.27 and the average family size was 2.85.  22.8% of the population was under the age of 18, 8.3% from 18 to 24, 28.5% from 25 to 44, 22.1% from 45 to 64, and 18.4% who were 65 years of age or older. The median age was 38 years. For every 100 females, there were 84.1 males. For every 100 females age 18 and over, there were 79.7 males. The median income for a household in the city was $25,087, and the median income for a family was $32,550. Males had a median income of $28,583 versus $20,975 for females. The per capita income for the city was $13,811. About 15.9% of families and 20.6% of the population were below the poverty line, including 27.4% of those under age 18 and 27.8% of those age 65 or over. Stanford has a lending library, the Lincoln County Public Library.