Madison County is a county located in the U.S. state of Idaho. As of the 2020 census, the population was 52,913. The county seat and largest city is Rexburg.