As of the 2020 United States Census, the population was 30,921. The county seat is Sheridan. Its northern boundary abuts the Montana state border.