According to WebMD, gas can be treated with non-prescription medications that contain simethicone, a chemical that works to break down intestinal gas bubbles. Gas can often be prevented by minimizing intake of gas-causing foods, such as beans, cucumbers and dairy products. Avoiding carbonated beverages and high-fat foods may also help prevent excess gas.
Mayo Clinic explains that gas and gas pains can also be prevented by avoiding sugar-free foods that contain sugar alcohols and eating slowly to avoid swallowing air. In certain cases, excess gas can be caused by medical conditions, such as celiac disease, irritable bowel syndrome or intestinal blockages, so it is important for individuals to seek medical advice if symptoms disrupt their daily lives.
According to MedlinePlus, dietary changes that introduce high amounts of fiber into the diet can cause excess gas for a short period of time as fiber can be hard on the digestive system. Additional causes of excess gas can include antibiotic use and malabsorption, a condition in which the body is unable to take in nutrients. Individuals with gas that is accompanied by constipation, abdominal pain, bloody bowel movements or weight loss should consult with a physician to ensure proper diagnosis and treatment.