Main dwellings according to number of dwellings in the building by type of municipality

. 28-Madrid

  TOTAL 1 2 3 4 5 to 9 10 to 19 20 to 39 40 or more
TOTAL 1873671 194541 39491 18759 21431 196113 511043 566045 326248
Capital with more than 500,000 inhabitants 1080306 32020 9832 8781 11425 125351 309321 344548 239028
Suburbs 337482 57066 6212 3036 3583 36653 101579 87292 42061
Rest, with more than 20,000 inhabitants 312976 33042 4720 1907 2391 20183 82708 125349 42676
Rest, from 5,001 to 20,000 inhabitants 80203 34969 7790 2186 2087 8933 14264 8140 1834
Rest, from 1,001 to 5,000 inhabitants 53857 31170 9166 2468 1797 4814 3078 715 649
Rest, less than 1001 inhabitants 8847 6274 1771 381 148 179 93 1 0