Surfactant-grafted Polyacrylamide (S-PAM) serves as a novel oil displacement agent in oilfield. The analysis on composition of S-PAM shows that due to its instability the harmful ammonia gas may be generated during the operation of S-PAM or high temperature. In this paper, stability of S-PAM was studied by measuring the ammonia release from solid and aqueous S-PAM at different temperatures. The results showed that ammonia release of the solid S-PAM was increased with raising temperature. The ammonia release from S-PAM produced by Haibo Company is more than one from Lianhua in the solid state. The ammonia emissions from Lianhua S-PAM are slightly higher than Haibo one in the solutions prepared by both clean water and oilfield water.