Macoupin County is a county located in the U.S. state of Illinois. According to the 2020 census, it had a population of 44,967. The county seat is Carlinville. The primary industry is agriculture, consisting of crops of corn, soybeans, and some wheat.