In the growth process of sugar crops, excessive application of nitrogen fertilizer may lead to the accumulation of nitrate content in sugar raw materials (sugar beets), and in the subsequent processing, nitrate is reduced to nitrite by bacteria. Some sugar factories have started testing nitrate and nitrite in their packaging and factory sugar products to control product quality. This article uses an ion chromatograph to detect the content of nitrate and nitrite in raw materials of sugar products.