The paper discusses the need to limit total harmonic distortion (THD) in power systems due to the increasing use of nonlinear loads and power electronic devices. It proposes a simulation of a shunt active filter based on instantaneous power theory using MATLAB/Simulink to effectively mitigate harmonic issues and improve power quality. The findings suggest that active power filters can provide efficient compensation for reactive power without significant energy storage requirements.