Sparta is a town in Alleghany County, North Carolina, United States. The population was 1,817 at the 2000 census. It is the county seat of Alleghany County.
Sparta is located at 36°30′20″N 81°7′18″W / 36.50556°N 81.12167°W / 36.50556; -81.12167 (36.505639, -81.121718).
According to the United States Census Bureau, the town has a total area of 2.4 square miles (6.1 km²), all of it land.