Energy Production and Consumption by Country

Energy production and consumption in every country since 1980, by fuel: coal, oil, gas, nuclear and renewables. The world used about 600 quadrillion Btu in 2024, more than twice the 1980 total, and China alone used 28%.

Report an issue
Downloads
7
Last updated
Data files
4
Total size
7.13 MB
Format
csv
License
US-PD

Data Views

3 views

Energy production and consumption by country, fuel and year

World and regional energy production and consumption by fuel and year

Population by country and year (EIA)

Countries and former states in the data

Energy produced and used in 226 countries and territories every year from 1980 to 2024, split by fuel (coal, oil, gas, nuclear, renewables), in one unit, quadrillion Btu ("quads"). The world used 606 quads in 2024, more than twice the 281 of 1980.

What stands out

  • World energy use has more than doubled, from 281 quads in 1980 to 606 in 2024. The largest fall was 2020 (down 4%); 1981 and 2009 each fell about 1%.
  • China alone used 28% of it in 2024: 171 quads, against 95 for the United States and 37 for India. China used 19 quads in 1980; India 3.
  • Fossil fuels still supply about 88% of the world's energy, down from 94% in 1980. Oil is the largest at about 200 quads, then coal at about 180 and gas at about 155.
  • Coal has more than doubled (79 quads in 1980, 180 in 2024), and China burns 59% of the world's coal (105 quads).
  • Renewables have grown fivefold (9 to 43 quads, 7% of the total) and nuclear nearly fourfold (8 to 28 quads, 5%).
  • Asia and Oceania use almost half the world's energy (288 quads, 47%), up from 49 quads in 1980. Europe now uses less than in 1980.

Data

All values come from the US Energy Information Administration (EIA). Long format, one row per country, year, fuel and measure:

  • data/energy-by-country.csv: 226 countries, territories and former states; columns country, iso3, year, fuel, measure, value, unit. fuel is total, coal, oil, gas, nuclear or renewables. measure is production, consumption (both in quad Btu; 1 quad = 1.055 exajoules) or consumption_per_capita (all fuels, million Btu per person).
  • data/world-and-regions.csv: the same columns for the World, seven continental regions, the European Union, OECD, Non-OECD and OPEC (region, code instead of country, iso3).
  • data/population.csv: EIA's population by country and year, in thousands, so per-capita figures can be made for any fuel.
  • data/countries.csv: the list of 226 entities with ISO code, EIA code, whether current or former, and first and last year.

"Primary energy" counts fuels at their heat content (EIA's Btu measure), so nuclear and renewable electricity are counted by EIA's own conversion, not at generated kilowatt-hours.

Caveats

  • Oil and total production start in 1984. EIA gives zero, not a value, for oil production in 1980 to 1983 (except the United States) and for the Soviet Union in every year, which leaves its all-fuels production total incomplete. Those oil values and totals are left out here, and world total production starts in 1992. Consumption has no such gap.
  • Missing is missing. Values EIA marks --, NA or ie (included elsewhere) are left out, not set to zero.
  • Consumption does not quite add up. The five fuels differ from the all-fuels total by up to 1.4 quads at world level (0.2%) because of EIA's rounding and stock changes. Production adds up exactly.
  • "Renewables" is EIA's "renewables and other": hydro, biomass and waste, geothermal, wind, solar and tide, plus other sources and, for consumption, net electricity imports (which can make it negative for a small country).
  • Former states. The Soviet Union (to 1991), East and West Germany (to 1990), Czechoslovakia (to 1992), Yugoslavia (to 1991), and Serbia and Montenegro (1992 to 2005) appear under their old names. Germany starts in 1991, Russia and the other Soviet republics in 1992. EIA still reports the Netherlands Antilles, to 2024.
  • Per capita uses EIA's own population. Where EIA gives no population, the per-capita value is left out.
  • Estimates. Many countries report little; EIA estimates and revises past years, so values can differ from older EIA releases.

Source and licence

U.S. Energy Information Administration, International Energy Statistics, bulk file INTL.zip, updated 19 November 2026 and retrieved 4 December 2026 (see archive/PROVENANCE.md). EIA's terms (Copyrights and Reuse): "U.S. government publications are in the public domain and are not subject to copyright protection. You may use and/or distribute any of our data, files, databases, reports, graphs, charts, and other information products that are on our website or that you receive through our email distribution service. However, if you use or reproduce any of our information products, you should use an acknowledgment, which includes the publication date, such as: "Source: U.S. Energy Information Administration (Oct 2008)."" This compilation is a DataHub tidy-up of EIA's data, not an official EIA product.

Please cite: "Source: U.S. Energy Information Administration, International Energy Statistics (Nov 2026)."

Upkeep

This dataset is updated annually, when EIA adds a new year, and EIA revises it in between. A GitHub Actions job fetches the EIA file on the 20th of each month. If the data changed, the rebuilt data goes to a review branch with an issue, not straight to the main branch, so the dated figures above can be updated and checked first. The job fails, and publishes nothing, if the download is broken or changes shape, or if the fuels stop adding up. The chart descriptions in datapackage.json are hand-written, so update them on each refresh.

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.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/core/world-energy-by-country/7 files
  • README.mddocumentationhttps://datahub.io/core/world-energy-by-country/_r/-/README.md
  • config.jsonhttps://datahub.io/core/world-energy-by-country/_r/-/config.json
  • data/countries.csvhttps://datahub.io/core/world-energy-by-country/_r/-/data/countries.csv
  • data/energy-by-country.csvhttps://datahub.io/core/world-energy-by-country/_r/-/data/energy-by-country.csv
  • data/population.csvhttps://datahub.io/core/world-energy-by-country/_r/-/data/population.csv
  • data/world-and-regions.csvhttps://datahub.io/core/world-energy-by-country/_r/-/data/world-and-regions.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/core/world-energy-by-country/_r/-/datapackage.json