Power plants & electricity

US power plants in Python from EIA-860 and EIA-923: where plants are, what they generate, capacity factors, retirements, new solar and batteries, and the data traps.

One bar split into the sources of US net electricity generation in 2025: gas, nuclear, coal, wind, solar, hydro and others. where America got its electricity in 2025gas40.9%nuclear17.7%coal16.4%wind10.4%solar 6.8%hydro 5.5%EIA-923, 2025 final: 4,425.0 TWh of net generation, 40.9% of it from natural gas

Every US power plant of 1 MW or more reports to the Energy Information Administration: its generators, their technology, fuel and capacity on form EIA-860, and what they generate and burn, month by month, on EIA-923. Together they describe a fleet of 14,327 plants and 1,376.7 GW that generated 4,425.0 TWh in 2025, and they are the source behind nearly every map, chart and statistic of the American grid. They arrive as Excel workbooks with title rows, footnotes, blank strings and placeholder codes, which is where most analyses go wrong.

The guides here map the plants, explain how the two surveys fit together, compute each state's generation mix and real capacity factors, follow retirements and the pipeline of planned solar, batteries and gas, and reshape the monthly data by fuel. Three pages deal with the traps: monthly values written as dots, generation that belongs to no plant, and capacity totals that disagree depending on which column was summed.

🧭 Start with the concepts

The ideas the how-to guides below assume you already have.

⚙️ Then do the task

Step-by-step walkthroughs with code you can copy and adapt.

🔧 When it breaks

The errors this topic produces, with the cause explained rather than just the command.

Related topics

Subjects that keep coming up alongside this one, most overlap first.

Keep browsing

Power plants & electricity sits in Analysis. Every topic on the site is listed on the topics index.