Sparta, Illinois

Sparta
Intersection of Market Street and Broadway downtown
Location of Sparta in Randolph County, Illinois.
Coordinates: 38°08′57″N 89°43′50″W / 38.14917°N 89.73056°W / 38.14917; -89.73056
CountryUnited States
StateIllinois
CountyRandolph
Established1829
Government
 • TypeMayor–council
Area
 • Total
11.43 sq mi (29.60 km2)
 • Land11.17 sq mi (28.93 km2)
 • Water0.26 sq mi (0.67 km2)
Elevation
469 ft (143 m)
Population
 (2020)
 • Total
4,095
 • Density366.6/sq mi (141.55/km2)
Time zoneUTC-6 (CST)
 • Summer (DST)UTC-5 (CDT)
ZIP code
62286
Area code618
FIPS code17-71448
GNIS feature ID2395921
Websitespartaillinois.us

Sparta is a city in Randolph County, Illinois, United States. The population was 4,095 at the 2020 census. It has a total area of 11.443 square miles (29.64 km2), of which 11.17 square miles (28.93 km2) (or 97.61%) is land and 0.273 square miles (0.71 km2) (or 2.39%) is water.

The city was the principal filming location for the 1967 film In the Heat of the Night.