Carrier phase measurement is a ranging technique that uses the receiver to determine the phase difference between the received signal and the transmitted signal. Carrier phase ranging has a high resolution; thus, it is an important research direction for high precision positioning. It is widely used in global navigation satellite systems (GNSS) systems but is not yet commonly used inwireless orthogonal frequency division multiplex (OFDM) systems. Applying carrier phase technology to OFDM systems can significantly improve positioning accuracy. Like GNSS carrier phase positioning, using the OFDM carrier phase for positioning has the following two problems. First, multipath and non-line-of-sight (NLOS) propagation have severe effects on carrier phase measurements. Secondly, ambiguity resolution is also a primary issue in the carrier phase positioning. This paper presents a ranging scheme based on the carrier phase in a multipath environment. Moreover, an algorithm based on the extended Kalman filter (EKF) is developed for fast integer ambiguity resolution and NLOS error mitigation. The simulation results show that the EKF algorithm proposed in this paper solves the integer ambiguity quickly. Further, the high-resolution carrier phase measurements combined with the accurately estimated integer ambiguity lead to less than 30-centimeter positioning error for 90% of the terminals. In conclusion, the presented methods gain excellent performance, even when NLOS error occur.