Gas pains can be relieved using home treatment measures, such as taking antacids, sipping clear fluids, avoiding solid foods for some time and avoiding anti-inflammatory medications, as stated by MedlinePlus. To prevent gas pains, a person needs to exercise regularly, drink plenty of water, limit foods that produce gas and eat a well-balanced diet.
In many cases, a doctor may recommend dietary changes to prevent the buildup of gas in the body. Foods to limit include cabbage, broccoli, onions, pears, cauliflower, apples, prunes and peaches, among others. Cutting out fatty and fried foods helps to prevent bloating. Limiting the use of dairy products is necessary, but yogurt can be eaten, as stated by Mayo Clinic. Some cases may require a patient to avoid the use of dairy products completely. Habits that introduce air into the digestive tract, such as chewing gum and sipping from a straw, should also be avoided.
Over-the-counter medications that can help to relieve gas pains include activated charcoal, simethicone, lactase supplements and Beano. If the pain triggers the occurrence of others symptoms, such as breathing difficulty and chest pain, it is necessary to visit a doctor. Gas pains can also occur due to underlying health conditions, including ulcers, kidney stones, heartburn, bowel blockage and appendicitis, as stated by MedlinePlus.