Population and housing censuses. 2021 Population by sex, age (year by year) and nationality (Spanish/Foreign) Units: Personas ;Ambos sexos;;;Hombres;;;Mujeres;;; ;TOTAL;Española;Extranjera;TOTAL;Española;Extranjera;TOTAL;Española;Extranjera; ;Personas;Personas;Personas;Personas;Personas;Personas;Personas;Personas;Personas; TOTAL;47,400,798;41,998,096;5,402,702;23,248,611;20,534,537;2,714,074;24,152,187;21,463,559;2,688,628; 0;338,653;286,781;51,872;173,379;146,557;26,822;165,274;140,224;25,050; 1;365,218;309,848;55,370;187,788;159,242;28,546;177,430;150,606;26,824; 2;376,097;323,977;52,120;193,066;166,300;26,766;183,031;157,677;25,354; 3;404,097;350,040;54,057;208,174;180,257;27,917;195,923;169,783;26,140; 4;426,904;370,220;56,684;219,572;190,248;29,324;207,332;179,972;27,360; 5;438,627;382,146;56,481;225,520;196,369;29,151;213,107;185,777;27,330; 6;446,151;390,265;55,886;230,212;201,061;29,151;215,939;189,204;26,735; 7;442,158;389,423;52,735;227,459;200,169;27,290;214,699;189,254;25,445; 8;468,434;416,195;52,239;241,363;214,400;26,963;227,071;201,795;25,276; 9;481,109;430,591;50,518;247,962;221,729;26,233;233,147;208,862;24,285; 10;492,278;441,604;50,674;253,334;227,123;26,211;238,944;214,481;24,463; 11;501,134;451,265;49,869;258,803;232,929;25,874;242,331;218,336;23,995; 12;524,125;475,666;48,459;270,175;245,068;25,107;253,950;230,598;23,352; 13;505,307;461,420;43,887;260,171;237,370;22,801;245,136;224,050;21,086; 14;503,369;460,538;42,831;258,916;236,671;22,245;244,453;223,867;20,586; 15;494,142;451,245;42,897;253,361;231,050;22,311;240,781;220,195;20,586; 16;491,200;447,805;43,395;252,844;230,059;22,785;238,356;217,746;20,610; 17;484,420;440,250;44,170;248,997;225,004;23,993;235,423;215,246;20,177; 18;471,595;424,494;47,101;244,115;217,693;26,422;227,480;206,801;20,679; 19;475,522;420,751;54,771;245,639;215,314;30,325;229,883;205,437;24,446; 20;482,002;420,855;61,147;249,419;216,915;32,504;232,583;203,940;28,643; 21;475,285;408,712;66,573;244,016;209,621;34,395;231,269;199,091;32,178; 22;465,786;394,160;71,626;239,782;203,313;36,469;226,004;190,847;35,157; 23;476,915;398,036;78,879;243,522;204,054;39,468;233,393;193,982;39,411; 24;476,019;392,047;83,972;242,181;200,650;41,531;233,838;191,397;42,441; 25;482,024;391,202;90,822;245,493;200,802;44,691;236,531;190,400;46,131; 26;492,093;395,119;96,974;250,104;202,592;47,512;241,989;192,527;49,462; 27;511,294;409,473;101,821;259,656;210,008;49,648;251,638;199,465;52,173; 28;527,089;420,758;106,331;266,782;215,043;51,739;260,307;205,715;54,592; 29;526,690;418,084;108,606;266,870;214,222;52,648;259,820;203,862;55,958; 30;535,027;421,244;113,783;269,891;215,244;54,647;265,136;206,000;59,136; 31;545,569;428,183;117,386;274,345;218,425;55,920;271,224;209,758;61,466; 32;556,629;435,893;120,736;279,236;221,846;57,390;277,393;214,047;63,346; 33;564,342;442,585;121,757;282,790;224,751;58,039;281,552;217,834;63,718; 34;578,572;456,450;122,122;288,537;230,852;57,685;290,035;225,598;64,437; 35;598,075;474,992;123,083;298,577;239,927;58,650;299,498;235,065;64,433; 36;621,156;496,667;124,489;310,289;250,407;59,882;310,867;246,260;64,607; 37;642,232;517,891;124,341;321,156;260,706;60,450;321,076;257,185;63,891; 38;677,936;551,166;126,770;339,706;277,066;62,640;338,230;274,100;64,130; 39;708,152;581,448;126,704;356,114;292,686;63,428;352,038;288,762;63,276; 40;741,492;613,852;127,640;373,422;308,185;65,237;368,070;305,667;62,403; 41;762,950;638,950;124,000;384,473;320,924;63,549;378,477;318,026;60,451; 42;795,292;674,629;120,663;402,108;339,449;62,659;393,184;335,180;58,004; 43;804,992;688,222;116,770;408,581;347,118;61,463;396,411;341,104;55,307; 44;818,243;707,219;111,024;414,151;355,612;58,539;404,092;351,607;52,485; 45;812,093;705,651;106,442;412,194;355,835;56,359;399,899;349,816;50,083; 46;805,751;704,000;101,751;407,866;353,994;53,872;397,885;350,006;47,879; 47;784,914;690,852;94,062;397,523;347,767;49,756;387,391;343,085;44,306; 48;779,889;689,423;90,466;394,005;346,223;47,782;385,884;343,200;42,684; 49;767,272;681,400;85,872;387,095;342,161;44,934;380,177;339,239;40,938; 50;754,068;671,239;82,829;379,247;335,825;43,422;374,821;335,414;39,407; 51;746,907;667,396;79,511;374,670;333,227;41,443;372,237;334,169;38,068; 52;737,981;661,910;76,071;368,612;329,648;38,964;369,369;332,262;37,107; 53;741,860;670,904;70,956;369,218;333,177;36,041;372,642;337,727;34,915; 54;721,643;659,482;62,161;358,672;327,076;31,596;362,971;332,406;30,565; 55;714,882;655,548;59,334;353,577;323,669;29,908;361,305;331,879;29,426; 56;721,563;664,393;57,170;356,066;327,543;28,523;365,497;336,850;28,647; 57;685,783;631,648;54,135;337,915;311,275;26,640;347,868;320,373;27,495; 58;659,864;609,629;50,235;323,631;298,916;24,715;336,233;310,713;25,520; 59;644,125;597,734;46,391;315,058;292,530;22,528;329,067;305,204;23,863; 60;641,940;597,458;44,482;312,964;291,430;21,534;328,976;306,028;22,948; 61;624,427;582,010;42,417;304,202;283,722;20,480;320,225;298,288;21,937; 62;606,074;566,962;39,112;294,192;275,425;18,767;311,882;291,537;20,345; 63;589,855;552,623;37,232;284,822;267,305;17,517;305,033;285,318;19,715; 64;546,530;511,653;34,877;262,930;246,408;16,522;283,600;265,245;18,355; 65;528,874;496,123;32,751;253,773;238,391;15,382;275,101;257,732;17,369; 66;501,548;470,476;31,072;238,874;224,242;14,632;262,674;246,234;16,440; 67;499,604;470,222;29,382;238,241;224,404;13,837;261,363;245,818;15,545; 68;493,579;465,501;28,078;235,147;221,928;13,219;258,432;243,573;14,859; 69;459,828;433,588;26,240;217,214;204,680;12,534;242,614;228,908;13,706; 70;444,013;419,054;24,959;208,358;196,698;11,660;235,655;222,356;13,299; 71;457,993;434,120;23,873;213,189;201,953;11,236;244,804;232,167;12,637; 72;472,267;450,023;22,244;218,311;207,762;10,549;253,956;242,261;11,695; 73;427,225;405,382;21,843;196,233;185,806;10,427;230,992;219,576;11,416; 74;402,334;382,686;19,648;182,726;173,360;9,366;219,608;209,326;10,282; 75;413,358;397,317;16,041;186,123;178,457;7,666;227,235;218,860;8,375; 76;386,601;370,465;16,136;172,965;165,059;7,906;213,636;205,406;8,230; 77;373,398;359,195;14,203;165,224;158,288;6,936;208,174;200,907;7,267; 78;314,751;301,898;12,853;138,368;132,106;6,262;176,383;169,792;6,591; 79;282,587;271,264;11,323;122,485;117,013;5,472;160,102;154,251;5,851; 80;335,947;325,771;10,176;142,760;137,840;4,920;193,187;187,931;5,256; 81;215,174;205,827;9,347;88,459;83,997;4,462;126,715;121,830;4,885; 82;234,239;226,549;7,690;95,300;91,497;3,803;138,939;135,052;3,887; 83;250,968;244,463;6,505;100,181;97,063;3,118;150,787;147,400;3,387; 84;259,388;253,807;5,581;100,245;97,690;2,555;159,143;156,117;3,026; 85;236,511;231,956;4,555;90,360;88,237;2,123;146,151;143,719;2,432; 86;217,820;214,088;3,732;80,973;79,271;1,702;136,847;134,817;2,030; 87;203,035;199,925;3,110;73,531;72,175;1,356;129,504;127,750;1,754; 88;181,829;179,242;2,587;64,083;62,945;1,138;117,746;116,297;1,449; 89;152,360;150,219;2,141;52,329;51,433;896;100,031;98,786;1,245; 90;132,449;130,699;1,750;43,039;42,321;718;89,410;88,378;1,032; 91;106,935;105,451;1,484;33,593;33,074;519;73,342;72,377;965; 92;87,543;86,502;1,041;26,429;26,032;397;61,114;60,470;644; 93;66,542;65,779;763;19,130;18,844;286;47,412;46,935;477; 94;52,875;52,275;600;14,478;14,271;207;38,397;38,004;393; 95;38,946;38,528;418;10,101;9,953;148;28,845;28,575;270; 96;29,081;28,764;317;7,268;7,178;90;21,813;21,586;227; 97;20,597;20,360;237;5,008;4,930;78;15,589;15,430;159; 98;14,554;14,397;157;3,254;3,203;51;11,300;11,194;106; 99;9,436;9,320;116;2,108;2,078;30;7,328;7,242;86; 100 o más años;12,792;12,584;208;2,241;2,171;70;10,551;10,413;138; Notes: Source: Instituto Nacional de Estadística