In harmonic gyrotrons, the narrow operating region of the harmonic mode is significantly restricted by the severe mode competition from the fundamental parasitic modes, which makes it important to study the nonlinear effects of beam-wave interaction in the case of a nonideal electron beam. In this article, the effect of the electron velocity spread and the beam radius spread on the mode excitation, interaction efficiency as well as mode competition are analyzed for the desired harmonic mode and the parasitic fundamental mode operating far from the cut-off frequency. The effect of velocity spread is interpreted via the electron cyclotron resonance condition as well as the electron beam susceptibility with respect to the resonator field. The results show that the velocity spread can greatly broaden the effective operating region of the harmonic mode and the efficiency degradation can be contained at a reasonable level by proper design consideration of the interaction circuit. Whereas, the beam radius spread is the main factor that accounts for the efficiency degradation and can aggregate the mode competition. The results are referential to the design and analysis of harmonic gyrotrons as well as continuously frequency tunable gyrotrons.