Autonomous communities of Spain by GDP (euros)

Community of Madrid had the highest GDP (euros) of 19 autonomous communities in 2024, at €318.67 billion. Melilla had the lowest, at €1.84 billion. The median was €49.69 billion and the figure for Spain was €1.6 trillion. Source: the Instituto Nacional de Estadística.

Highest318,672Community of Madrid
Lowest1,840Melilla
Median49,68919 autonomous communities
Spain1,598,588History

All autonomous communities, 2024

CSVChart (SVG)

Community of MadridCommunity of Madrid: 318,672 EUR million318,672CataloniaCatalonia: 302,987 EUR million302,987AndalusiaAndalusia: 213,883 EUR million213,883Valencian CommunityValencian Community: 148,735 EUR million148,735Basque CountryBasque Country: 91,174 EUR million91,174GaliciaGalicia: 81,840 EUR million81,840Castile and LeónCastile and León: 73,794 EUR million73,794Canary IslandsCanary Islands: 58,231 EUR million58,231Castilla-La ManchaCastilla-La Mancha: 55,363 EUR million55,363AragonAragon: 49,689 EUR million49,689Balearic IslandsBalearic Islands: 45,127 EUR million45,127Region of MurciaRegion of Murcia: 42,310 EUR million42,310AsturiasAsturias: 29,763 EUR million29,763ExtremaduraExtremadura: 26,533 EUR million26,533NavarreNavarre: 26,438 EUR million26,438CantabriaCantabria: 17,774 EUR million17,774La RiojaLa Rioja: 11,030 EUR million11,030CeutaCeuta: 1,947 EUR million1,947MelillaMelilla: 1,840 EUR million1,840
EUR million. Source: INE. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2024
EUR million
Change on 2023
1Community of Madrid Provisional318,672+7.8%
2Catalonia Provisional302,987+7%
3Andalusia Provisional213,883+7.4%
4Valencian Community Provisional148,735+6.6%
5Basque Country Provisional91,174+5.1%
6Galicia Provisional81,840+5.8%
7Castile and León Provisional73,794+5.5%
8Canary Islands Provisional58,231+8.3%
9Castilla-La Mancha Provisional55,363+5.7%
10Aragon Provisional49,689+6.3%
11Balearic Islands Provisional45,127+9%
12Region of Murcia Provisional42,310+6.2%
13Asturias Provisional29,763+5.1%
14Extremadura Provisional26,533+5.4%
15Navarre Provisional26,438+5.8%
16Cantabria Provisional17,774+6.4%
17La Rioja Provisional11,030+5.4%
18Ceuta Provisional1,947+4.4%
19Melilla Provisional1,840+5%

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 €318.67 billion in 2024, according to the Instituto Nacional de Estadística.

Which autonomous community has the lowest GDP (euros)?

Melilla, with €1.84 billion in 2024.

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