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 owesSpendingGovernment 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 line | US$ | % of GDP | Per person | Year |
|---|---|---|---|---|
| Subsidies & social transfers | US$443.19B | 27.4% | US$9,115 | 2023 |
| Health care | US$109.21B | 6.7% | US$2,246 | 2023 |
| Education | US$66.49B | 4.6% | US$1,383 | 2022 |
| Interest on public debt | US$42.30B | 2.4% | US$861 | 2024 |
| Military & defence | US$40.21B | 2.1% | US$813 | 2025 |
| Public-sector wages | US$32.70B | 2.0% | US$673 | 2023 |
| Research & development | US$24.17B | 1.5% | US$497 | 2023 |
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
| Borrower | Debt outstanding (2024) | Share |
|---|---|---|
| Brazil | US$304.52M | 10.3% |
| Egypt | US$284.44M | 9.6% |
| Tunisia | US$279.26M | 9.5% |
| Morocco | US$259.20M | 8.8% |
| Ecuador | US$216.47M | 7.3% |
| Turkey | US$186.49M | 6.3% |
| Nicaragua | US$147.34M | 5.0% |
| Serbia | US$133.66M | 4.5% |
| Argentina | US$101.30M | 3.4% |
| Indonesia | US$92.44M | 3.1% |
| Kenya | US$86.25M | 2.9% |
| Dominican Republic | US$78.13M | 2.6% |
+38 more.
Public and publicly guaranteed debt owed to official bilateral creditors (World Bank International Debt Statistics).
All figures
| Indicator | Value | Year | Source |
|---|---|---|---|
| General government gross debt (% of GDP) | 97.6% of GDP | 2026 | IMF World Economic Outlook |
| Fiscal balance — net lending/borrowing (% of GDP) | -2.4% of GDP | 2026 | IMF 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% | 2024 | World Bank WDI (IMF GFS) |
| Private debt (% of GDP) | 165.5% of GDP | 2023 | IMF Global Debt Database |
| General government expenditure (% of GDP) | 45.3% of GDP | 2024 | IMF Public Finances in Modern History |
| Military expenditure (% of GDP) | 2.1% of GDP | 2025 | SIPRI via World Bank WDI |
| Military expenditure (current US$) | US$40.21B | 2025 | SIPRI via World Bank WDI |
| Military expenditure (% of government spending) | 4.7% | 2025 | SIPRI via World Bank WDI |
| Government health expenditure (% of GDP) | 6.7% of GDP | 2023 | WHO GHED via World Bank WDI |
| Government health expenditure per person (current US$) | US$2,274 | 2023 | WHO GHED via World Bank WDI |
| Government health expenditure (% of government spending) | 14.8% | 2023 | WHO GHED via World Bank WDI |
| Government education expenditure (% of GDP) | 4.6% of GDP | 2022 | UNESCO UIS via World Bank WDI |
| Government education expenditure (% of government spending) | 9.9% | 2022 | UNESCO UIS via World Bank WDI |
| Government interest expense (% of GDP) | 2.4% of GDP | 2024 | IMF Public Finances in Modern History |
| Research & development expenditure (% of GDP) | 1.5% of GDP | 2023 | UNESCO UIS via World Bank WDI |
| Central government expense (% of GDP) | 34.0% of GDP | 2023 | World Bank WDI (IMF GFS) |
| Compensation of employees (% of expense) | 5.9% | 2023 | World Bank WDI (IMF GFS) |
| Subsidies and other transfers (% of expense) | 80.4% | 2023 | World Bank WDI (IMF GFS) |
| General government revenue (% of GDP) | 42.2% of GDP | 2024 | IMF Public Finances in Modern History |
| Tax revenue (% of GDP) | 14.9% of GDP | 2024 | World Bank WDI (IMF GFS) |
| GDP (current US$) | US$2.09T | 2026 | IMF World Economic Outlook |
| GDP per capita (current US$) | US$41,756 | 2026 | IMF World Economic Outlook |
| Real GDP growth (annual %) | 2.5% | 2026 | IMF World Economic Outlook |
| Inflation, consumer prices (annual %) | 3.7% | 2026 | IMF World Economic Outlook |
| Unemployment rate (%) | 9.8% | 2026 | IMF World Economic Outlook |
| Current account balance (% of GDP) | 2.6% of GDP | 2026 | IMF World Economic Outlook |
| Foreign direct investment, net inflows (% of GDP) | 1.5% of GDP | 2025 | World Bank WDI |
| Personal remittances received (% of GDP) | 0.4% of GDP | 2025 | World Bank WDI |
| Net official development assistance received (% of GNI) | — | — | No value in live sources |
| Total reserves (months of imports) | 2.0 months | 2025 | World Bank WDI |
| Population | 49.9M | 2026 | IMF World Economic Outlook |
| Life expectancy at birth (years) | 83.9 years | 2024 | UN Population Division via World Bank WDI |
| Extreme poverty headcount (% of population) | 0.8% | 2023 | World Bank Poverty & Inequality Platform |
| Gini index (income inequality) | 33.4 | 2023 | World 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.