Autonomous communities of Spain by GDP (euros)

Community of Madrid had the highest GDP (euros) of 19 autonomous communities in 2022, at €267.17 billion. Melilla had the lowest, at €1.66 billion. The median was €43.67 billion and the figure for Spain was €1.38 trillion. Source: the Instituto Nacional de Estadística.

Highest267,172Community of Madrid
Lowest1,656Melilla
Median43,66919 autonomous communities
Spain1,375,863History

All autonomous communities, 2022

CSVChart (SVG)

Community of MadridCommunity of Madrid: 267,172 EUR million267,172CataloniaCatalonia: 258,787 EUR million258,787AndalusiaAndalusia: 184,364 EUR million184,364Valencian CommunityValencian Community: 127,583 EUR million127,583Basque CountryBasque Country: 80,218 EUR million80,218GaliciaGalicia: 71,636 EUR million71,636Castile and LeónCastile and León: 65,467 EUR million65,467Castilla-La ManchaCastilla-La Mancha: 50,032 EUR million50,032Canary IslandsCanary Islands: 48,908 EUR million48,908AragonAragon: 43,669 EUR million43,669Region of MurciaRegion of Murcia: 37,381 EUR million37,381Balearic IslandsBalearic Islands: 37,189 EUR million37,189AsturiasAsturias: 26,690 EUR million26,690ExtremaduraExtremadura: 23,487 EUR million23,487NavarreNavarre: 23,204 EUR million23,204CantabriaCantabria: 15,557 EUR million15,557La RiojaLa Rioja: 9,767 EUR million9,767CeutaCeuta: 1,767 EUR million1,767MelillaMelilla: 1,656 EUR million1,656
EUR million. Source: INE. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2022
EUR million
Change on 2021
1Community of Madrid267,172+11.4%
2Catalonia258,787+10.2%
3Andalusia184,364+10.9%
4Valencian Community127,583+9.6%
5Basque Country80,218+10.6%
6Galicia71,636+11.3%
7Castile and León65,467+10.1%
8Castilla-La Mancha50,032+13.4%
9Canary Islands48,908+18.1%
10Aragon43,669+12.6%
11Region of Murcia37,381+11.2%
12Balearic Islands37,189+21.9%
13Asturias26,690+13%
14Extremadura23,487+9%
15Navarre23,204+11.4%
16Cantabria15,557+9.5%
17La Rioja9,767+11.8%
18Ceuta1,767+8.1%
19Melilla1,656+7.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 €267.17 billion in 2022, according to the Instituto Nacional de Estadística.

Which autonomous community has the lowest GDP (euros)?

Melilla, with €1.66 billion in 2022.

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