Municipalities of Spain by population aged 16 to 64
Madrid had the highest population aged 16 to 64 of 8131 municipalities in 2021, at 2.16 million. Villarroya had the lowest, at 1. The median was 319 and the figure for Spain was 30.88 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2021
Full ranking
Other periods
About this ranking
Resident population aged 16 to 64 on 1 January (INE annual census). Used as the working-age denominator.
Spain only. For EU countries and regions use population_15_64 (Eurostat age band).
Every value in the ranking comes from the same publisher and the same period, so the municipalities are compared on one definition. 1 municipalities with data in other periods have no value for 2021 and are left out rather than filled from another source. Equal values share a rank.
How to cite
Instituto Nacional de Estadística (INE). Censo anual de población: población de 16 a 64 años (tabla 68540). https://www.ine.es/jaxiT3/Tabla.htm?t=68540. Retrieved 2026-10-07.
Citation styles
APA 7
Instituto Nacional de Estadística. (n.d.). Censo anual de población: población de 16 a 64 años (tabla 68540) (Municipalities of Spain by population aged 16 to 64, 2021) [Data set]. Retrieved October 7, 2026, from https://www.ine.es/jaxiT3/Tabla.htm?t=68540
MLA 9
Censo anual de población: población de 16 a 64 años (tabla 68540), Municipalities of Spain by population aged 16 to 64, 2021. Instituto Nacional de Estadística, https://www.ine.es/jaxiT3/Tabla.htm?t=68540. Invokely, https://invokely.ai/rankings/population-16-64/spain-municipalities?period=2021. Accessed 7 Oct. 2026.
Chicago (author-date)
Instituto Nacional de Estadística. n.d. Censo anual de población: población de 16 a 64 años (tabla 68540). Municipalities of Spain by population aged 16 to 64, 2021. Dataset. Accessed October 7, 2026. https://www.ine.es/jaxiT3/Tabla.htm?t=68540. Also distributed by Invokely, https://invokely.ai/rankings/population-16-64/spain-municipalities?period=2021.
Harvard
Instituto Nacional de Estadística (no date) Censo anual de población: población de 16 a 64 años (tabla 68540), Municipalities of Spain by population aged 16 to 64, 2021 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=68540, via Invokely: https://invokely.ai/rankings/population-16-64/spain-municipalities?period=2021 (Accessed: 7 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2021,
author = {{Instituto Nacional de Estadística}},
title = {{Censo anual de población: población de 16 a 64 años (tabla 68540): Municipalities of Spain by population aged 16 to 64, 2021}},
howpublished = {Data set},
url = {https://www.ine.es/jaxiT3/Tabla.htm?t=68540},
urldate = {2026-10-07},
note = {Accessed via Invokely, https://invokely.ai/rankings/population-16-64/spain-municipalities?period=2021. Publisher attribution: Instituto Nacional de Estadística (INE). Censo anual de población: población de 16 a 64 años (tabla 68540). https://www.ine.es/jaxiT3/Tabla.htm?t=68540. Retrieved 2026-10-07.},
}
RIS
TY - DATA
AU - Instituto Nacional de Estadística
TI - Censo anual de población: población de 16 a 64 años (tabla 68540): Municipalities of Spain by population aged 16 to 64, 2021
PB - Instituto Nacional de Estadística
DB - Invokely
UR - https://www.ine.es/jaxiT3/Tabla.htm?t=68540
L2 - https://invokely.ai/rankings/population-16-64/spain-municipalities?period=2021
Y2 - 2026/10/07
N1 - Accessed via Invokely, https://invokely.ai/rankings/population-16-64/spain-municipalities?period=2021.
N1 - Publisher attribution: Instituto Nacional de Estadística (INE). Censo anual de población: población de 16 a 64 años (tabla 68540). https://www.ine.es/jaxiT3/Tabla.htm?t=68540. Retrieved 2026-10-07.
ER -
Use this data in your AI agent
Invokely serves this figure to AI assistants through MCP and to code through a REST API, with the source and citation attached. Ask your assistant:
Rank Municipalities of Spain by population aged 16 to 64 using official data, and cite the source.
rank_places {"indicator":"population_16_64","level":"municipality","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=population_16_64&level=municipality&within=Spain&limit=10
Questions
Which municipality has the highest population aged 16 to 64?
Madrid, with 2.16 million in 2021, according to the Instituto Nacional de Estadística.
Which municipality has the lowest population aged 16 to 64?
Villarroya, with 1 in 2021.
Where does this ranking come from?
Every value comes from one source and one period, so the places are comparable: Instituto Nacional de Estadística, Censo anual de población: población de 16 a 64 años (tabla 68540). Retrieved 2026-10-07. 1 municipalities have no value for 2021 and are not ranked.
Population aged 16 to 64: other rankings
- Municipalities in Valencia province
- Municipalities in Canary Islands
- Municipalities in Huesca province
- Autonomous communities of Spain
- Provinces of Spain
- EU regions (NUTS 2)