Gastric ulcers and duodenal ulcers are not contagious per se and are not considered infectious diseases. If H. pylori infection is causing gastric and duodenal ulcers, it is possible to transmit H. pylori to other people. If you share meals, utensils or other close contact with people who have stomach or duodenal ulcers, you may pass H. pylori to others, so you need to pay attention to this. For gastric or duodenal ulcers caused by H. pylori infection, regular H. pylori eradication treatment is required under the guidance of a gastroenterologist. The eradication of HP can promote ulcer healing and prevent recurrence of ulcers, which can completely cure the ulcer. In addition, gastric ulcers caused by HP infection may become cancerous, so it is important to cooperate with the doctor to give medication. If there are symptoms of gastric discomfort in the family and H. pylori infection is suspected, it is recommended that a carbon 13 or carbon 14 breath test should be performed at a hospital to help clarify the diagnosis and, if necessary, medication should be given under the guidance of a specialist.