The paper presents a method for estimating the amplitude and phase of harmonics in power systems using an extended Kalman filter (EKF) combined with a least squares estimator (LS). This approach addresses the increasing harmonic distortion due to nonlinear elements and power electronics, which negatively impacts power quality. The results demonstrate high accuracy and speed in the estimation of harmonic parameters, confirming the method's effectiveness in real-time applications.