DataBrighten

    Renewable energy consumption (% of total final energy consumption)

    6,746 × 6rows × columns: 212 countries, 1990 to 2022

    Real data: World Bank, World Development Indicators, indicator EG.FEC.RNEW.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows6,746country-year values
    Countries212with at least one value
    Years1990 – 202233 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Renewable energy consumption is the share of renewable energy in total final energy consumption.

    The numbers in 2021

    In 2021, 212 countries have a value. The highest is Congo, Dem. Rep. (96.3); at the bottom, 6 countries tie at 0 (e.g. Bahrain, Brunei Darussalam, Cayman Islands). The median country value is 20.3. The World Bank's World aggregate for 2020 is 19.74.

    Top 10 countries, 2021

    % of total final energy consumption

    Source: World Bank, EG.FEC.RNEW.ZS, retrieved 19 November 2026. Computed from renewable-energy-consumption-percent-of-total-final-energy-consumption.csv.

    Highest, 2021

    #CountryValue
    1Congo, Dem. Rep.96.3
    2Somalia, Fed. Rep.95.4
    3Liberia93.2
    4Gabon91.3
    5Uganda91
    6Central African Republic90.9
    7Ethiopia90.6
    8Guinea-Bissau87.4
    9Madagascar83.6
    10Burundi83.1

    Lowest, 2021

    Ties are listed A to Z.

    #CountryValue
    1Sint Maarten (Dutch part)0
    2Qatar0
    3Gibraltar0
    4Cayman Islands0
    5Brunei Darussalam0
    6Bahrain0
    7Turkmenistan0.1
    8Saudi Arabia0.1
    9Oman0.1
    10Kuwait0.1
    How many countries report, by decade
    DecadeMost countries in one year
    1990s206
    2000s210
    2010s212
    2020s212

    World aggregate by year

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

    YearWorld
    202019.74
    201918.58
    201818.11
    201717.85
    201617.63
    201517.4
    201417.33
    201317.17
    201216.9
    201116.7
    201016.74
    200917.07

    First rows

    renewable-energy-consumption-percent-of-total-final-energy-consumption.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199023
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199123.7
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199227.4
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199328.5
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199430.1
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199531.8
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199633.9
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199736.4

    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
    valuenumberRenewable energy consumption (% of total final energy consumption), 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 96.3.

    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("renewable-energy-consumption-percent-of-total-final-energy-consumption.csv"))

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

    File: renewable-energy-consumption-percent-of-total-final-energy-consumption.csv

    How many countries report a value for 2021?

    212 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("renewable-energy-consumption-percent-of-total-final-energy-consumption.csv"))

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

    File: renewable-energy-consumption-percent-of-total-final-energy-consumption.csv

    What is the median across countries in 2021?

    20.3 (median of the 212 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("renewable-energy-consumption-percent-of-total-final-energy-consumption.csv"))

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

    File: renewable-energy-consumption-percent-of-total-final-energy-consumption.csv

    Which country rose the most between 2011 and 2021?

    Bosnia and Herzegovina: from 14.2 to 36.6, a rise of 22.4 (out of 210 countries with both years).

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

    Use the wide file (renewable-energy-consumption-percent-of-total-final-energy-consumption-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("renewable-energy-consumption-percent-of-total-final-energy-consumption.csv"))

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

    File: renewable-energy-consumption-percent-of-total-final-energy-consumption.csv

    Which year has the most countries reporting?

    2021, 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("renewable-energy-consumption-percent-of-total-final-energy-consumption.csv"))

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

    File: renewable-energy-consumption-percent-of-total-final-energy-consumption.csv