Abstract:The traditional calculation algorithm of N steps requires precise phase shifting equipment to reslize the decided steps.It can not exactly calculate the phase when there is an error in each step of the moving of the project grating.Base on this,a new calculation algorithm of undecided steps of phase shifting is presented.The new algorithm can exactly calculate the phase,reduce the requirement of the phase shifting equipment,enhance the precision and the automatic degree of the measurement system.