Computer simulations were performed to increase the quantum efficiency of LED by optimizing the nanoheterostructure (NH). Furthermore, the InGaN and AlGaP NHs for LEDs were optimized. On the basis of the optimum NH, ways to further increase the efficiency and the influence of impurities and indium atoms doped into barriers between quantum wells were investigated. The optimum impurity and indium atom concentrations to achieve higher flux were determined.