The invention discloses a traditional Chinese medicine formula for treating chronic gastritis and a preparation method thereof. The traditional Chinese medicine formula is prepared from the following raw materials by weight: 40g to 50g of polished round-grained rice, 4g to 9g of radix aconiti carmichaeli, 3g to 7g of neocheiropteris palmatopedata rhizome, 6g to 10g of tea leaves, 5g to 9g of Sichuan filbert fruit, 2g to 5g of lasia spinosa rhizome, 3g to 8g of Chinese toon leaves, 7g to 11g of fructus oryzae germinatus, 6g to 9g of flos eriocauli, 2g to 7g of herba euphorbiae humifusae, 3g to 6g of flos caryophyllata essence, 1g to 4g of root of Chinese chives, 3g to 6g of fructus crataegi, 2g to 5g of pyrus pashia fruit, 7g to 11g of common bombax root, and 800g to 1000g of water. The preparation method comprises the following steps of cleaning and soaking the polished round-grained rice, adding water into the other herbal medicines, boiling by fire, adding the soaked polished round-grained rice into the boiled medicine liquid, and boiling into porridge. The traditional Chinese medicine formula has the advantages that the traditional Chinese medicine formula is used for treating the chronic gastritis; more than ten types of natural herbal medicines are utilized and are boiled into the medicine food by eleven steps; while the mucous membrane is restored and the natural protection of gastrointestinal wall is formed, the effects of nourishing internal organs, promoting Qi of stomach and intestine, enhancing power of stomach and intestine, and promoting digestion are realized; when the toxin dirt in the stomach is cleaned, the internal environment of the stomach and intestine is re-established, the reasonable excretion of gastric gland is wholly regulated, the excessive excretion of gastric acid is avoided, the normal pH (potential of hydrogen) value in a stomach cavity under the condition of not using western medicines is maintained, the strong acid environment of the survival environment of helicobacter pylori is destroyed, and the infection is avoided.