Tummy pain that stops after farting may be caused by dietary factors, indigestion, intestinal flora imbalance, constipation and other reasons. 1. Dietary factors: Eating gas-producing foods, such as onions, soy products, carbonated beverages, etc., digestive decomposition of gas production increases, causing flatulence, which can be relieved after farting. 2. Indigestion: stomach peristalsis is slow, secretion of digestive juices is less, food stays in the stomach for a long time, after fermentation, resulting in an increase in the amount of gas to cause flatulence, farting after the gas is discharged, which can alleviate the pain of flatulence. 3. Intestinal flora imbalance: the intestinal harmful bacteria multiply more, intestinal contents after fermentation, gastrointestinal gas increases, resulting in bloating and pain, gas discharge to relieve the pain. 4. Constipation: constipation due to improper diet, lack of exercise and many other reasons, feces in the intestinal tract stagnation fermentation gas production increased, farting to relieve pain. There are many causes of stomach pain after farting (e.g., irritable bowel syndrome), so it is recommended that you seek medical attention to identify the cause of the problem and follow the doctor’s instructions.