Madrid province had the highest GDP (euros) of 49 provinces in 2017, at €224.37 billion. Melilla province had the lowest, at €1.47 billion. The median was €12.42 billion and the figure for Spain was €1.17 trillion. Source: Eurostat, European Commission.
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 provinces are compared on one definition. 2 provinces with data in other periods have no value for 2017 and are left out rather than filled from another source. Equal values share a rank.
How to cite
Eurostat. GDP at current market prices by NUTS 3 region (nama_10r_3gdp). https://ec.europa.eu/eurostat/databrowser/view/nama_10r_3gdp/default/table. 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 Provinces of Spain by GDP (euros) using official data, and cite the source.
rank_places {"indicator":"gdp","level":"province","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=gdp&level=province&within=Spain&limit=10
Madrid province, with €224.37 billion in 2017, according to Eurostat, European Commission.
Which province has the lowest GDP (euros)?
Melilla province, 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: Eurostat, European Commission, GDP at current market prices by NUTS 3 region (nama_10r_3gdp). Retrieved 2026-10-07. 2 provinces have no value for 2017 and are not ranked.