🌐 Global Debt & Fiscal Atlas
Home › Countries › Spain

Spain: government debt, spending and who it owes

Spain’s government debt is 97.6% of GDP (2026); a budget deficit of 2.4% of GDP; military spending of US$40.21B (2025).

Explore Spain interactivelyWho Spain owesSpending
Gov. debt
97.6% of GDP
2026 est. · IMF World Economic Outlook
Fiscal balance
-2.4% of GDP
2026 est. · IMF World Economic Outlook
Interest
2.4% of GDP
2024 · IMF Public Finances in Modern History
Military (US$)
US$40.21B
2025 · SIPRI via World Bank WDI
GDP
US$2.09T
2026 est. · IMF World Economic Outlook
GDP growth
2.5%
2026 est. · IMF World Economic Outlook
Inflation
3.7%
2026 est. · IMF World Economic Outlook
Population
49.9M
2026 est. · IMF World Economic Outlook

Government debt, % of GDP, 1980–2026:

National debt profile · IMF General government gross debt (% of GDP): 97.6% of GDP (2026).

Where Spain’s government spends its money

Total government spending: US$784.25B (45.3% of GDP, 2024).

Spending lineUS$% of GDPPer personYear
Subsidies & social transfersUS$443.19B27.4%US$9,1152023
Health careUS$109.21B6.7%US$2,2462023
EducationUS$66.49B4.6%US$1,3832022
Interest on public debtUS$42.30B2.4%US$8612024
Military & defenceUS$40.21B2.1%US$8132025
Public-sector wagesUS$32.70B2.0%US$6732023
Research & developmentUS$24.17B1.5%US$4972023

Lines come from different sources, scopes and years and do not add up to the total. Military: SIPRI; health: WHO; education and R&D: UNESCO; interest, totals: IMF.

Who Spain owes — and who owes Spain

Spain borrowed from

No bilateral lending recorded for Spain in this role (World Bank IDS covers ~120 low- and middle-income borrowers).

Owe Spain

BorrowerDebt outstanding (2024)Share
BrazilUS$304.52M10.3%
EgyptUS$284.44M9.6%
TunisiaUS$279.26M9.5%
MoroccoUS$259.20M8.8%
EcuadorUS$216.47M7.3%
TurkeyUS$186.49M6.3%
NicaraguaUS$147.34M5.0%
SerbiaUS$133.66M4.5%
ArgentinaUS$101.30M3.4%
IndonesiaUS$92.44M3.1%
KenyaUS$86.25M2.9%
Dominican RepublicUS$78.13M2.6%

+38 more.

Public and publicly guaranteed debt owed to official bilateral creditors (World Bank International Debt Statistics).

All figures

IndicatorValueYearSource
General government gross debt (% of GDP)97.6% of GDP2026IMF World Economic Outlook
Fiscal balance — net lending/borrowing (% of GDP)-2.4% of GDP2026IMF World Economic Outlook
Total external debt stocks (current US$)——No value in live sources
External debt stocks (% of GNI)——No value in live sources
Total debt service (% of exports)——No value in live sources
Interest payments (% of revenue)6.5%2024World Bank WDI (IMF GFS)
Private debt (% of GDP)165.5% of GDP2023IMF Global Debt Database
General government expenditure (% of GDP)45.3% of GDP2024IMF Public Finances in Modern History
Military expenditure (% of GDP)2.1% of GDP2025SIPRI via World Bank WDI
Military expenditure (current US$)US$40.21B2025SIPRI via World Bank WDI
Military expenditure (% of government spending)4.7%2025SIPRI via World Bank WDI
Government health expenditure (% of GDP)6.7% of GDP2023WHO GHED via World Bank WDI
Government health expenditure per person (current US$)US$2,2742023WHO GHED via World Bank WDI
Government health expenditure (% of government spending)14.8%2023WHO GHED via World Bank WDI
Government education expenditure (% of GDP)4.6% of GDP2022UNESCO UIS via World Bank WDI
Government education expenditure (% of government spending)9.9%2022UNESCO UIS via World Bank WDI
Government interest expense (% of GDP)2.4% of GDP2024IMF Public Finances in Modern History
Research & development expenditure (% of GDP)1.5% of GDP2023UNESCO UIS via World Bank WDI
Central government expense (% of GDP)34.0% of GDP2023World Bank WDI (IMF GFS)
Compensation of employees (% of expense)5.9%2023World Bank WDI (IMF GFS)
Subsidies and other transfers (% of expense)80.4%2023World Bank WDI (IMF GFS)
General government revenue (% of GDP)42.2% of GDP2024IMF Public Finances in Modern History
Tax revenue (% of GDP)14.9% of GDP2024World Bank WDI (IMF GFS)
GDP (current US$)US$2.09T2026IMF World Economic Outlook
GDP per capita (current US$)US$41,7562026IMF World Economic Outlook
Real GDP growth (annual %)2.5%2026IMF World Economic Outlook
Inflation, consumer prices (annual %)3.7%2026IMF World Economic Outlook
Unemployment rate (%)9.8%2026IMF World Economic Outlook
Current account balance (% of GDP)2.6% of GDP2026IMF World Economic Outlook
Foreign direct investment, net inflows (% of GDP)1.5% of GDP2025World Bank WDI
Personal remittances received (% of GDP)0.4% of GDP2025World Bank WDI
Net official development assistance received (% of GNI)——No value in live sources
Total reserves (months of imports)2.0 months2025World Bank WDI
Population49.9M2026IMF World Economic Outlook
Life expectancy at birth (years)83.9 years2024UN Population Division via World Bank WDI
Extreme poverty headcount (% of population)0.8%2023World Bank Poverty & Inequality Platform
Gini index (income inequality)33.42023World Bank Poverty & Inequality Platform

Frequently asked questions

How much debt does Spain have?
Spain’s general government gross debt is 97.6% of GDP in 2026 (IMF World Economic Outlook).
Which countries owe Spain money?
In 2024, the largest borrowers from Spain were Brazil (US$304.52M), Egypt (US$284.44M), Tunisia (US$279.26M).
How much does Spain spend on its military?
US$40.21B in 2025, 2.1% of GDP (SIPRI).
How much does Spain’s government spend on health care?
US$109.21B in 2023, 6.7% of GDP (WHO Global Health Expenditure Database).

Use this data

pip install debt-atlas

import debt_atlas as da
da.latest("gov_debt_gdp", countries=["ESP"])
da.who_owes("ESP")
da.spending("ESP")

Or download every dataset as CSV on the data page.

Updated 2026-11-30. IMF current-year values are staff estimates. Missing values are not zero.