DataBrighten

    Total debt service (% of GNI)

    5,527 × 6rows × columns: 121 countries, 1970 to 2024

    Real data: World Bank, World Development Indicators, indicator DT.TDS.DECT.GN.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

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

    What it measures

    Total debt service is the sum of principal repayments and interest actually paid in currency, goods, or services on long-term debt, interest paid on short-term debt, and repayments (repurchases and charges) to the IMF.

    The numbers in 2024

    In 2024, 117 countries have a value. The highest is El Salvador (35.49); the lowest is Iran, Islamic Rep. (0.0764). The median country value is 4.15.

    Top 10 countries, 2024

    % of GNI

    Source: World Bank, DT.TDS.DECT.GN.ZS, retrieved 19 November 2026. Computed from total-debt-service-percent-of-gni.csv.

    Highest, 2024

    #CountryValue
    1El Salvador35.49
    2Mongolia25.65
    3Mozambique22.43
    4Papua New Guinea20.36
    5Zambia17.35
    6Kazakhstan17.28
    7Georgia15.18
    8Montenegro14.98
    9Lao PDR13.84
    10Serbia12.23

    Lowest, 2024

    #CountryValue
    1Iran, Islamic Rep.0.0764
    2Somalia, Fed. Rep.0.133
    3Algeria0.168
    4Afghanistan0.379
    5Sudan0.418
    6Sao Tome and Principe0.623
    7Congo, Dem. Rep.0.642
    8Ethiopia0.908
    9Burundi1.18
    10Iraq1.22
    How many countries report, by decade
    DecadeMost countries in one year
    1970s73
    1980s90
    1990s113
    2000s118
    2010s120
    2020s119

    By region, 2024

    World Bank regionValue
    Latin America & Caribbean 5.33
    Sub-Saharan Africa 4.84
    South Asia2.45
    East Asia & Pacific2.39

    First rows

    total-debt-service-percent-of-gni.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20060.153432094486591
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20070.0623084542101936
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20080.0794560282166708
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20090.0867566490556338
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20100.065666365397817
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20110.0580764280918365
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20120.0743981072003037
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20130.124142977676627

    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
    valuenumberTotal debt service (% 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 2024?

    El Salvador, with 35.49.

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

    =FILTER(A2:A100000,(E2:E100000=2024)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2024)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2024
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2024);

    pandas (df = pd.read_csv("total-debt-service-percent-of-gni.csv"))

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

    File: total-debt-service-percent-of-gni.csv

    How many countries report a value for 2024?

    117 of the 217 economies in the file's country list.

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

    =COUNTIF(E2:E100000,2024)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2024;

    pandas (df = pd.read_csv("total-debt-service-percent-of-gni.csv"))

    (df.year == 2024).sum()

    File: total-debt-service-percent-of-gni.csv

    What is the median across countries in 2024?

    4.15 (median of the 117 country values; not a World Bank aggregate).

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

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2024))

    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 = 2024 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2024) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2024));

    pandas (df = pd.read_csv("total-debt-service-percent-of-gni.csv"))

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

    File: total-debt-service-percent-of-gni.csv

    Which country rose the most between 2014 and 2024?

    El Salvador: from 6.02 to 35.49, a rise of 29.47 (out of 116 countries with both years).

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

    Use the wide file (total-debt-service-percent-of-gni-wide.csv): add a column = [2024] - [2014], 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 = 2014 AND b.year = 2024 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("total-debt-service-percent-of-gni.csv"))

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

    File: total-debt-service-percent-of-gni.csv

    Which year has the most countries reporting?

    2018, 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("total-debt-service-percent-of-gni.csv"))

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

    File: total-debt-service-percent-of-gni.csv