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,680,040 (2025) |
| Nominal GDP (USD)Millions of US dollars | nGDP_USD | 1821–2025 | 1,894,700 (2025) |
| Real GDPMillions of local currency | rGDP | 1277–2025 | 1,319,093 (2025) |
| Real GDP per capitaConstant local currency per person | rGDP_pc | 1277–2025 | 26,902 (2025) |
| Real GDP (USD)Millions of US dollars | rGDP_USD | 1789–2025 | 1,462,578 (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,828 (2025) |
Consumption and investment
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| Total consumptionMillions of local currency | cons | 1850–2025 | 1,268,625 (2025) |
| Total consumption (% of GDP)Percent of GDP | cons_GDP | 1850–2025 | 75.5 (2025) |
| Total consumption (USD)Millions of US dollars | cons_USD | 1850–2025 | 1,430,718 (2025) |
| Household consumptionMillions of local currency | hcons | 1850–2025 | 942,282 (2025) |
| Household consumption (% of GDP)Percent of GDP | hcons_GDP | 1850–2025 | 56.1 (2025) |
| Household consumption (USD)Millions of US dollars | hcons_USD | 1850–2025 | 1,062,678 (2025) |
| Government consumptionMillions of local currency | gcons | 1850–2025 | 326,338 (2025) |
| Government consumption (% of GDP)Percent of GDP | gcons_GDP | 1850–2025 | 19.4 (2025) |
| Government consumption (USD)Millions of US dollars | gcons_USD | 1850–2025 | 368,035 (2025) |
| Gross capital formationMillions of local currency | inv | 1850–2025 | 343,892 (2025) |
| Gross capital formation (% of GDP)Percent of GDP | inv_GDP | 1850–2025 | 20.5 (2025) |
| Gross capital formation (USD)Millions of US dollars | inv_USD | 1850–2025 | 387,832 (2025) |
| Gross fixed capital formationMillions of local currency | finv | 1850–2025 | 328,182 (2025) |
| Gross fixed capital formation (% of GDP)Percent of GDP | finv_GDP | 1850–2025 | 19.5 (2025) |
| Gross fixed capital formation (USD)Millions of US dollars | finv_USD | 1850–2025 | 370,114 (2025) |
External sector
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| ExportsMillions of local currency | exports | 1821–2025 | 621,119 (2025) |
| Exports (% of GDP)Percent of GDP | exports_GDP | 1821–2025 | 37.0 (2025) |
| Exports (USD)Millions of US dollars | exports_USD | 1821–2025 | 700,480 (2025) |
| ImportsMillions of local currency | imports | 1821–2025 | 553,812 (2025) |
| Imports (% of GDP)Percent of GDP | imports_GDP | 1821–2025 | 33.0 (2025) |
| Imports (USD)Millions of US dollars | imports_USD | 1821–2025 | 624,573 (2025) |
| Current accountMillions of local currency | CA | 1870–2025 | 49,365 (2025) |
| Current account (% of GDP)Percent of GDP | CA_GDP | 1870–2025 | 2.94 (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,672 (2025) |
Government finances
| Variable | Code | Coverage | Latest |
|---|---|---|---|
| Government expenditureMillions of local currency | govexp | 1801–2025 | 752,548 (2025) |
| General government expenditureMillions of local currency | gen_govexp | 1850–2025 | 752,548 (2025) |
| General government expenditure (% of GDP)Percent of GDP | gen_govexp_GDP | 1850–2025 | 44.8 (2025) |
| Central government expenditureMillions of local currency | cgovexp | 1801–2025 | 372,969 (2025) |
| Central government expenditure (% of GDP)Percent of GDP | cgovexp_GDP | 1801–2025 | 22.2 (2025) |
| Government revenueMillions of local currency | govrev | 1703–2025 | 720,737 (2025) |
| General government revenueMillions of local currency | gen_govrev | 1850–2025 | 720,737 (2025) |
| Central government revenueMillions of local currency | cgovrev | 1703–2025 | 339,368 (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 | 638,947 (2025) |
| General government tax revenueMillions of local currency | gen_govtax | 1980–2025 | 638,947 (2025) |
| Central government tax revenueMillions of local currency | cgovtax | 1901–2024 | 247,667 (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,321 (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,601 (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,691,065 (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,485,551 (2024) |
| Government debtMillions of local currency | govdebt | 1850–2025 | 1,691,065 (2025) |
| Government deficitMillions of local currency | govdef | 1850–2025 | -40,321 (2025) |
| Government expenditure (% of GDP)Percent of GDP | govexp_GDP | 1801–2025 | 44.8 (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–2024 | 3.56 (2024) |
| 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.67 (2025) |
| PopulationMillions of people | pop | 1277–2025 | 49.0 (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 →