Mechanicsburg is a village in Sangamon County, Illinois, United States. The population was 456 at the 2000 census. It is part of the Springfield, Illinois Metropolitan Statistical Area.
Mechanicsburg is located at 39°48′34″N 89°23′51″W / 39.80944°N 89.39750°W / 39.80944; -89.39750 (39.809366, -89.397445).
According to the 2010 census, Mechanicsburg has a total area of 1.07 square miles (2.77 km), all land.
As of the census of 2000, there were 456 people, 172 households, and 121 families residing in the village. The population density was 1,203.2 people per square mile (463.3/km²). There were 198 housing units at an average density of 522.4 per square mile (201.2/km²). The racial makeup of the village was 97.15% White, 0.88% African American, 0.66% Asian, 0.88% from other races, and 0.44% from two or more races. Hispanic or Latino of any race were 0.22% of the population.
There were 172 households out of which 39.0% had children under the age of 18 living with them, 52.9% were married couples living together, 12.2% had a female householder with no husband present, and 29.1% were non-families. 24.4% of all households were made up of individuals and 8.7% had someone living alone who was 65 years of age or older. The average household size was 2.65 and the average family size was 3.20.
In the village, the population was spread out with 29.4% under the age of 18, 8.6% from 18 to 24, 31.6% from 25 to 44, 20.2% from 45 to 64, and 10.3% who were 65 years of age or older. The median age was 34 years. For every 100 females, there were 104.5 males. For every 100 females age 18 and over, there were 101.3 males.
The median income for a household in the village was $36,250, and the median income for a family was $42,212. Males had a median income of $34,583 versus $19,554 for females. The per capita income for the village was $16,906. About 3.2% of families and 3.2% of the population were below the poverty line, including 1.8% of those under age 18 and none of those age 65 or over.