Interesting that two articles in Wikipedia on the same topic have such different numbers. From the German Energy Sector article.
Germany's
electrical grid is part of the
Synchronous grid of Continental Europe. In 2020, due to COVID-19 conditions and strong winds, Germany produced 484 TWâ‹…h of electricity of which
over 50% was from renewable energy sources, 24% from coal, and 12% from natural gas.
[5] This is the first year renewables represented more than 50% of the total electricity production and a major change from 2018, when a full 38% was from coal, only 40% was from renewable energy sources, and 8% was from natural gas.
[6]
Germany's installed capacity for electric generation increased from 121
gigawatts (GW) in 2000 to 218 GW in 2019, an 80% increase, while electricity generation increased only 5% in the same period.
[7]
Even though renewables production increased significantly between 1991 and 2017, fossil power production remained at more or less constant levels. In the same period, nuclear power production decreased due to the phase-out plan, and much of the increase in renewables filled the gap left behind by closing nuclear power plants.
However 2019 and 2020 saw significant reductions in electricity generation from fossil fuel, from 252 TWâ‹…h in 2018 to 181 TWâ‹…h in 2020. Germany will
phase-out nuclear power by end of 2022, meaning that future growth in renewables will be needed to fill the gap again. Germany also plans to phase out coal by 2038 or earlier.
[8]