On fifth-generation wireless networks, a potential massive MIMO system is used to meet the ever-increasing request for high-traffic data rates, high-resolution streaming media, and cognitive communication. In order to boost the trade-off between energy efficiency (EE), spectral efficiency (SE), and throughput in wireless 5G networks, massive MIMO systems are essential. This paper proposes a strategy for EE 5G optimization utilizing massive MIMO technology. The massive MIMO system architecture would enhance the trade-off between throughput and EE at the optimum number of working antennas. Moreover, the EE-SE tradeoff is adjusted for downlink and uplink massive MIMO systems employing linear precoding techniques such as Multiple -Minimum Mean Square Error (M-MMSE), Regularized Zero Forcing (RZF), Zero Forcing (ZF), and Maximum Ratio (MR). Throughput is increased by adding more antennas at the optimum EE, according to the analysis of simulation findings. Next, utilizing M MMSE instead of RZF and ZF, the suggested trading strategy is enhanced and optimized. The results indicate that M-MMSE provides the best tradeoff between EE and throughput at the determined optimal ratio between active antennas and active users equipment's (UE).