In this paper, the effect of gravity waves on the photochemical heating rate is studied. Calculation indicates that gravity waves can cause the loss of photochemical heating rate in mesopause. The influences of different background temperature profiles and atomic oxygen distribution on this process are also studied. The study indicates that as the decrease of background temperature and increase of the background distribution of atomic oxygen, the photochemical heating rate loss caused by gravity waves increase obviously.