With the use of ultra-wideband technology by technology companies like Apple, this technology has gradually entered our lives. At present, the application of Ultra Wide-Band (UWB) technology mostly stays in two-dimensional plane positioning, and its use in three-dimensional space is limited. In this paper, a three-dimensional positioning model using UWB is designed, the causes of errors are analyzed, and Kalman filter is used to optimize the distance between base station tags. Clock synchronization for optimized positioning accuracy.