DataBrighten

    Renewable electricity output (% of total electricity output)

    5,797 × 6rows × columns: 209 countries, 1990 to 2021

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

    textnumberdateyes/no
    Rows5,797country-year values
    Countries209with at least one value
    Years1990 – 202132 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Renewable electricity is the share of electricity generated by renewable power plants in total electricity generated by all types of plants.

    The numbers in 2021

    In 2021, 204 countries have a value. The highest is Bhutan (100); at the bottom, 2 countries tie at 0 (e.g. Comoros, Sint Maarten (Dutch part)). The median country value is 22.8. The World Bank's World aggregate for 2021 is 27.84.

    Top 10 countries, 2021

    % of total electricity output

    Source: World Bank, EG.ELC.RNEW.ZS, retrieved 19 November 2026. Computed from renewable-electricity-output-percent-of-total-electricity-output.csv.

    Highest, 2021

    #CountryValue
    1Bhutan100
    2Lesotho99.79
    3Costa Rica99.37
    4Norway99.1
    5Central African Republic96.47
    6El Salvador95.56
    7Tajikistan93.38
    8Namibia93.37
    9Andorra93.34
    10Belize92.86

    Lowest, 2021

    Ties are listed A to Z.

    #CountryValue
    1Sint Maarten (Dutch part)0
    2Comoros0
    3Turkmenistan0.0111
    4Brunei Darussalam0.0197
    5Libya0.0214
    6Bahrain0.0374
    7Saudi Arabia0.0653
    8Trinidad and Tobago0.0676
    9Botswana0.249
    10Benin0.258
    How many countries report, by decade
    DecadeMost countries in one year
    1990s136
    2000s203
    2010s206
    2020s204

    World aggregate by year

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

    YearWorld
    202127.84
    202028.01
    201926.14
    201825.15
    201724.48
    201623.89
    201522.99
    201422.42
    201321.78
    201221.19
    201120.12
    201019.84

    By region, 2021

    World Bank regionValue
    Latin America & Caribbean 56.66
    Europe & Central Asia34.37
    Sub-Saharan Africa 32.56
    North America26.3
    East Asia & Pacific25.9
    South Asia19.32
    Middle East, North Africa, Afghanistan & Pakistan6.29

    First rows

    renewable-electricity-output-percent-of-total-electricity-output.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200093.5373177008865
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200193.5373177008865
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200293.5374497028126
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200380.6308604401597
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200462.8649359905699
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200563.0139791405013
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200670.8955945385599
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200769.0305842438757

    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 electricity output (% of total electricity output), 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?

    Bhutan, with 100.

    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-electricity-output-percent-of-total-electricity-output.csv"))

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

    File: renewable-electricity-output-percent-of-total-electricity-output.csv

    How many countries report a value for 2021?

    204 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-electricity-output-percent-of-total-electricity-output.csv"))

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

    File: renewable-electricity-output-percent-of-total-electricity-output.csv

    What is the median across countries in 2021?

    22.8 (median of the 204 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-electricity-output-percent-of-total-electricity-output.csv"))

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

    File: renewable-electricity-output-percent-of-total-electricity-output.csv

    Which country rose the most between 2011 and 2021?

    Luxembourg: from 35.34 to 89.04, a rise of 53.7 (out of 198 countries with both years).

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

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

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

    File: renewable-electricity-output-percent-of-total-electricity-output.csv

    Which year has the most countries reporting?

    2012, with 206 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-electricity-output-percent-of-total-electricity-output.csv"))

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

    File: renewable-electricity-output-percent-of-total-electricity-output.csv