The invention provides a method for improving methane purity in a sludge anaerobic digestion generated biogas. The method comprises the following steps: concentrating organic sludge till a solid content is 20-40g/L; adding an additive, and controlling a pH value to 4.0-6.0, and carrying out a hydrolytic acidification reaction at 35-39 DEG C; adjusting the pH value of the sludge after hydrolytic acidification to 6.0-6.5, carrying out an anaerobic digestion reaction, and collecting a biogas. By adopting the method, calcium nitrite is adopted as the additive, so that sludge lysis and hydrolysis acidification can be improved, the anaerobic acid generation velocity of the sludge is greatly increased, furthermore, the sludge anaerobic digestion efficiency is improved; due to the addition of thecalcium nitrite, a function of blocking carbon is also achieved, the concentration of carbon dioxide in the biogas is also reduced, and the purity of methane is improved; as the pH value is adjusted twice, both acidic hydrolysis of the sludge under the action of the calcium nitrite is improved, and growth of hydrogen type methanogens in an anaerobic methanogenesis period is facilitated, the potential that the carbon dioxide is in reaction with hydrogen to generate the methane is improved, and the purity of the methane in the biogas is further improved.