Autonomous communities of Spain by GDP (euros)

Community of Madrid had the highest GDP (euros) of 19 autonomous communities in 2023, at €295.63 billion. Melilla had the lowest, at €1.75 billion. The median was €46.76 billion and the figure for Spain was €1.5 trillion. Source: the Instituto Nacional de Estadística.

Highest295,626Community of Madrid
Lowest1,753Melilla
Median46,75719 autonomous communities
Spain1,496,277History

All autonomous communities, 2023

CSVChart (SVG)

Community of MadridCommunity of Madrid: 295,626 EUR million295,626CataloniaCatalonia: 283,070 EUR million283,070AndalusiaAndalusia: 199,099 EUR million199,099Valencian CommunityValencian Community: 139,581 EUR million139,581Basque CountryBasque Country: 86,754 EUR million86,754GaliciaGalicia: 77,381 EUR million77,381Castile and LeónCastile and León: 69,958 EUR million69,958Canary IslandsCanary Islands: 53,788 EUR million53,788Castilla-La ManchaCastilla-La Mancha: 52,387 EUR million52,387AragonAragon: 46,757 EUR million46,757Balearic IslandsBalearic Islands: 41,386 EUR million41,386Region of MurciaRegion of Murcia: 39,832 EUR million39,832AsturiasAsturias: 28,323 EUR million28,323ExtremaduraExtremadura: 25,179 EUR million25,179NavarreNavarre: 24,998 EUR million24,998CantabriaCantabria: 16,706 EUR million16,706La RiojaLa Rioja: 10,460 EUR million10,460CeutaCeuta: 1,864 EUR million1,864MelillaMelilla: 1,753 EUR million1,753
EUR million. Source: INE. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2023
EUR million
Change on 2022
1Community of Madrid295,626+10.7%
2Catalonia283,070+9.4%
3Andalusia199,099+8%
4Valencian Community139,581+9.4%
5Basque Country86,754+8.1%
6Galicia77,381+8%
7Castile and León69,958+6.9%
8Canary Islands53,788+10%
9Castilla-La Mancha52,387+4.7%
10Aragon46,757+7.1%
11Balearic Islands41,386+11.3%
12Region of Murcia39,832+6.6%
13Asturias28,323+6.1%
14Extremadura25,179+7.2%
15Navarre24,998+7.7%
16Cantabria16,706+7.4%
17La Rioja10,460+7.1%
18Ceuta1,864+5.5%
19Melilla1,753+5.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 €295.63 billion in 2023, according to the Instituto Nacional de Estadística.

Which autonomous community has the lowest GDP (euros)?

Melilla, with €1.75 billion in 2023.

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