Renewable electricity output (% of total electricity output)
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.
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
Highest, 2021
| # | Country | Value |
|---|---|---|
| 1 | Bhutan | 100 |
| 2 | Lesotho | 99.79 |
| 3 | Costa Rica | 99.37 |
| 4 | Norway | 99.1 |
| 5 | Central African Republic | 96.47 |
| 6 | El Salvador | 95.56 |
| 7 | Tajikistan | 93.38 |
| 8 | Namibia | 93.37 |
| 9 | Andorra | 93.34 |
| 10 | Belize | 92.86 |
Lowest, 2021
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Sint Maarten (Dutch part) | 0 |
| 2 | Comoros | 0 |
| 3 | Turkmenistan | 0.0111 |
| 4 | Brunei Darussalam | 0.0197 |
| 5 | Libya | 0.0214 |
| 6 | Bahrain | 0.0374 |
| 7 | Saudi Arabia | 0.0653 |
| 8 | Trinidad and Tobago | 0.0676 |
| 9 | Botswana | 0.249 |
| 10 | Benin | 0.258 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 136 |
| 2000s | 203 |
| 2010s | 206 |
| 2020s | 204 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2021 | 27.84 |
| 2020 | 28.01 |
| 2019 | 26.14 |
| 2018 | 25.15 |
| 2017 | 24.48 |
| 2016 | 23.89 |
| 2015 | 22.99 |
| 2014 | 22.42 |
| 2013 | 21.78 |
| 2012 | 21.19 |
| 2011 | 20.12 |
| 2010 | 19.84 |
By region, 2021
| World Bank region | Value |
|---|---|
| Latin America & Caribbean | 56.66 |
| Europe & Central Asia | 34.37 |
| Sub-Saharan Africa | 32.56 |
| North America | 26.3 |
| East Asia & Pacific | 25.9 |
| South Asia | 19.32 |
| Middle East, North Africa, Afghanistan & Pakistan | 6.29 |
First rows
renewable-electricity-output-percent-of-total-electricity-output.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2000 | 93.5373177008865 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2001 | 93.5373177008865 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2002 | 93.5374497028126 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2003 | 80.6308604401597 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2004 | 62.8649359905699 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2005 | 63.0139791405013 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 70.8955945385599 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2007 | 69.0305842438757 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Renewable 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