Tracing the amplified spontaneous emission light inside the cavity of the semiconductor laser, the expression of the photon density of various diode modes inside the cavity has been derived based on the mean carrier density approximation. After summing up the photon densities, an analytical expression for the deficit ΔΝ of the carrier density from the conventional nominal threshold carrier density N, has been deduced. As a result, both the mode spectra and the mode suppression ratio (MSR) can be expressed analytically, irrespecting whether the peak wavelength of the gain is coincident with one of the resonant modes of the diode or not.