The document models and analyzes Germany's electricity generation system up to 2040 under different scenarios using the EnergyPLAN macro-modeling tool. The model was validated by comparing historical data from 2003-2012 to model results, which showed minimal differences. Three scenarios were simulated: Business as Usual, 50% renewable electricity share by 2040, and 60% CO2 reduction by 2040. The 60% CO2 reduction scenario was selected as best using multi-criteria analysis. Optimization of installed power capacity for 2020 and 2040 under the best scenario found renewable sources would account for over 50% of capacity by 2020 with 46% cost savings, and over 75% of capacity by 2040 with 71% cost savings.