The FUZZY and ANFIS controllers are compared for reactive power compensation, DC link voltage and THD of source current. The THD has much better using ANFIS ensuring good operation of shunt active filter thus resulting in improved power quality. The simulation results indicate that the proposed filter, which can minimize the harmonic distortion to a level below that deployed by the Institute of Electrical and Electronics Engineers (IEEE) standards.