Pathologic factors of farting in the right upper abdomen after meal include gastric ulcer, duodenal ulcer, hepatitis, gastric cancer and so on. 1. Gastric ulcer: if various factors lead to excessive secretion of gastric acid, the acid can corrode the stomach wall leading to epigastric pain, and at the same time, due to the weakening of the digestive function, it can also cause gastrointestinal flatulence, and thus farting. 2. duodenal ulcer: due to various factors lead to the damage of the duodenum, at this time there will also be pain and discomfort and fart phenomenon. 3. Hepatitis: when many factors cause damage to the liver cells, pain and discomfort will occur, and at the same time, the metabolic function of the liver is weakened, causing indigestion, so farting will occur. 4. Gastric cancer: if the cells of the stomach wall proliferate a lot, the increased cells will press the nerves and cause pain, and at the same time, the obstruction of the stomach will cause flatulence, so there will be a lot of farting. Finally, please go to the hospital in time for examination if you have farting pain and distension in the upper right abdomen after meals.