Electricity Generation Mix by Country and Source (Ember)
Yearly electricity generation by source (coal, gas, other fossil, nuclear, hydro, wind, solar, bioenergy, other renewables) in terawatt-hours and as a share of total generation, for 209 countries and economies and 15 aggregates including the World, from Ember's Yearly Electricity Data. Most countries from 2000, some from 1985. In Ember's release of 17 November 2026 the latest year is 2025, with 95 countries plus the aggregates. Updated monthly from Ember. Three tables: generation by area, year and source (long); one row per area and year with totals, demand, net imports, shares and the largest source (wide); and the list of areas with country/region flag, continent and groupings. Source: Ember, Yearly Electricity Data (CC BY 4.0).
Electricity generation by area, year and source (TWh and share)
Field
Type
Description
Constraints
area
string
Ember's area name: a country or economy (e.g. United States, Türkiye, Taiwan (China), Kosovo) or one of Ember's aggregates (World, continents, EU, OECD, G7, G20, ASEAN, AU, MENA and others). See areas.csv.
iso3_code
string
ISO 3166-1 alpha-3 code for countries (Ember's; XKX for Kosovo); empty for regions.
area_type
string
country (Ember's 'Country or economy') or region (an aggregate such as World, EU or Africa). Filter on this so aggregates are not added to countries.
enum ["country","region"]
year
integer
Calendar year. Most areas from 2000; 22 countries from 1985 and 30 more from 1990. The latest year is partly estimated by Ember from monthly data, and regional and World figures for it include Ember's estimates for countries without data.
source
string
Generation source: coal (Coal); gas (Gas); other_fossil (Other fossil fuels (oil and other fossil)); nuclear (Nuclear); hydro (Hydro); wind (Wind); solar (Solar); bioenergy (Bioenergy); other_renewables (Other renewables (geothermal, tidal and wave)).
Electricity generated from this source in the year, terawatt-hours (TWh), as published by Ember.
share_pct
number
Share of the area's total electricity generation in the year from this source, percent, as published by Ember.
Electricity mix by area and year: totals, shares by source and largest source
Field
Type
Description
Constraints
area
string
Ember's area name: a country or economy (e.g. United States, Türkiye, Taiwan (China), Kosovo) or one of Ember's aggregates (World, continents, EU, OECD, G7, G20, ASEAN, AU, MENA and others). See areas.csv.
iso3_code
string
ISO 3166-1 alpha-3 code for countries (Ember's; XKX for Kosovo); empty for regions.
area_type
string
country (Ember's 'Country or economy') or region (an aggregate such as World, EU or Africa). Filter on this so aggregates are not added to countries.
enum ["country","region"]
year
integer
Calendar year. Most areas from 2000; 22 countries from 1985 and 30 more from 1990. The latest year is partly estimated by Ember from monthly data, and regional and World figures for it include Ember's estimates for countries without data.
total_generation_twh
number
Total electricity generation, TWh, as published by Ember; the sum of the nine published source values may differ slightly because of rounding.
demand_twh
number
Electricity demand, TWh, as published by Ember. Country demand is generation plus net imports. EU regional demand includes trade; other aggregate demand values equal generation, with net imports unpublished.
net_imports_twh
number
Net electricity imports, TWh (negative for net exporters). Empty where Ember gives no value.
coal_twh
number
Generation from coal, TWh. Empty where Ember gives no row for this source in this year.
gas_twh
number
Generation from gas, TWh. Empty where Ember gives no row for this source in this year.
other_fossil_twh
number
Generation from other fossil fuels (oil and other fossil), TWh. Empty where Ember gives no row for this source in this year.
nuclear_twh
number
Generation from nuclear, TWh. Empty where Ember gives no row for this source in this year.
hydro_twh
number
Generation from hydro, TWh. Empty where Ember gives no row for this source in this year.
wind_twh
number
Generation from wind, TWh. Empty where Ember gives no row for this source in this year.
solar_twh
number
Generation from solar, TWh. Empty where Ember gives no row for this source in this year.
bioenergy_twh
number
Generation from bioenergy, TWh. Empty where Ember gives no row for this source in this year.
other_renewables_twh
number
Generation from other renewables (geothermal, tidal and wave), TWh. Empty where Ember gives no row for this source in this year.
coal_share_pct
number
Share of total generation from coal, percent. Empty where Ember gives no row for this source in this year.
gas_share_pct
number
Share of total generation from gas, percent. Empty where Ember gives no row for this source in this year.
other_fossil_share_pct
number
Share of total generation from other fossil fuels (oil and other fossil), percent. Empty where Ember gives no row for this source in this year.
nuclear_share_pct
number
Share of total generation from nuclear, percent. Empty where Ember gives no row for this source in this year.
hydro_share_pct
number
Share of total generation from hydro, percent. Empty where Ember gives no row for this source in this year.
wind_share_pct
number
Share of total generation from wind, percent. Empty where Ember gives no row for this source in this year.
solar_share_pct
number
Share of total generation from solar, percent. Empty where Ember gives no row for this source in this year.
bioenergy_share_pct
number
Share of total generation from bioenergy, percent. Empty where Ember gives no row for this source in this year.
other_renewables_share_pct
number
Share of total generation from other renewables (geothermal, tidal and wave), percent. Empty where Ember gives no row for this source in this year.
fossil_share_pct
number
Share of generation from fossil fuels (coal, gas, other fossil), percent (Ember aggregate).
renewables_share_pct
number
Share of generation from renewables (hydro, wind, solar, bioenergy, other renewables), percent (Ember aggregate).
wind_and_solar_share_pct
number
Share of generation from wind and solar, percent (Ember aggregate).
clean_share_pct
number
Share of generation from clean sources (renewables plus nuclear), percent (Ember aggregate).
largest_source
string
The source with the most generation in this area and year (calculated for this dataset from the nine sources; on an exact tie the first in the order coal, gas, other_fossil, nuclear, hydro, wind, solar, bioenergy, other_renewables). Empty if total generation is zero.
Country or economy code supplied by Ember, generally ISO 3166-1 alpha-3; XKX for Kosovo. Empty for regions.
area_type
string
country (Ember's 'Country or economy') or region (an aggregate).
enum ["country","region"]
continent
string
Continent (Ember). Empty for regions.
ember_region
string
Ember's region for the country (Africa, Asia, Europe, Latin America and Caribbean, Middle East, North America, Oceania). Empty for regions.
eu_member
boolean
Whether the country is a member of the EU, as recorded in the archived Ember release; this flag does not vary by historical year. Empty for regions.
oecd_member
boolean
Whether the country is a member of the OECD, as recorded in the archived Ember release; this flag does not vary by historical year. Empty for regions.
g20_member
boolean
Whether the country is a member of the G20, as recorded in the archived Ember release; this flag does not vary by historical year. Empty for regions.
g7_member
boolean
Whether the country is a member of the G7, as recorded in the archived Ember release; this flag does not vary by historical year. Empty for regions.
asean_member
boolean
Whether the country is a member of the ASEAN, as recorded in the archived Ember release; this flag does not vary by historical year. Empty for regions.
first_year
integer
First year with data for this area.
last_year
integer
Latest year with data for this area.
How much electricity each country generates from coal, gas, other fossil fuels, nuclear, hydro, wind, solar, bioenergy and other renewables, year by year, in terawatt-hours (TWh) and as a share of its total generation. Covers 209 countries and economies and 15 of Ember's aggregates, including the World, the EU, the OECD, Africa, Asia and Europe, mostly from 2000 (some countries from 1985). Data from Ember's Yearly Electricity Data, updated monthly by a scheduled job. In Ember's release of 17 November 2026 the latest year is 2025.
What stands out
Solar generated 2,874 TWh of the world's electricity in 2025, 9.0% of the total and more than nuclear power (2,805 TWh) for the first time in Ember's World series, which starts in 2000. Ten years earlier, in 2015, solar generated 256 TWh: 2025's output is 11.2 times as much.
In 2025 world generation grew by 864 TWh and wind and solar together grew by 867 TWh, so they covered all of the growth; generation from fossil fuels fell by 50 TWh (0.3%) and supplied 57.5% of the world's electricity. World figures for 2025 include Ember's estimates for countries that have not yet reported a full year.
Data
Three tables. Countries and aggregates sit in the same tables: filter on area_type (country or region) so that, for example, the EU or World is never added to its own members.
data/generation.csv: one row per area, year and source (54,505 rows). Best for charts and pivots.
area, iso3_code, area_type, year: who and when. iso3_code is empty for regions.
source: coal, gas, other_fossil (oil and other fossil fuels), nuclear, hydro, wind, solar, bioenergy, other_renewables (geothermal, tidal and wave).
generation_twh: electricity generated from the source, TWh.
share_pct: share of the area's total generation, percent.
data/summary.csv: one row per area and year (6,307 rows). Best for spreadsheets and maps.
total_generation_twh, demand_twh (Ember's electricity demand), net_imports_twh (negative for net exporters). Country demand is generation plus net imports. Ember includes trade in EU regional demand estimates; other aggregate demand values equal generation and have no published net-import figure.
<source>_twh and <source>_share_pct for each of the nine sources.
fossil_share_pct, renewables_share_pct, wind_and_solar_share_pct, clean_share_pct (renewables plus nuclear): Ember's group shares.
largest_source: the source with the most generation that year, calculated for this dataset.
data/areas.csv: one row per area (224 rows): area_type, continent, ember_region, membership of the EU, OECD, G20, G7 and ASEAN (empty for regions), and the first and last year with data.
The aggregates are Africa, ASEAN, Asia, AU (African Union), EU, Europe, G20, G7, Latin America and Caribbean, MENA, Middle East, North America, Oceania, OECD and World.
Caveats
The latest year is partly estimated. Ember estimates a country's latest year from monthly data where annual statistics are not yet out, and estimates countries without data when it builds regional and World totals. In the November 2026 release, 2025 has 95 countries but every aggregate; 2024 has 194 countries. Values for recent years are revised in later releases.
Missing sources are not replaced with zero. Where Ember provides no source row for an area-year, summary.csv leaves the corresponding cells empty and generation.csv omits that source row. Before 2000, coverage is limited to 22 countries from 1985 and 52 from 1990. Ember publishes 0.0 for many sources a country does not use.
Membership flags reflect the archived Ember release, not historical membership: the United Kingdom is not flagged as an EU member in any year.
Ember says it aims "to report all annual generation data as gross generation". Reporting of small distributed generation (rooftop solar, diesel generators) varies by country, and Ember models it only in some cases. See Ember's methodology.
Area names are Ember's (for example Türkiye, Taiwan (China), Bosnia Herzegovina, The Philippines).
Licence: Creative Commons Attribution 4.0 (CC BY 4.0). Ember says: "Ember content is released under a Creative Commons Attribution Licence (CC-BY-4.0) This means you’re free to share and adapt our work – as long as you credit us." (https://ember-energy.org/creative-commons/). Please credit: Ember, Yearly Electricity Data, via DataHub.
This dataset is updated monthly: a scheduled job runs twice a month, after Ember's updates in the first and third weeks, and commits only when the data changes. scripts/fetch.mjs downloads Ember's CSV into archive/ and scripts/build.mjs rebuilds the tables from it. The columns kept are generation and shares; Ember's capacity and emissions figures are in the archived CSV in the GitHub repository.
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.