DataBrighten

    Electricity production from oil sources (% of total)

    6,444 × 6rows × columns: 209 countries, 1990 to 2025

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

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

    What it measures

    The share of electricity production from oil sources of total electricity production. Sources of electricity refer to the inputs used to generate electricity. Oil refers to crude oil and petroleum products.

    Limits and exceptions (World Bank note)

    IEA occasionally revises its time series to reflect political changes. For example, the IEA has constructed historical energy statistics for countries of the former Soviet Union. In addition, energy statistics for other countries have undergone continuous changes in coverage or methodology in recent years as more detailed energy accounts have become available. Breaks in series are therefore unavoidable. Data on access to electricity are collected by the IEA from industry, national surveys, and international sources.

    The numbers in 2024

    In 2024, 138 countries have a value. The highest is Chad (97.69); at the bottom, 3 countries tie at 0 (e.g. Eswatini, Latvia, Luxembourg). The median country value is 1.64. The World Bank's World aggregate for 2025 is 1.22.

    Top 10 countries, 2024

    % of total

    Source: World Bank, EG.ELC.PETR.ZS, retrieved 19 November 2026. Computed from electricity-production-from-oil-sources-percent-of-total.csv.

    Highest, 2024

    #CountryValue
    1Chad97.69
    2South Sudan92.76
    3Eritrea90.04
    4Yemen, Rep.84.24
    5Cuba81.35
    6Haiti80.61
    7Burkina Faso78.04
    8Curacao78
    9Cyprus76.28
    10Senegal72.05

    Lowest, 2024

    Ties are listed A to Z.

    #CountryValue
    1Luxembourg0
    2Latvia0
    3Eswatini0
    4Bahrain0.00256
    5Ethiopia0.00677
    6Paraguay0.00937
    7Iceland0.0153
    8Switzerland0.023
    9Norway0.0247
    10Serbia0.04
    How many countries report, by decade
    DecadeMost countries in one year
    1990s143
    2000s207
    2010s209
    2020s209

    World aggregate by year

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

    YearWorld
    20251.22
    20242.31
    20232.5
    20222.68
    20212.77
    20202.68
    20192.8
    20182.96
    20173.3
    20163.76
    20154.24
    20144.44

    By region, 2024

    World Bank regionValue
    Middle East, North Africa, Afghanistan & Pakistan19.31
    Latin America & Caribbean 5.27
    Sub-Saharan Africa 5
    South Asia1.31
    Europe & Central Asia1.11
    North America0.68
    East Asia & Pacific0.454

    First rows

    electricity-production-from-oil-sources-percent-of-total.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20006.46268229911353
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20016.46268229911353
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20026.46255029718744
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200319.3691395598403
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200437.1350640094301
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200536.9860208594987
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200629.1044054614401
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200730.9694157561243

    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
    valuenumberElectricity production from oil sources (% of total), 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 2024?

    Chad, with 97.69.

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

    =FILTER(A2:A100000,(E2:E100000=2024)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2024)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2024
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2024);

    pandas (df = pd.read_csv("electricity-production-from-oil-sources-percent-of-total.csv"))

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

    File: electricity-production-from-oil-sources-percent-of-total.csv

    How many countries report a value for 2024?

    138 of the 217 economies in the file's country list.

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

    =COUNTIF(E2:E100000,2024)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2024;

    pandas (df = pd.read_csv("electricity-production-from-oil-sources-percent-of-total.csv"))

    (df.year == 2024).sum()

    File: electricity-production-from-oil-sources-percent-of-total.csv

    What is the median across countries in 2024?

    1.64 (median of the 138 country values; not a World Bank aggregate).

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

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2024))

    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 = 2024 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2024) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2024));

    pandas (df = pd.read_csv("electricity-production-from-oil-sources-percent-of-total.csv"))

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

    File: electricity-production-from-oil-sources-percent-of-total.csv

    Which country rose the most between 2014 and 2024?

    Yemen, Rep.: from 61.36 to 84.24, a rise of 22.88 (out of 138 countries with both years).

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

    Use the wide file (electricity-production-from-oil-sources-percent-of-total-wide.csv): add a column = [2024] - [2014], 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 = 2014 AND b.year = 2024 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("electricity-production-from-oil-sources-percent-of-total.csv"))

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

    File: electricity-production-from-oil-sources-percent-of-total.csv

    Which year has the most countries reporting?

    2021, with 209 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("electricity-production-from-oil-sources-percent-of-total.csv"))

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

    File: electricity-production-from-oil-sources-percent-of-total.csv