According to the disadvantage of slow detection speed of the traditional ip-iq algorithm due to the low pass filter,the paper proposes a variable step size LMS/LMF adaptive filter algorithm.The adaptive filter can not only change the step size according to the change of original signal, but also change the proportion of the Least Mean Square(LMS) algorithm and the Least Four-order Moment (LMF) algorithm,which makes the advantages of high detection accuracy of LMF and high detection speed of LMS fully played. The simulation results show that the proposed algorithm is effective, and the speed of harmonic current is improved obviously.