Mechanicsburg is located in Sangamon county Illinois with a geographic area of 1.0 square miles. The total population in Mechanicsburg is 918 with 50.9% male and 49.1% female. Children under age 5 represent 5.8% of the population, under age 18 equal 19.3% of the population and over age 65 is 14.2% of the population. The median household income is $80,972, per capita income is $35,137. There are a total of 333 housing units with 84.7% owner occupied. Education includes 34.8% of residents that are high school graduates and 15.6% with a bachelor's degree or higher. The average temperature in Mechanicsburg in the summer is 74 degrees, and in the winter 27 degrees.