Currently, a number of methods proposed for calculating the phasors of harmonic components of signals using the Fourier algorithm seem to make electrical engineers puzzled as to which to choose from. Based on strict mathematical deduction, this paper explains the diversity of phasor representation and presents two types of algorithm to represent and calculate the phasors of harmonic components. The simulation results have proved the validity and feasibility of the conclusions presented.