Searching for next-generation solar cell devices to massively actualize renewable energy is exponentially conducted. It includes developments of Cu2ZnSnS4 (CZTS) based solar cells which are known as solar cell devices having features being cost-effective and highly stable. In this present research, we develop a CZTS solar cell by adding a magnetic degree of freedom using Cobalt (Co) doping. We find that the Co doping could induce a modulation of crystalline structure and bandgap of CZTS which further influences its photovoltaic performances. Increasing of grain size of CZTS as the addition of Co doping could further induce the reduction of detrimental grain boundaries which benefits for photovoltaic performance of CZTS-based solar cells. Co doping also generates magnetic behavior of CZTS which supports magnetically controlled optoelectronics properties and thus in turn benefits enhancing the photovoltaic performance. We believe that this study could open opportunities for obtaining next-generation solar cell devices having excellent performances by using magnetic field induction.