# Spain Government Debt to GDP

Spain Government Debt to GDP was 101.4% in Q2 2026, unchanged from Q1 2026 and down 1.8 percentage points from a year earlier.
Among the 38 economies Makrognosis covers on this measure, it is the 8th highest.
Over the past ten years it has ranged from 97.7% (Q4 2019) to 124.2% (Q1 2021), averaging 106.3%.

- Source agency: Eurostat (Statistical Office of the European Union)
- Makrognosis code: `ES.GOVDEBT.Q.NSA`
- Frequency: quarterly
- Units: % of GDP
- Coverage: 2011-01-01 to 2026-04-01 (62 observations)
- Page: https://makrognosis.robomacro.com/data/spain/government-debt-to-gdp

## Recent data

| Period | Value |
|---|---:|
| Q2 2026 | 101.4% |
| Q1 2026 | 101.4% |
| Q4 2025 | 100.5% |
| Q3 2025 | 103.0% |
| Q2 2025 | 103.2% |
| Q1 2025 | 103.1% |
| Q4 2024 | 101.4% |
| Q3 2024 | 104.0% |
| Q2 2024 | 105.1% |
| Q1 2024 | 106.3% |
| Q4 2023 | 105.3% |
| Q3 2023 | 107.4% |
| Q2 2023 | 108.8% |
| Q1 2023 | 108.9% |
| Q4 2022 | 109.3% |
| Q3 2022 | 112.1% |
| Q2 2022 | 112.9% |
| Q1 2022 | 114.6% |
| Q4 2021 | 115.7% |
| Q3 2021 | 119.4% |
| Q2 2021 | 121.2% |
| Q1 2021 | 124.2% |
| Q4 2020 | 119.3% |
| Q3 2020 | 116.5% |

## API

```
curl -H "X-API-Key: $MAKROGNOSIS_KEY" \
  "https://makrognosis.robomacro.com/v1/series/ES.GOVDEBT.Q.NSA"

# Python
import requests
r = requests.get("https://makrognosis.robomacro.com/v1/series/ES.GOVDEBT.Q.NSA",
                 headers={"X-API-Key": KEY})
obs = r.json()["observations"]
```
