Sparta is located in Randolph county Illinois with a geographic area of 11.2 square miles. The total population in Sparta is 4,302 with 53.3% male and 46.7% female. Children under age 5 represent 5.0% of the population, under age 18 equal 20.1% of the population and over age 65 is 20.6% of the population. The median household income is $52,324, per capita income is $33,969. There are a total of 1,948 housing units with 60.4% owner occupied. Education includes 34.6% of residents that are high school graduates and 20.3% with a bachelor's degree or higher. The average temperature in Sparta in the summer is 75 degrees, and in the winter 27 degrees.