A new method for phase detection of the phase modulated grating is proposed.. Phase distribution of the grating can be acquired quickly and sensitively by taking a phase modulated grating image into computer and processing it by using orthogonal coherent phase detection algorithm. The principle of the technique is introduced in detail and the experimental results are shown. Finally, the technique is compared: with other similar techniques.