Using the maximum and the minimum of interference, a novel two-step phase demodulation algorithm is proposed to perform the phase extraction in phase-shifting interferometry. By means of the simulation calculation and the experimental research, it is proved that both the measured phase and the phase shift with high precision can be obtained in the proposed algorithm.