Madrid (/mædrɪd/) is a city in Douglas Township, Boone County, Iowa, United States. The population was 2,264 at the 2000 census. It is part of the 'Boone, Iowa Micropolitan Statistical Area', which is a part of the larger 'Ames-Boone, Iowa Combined Statistical Area'.
Madrid is located at 41°52′32″N 93°49′12″W / 41.87556°N 93.82°W / 41.87556; -93.82 (41.875435, -93.819931).
According to the United States Census Bureau, the city has a total area of 1.1 square miles (3.0 km²), all of it land.