Zero velocity update aided inertial navigation system (INS) and ultra-wideband (UWB) technology are widely used in pedestrian positioning. However, INS has significant cumulative error and the application environment of UWB positioning system is limited. In this study, an integrated positioning method with IMU/UWB based on geometric constraints of foot-to-foot distances is proposed. The gait of pedestrian is divided into three phases: stance, swing, and stride. Then, stance phase correction model, swing phase ranging model and stride phase size model are established, respectively. The magnetic induction intensity, accelerations, velocities, and the foot-to-foot distances measured by UWB are used to construct the constraints. Extended Kalman filter (EKF) and error state Kalman filter (ESKF) are utilized to estimate the attitudes and positions optimally. Several experiments in various environments are carried out to verify the proposed method. The results show that the proposed method has high accuracy and good robustness to the environments.