DataBrighten

    Capital health expenditure (% of GDP)

    2,200 × 6rows × columns: 145 countries, 2000 to 2024

    Real data: World Bank, Health Nutrition and Population Statistics, indicator SH.XPD.KHEX.GD.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows2,200country-year values
    Countries145with at least one value
    Years2000 – 202425 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Level of capital investments on health expressed as a percentage of GDP. Capital health investments include health infrastructure (buildings, machinery, IT) and stocks of vaccines for emergency or outbreaks.

    The numbers in 2021

    In 2021, 86 countries have a value. The highest is Dominica (5.82); the lowest is Yemen, Rep. (0.0139). The median country value is 0.248.

    Top 10 countries, 2021

    % of GDP

    Source: World Bank, SH.XPD.KHEX.GD.ZS, retrieved 19 November 2026. Computed from capital-health-expenditure-percent-of-gdp.csv.

    Highest, 2021

    #CountryValue
    1Dominica5.82
    2Naoero2.1
    3Bahamas, The1.27
    4Nicaragua1.07
    5Togo1.05
    6Marshall Islands0.9
    7Panama0.86
    8Senegal0.845
    9St. Kitts and Nevis0.787
    10Palau0.766

    Lowest, 2021

    #CountryValue
    1Yemen, Rep.0.0139
    2United Arab Emirates0.0214
    3Haiti0.0269
    4Armenia0.0282
    5Micronesia, Fed. Sts.0.0306
    6Chad0.0325
    7Antigua and Barbuda0.0388
    8Belize0.0407
    9Namibia0.0508
    10Honduras0.0539
    How many countries report, by decade
    DecadeMost countries in one year
    2000s94
    2010s118
    2020s98

    First rows

    capital-health-expenditure-percent-of-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20020.283022292957999
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20030.571286062823561
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20040.0778933641200601
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20050.128735524947036
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20060.365538134938421
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20070.753086529245956
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20080.18537899480009
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20090.0731680672960853

    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
    valuenumberCapital health expenditure (% of GDP), 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 2021?

    Dominica, with 5.82.

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

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

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("capital-health-expenditure-percent-of-gdp.csv"))

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

    File: capital-health-expenditure-percent-of-gdp.csv

    How many countries report a value for 2021?

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

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

    =COUNTIF(E2:E100000,2021)

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("capital-health-expenditure-percent-of-gdp.csv"))

    (df.year == 2021).sum()

    File: capital-health-expenditure-percent-of-gdp.csv

    What is the median across countries in 2021?

    0.248 (median of the 86 country values; not a World Bank aggregate).

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

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

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

    pandas (df = pd.read_csv("capital-health-expenditure-percent-of-gdp.csv"))

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

    File: capital-health-expenditure-percent-of-gdp.csv

    Which country rose the most between 2011 and 2021?

    Dominica: from 0.474 to 5.82, a rise of 5.35 (out of 67 countries with both years).

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

    Use the wide file (capital-health-expenditure-percent-of-gdp-wide.csv): add a column = [2021] - [2011], 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 = 2011 AND b.year = 2021 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("capital-health-expenditure-percent-of-gdp.csv"))

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

    File: capital-health-expenditure-percent-of-gdp.csv

    Which year has the most countries reporting?

    2013, with 118 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("capital-health-expenditure-percent-of-gdp.csv"))

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

    File: capital-health-expenditure-percent-of-gdp.csv