DataBrighten

    Mineral rents (% of GDP)

    9,267 × 6rows × columns: 214 countries, 1970 to 2021

    Real data: World Bank, World Development Indicators, indicator NY.GDP.MINR.RT.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows9,267country-year values
    Countries214with at least one value
    Years1970 – 202152 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Mineral rents are the difference between the value of production for a stock of minerals at world prices and their total costs of production. Minerals included in the calculation are tin, gold, lead, zinc, iron, copper, nickel, silver, bauxite, and phosphate.

    The numbers in 2021

    In 2021, 197 countries have a value. The highest is Congo, Dem. Rep. (28.81); at the bottom, 108 countries tie at 0 (e.g. Afghanistan, American Samoa, Andorra). The median country value is 0. The World Bank's World aggregate for 2021 is 0.765.

    Top 10 countries, 2021

    % of GDP

    Source: World Bank, NY.GDP.MINR.RT.ZS, retrieved 19 November 2026. Computed from mineral-rents-percent-of-gdp.csv.

    Highest, 2021

    #CountryValue
    1Congo, Dem. Rep.28.81
    2Zambia28.25
    3Mongolia26.57
    4New Caledonia16.78
    5Chile16.23
    6Mali16.18
    7Burkina Faso15.45
    8Papua New Guinea14.41
    9Peru12.1
    10Kyrgyz Republic11.15

    Lowest, 2021

    Ties are listed A to Z.

    #CountryValue
    1West Bank and Gaza0
    2Vanuatu0
    3United Arab Emirates0
    4Uganda0
    5Tuvalu0
    6Turks and Caicos Islands0
    7Tunisia0
    8Trinidad and Tobago0
    9Tonga0
    10Timor-Leste0
    How many countries report, by decade
    DecadeMost countries in one year
    1970s135
    1980s163
    1990s195
    2000s208
    2010s212
    2020s204

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20210.765
    20200.259
    20190.232
    20180.253
    20170.276
    20160.214
    20150.183
    20140.312
    20130.439
    20120.485
    20110.808
    20100.669

    By region, 2021

    World Bank regionValue
    Latin America & Caribbean 3.59
    Sub-Saharan Africa 2.92
    South Asia1.12
    East Asia & Pacific0.958
    Middle East, North Africa, Afghanistan & Pakistan0.384
    Europe & Central Asia0.37
    North America0.187

    First rows

    mineral-rents-percent-of-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19700
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19710
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19720
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19730
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19740
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19750
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19760
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19770

    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
    valuenumberMineral rents (% 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?

    Congo, Dem. Rep., with 28.81.

    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("mineral-rents-percent-of-gdp.csv"))

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

    File: mineral-rents-percent-of-gdp.csv

    How many countries report a value for 2021?

    197 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("mineral-rents-percent-of-gdp.csv"))

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

    File: mineral-rents-percent-of-gdp.csv

    What is the median across countries in 2021?

    0 (median of the 197 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("mineral-rents-percent-of-gdp.csv"))

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

    File: mineral-rents-percent-of-gdp.csv

    Which country rose the most between 2011 and 2021?

    Congo, Dem. Rep.: from 9.39 to 28.81, a rise of 19.42 (out of 196 countries with both years).

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

    Use the wide file (mineral-rents-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("mineral-rents-percent-of-gdp.csv"))

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

    File: mineral-rents-percent-of-gdp.csv

    Which year has the most countries reporting?

    2014, with 212 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("mineral-rents-percent-of-gdp.csv"))

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

    File: mineral-rents-percent-of-gdp.csv