A two-wavelength sinusoidal phase-modulating (SPM) laser diode (LD) interferometer for nanometer accuracy measurement is proposed. To eliminate the error caused by the intensity modulation, the SPM depth of the interference signal is chosen appropriately