Hansford County is a county located in the U.S. state of Texas. As of the 2020 census, its population was 5,285. Its county seat is Spearman. The county was created in 1876 and organized in 1889. It is named for John M. Hansford, a Texas state congressman and judge.