The authors propose a control algorithm for a single-phase active-power filter working under a non-stiff voltage source. The method provides compensation for harmonics and reactive power and has an excellent dynamic performance. A detailed synchronization circuit is presented for proper sequencing of operation of the active power filter even when the source voltage contains multiple zero crossings. Experimental study has been carried out under a non-stiff voltage source to verify the proposed control scheme. © 2006 IEEE.