Ultra-wideband (UWB) technology is renowned for its exceptional performance in fast data transmission and precise positioning. However, it faces sensitivity challenges when the tagged object is not in direct line of sight, resulting in position inaccuracies. Applying the federated Kalman filter (FKF), this research focuses on mitigating position deviation induced by non-line-of-sight (NLOS) scenarios in UWB technology. The utilization of the FKF in NLOS scenarios has demonstrated a noteworthy reduction in position deviation. This study uses the FKF to analyze measurements taken under line-of-sight (LOS) and NLOS conditions within indoor settings. The outcomes of this study provide a promising foundation for future research endeavors in the field of UWB technology, emphasizing the potential for improved performance and accuracy in challenging operational environments.