Autonomous communities of Spain by GDP (euros)

Community of Madrid had the highest GDP (euros) of 19 autonomous communities in 2020, at €221.06 billion. Melilla had the lowest, at €1.45 billion. The median was €35.96 billion and the figure for Spain was €1.13 trillion. Source: the Instituto Nacional de Estadística.

Highest221,062Community of Madrid
Lowest1,452Melilla
Median35,95619 autonomous communities
Spain1,129,214History

All autonomous communities, 2020

CSVChart (SVG)

Community of MadridCommunity of Madrid: 221,062 EUR million221,062CataloniaCatalonia: 214,857 EUR million214,857AndalusiaAndalusia: 150,453 EUR million150,453Valencian CommunityValencian Community: 106,067 EUR million106,067Basque CountryBasque Country: 66,673 EUR million66,673GaliciaGalicia: 59,007 EUR million59,007Castile and LeónCastile and León: 54,795 EUR million54,795Castilla-La ManchaCastilla-La Mancha: 40,254 EUR million40,254Canary IslandsCanary Islands: 37,587 EUR million37,587AragonAragon: 35,956 EUR million35,956Region of MurciaRegion of Murcia: 30,440 EUR million30,440Balearic IslandsBalearic Islands: 26,669 EUR million26,669AsturiasAsturias: 21,376 EUR million21,376ExtremaduraExtremadura: 19,497 EUR million19,497NavarreNavarre: 19,161 EUR million19,161CantabriaCantabria: 12,991 EUR million12,991La RiojaLa Rioja: 8,187 EUR million8,187CeutaCeuta: 1,536 EUR million1,536MelillaMelilla: 1,452 EUR million1,452
EUR million. Source: INE. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2020
EUR million
Change on 2019
1Community of Madrid221,062-9.4%
2Catalonia214,857-10.5%
3Andalusia150,453-9.6%
4Valencian Community106,067-9%
5Basque Country66,673-9.9%
6Galicia59,007-8.5%
7Castile and León54,795-8.1%
8Castilla-La Mancha40,254-7.2%
9Canary Islands37,587-17.9%
10Aragon35,956-6.5%
11Region of Murcia30,440-7.8%
12Balearic Islands26,669-22.4%
13Asturias21,376-9.7%
14Extremadura19,497-7.9%
15Navarre19,161-9.1%
16Cantabria12,991-9%
17La Rioja8,187-7.9%
18Ceuta1,536-7.5%
19Melilla1,452-6.9%

Other periods

About this ranking

GDP at current market prices, EUR million.

In euros, for Spain and the EU. For the United States, its states and counties, and for other countries and the World, use gdp_usd.

Every value in the ranking comes from the same publisher and the same period, so the autonomous communities are compared on one definition. Equal values share a rank.

How to cite

Instituto Nacional de Estadística (INE). Contabilidad regional de España: PIB a precios de mercado (tabla 82284). https://www.ine.es/jaxiT3/Tabla.htm?t=82284. Retrieved 2026-10-07.

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 Autonomous communities of Spain by GDP (euros) using official data, and cite the source.
rank_places {"indicator":"gdp","level":"region","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=gdp&level=region&within=Spain&limit=10

Connect Claude, ChatGPT or Cursor in one step. The trial answers 25 calls a day without an account.

Questions

Which autonomous community has the highest GDP (euros)?

Community of Madrid, with €221.06 billion in 2020, according to the Instituto Nacional de Estadística.

Which autonomous community has the lowest GDP (euros)?

Melilla, with €1.45 billion in 2020.

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, Contabilidad regional de España: PIB a precios de mercado (tabla 82284). Retrieved 2026-10-07.

Gross domestic product (GDP): other rankings

Autonomous communities of Spain: more rankings