Autonomous communities of Spain by GDP (euros)

Community of Madrid had the highest GDP (euros) of 19 autonomous communities in 2018, at €233.74 billion. Melilla had the lowest, at €1.51 billion. The median was €37.21 billion and the figure for Spain was €1.21 trillion. Source: the Instituto Nacional de Estadística.

Highest233,736Community of Madrid
Lowest1,511Melilla
Median37,21419 autonomous communities
Spain1,212,276History

All autonomous communities, 2018

CSVChart (SVG)

Community of MadridCommunity of Madrid: 233,736 EUR million233,736CataloniaCatalonia: 231,101 EUR million231,101AndalusiaAndalusia: 161,894 EUR million161,894Valencian CommunityValencian Community: 112,750 EUR million112,750Basque CountryBasque Country: 71,915 EUR million71,915GaliciaGalicia: 62,649 EUR million62,649Castile and LeónCastile and León: 58,327 EUR million58,327Canary IslandsCanary Islands: 44,609 EUR million44,609Castilla-La ManchaCastilla-La Mancha: 42,291 EUR million42,291AragonAragon: 37,214 EUR million37,214Balearic IslandsBalearic Islands: 33,186 EUR million33,186Region of MurciaRegion of Murcia: 31,715 EUR million31,715AsturiasAsturias: 23,186 EUR million23,186ExtremaduraExtremadura: 20,713 EUR million20,713NavarreNavarre: 20,236 EUR million20,236CantabriaCantabria: 13,844 EUR million13,844La RiojaLa Rioja: 8,650 EUR million8,650CeutaCeuta: 1,612 EUR million1,612MelillaMelilla: 1,511 EUR million1,511
EUR million. Source: INE. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2018
EUR million
Change on 2017
1Community of Madrid233,736+4.2%
2Catalonia231,101+3.6%
3Andalusia161,894+3.3%
4Valencian Community112,750+3.8%
5Basque Country71,915+3.3%
6Galicia62,649+3.3%
7Castile and León58,327+4.4%
8Canary Islands44,609+3.7%
9Castilla-La Mancha42,291+3.7%
10Aragon37,214+3.4%
11Balearic Islands33,186+4.5%
12Region of Murcia31,715+1.7%
13Asturias23,186+2.9%
14Extremadura20,713+2.7%
15Navarre20,236+2.7%
16Cantabria13,844+3.9%
17La Rioja8,650+3.6%
18Ceuta1,612+3.7%
19Melilla1,511+3%

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

Which autonomous community has the lowest GDP (euros)?

Melilla, with €1.51 billion in 2018.

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