This Letter presents a novel absolute phase recovery technique with phase coding. Unlike the conventional graycoding method, the codeword is embedded into the phase and then used to determine the fringe order for absolute phase retrieval. This technique is robust because it uses phase instead of intensity to determine codewords, and it could achieve a faster measurement speed, since three additional images can represent more than 8 unique codewords for phase unwrapping. Experimental results will be presented to verify the performance of the proposed technique.