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`).

## Source and licence

Ember, Yearly Electricity Data, https://ember-energy.org/data/yearly-electricity-data/, global CSV download (https://files.ember-energy.org/public-downloads/generation/outputs/release_generation_yearly_global.csv), Ember release of 17 November 2026, retrieved 2026-11-28. Method: Ember, Electricity Data Methodology, https://files.ember-energy.org/public-downloads/ember_electricity_data_methodology.pdf. Ember compiles the data from EIA, Eurostat, the Energy Institute, the UN and national statistics.

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.
