Share of people with electricity and with clean cooking fuels in 216 countries, urban and rural, by year. About 660 million people still have no electricity, nearly nine in ten of them in sub-Saharan Africa.
Access to electricity and clean cooking, by country and year
Field
Type
Description
Constraints
country
string
Country or economy, using World Bank names (216 of the World Bank's 217 country-level economies; World Bank aggregates such as regions are not included).
iso3
string
ISO 3166-1 alpha-3 code (World Bank's code; Kosovo is XKX).
year
integer
Year, 1990 to 2024. Coverage is thin before 2000: in the 1990s only 98 to 172 economies a year have electricity figures.
minimum 1990
electricity_total
number
Share of the population with access to electricity, total. Compiled by the World Bank for Tracking SDG7 (SDG indicator 7.1.1), served as WDI EG.ELC.ACCS.ZS. Percent of the population (0 to 100).
maximum 100 · minimum 0
electricity_urban
number
Share of the urban population with access to electricity (WDI EG.ELC.ACCS.UR.ZS). Percent of the population (0 to 100).
maximum 100 · minimum 0
electricity_rural
number
Share of the rural population with access to electricity (WDI EG.ELC.ACCS.RU.ZS). Percent of the population (0 to 100).
maximum 100 · minimum 0
population
integer
Total population in the year (WDI SP.POP.TOTL), used to compute people_without_electricity.
minimum 0
people_without_electricity
integer
Computed for this dataset: population x (100 - electricity_total) / 100, using electricity_total as given in this file, rounded to a whole person. An approximation of the number of people without electricity, not a figure published by the World Bank. Blank where either input is missing.
minimum 0
clean_cooking_total
number
Share of the population with primary reliance on clean fuels and technologies for cooking, total. WHO Global Health Observatory indicator PHE_HHAIR_PROP_POP_CLEAN_FUELS, published as whole percentages (2000 onwards). Kerosene is excluded from clean cooking fuels under WHO guidelines. Percent of the population (0 to 100).
maximum 100 · minimum 0
clean_cooking_urban
number
Same as clean_cooking_total, urban population. Percent of the population (0 to 100).
maximum 100 · minimum 0
clean_cooking_rural
number
Same as clean_cooking_total, rural population. Percent of the population (0 to 100).
maximum 100 · minimum 0
World access to electricity, people without it and clean cooking, by year
Field
Type
Description
Constraints
year
integer
Year, 1998 to 2024 (the first year the World Bank gives a world electricity figure).
minimum 1990
electricity_total
number
Share of the world population with access to electricity (World Bank's World aggregate, WDI EG.ELC.ACCS.ZS). Percent of the population (0 to 100).
maximum 100 · minimum 0
population
integer
World population (WDI SP.POP.TOTL, World aggregate).
minimum 0
people_without_electricity
integer
Computed for this dataset: world population x (100 - electricity_total) / 100, using electricity_total as given in this file. Not a World Bank figure; in 2024 it is about 2 million above the sum of the country values.
minimum 0
millions_without_electricity
number
people_without_electricity in millions, one decimal (computed; used by the chart).
clean_cooking_total
number
Share of the world population with primary reliance on clean fuels and technologies for cooking (WHO's global figure, whole percentages; 2000 onwards, blank before). Percent of the population (0 to 100).
maximum 100 · minimum 0
The 15 countries with the most people without electricity, latest year
Field
Type
Description
Constraints
rank
integer
1 = most people without electricity in the latest year.
minimum 1
country
string
Country, World Bank name.
iso3
string
ISO 3166-1 alpha-3 code.
year
integer
Latest year (2024).
electricity_total
number
Share of the population with access to electricity. Percent of the population (0 to 100).
maximum 100 · minimum 0
population
integer
Total population (WDI).
minimum 0
people_without_electricity
integer
Computed: population x (100 - electricity_total) / 100.
minimum 0
millions_without_electricity
number
people_without_electricity in millions, one decimal (computed; used by the chart).
In 2024 about 660 million people, 8% of the world, still had no electricity, and a quarter of humanity still cooked with polluting fuels. This dataset has the share of people with electricity (total, urban and rural) and with clean cooking fuels for 216 countries and economies, with the number of people without electricity worked out from population.
What stands out
The count of people without electricity has fallen from about 1.6 billion in 1998 to about 660 million in 2024. Access rose from 73% to 92% of the world while the population grew by more than a third.
Nearly nine in ten of those left are in sub-Saharan Africa. The region has 16% of the world's people but about 580 million of the roughly 655 million without power (88%), and 55% of its people have electricity.
Ten countries, all in Africa, hold almost three in five. Nigeria (87 million) and DR Congo (85 million) lead, then Ethiopia (57 million), Tanzania (33 million) and Uganda (22 million). In DR Congo 22.5% have power; in Chad 13%, Malawi 16% and South Sudan 5%.
India went from 60% to nearly everyone. In 2000 about 420 million Indians had no power; in 2024 it was under 2 million. Bangladesh went from 32% to 99.5%.
The gap is rural. In 2024, 46 of 210 countries with both figures have rural access at least 20 points below urban. In Nigeria it is 85.5% urban and 23.5% rural; in Ethiopia 95% and 45%.
Clean cooking lags far behind. Worldwide 75% cook with clean fuels (47% in 2000). In 2024 fewer than 10% do in 21 countries, and some countries with near-universal power still cook mostly with polluting fuels: Bangladesh (99.5% electricity, 29% clean cooking) and Laos (96.5%, 10%).
Data
data/access-by-country.csv: one row per country and year, 1990-2024 (6,778 rows, 216 countries). electricity_total, electricity_urban, electricity_rural (percent, World Bank), population (World Bank), people_without_electricity (computed), clean_cooking_total, clean_cooking_urban, clean_cooking_rural (percent, WHO, 2000 onwards). Blank means no figure.
data/world.csv: the world by year, 1998-2024: electricity share and population (World Bank's World aggregate), people_without_electricity and millions_without_electricity (computed), and WHO's global clean-cooking share.
data/without-electricity-latest.csv: the 15 countries with the most people without electricity in 2024.
Where the people live, 2024, from the country rows (computed):
World Bank region
People without electricity
Share of total
Sub-Saharan Africa
579 million
88%
East Asia and Pacific
34 million
5%
Middle East, North Africa, Afghanistan and Pakistan
26 million
4%
Latin America and Caribbean
13 million
2%
South Asia
3 million
0.4%
Europe, Central Asia and North America
about 0
0%
Caveats
people_without_electricity is computed here, as population x (100 - access share) / 100, using the share as given in the CSV (four decimals), rounded to a whole person. It is not a figure the World Bank publishes. The world figure (657 million for 2024) is computed from the World aggregate; the 215 country values add up to 655 million (2024).
Electricity access is an estimate. The World Bank compiles it from industry, national surveys and international sources (WDI's source note), so treat small year-to-year moves with caution. In the 1990s only 98 to 172 economies a year have electricity figures, and the world series starts in 1998.
Clean cooking is WHO's estimate, published as whole percentages with uncertainty ranges (kept in archive/, not in the CSVs). Under WHO guidelines kerosene is excluded from clean cooking fuels (WDI's indicator note). The World Bank's WDI repeats WHO's series (EG.CFT.ACCS.ZS) and agrees with it to the rounding in every one of the 4,800 country-years where both exist; the WHO file is used here because WHO is the original.
Economies: the file has 216 of the World Bank's 217 country-level economies (American Samoa has no electricity or clean-cooking figures). WHO also reports the Cook Islands and Niue, which the World Bank list does not include, so they are left out. WHO has no clean-cooking figures for 24 of the 216 (for example Puerto Rico, Hong Kong, Greenland), so their cooking columns are blank.
Source and licence
Electricity access: World Bank, World Development Indicators, EG.ELC.ACCS.ZS (total), EG.ELC.ACCS.UR.ZS (urban), EG.ELC.ACCS.RU.ZS (rural), served by the World Bank Indicators API (WDI last updated 11 November 2026). The World Bank compiles these as the SDG 7.1.1 Electrification Dataset for Tracking SDG7: The Energy Progress Report, the annual report of the World Bank (ESMAP), IEA, IRENA, UNSD and WHO. Population: WDI SP.POP.TOTL. Clean cooking: WHO Global Health Observatory indicator PHE_HHAIR_PROP_POP_CLEAN_FUELS, from the GHO OData API (data published 8 May 2026). All retrieved 4 December 2026 and archived in archive/.
The World Bank Group makes data publicly available according to open data standards and licenses datasets under the Creative Commons Attribution 4.0 International license (CC-BY 4.0). […] The Creative Commons Attribution 4.0 International license allows users to copy, modify and distribute data in any format for any purpose, including commercial use. Users are only obligated to give appropriate credit (attribution) and indicate if they have made any changes, including translations.
WHO grants to you the royalty-free, worldwide, non-exclusive right to use, reproduce, extract, download, copy, distribute, display or include the Datasets and data contained therein in other products for public health purposes. […] you agree to appropriately acknowledge and provide attribution to WHO and the country or countries having provided the underlying data (as indicated in the Datasets) in the following format: WHO, title of dataset, year, date of access, acknowledgement of the country or countries having provided the underlying data. […] You shall not state or imply that WHO endorses the manner or purpose of your use or reproduction of the Datasets, or that WHO endorses any entity, organization, company, product or services.
The WHO values are reproduced unchanged (only reshaped into columns). The WHO terms are narrower than an open licence: use for public health purposes, no commercial promotion, no endorsement claim. The World Bank's Tracking SDG7 source note for the cooking series separately lists the report's own licence as CC BY-NC 3.0 IGO. Check the terms before commercial use.
Cite as: World Bank, World Development Indicators (EG.ELC.ACCS.ZS and related, SP.POP.TOTL), accessed 4 December 2026; WHO, Global Health Observatory, "Proportion of population with primary reliance on clean fuels and technologies for cooking (%)", 2026, accessed 4 December 2026; counts of people without electricity computed by DataHub.
Upkeep
Living, updated annually. A monthly GitHub Action (.github/workflows/update.yml) re-fetches both sources and rebuilds the CSVs; when the data changed it pushes a review branch and opens an issue rather than committing to main, because this README and the chart labels quote dated figures. scripts/fetch.mjs and scripts/build.mjs rebuild everything from the sources.
API access
Access dataset files directly from scripts, code, or AI agents.
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.