Phase-shifting in an achromatic configuration of moiré interferometry is explained. The rigorous diffraction theory defines the phase of diffracted beams in terms of the pitch and the relative position of a compensator grating. A numerical analysis proceeds to determine the total phase change between two diffracted beams that produce moiré fringes.