This paper presents a three-phase four-leg (3P4L) unified series-parallel active filter (USPAF) system. compensating for both periodic and non-periodic disturbances using a generalized non-active power theory (GNAP) based control strategy. The 3P4L USPAF system is realized by the integration of series and parallel active filters (AFs), composed of the two 3P4L voltage source inverters (VSIs) sharing a common dc-link capacitor. The GNAP theory was implemented previously in the parallel AF. In this study, the theory is proposed for the 3P4L USPAF system to compensate non-sinusoidal periodic and non-periodic currents and voltages. Distorted source voltages and unbalanced non-linear load currents compensation were verified simultaneously through the 3P4L USPAF system experimental prototype. Sub-harmonic and stochastic non-periodic current/voltage compensations were analyzed through simulations with Matlab/Simulink software. The simulation and experimental results showed that the theory proposed for the 3P4L USPAF system was applicable to non-active power compensation in three-phase four-wire (3P4W) systems under periodic and non-periodic disturbances. (C) 2011 Elsevier B.V. All rights reserved.