Gainesville is a town in Sumter County, Alabama, United States. Founded in 1832, it was incorporated in 1835. At the 2010 census the population was 208, down from 220. Confederate Lieutenant General Nathan Bedford Forrest surrendered his men near Gainesville on May 19, 1865, at the Civil War's end.
Gainesville is located at 32°49′2″N 88°9′29″W (32.817317, -88.158026).
According to the U.S. Census Bureau, the town has a total area of 1.7 square miles (4.4 km2), all land.
As of the 2010 United States Census, there were 208 people living in the town. The racial makeup of the town was 82.2% Black, 16.3% White and 1.4% from two or more races.
As of the census of 2000, there were 220 people, 87 households, and 58 families living in the town. The population density was 128.3 people per square mile (49.7/km2). There were 122 housing units at an average density of 71.1 per square mile (27.5/km2).