DataBrighten

    Access to electricity (% of population)

    6,747 × 6rows × columns: 216 countries, 1990 to 2024

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

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

    What it measures

    Access to electricity is the percentage of population with access to electricity. Electrification data are collected from industry, national surveys and international sources.

    The numbers in 2024

    In 2024, 215 countries have a value. At the top, 122 countries tie at 100 (e.g. Albania, Algeria, Andorra); the lowest is South Sudan (5.4). The median country value is 100. The World Bank's World aggregate for 2024 is 91.93.

    Highest, 2024

    Ties are listed A to Z.

    #CountryValue
    1Albania100
    2Algeria100
    3Andorra100
    4Antigua and Barbuda100
    5Armenia100
    6Aruba100
    7Australia100
    8Austria100
    9Azerbaijan100
    10Bahamas, The100

    Lowest, 2024

    #CountryValue
    1South Sudan5.4
    2Chad13.4
    3Malawi15.6
    4Central African Republic18.2
    5Burundi20.1
    6Niger21.3
    7Congo, Dem. Rep.22.5
    8Burkina Faso34
    9Liberia34.9
    10Mozambique36.9
    How many countries report, by decade
    DecadeMost countries in one year
    1990s172
    2000s215
    2010s215
    2020s215

    World aggregate by year

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

    YearWorld
    202491.93
    202391.6
    202291.28
    202191.34
    202090.4
    201990.11
    201889.8
    201788.94
    201688.11
    201586.93
    201486.2
    201385.71

    By region, 2024

    World Bank regionValue
    North America100
    Europe & Central Asia100
    South Asia99.82
    East Asia & Pacific98.56
    Latin America & Caribbean 98.05
    Middle East, North Africa, Afghanistan & Pakistan96.77
    Sub-Saharan Africa 55.11

    First rows

    access-to-electricity-percent-of-population.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20004.4
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20019.3
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200214.1
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200319
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200423.8
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200528.7
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200633.5
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200738.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
    valuenumberAccess to electricity (% of population), 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?

    There is a tie: 122 countries share the highest value, 100 (for example Albania, Algeria, Andorra).

    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("access-to-electricity-percent-of-population.csv"))

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

    File: access-to-electricity-percent-of-population.csv

    How many countries report a value for 2024?

    215 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("access-to-electricity-percent-of-population.csv"))

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

    File: access-to-electricity-percent-of-population.csv

    What is the median across countries in 2024?

    100 (median of the 215 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("access-to-electricity-percent-of-population.csv"))

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

    File: access-to-electricity-percent-of-population.csv

    Which country rose the most between 2014 and 2024?

    Rwanda: from 19.8 to 72, a rise of 52.2 (out of 215 countries with both years).

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

    Use the wide file (access-to-electricity-percent-of-population-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("access-to-electricity-percent-of-population.csv"))

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

    File: access-to-electricity-percent-of-population.csv

    Which year has the most countries reporting?

    2024, with 215 countries.

    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("access-to-electricity-percent-of-population.csv"))

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

    File: access-to-electricity-percent-of-population.csv