External debt stocks (% of GNI)
Real data: World Bank, World Development Indicators, indicator DT.DOD.DECT.GN.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Total external debt stocks to gross national income. Total external debt is debt owed to nonresidents repayable in currency, goods, or services. Total external debt is the sum of public, publicly guaranteed, and private nonguaranteed long-term debt, use of IMF credit, and short-term debt. Short-term debt includes all debt having an original maturity of one year or less and interest in arrears on long-term debt. GNI (formerly GNP) is the sum of value added by all resident producers plus any product taxes (less subsidies) not included in the valuation of output plus net receipts of primary income (compensation of employees and property income) from abroad.
The numbers in 2025
In 2025, 115 countries have a value. The highest is Mozambique (366.4); the lowest is Haiti (2.58). The median country value is 40.6.
Top 10 countries, 2025
% of GNI
Highest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Mozambique | 366.4 |
| 2 | Suriname | 228.3 |
| 3 | Mongolia | 183.4 |
| 4 | Senegal | 131.4 |
| 5 | Mauritius | 126.5 |
| 6 | Ukraine | 117.8 |
| 7 | Montenegro | 117.5 |
| 8 | Lao PDR | 112.3 |
| 9 | Zambia | 108.8 |
| 10 | Bhutan | 99.35 |
Lowest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Haiti | 2.58 |
| 2 | Algeria | 2.74 |
| 3 | Iran, Islamic Rep. | 2.75 |
| 4 | Turkmenistan | 5.67 |
| 5 | Iraq | 7.35 |
| 6 | Equatorial Guinea | 9.5 |
| 7 | China | 11.75 |
| 8 | Botswana | 12.83 |
| 9 | Myanmar | 13.55 |
| 10 | Somalia, Fed. Rep. | 13.81 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 73 |
| 1980s | 90 |
| 1990s | 113 |
| 2000s | 118 |
| 2010s | 120 |
| 2020s | 120 |
By region, 2025
| World Bank region | Value |
|---|---|
| South Asia | 20.97 |
First rows
external-debt-stocks-percent-of-gni.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 13.7928583731895 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2007 | 20.4806758495246 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2008 | 21.2121323521857 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2009 | 20.0367248536922 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2010 | 15.3334973971382 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2011 | 13.9770517017747 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2012 | 12.9281604362278 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2013 | 12.8048363659593 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | External debt stocks (% of GNI), exactly as the World Bank API returns it (not rounded) |
Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.
Practice questions
answers computed from the file
Which country has the highest value in 2025?
Mozambique, with 366.4.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2025)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2025)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2025
AND value = (SELECT MAX(value) FROM wb WHERE year = 2025);pandas (df = pd.read_csv("external-debt-stocks-percent-of-gni.csv"))
y = df[df.year == 2025]
y[y.value == y.value.max()][["country", "value"]]File: external-debt-stocks-percent-of-gni.csv
How many countries report a value for 2025?
115 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2025)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2025;pandas (df = pd.read_csv("external-debt-stocks-percent-of-gni.csv"))
(df.year == 2025).sum()File: external-debt-stocks-percent-of-gni.csv
What is the median across countries in 2025?
40.6 (median of the 115 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2025))SQL (table wb = the CSV)
-- SQLite has no MEDIAN(); this picks the middle value(s)
SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2025 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2025) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2025));pandas (df = pd.read_csv("external-debt-stocks-percent-of-gni.csv"))
df[df.year == 2025]["value"].median()File: external-debt-stocks-percent-of-gni.csv
Which country rose the most between 2015 and 2025?
Suriname: from 50.12 to 228.3, a rise of 178.2 (out of 114 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (external-debt-stocks-percent-of-gni-wide.csv): add a column = [2025] - [2015], then sort it largest to smallest.SQL (table wb = the CSV)
SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
WHERE a.year = 2015 AND b.year = 2025 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("external-debt-stocks-percent-of-gni.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2025] - w[2015]).dropna().nlargest(1)File: external-debt-stocks-percent-of-gni.csv
Which year has the most countries reporting?
2022, with 120 countries. (Later years are still filling in as countries report.)
Excel (on the long CSV: E = year, F = value)
Make a pivot table: year in Rows, Count of value in Values, then sort by the count.SQL (table wb = the CSV)
SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;pandas (df = pd.read_csv("external-debt-stocks-percent-of-gni.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: external-debt-stocks-percent-of-gni.csv