Spain
76 series · 1277–2025 · High income · Europe & Central Asia
National accounts
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| Nominal GDPMillions of local currency | nGDP | 1277–2025 | 1,687,152 (2025) |
| Nominal GDP (USD)Millions of US dollars | nGDP_USD | 1821–2025 | 1,902,721 (2025) |
| Real GDPMillions of local currency | rGDP | 1277–2025 | 1,323,962 (2025) |
| Real GDP per capitaConstant local currency per person | rGDP_pc | 1277–2025 | 26,848 (2025) |
| Real GDP (USD)Millions of US dollars | rGDP_USD | 1789–2025 | 1,467,977 (2025) |
| DeflatorIndex, 2015 = 100 | deflator | 1277–2025 | 127.4 (2025) |
| Real GDP per capita (USD)US dollars per person | rGDP_pc_USD | 1789–2025 | 29,769 (2025) |
Consumption and investment
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| Total consumptionMillions of local currency | cons | 1850–2025 | 1,261,417 (2025) |
| Total consumption (% of GDP)Percent of GDP | cons_GDP | 1850–2025 | 74.8 (2025) |
| Total consumption (USD)Millions of US dollars | cons_USD | 1850–2025 | 1,422,589 (2025) |
| Household consumptionMillions of local currency | hcons | 1850–2025 | 937,447 (2025) |
| Household consumption (% of GDP)Percent of GDP | hcons_GDP | 1850–2025 | 55.6 (2025) |
| Household consumption (USD)Millions of US dollars | hcons_USD | 1850–2025 | 1,057,225 (2025) |
| Government consumptionMillions of local currency | gcons | 1850–2025 | 323,970 (2025) |
| Government consumption (% of GDP)Percent of GDP | gcons_GDP | 1850–2025 | 19.2 (2025) |
| Government consumption (USD)Millions of US dollars | gcons_USD | 1850–2025 | 365,364 (2025) |
| Gross capital formationMillions of local currency | inv | 1850–2025 | 361,216 (2025) |
| Gross capital formation (% of GDP)Percent of GDP | inv_GDP | 1850–2025 | 21.4 (2025) |
| Gross capital formation (USD)Millions of US dollars | inv_USD | 1850–2025 | 407,369 (2025) |
| Gross fixed capital formationMillions of local currency | finv | 1850–2025 | 347,698 (2025) |
| Gross fixed capital formation (% of GDP)Percent of GDP | finv_GDP | 1850–2025 | 20.6 (2025) |
| Gross fixed capital formation (USD)Millions of US dollars | finv_USD | 1850–2025 | 392,124 (2025) |
External sector
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| ExportsMillions of local currency | exports | 1821–2025 | 618,130 (2025) |
| Exports (% of GDP)Percent of GDP | exports_GDP | 1821–2025 | 36.6 (2025) |
| Exports (USD)Millions of US dollars | exports_USD | 1821–2025 | 697,109 (2025) |
| ImportsMillions of local currency | imports | 1821–2025 | 553,611 (2025) |
| Imports (% of GDP)Percent of GDP | imports_GDP | 1821–2025 | 32.8 (2025) |
| Imports (USD)Millions of US dollars | imports_USD | 1821–2025 | 624,346 (2025) |
| Current accountMillions of local currency | CA | 1870–2025 | 49,396 (2025) |
| Current account (% of GDP)Percent of GDP | CA_GDP | 1870–2025 | 2.93 (2025) |
| USD exchange rateLocal currency per US dollar | USDfx | 1821–2025 | 0.887 (2025) |
| Real effective exchange rateIndex, 2015 = 100 | REER | 1870–2025 | 105.4 (2025) |
| Current account (USD)Millions of US dollars | CA_USD | 1870–2025 | 55,707 (2025) |
Government finances
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| Government expenditureMillions of local currency | govexp | 1801–2025 | 764,884 (2025) |
| General government expenditureMillions of local currency | gen_govexp | 1850–2025 | 764,884 (2025) |
| General government expenditure (% of GDP)Percent of GDP | gen_govexp_GDP | 1850–2025 | 45.3 (2025) |
| Central government expenditureMillions of local currency | cgovexp | 1801–2025 | 374,548 (2025) |
| Central government expenditure (% of GDP)Percent of GDP | cgovexp_GDP | 1801–2025 | 22.2 (2025) |
| Government revenueMillions of local currency | govrev | 1703–2025 | 723,788 (2025) |
| General government revenueMillions of local currency | gen_govrev | 1850–2025 | 723,788 (2025) |
| Central government revenueMillions of local currency | cgovrev | 1703–2025 | 340,805 (2025) |
| General government revenue (% of GDP)Percent of GDP | gen_govrev_GDP | 1850–2025 | 42.9 (2025) |
| Central government revenue (% of GDP)Percent of GDP | cgovrev_GDP | 1703–2025 | 20.2 (2025) |
| Government tax revenueMillions of local currency | govtax | 1901–2025 | 641,652 (2025) |
| General government tax revenueMillions of local currency | gen_govtax | 1980–2025 | 641,652 (2025) |
| Central government tax revenueMillions of local currency | cgovtax | 1901–2024 | 248,715 (2024) |
| General government tax revenue (% of GDP)Percent of GDP | gen_govtax_GDP | 1980–2025 | 38.0 (2025) |
| Central government tax revenue (% of GDP)Percent of GDP | cgovtax_GDP | 1901–2024 | 15.6 (2024) |
| Government deficit (% of GDP)Percent of GDP | govdef_GDP | 1850–2025 | -2.40 (2025) |
| General government deficit (% of GDP)Percent of GDP | gen_govdef_GDP | 1850–2025 | -2.40 (2025) |
| General government deficitMillions of local currency | gen_govdef | 1850–2025 | -40,492 (2025) |
| Central government deficit (% of GDP)Percent of GDP | cgovdef_GDP | 1880–2025 | -2.00 (2025) |
| Central government deficitMillions of local currency | cgovdef | 1880–2025 | -33,743 (2025) |
| Government debt (% of GDP)Percent of GDP | govdebt_GDP | 1850–2025 | 100.7 (2025) |
| General government debt (% of GDP)Percent of GDP | gen_govdebt_GDP | 1850–2025 | 100.7 (2025) |
| General government debtMillions of local currency | gen_govdebt | 1850–2025 | 1,698,225 (2025) |
| Central government debt (% of GDP)Percent of GDP | cgovdebt_GDP | 1850–2024 | 93.6 (2024) |
| Central government debtMillions of local currency | cgovdebt | 1850–2024 | 1,491,840 (2024) |
| Government debtMillions of local currency | govdebt | 1850–2025 | 1,698,225 (2025) |
| Government deficitMillions of local currency | govdef | 1850–2025 | -40,492 (2025) |
| Government expenditure (% of GDP)Percent of GDP | govexp_GDP | 1801–2025 | 45.3 (2025) |
| Government revenue (% of GDP)Percent of GDP | govrev_GDP | 1703–2025 | 42.9 (2025) |
| Government tax revenue (% of GDP)Percent of GDP | govtax_GDP | 1901–2025 | 38.0 (2025) |
Money and interest rates
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| Short-term interest ratePercent | strate | 1870–2025 | 2.03 (2025) |
| Long-term interest ratePercent | ltrate | 1821–2025 | 3.21 (2025) |
| Central bank policy ratePercent | cbrate | 1873–2025 | 2.13 (2025) |
| M0 (monetary base)Millions of local currency | M0 | 1830–2010 | 95.5 (2010) |
| M1Millions of local currency | M1 | 1865–2020 | 1,400,773 (2020) |
| M2Millions of local currency | M2 | 1874–2000 | 564,000 (2000) |
| M3Millions of local currency | M3 | 1830–2020 | 1,416,806 (2020) |
Prices and labor markets
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| House price indexIndex, 2015 = 100 | HPI | 1971–2025 | 185.0 (2025) |
| Real house price indexIndex, 2015 = 100 | rHPI | 1971–2025 | 145.9 (2025) |
| Consumer price indexIndex, 2015 = 100 | CPI | 1501–2025 | 126.8 (2025) |
| InflationPercent | infl | 1501–2025 | 2.69 (2025) |
| PopulationMillions of people | pop | 1277–2025 | 49.3 (2025) |
| Unemployment ratePercent | unemp | 1933–2025 | 10.5 (2025) |
Please cite: Müller, K., Xu, C., Lehbib, M., & Chen, Z. (2025). The Global Macro Database: A New International Macroeconomic Dataset. NBER Working Paper 33714. BibTeX →