During the Great Recession, Spain's economy was also in a recession. Compared to the EU and US averages, the Spanish economy entered recession later, but stayed there longer. The boom of the 2000s was reversed, leaving over a quarter of Spain's workforce unemployed by 2012. In aggregate, GDP contracted almost 9% during 2009–2013.[31] In 2012, the government officially requested a credit from the European Stability Mechanism to restructure its banking sector in the face of the crisis.[32] The ESM approved assistance and Spain drew €41 billion. The ESM programme for Spain ended with the full repayment of the credit drawn 18 months later.[33]
The economic situation started improving by 2013. By then, Spain managed to reverse the record trade deficit which had built up during the boom years.[34] It attained a trade surplus in 2013, after three decades of running a deficit.[34][35] In 2015, GDP grew by 3.2%: a rate not seen since 2007.[36][37] In 2014–2015, the economy recovered 85% of the GDP lost during the 2009–2013 recession.[38] This success led some analysts to refer to Spain's recovery as "the showcase for structural reform efforts".[39]Spain's unemployment fell substantially from 2013 to 2017. Real unemployment is much lower, as millions work in the grey market, people who count as unemployed yet perform jobs.[40] Real Spanish GDP may be around 20% bigger, as it is assumed the underground economy is annually 190 billion Euros (US$224 billion).[41] Among high incomeEuropean countries, only Italy and Greece are believed to have larger underground economies. Thus Spain may have higher purchasing power as well as a smaller gini coefficient[42] (inequality measure), than shown in official numbers.
The 2020 pandemic hit the Spanish economy with more intensity than other countries, as foreign tourism accounts for 5% of GDP. In the first quarter of 2023, it had fully recovered from the downturn, its GDP reaching pre-pandemic levels.[43] In 2023, Spain's economy grew 2.5%, bucking a downturn in the euro zone as a whole,[44] and is expected to grow at 2.9% in 2024.
^"Archived copy"(PDF). Archived(PDF) from the original on 25 December 2017. Retrieved 25 December 2017.{{cite web}}: CS1 maint: archived copy as title (link)
^"Archived copy"(PDF). Archived(PDF) from the original on 20 April 2017. Retrieved 25 December 2017.{{cite web}}: CS1 maint: archived copy as title (link)