Fairfax is a town in southeastern Gregory County, South Dakota, United States. The population was 96 at the 2020 census. The first settlement at Fairfax was made around 1890. A post office called Fairfax has been in operation since 1892. It was named after Fairfax, Virginia, the former hometown of an early settler.