Autonomous communities of Spain by GDP (euros)

Community of Madrid had the highest GDP (euros) of 19 autonomous communities in 2017, at €224.37 billion. Melilla had the lowest, at €1.47 billion. The median was €35.98 billion and the figure for Spain was €1.17 trillion. Source: the Instituto Nacional de Estadística.

Highest224,373Community of Madrid
Lowest1,467Melilla
Median35,98419 autonomous communities
Spain1,170,024History

All autonomous communities, 2017

CSVChart (SVG)

Community of MadridCommunity of Madrid: 224,373 EUR million224,373CataloniaCatalonia: 223,140 EUR million223,140AndalusiaAndalusia: 156,789 EUR million156,789Valencian CommunityValencian Community: 108,667 EUR million108,667Basque CountryBasque Country: 69,585 EUR million69,585GaliciaGalicia: 60,631 EUR million60,631Castile and LeónCastile and León: 55,879 EUR million55,879Canary IslandsCanary Islands: 43,036 EUR million43,036Castilla-La ManchaCastilla-La Mancha: 40,769 EUR million40,769AragonAragon: 35,984 EUR million35,984Balearic IslandsBalearic Islands: 31,746 EUR million31,746Region of MurciaRegion of Murcia: 31,192 EUR million31,192AsturiasAsturias: 22,538 EUR million22,538ExtremaduraExtremadura: 20,170 EUR million20,170NavarreNavarre: 19,699 EUR million19,699CantabriaCantabria: 13,318 EUR million13,318La RiojaLa Rioja: 8,352 EUR million8,352CeutaCeuta: 1,554 EUR million1,554MelillaMelilla: 1,467 EUR million1,467
EUR million. Source: INE. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2017
EUR million
Change on 2016
1Community of Madrid224,373+4.6%
2Catalonia223,140+4%
3Andalusia156,789+4.6%
4Valencian Community108,667+4.3%
5Basque Country69,585+3.7%
6Galicia60,631+3.5%
7Castile and León55,879+2.3%
8Canary Islands43,036+5%
9Castilla-La Mancha40,769+4.2%
10Aragon35,984+4.2%
11Balearic Islands31,746+5%
12Region of Murcia31,192+3.9%
13Asturias22,538+4%
14Extremadura20,170+5.8%
15Navarre19,699+4.2%
16Cantabria13,318+3.8%
17La Rioja8,352+3.4%
18Ceuta1,554+1.1%
19Melilla1,467+1%

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

Which autonomous community has the lowest GDP (euros)?

Melilla, with €1.47 billion in 2017.

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