Renewable energy consumption (% of total final energy consumption)
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.
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
Highest, 2021
| # | Country | Value |
|---|---|---|
| 1 | Congo, Dem. Rep. | 96.3 |
| 2 | Somalia, Fed. Rep. | 95.4 |
| 3 | Liberia | 93.2 |
| 4 | Gabon | 91.3 |
| 5 | Uganda | 91 |
| 6 | Central African Republic | 90.9 |
| 7 | Ethiopia | 90.6 |
| 8 | Guinea-Bissau | 87.4 |
| 9 | Madagascar | 83.6 |
| 10 | Burundi | 83.1 |
Lowest, 2021
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Sint Maarten (Dutch part) | 0 |
| 2 | Qatar | 0 |
| 3 | Gibraltar | 0 |
| 4 | Cayman Islands | 0 |
| 5 | Brunei Darussalam | 0 |
| 6 | Bahrain | 0 |
| 7 | Turkmenistan | 0.1 |
| 8 | Saudi Arabia | 0.1 |
| 9 | Oman | 0.1 |
| 10 | Kuwait | 0.1 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 206 |
| 2000s | 210 |
| 2010s | 212 |
| 2020s | 212 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2020 | 19.74 |
| 2019 | 18.58 |
| 2018 | 18.11 |
| 2017 | 17.85 |
| 2016 | 17.63 |
| 2015 | 17.4 |
| 2014 | 17.33 |
| 2013 | 17.17 |
| 2012 | 16.9 |
| 2011 | 16.7 |
| 2010 | 16.74 |
| 2009 | 17.07 |
First rows
renewable-energy-consumption-percent-of-total-final-energy-consumption.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1990 | 23 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1991 | 23.7 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1992 | 27.4 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1993 | 28.5 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1994 | 30.1 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1995 | 31.8 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1996 | 33.9 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1997 | 36.4 |
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 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