InGaN can reach all values of bandgap from 3.42 to 0.7eV, which covers almost the entire solar spectrum. This study is to understand the influence of each parameter of the solar cell for an improved optimization of performance. The yield obtained for a reference cell is 12.2 % for optimal values of doping of the layers. For generation and recombination, performance of the cell varies with these settings. III nitrides have a high absorption coefficient, a very thin layers of material are sufficient to absorb most of the light.