DataBrighten

    Natural gas rents (% of GDP)

    8,413 × 6rows × columns: 201 countries, 1970 to 2021

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

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

    What it measures

    Natural gas rents are the difference between the value of natural gas production at regional prices and total costs of production.

    The numbers in 2021

    In 2021, 190 countries have a value. The highest is Timor-Leste (29.38); at the bottom, 95 countries tie at 0 (e.g. American Samoa, Antigua and Barbuda, Armenia). The median country value is 3.04e-05. The World Bank's World aggregate for 2021 is 0.525.

    Top 10 countries, 2021

    % of GDP

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

    Highest, 2021

    #CountryValue
    1Timor-Leste29.38
    2Brunei Darussalam13.86
    3Qatar12.01
    4Uzbekistan11.04
    5Papua New Guinea9.14
    6Iran, Islamic Rep.8.81
    7Azerbaijan8.59
    8Algeria8
    9Equatorial Guinea6.63
    10Russian Federation5.86

    Lowest, 2021

    Ties are listed A to Z.

    #CountryValue
    1Zimbabwe0
    2Zambia0
    3Vanuatu0
    4Uruguay0
    5Uganda0
    6Tuvalu0
    7Turks and Caicos Islands0
    8Tonga0
    9Togo0
    10Switzerland0
    How many countries report, by decade
    DecadeMost countries in one year
    1970s93
    1980s156
    1990s186
    2000s197
    2010s199
    2020s195

    World aggregate by year

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

    YearWorld
    20210.525
    20200.206
    20190.264
    20180.295
    20170.19
    20160.16
    20150.23
    20140.283
    20130.315
    20120.324
    20110.318
    20100.243

    By region, 2021

    World Bank regionValue
    Middle East, North Africa, Afghanistan & Pakistan2.95
    Europe & Central Asia0.633
    Sub-Saharan Africa 0.492
    North America0.397
    East Asia & Pacific0.334
    Latin America & Caribbean 0.147
    South Asia0.121

    First rows

    natural-gas-rents-percent-of-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19700.565894962471447
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19710.645741697314356
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19720.741465718591879
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19730.829717882168702
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19740.897242371554401
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19751.33344928055424
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19761.40510706132468
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19771.39269094424288

    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
    valuenumberNatural gas 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?

    Timor-Leste, with 29.38.

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

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

    File: natural-gas-rents-percent-of-gdp.csv

    How many countries report a value for 2021?

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

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

    File: natural-gas-rents-percent-of-gdp.csv

    What is the median across countries in 2021?

    3.04e-05 (median of the 190 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("natural-gas-rents-percent-of-gdp.csv"))

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

    File: natural-gas-rents-percent-of-gdp.csv

    Which country rose the most between 2011 and 2021?

    Papua New Guinea: from 0.0757 to 9.14, a rise of 9.06 (out of 187 countries with both years).

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

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

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

    File: natural-gas-rents-percent-of-gdp.csv

    Which year has the most countries reporting?

    2015, with 199 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("natural-gas-rents-percent-of-gdp.csv"))

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

    File: natural-gas-rents-percent-of-gdp.csv