Protection current transformer (CT) saturation caused by the remanent flux will affect the performance of protective relays. The saturation can be suppressed by demagnetizing the iron core. Detecting remanent flux can make demagnetization more effective. This paper proposes a remanent flux detection method based on the fluxgate theory, which can effectively measure the magnitude and polarity of the remanent flux using the second harmonic of the current generated by a single-phase electronic inverter. The proposed method can detect the remanent flux without changing it, no matter whether the CT is connected to the power system or not, which means that this method can measure the remanent flux when the CT is under normal operating conditions. The effectiveness of this method is verified in EMTP-RV software, and the simulation results show that this method can detect the remanent flux with high accuracy.