Madison County is a county in the U.S. state of Idaho. As of the 2010 census, 37,536 people lived there. The county seat and largest city is Rexburg.