The invention discloses a formula and a making method of a diet for preventing Helicobacter pylori infection. The formula comprises 100-200g of noodle, 20-30g of lean meat, 20-30g of soybean, 5-10g of apricot kernel, 5-10g of Sinopodophyllum hexandrum, 5-10g of Sapindus mukurossi Gaertn, 5-10g of dry ginger, 3-5g of garlic, 3-5g of mint, 3-5g of cinnamon and other cereals, and vegetables as raw materials. The making method comprises the following steps: cleaning all the cereals and the vegetables, immersing, juicing, and boiling noodles by using the obtained juice. The diet has a unique prevention effect on the Helicobacter pylori infection, and has the advantages of non-toxicity, no side effects, wide food sources, simple making and low cost.