DataBrighten

    External debt stocks, long-term (DOD, current US$)

    5,900 × 6rows × columns: 122 countries, 1970 to 2025

    Real data: World Bank, World Development Indicators, indicator DT.DOD.DLXF.CD, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows5,900country-year values
    Countries122with at least one value
    Years1970 – 202556 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Long-term debt is debt that has an original or extended maturity of more than one year. It has three components: public, publicly guaranteed, and private nonguaranteed debt. Data are in current U.S. dollars.

    The numbers in 2025

    In 2025, 120 countries have a value. The highest is China (968.18 billion); the lowest is Tonga (118.05 million). The median country value is 10.57 billion.

    Top 10 countries, 2025

    DOD, current US$

    Source: World Bank, DT.DOD.DLXF.CD, retrieved 19 November 2026. Computed from external-debt-stocks-long-term-dod-current-usd.csv.

    Highest, 2025

    #CountryValue
    1China968.18 billion
    2India590.08 billion
    3Mexico567.36 billion
    4Brazil528.83 billion
    5Turkiye399.46 billion
    6Indonesia367.68 billion
    7Colombia232.11 billion
    8Ukraine208.70 billion
    9Argentina165.84 billion
    10Kazakhstan159.41 billion

    Lowest, 2025

    #CountryValue
    1Tonga118.05 million
    2Haiti249.76 million
    3Samoa258.52 million
    4Timor-Leste273.43 million
    5Sao Tome and Principe286.35 million
    6Comoros378.36 million
    7Vanuatu386.91 million
    8Dominica463.68 million
    9Central African Republic464.94 million
    10Burundi602.66 million
    How many countries report, by decade
    DecadeMost countries in one year
    1970s83
    1980s96
    1990s114
    2000s118
    2010s122
    2020s122

    By region, 2025

    World Bank regionValue
    South Asia749.43 billion

    First rows

    external-debt-stocks-long-term-dod-current-usd.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2006920022562.7
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20071902610499.2
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20081994506003
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20092106108788.4
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20101975547213.6
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20112032464249.9
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20122079786013.4
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20132106231492.2

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberExternal debt stocks, long-term (DOD, current US$), 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?

    China, with 968.18 billion.

    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-long-term-dod-current-usd.csv"))

    y = df[df.year == 2025]
    y[y.value == y.value.max()][["country", "value"]]

    File: external-debt-stocks-long-term-dod-current-usd.csv

    How many countries report a value for 2025?

    120 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-long-term-dod-current-usd.csv"))

    (df.year == 2025).sum()

    File: external-debt-stocks-long-term-dod-current-usd.csv

    What is the median across countries in 2025?

    10.57 billion (median of the 120 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-long-term-dod-current-usd.csv"))

    df[df.year == 2025]["value"].median()

    File: external-debt-stocks-long-term-dod-current-usd.csv

    Which country rose the most between 2015 and 2025?

    China: from 501.84 billion to 968.18 billion, a rise of 466.34 billion (out of 119 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (external-debt-stocks-long-term-dod-current-usd-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-long-term-dod-current-usd.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2025] - w[2015]).dropna().nlargest(1)

    File: external-debt-stocks-long-term-dod-current-usd.csv

    Which year has the most countries reporting?

    2022, with 122 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-long-term-dod-current-usd.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: external-debt-stocks-long-term-dod-current-usd.csv