Commercial users: see the World Economic Database from our partners at Anansi Data Analytics

Spain

76 series · 1277–2025 · High income · Europe & Central Asia

National accounts

VariableCodeCoverageLatest
Nominal GDPMillions of local currencynGDP1277–20251,680,040 (2025)
Nominal GDP (USD)Millions of US dollarsnGDP_USD1821–20251,894,700 (2025)
Real GDPMillions of local currencyrGDP1277–20251,319,093 (2025)
Real GDP per capitaConstant local currency per personrGDP_pc1277–202526,902 (2025)
Real GDP (USD)Millions of US dollarsrGDP_USD1789–20251,462,578 (2025)
DeflatorIndex, 2015 = 100deflator1277–2025127.4 (2025)
Real GDP per capita (USD)US dollars per personrGDP_pc_USD1789–202529,828 (2025)

Consumption and investment

VariableCodeCoverageLatest
Total consumptionMillions of local currencycons1850–20251,268,625 (2025)
Total consumption (% of GDP)Percent of GDPcons_GDP1850–202575.5 (2025)
Total consumption (USD)Millions of US dollarscons_USD1850–20251,430,718 (2025)
Household consumptionMillions of local currencyhcons1850–2025942,282 (2025)
Household consumption (% of GDP)Percent of GDPhcons_GDP1850–202556.1 (2025)
Household consumption (USD)Millions of US dollarshcons_USD1850–20251,062,678 (2025)
Government consumptionMillions of local currencygcons1850–2025326,338 (2025)
Government consumption (% of GDP)Percent of GDPgcons_GDP1850–202519.4 (2025)
Government consumption (USD)Millions of US dollarsgcons_USD1850–2025368,035 (2025)
Gross capital formationMillions of local currencyinv1850–2025343,892 (2025)
Gross capital formation (% of GDP)Percent of GDPinv_GDP1850–202520.5 (2025)
Gross capital formation (USD)Millions of US dollarsinv_USD1850–2025387,832 (2025)
Gross fixed capital formationMillions of local currencyfinv1850–2025328,182 (2025)
Gross fixed capital formation (% of GDP)Percent of GDPfinv_GDP1850–202519.5 (2025)
Gross fixed capital formation (USD)Millions of US dollarsfinv_USD1850–2025370,114 (2025)

External sector

VariableCodeCoverageLatest
ExportsMillions of local currencyexports1821–2025621,119 (2025)
Exports (% of GDP)Percent of GDPexports_GDP1821–202537.0 (2025)
Exports (USD)Millions of US dollarsexports_USD1821–2025700,480 (2025)
ImportsMillions of local currencyimports1821–2025553,812 (2025)
Imports (% of GDP)Percent of GDPimports_GDP1821–202533.0 (2025)
Imports (USD)Millions of US dollarsimports_USD1821–2025624,573 (2025)
Current accountMillions of local currencyCA1870–202549,365 (2025)
Current account (% of GDP)Percent of GDPCA_GDP1870–20252.94 (2025)
USD exchange rateLocal currency per US dollarUSDfx1821–20250.887 (2025)
Real effective exchange rateIndex, 2015 = 100REER1870–2025105.4 (2025)
Current account (USD)Millions of US dollarsCA_USD1870–202555,672 (2025)

Government finances

VariableCodeCoverageLatest
Government expenditureMillions of local currencygovexp1801–2025752,548 (2025)
General government expenditureMillions of local currencygen_govexp1850–2025752,548 (2025)
General government expenditure (% of GDP)Percent of GDPgen_govexp_GDP1850–202544.8 (2025)
Central government expenditureMillions of local currencycgovexp1801–2025372,969 (2025)
Central government expenditure (% of GDP)Percent of GDPcgovexp_GDP1801–202522.2 (2025)
Government revenueMillions of local currencygovrev1703–2025720,737 (2025)
General government revenueMillions of local currencygen_govrev1850–2025720,737 (2025)
Central government revenueMillions of local currencycgovrev1703–2025339,368 (2025)
General government revenue (% of GDP)Percent of GDPgen_govrev_GDP1850–202542.9 (2025)
Central government revenue (% of GDP)Percent of GDPcgovrev_GDP1703–202520.2 (2025)
Government tax revenueMillions of local currencygovtax1901–2025638,947 (2025)
General government tax revenueMillions of local currencygen_govtax1980–2025638,947 (2025)
Central government tax revenueMillions of local currencycgovtax1901–2024247,667 (2024)
General government tax revenue (% of GDP)Percent of GDPgen_govtax_GDP1980–202538.0 (2025)
Central government tax revenue (% of GDP)Percent of GDPcgovtax_GDP1901–202415.6 (2024)
Government deficit (% of GDP)Percent of GDPgovdef_GDP1850–2025-2.40 (2025)
General government deficit (% of GDP)Percent of GDPgen_govdef_GDP1850–2025-2.40 (2025)
General government deficitMillions of local currencygen_govdef1850–2025-40,321 (2025)
Central government deficit (% of GDP)Percent of GDPcgovdef_GDP1880–2025-2.00 (2025)
Central government deficitMillions of local currencycgovdef1880–2025-33,601 (2025)
Government debt (% of GDP)Percent of GDPgovdebt_GDP1850–2025100.7 (2025)
General government debt (% of GDP)Percent of GDPgen_govdebt_GDP1850–2025100.7 (2025)
General government debtMillions of local currencygen_govdebt1850–20251,691,065 (2025)
Central government debt (% of GDP)Percent of GDPcgovdebt_GDP1850–202493.6 (2024)
Central government debtMillions of local currencycgovdebt1850–20241,485,551 (2024)
Government debtMillions of local currencygovdebt1850–20251,691,065 (2025)
Government deficitMillions of local currencygovdef1850–2025-40,321 (2025)
Government expenditure (% of GDP)Percent of GDPgovexp_GDP1801–202544.8 (2025)
Government revenue (% of GDP)Percent of GDPgovrev_GDP1703–202542.9 (2025)
Government tax revenue (% of GDP)Percent of GDPgovtax_GDP1901–202538.0 (2025)

Money and interest rates

VariableCodeCoverageLatest
Short-term interest ratePercentstrate1870–20252.03 (2025)
Long-term interest ratePercentltrate1821–20253.21 (2025)
Central bank policy ratePercentcbrate1873–20243.56 (2024)
M0 (monetary base)Millions of local currencyM01830–201095.5 (2010)
M1Millions of local currencyM11865–20201,400,773 (2020)
M2Millions of local currencyM21874–2000564,000 (2000)
M3Millions of local currencyM31830–20201,416,806 (2020)

Prices and labor markets

VariableCodeCoverageLatest
House price indexIndex, 2015 = 100HPI1971–2025185.0 (2025)
Real house price indexIndex, 2015 = 100rHPI1971–2025145.9 (2025)
Consumer price indexIndex, 2015 = 100CPI1501–2025126.8 (2025)
InflationPercentinfl1501–20252.67 (2025)
PopulationMillions of peoplepop1277–202549.0 (2025)
Unemployment ratePercentunemp1933–202510.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 →