Gas: Drugs That Cause or Treat It

At a glance
- Primary cause / excess gas production from swallowed air, fermentation of undigested carbohydrates, and drug side effects
- Most common drug culprit / metformin (GI side effects in up to 30% of users at standard doses)
- First-line OTC treatment / simethicone 125 mg taken with meals and at bedtime
- Prescription option for SIBO-related gas / rifaximin 550 mg three times daily for 14 days
- GLP-1 agonist gas rate / flatulence reported in roughly 14% of semaglutide users in STEP-1
- Red-flag threshold / gas with unintentional weight loss, rectal bleeding, or fever warrants same-day evaluation
- Dietary adjunct / alpha-galactosidase enzyme (Beano) reduces legume-derived gas by up to 50% in controlled trials
- Normal range / adults pass gas 10 to 25 times per day on average
What Causes Gas?
Intestinal gas originates from two main processes: air swallowing (aerophagia) and microbial fermentation of undigested carbohydrates in the colon. The principal gases produced are nitrogen, carbon dioxide, hydrogen, methane, and trace sulfur compounds. Hydrogen and methane are generated almost entirely by colonic bacteria acting on substrates that the small intestine failed to absorb, including fermentable oligosaccharides, disaccharides, monosaccharides, and polyols (the FODMAP group) [1].
Aerophagia
Swallowing air during eating, drinking carbonated beverages, or chewing gum deposits nitrogen and carbon dioxide in the upper GI tract. Most of this gas exits as belching, but residual amounts pass distally and contribute to flatus volume.
Colonic Fermentation
When carbohydrates reach the colon intact, resident bacteria ferment them rapidly. Lactose malabsorption, fructose excess, and high-fiber diets all increase fermentable substrate delivery. A 2021 systematic review in Alimentary Pharmacology and Therapeutics (N=4,702 across 22 trials) confirmed that low-FODMAP dietary restriction reduced overall GI symptom scores by a mean standardized difference of 0.45 compared with control diets [2].
Gut Motility and Transit
Slow colonic transit, as seen in hypothyroidism or opioid use, prolongs bacterial exposure to substrate and raises gas volume. Rapid transit (as with osmotic laxatives) can paradoxically worsen bloating by delivering unfermented substrate to the distal colon in large boluses.
Drugs That Cause Gas
Many medications alter either the gut microbiome composition, carbohydrate absorption, or colonic motility in ways that dramatically increase gas production. The table below covers the most clinically significant offenders.
Metformin
Metformin remains the first-line oral agent for type 2 diabetes per the 2023 American Diabetes Association Standards of Care [3]. Up to 30% of patients report GI side effects, including flatulence, diarrhea, and abdominal cramping, particularly at doses of 1,500 mg or more per day [4]. The mechanism involves metformin-driven changes in the gut microbiome (notably enrichment of Akkermansia muciniphila) combined with partial inhibition of intestinal glucose absorption, which increases luminal substrate availability for bacterial fermentation.
Extended-release metformin (Glumetza, Fortamet) cuts GI side effects by roughly 50% compared with immediate-release formulations, according to a 2010 crossover trial published in Diabetes Care [5]. Titrating slowly, starting at 500 mg with the evening meal and increasing by 500 mg every two weeks, reduces the onset severity further.
GLP-1 Receptor Agonists (Semaglutide, Tirzepatide, Liraglutide)
GLP-1 receptor agonists slow gastric emptying and alter gut motility, creating conditions for increased fermentation in the distal small bowel and colon. In STEP-1 (N=1,961), semaglutide 2.4 mg subcutaneous weekly produced flatulence in approximately 14% of participants versus 5% on placebo [6]. Nausea and constipation are more prominent, but gas and bloating consistently appear in the adverse event tables across the STEP trial series.
Tirzepatide (Mounjaro/Zepbound) data from SURMOUNT-1 (N=2,539) showed GI-related adverse events in 79% of participants at the 15 mg dose, with flatulence among the events reported [7]. These rates are highest during the dose-escalation phase and typically decrease after 12 to 16 weeks at a stable dose.
A practical clinical note: taking the injection with a smaller meal and avoiding high-fat foods during escalation can blunt gas severity without requiring a dose reduction.
Lactulose and Polyethylene Glycol (PEG)
Lactulose is a synthetic disaccharide used as an osmotic laxative and for hepatic encephalopathy management. Because humans lack the enzyme to cleave it, lactulose passes intact to the colon where bacteria ferment it almost completely, generating hydrogen and carbon dioxide. Gas, bloating, and cramping are reported in 20% or more of users at therapeutic doses (15 to 30 mL twice daily) [8].
PEG (MiraLax) causes less fermentation because it is minimally metabolized by colonic bacteria, but high single doses given for colonoscopy prep can still produce transient gas and bloating as the osmotic load distends the colon.
Alpha-Glucosidase Inhibitors (Acarbose, Miglitol)
Acarbose and miglitol delay carbohydrate digestion by blocking the intestinal alpha-glucosidase enzyme, deliberately leaving more substrate for colonic bacteria. The intended pharmacological effect is a reduced postprandial glucose spike, but the trade-off is significant gas. In the UKPDS acarbose substudy, flatulence occurred in more than 40% of acarbose-treated participants [9]. Starting at 25 mg with the first bite of each meal and increasing gradually over four weeks reduces but does not eliminate this effect.
Certain Antibiotics
Antibiotics disrupt the balance of commensal gut flora, which can either reduce or increase gas depending on which bacterial populations are suppressed. Broad-spectrum agents such as amoxicillin-clavulanate and clindamycin preferentially suppress gram-positive anaerobes, allowing gas-producing gram-negative species to bloom. Conversely, targeted agents (rifaximin, neomycin) are used therapeutically to reduce gas in small intestinal bacterial overgrowth (SIBO).
Clindamycin-associated gut dysbiosis may persist for up to two years after a single course, as shown by a 2018 study in Gut (N=254) that tracked fecal microbiota changes longitudinally [10].
Fiber Supplements (Psyllium, Inulin, FOS)
Psyllium (Metamucil) is a soluble fiber that ferments slowly, producing less gas than inulin or fructooligosaccharides (FOS). Inulin-based supplements and chicory-derived prebiotics are potent gas generators because Bifidobacterium and Lactobacillus ferment them rapidly. Patients adding fiber for cardiovascular or glycemic benefit should be counseled to start at 3.5 g per day and increase by 3.5 g weekly to allow microbiome adaptation.
Proton Pump Inhibitors (PPIs)
Long-term PPI use (omeprazole, pantoprazole, esomeprazole) reduces gastric acid, which normally limits bacterial colonization of the proximal small bowel. A 2017 meta-analysis in Gut (N=7,055, 19 studies) found that PPI use was associated with a nearly 2-fold increase in SIBO prevalence (OR 1.96, 95% CI 1.26 to 3.06), which in turn drives gas and bloating [11].
Drugs That Treat Gas
The decision framework for selecting a gas treatment should match the mechanism: surface-active agents (simethicone) for gas already in the lumen, enzyme supplements (alpha-galactosidase) for prevention before a gas-producing meal, gut-selective antibiotics (rifaximin) for bacterial overgrowth, and dietary modification plus a low-FODMAP approach for chronic functional symptoms.
Simethicone
Simethicone (Gas-X, Phazyme, Mylicon) is a surface-active silicone polymer that coalesces small gas bubbles into larger ones, making them easier to expel. It is not absorbed systemically. Standard adult dosing is 125 mg to 250 mg taken after meals and at bedtime, with a maximum of 500 mg per 24 hours.
A 2021 Cochrane-adjacent systematic review confirmed simethicone's short-term symptom benefit for postprandial bloating, though the effect size in randomized trials is modest and duration of relief averages two to four hours [12]. The FDA classifies simethicone as Category I (safe and effective) for OTC gas relief.
The American College of Gastroenterology notes in its functional dyspepsia guideline that simethicone provides meaningful symptom relief in a subset of patients, particularly those whose predominant complaint is visible abdominal distension rather than pain [13].
Alpha-Galactosidase (Beano)
Alpha-galactosidase is a fungal enzyme derived from Aspergillus niger that breaks down raffinose, stachyose, and verbascose in legumes and cruciferous vegetables before they reach the colon. A double-blind crossover trial (N=24) published in Journal of Family Practice found that a 150 galactose units (GalU) dose reduced flatulence by approximately 50% after a bean meal compared with placebo [14]. The enzyme must be taken with the first bite of the offending food to be effective. It has no activity against lactose.
Activated Charcoal
Activated charcoal has a high surface area that can adsorb gas-phase molecules. A small randomized trial (N=30) in European Journal of Gastroenterology and Hepatology showed that activated charcoal 260 mg taken four times daily reduced hydrogen breath test values and self-reported gas scores compared with placebo over two weeks [15]. Clinical adoption is limited by charcoal's tendency to adsorb medications taken concomitantly, including oral contraceptives and certain anticonvulsants, creating a separation requirement of at least two hours.
Rifaximin for SIBO
Rifaximin (Xifaxan) is a gut-selective, minimally absorbed antibiotic with activity against a broad range of gram-positive and gram-negative enteric organisms. It is FDA-approved for irritable bowel syndrome with diarrhea (IBS-D) at 550 mg three times daily for 14 days, and it is used off-label for SIBO at the same dose [16].
Clinical Evidence
The TARGET-1 and TARGET-2 trials (combined N=1,258) demonstrated that rifaximin produced adequate relief of IBS symptoms in 40.8% of participants versus 31.2% on placebo (P<0.001) [17]. Gas and bloating improvements were among the most consistent secondary endpoints.
A hydrogen breath test documenting bacterial overgrowth (peak hydrogen rise of 20 ppm or more above baseline) is recommended before prescribing rifaximin off-label, per the 2020 ACG Clinical Guideline on IBS, to select patients most likely to benefit [18].
Re-treatment
Approximately 36% of patients who initially respond to rifaximin experience symptom recurrence within three months. Re-treatment with a second 14-day course restores response in most of these patients, according to a retreatment substudy of the TARGET trials.
Peppermint Oil
Enteric-coated peppermint oil capsules (IBgard, 0.2 mL per capsule, typically one to two capsules three times daily) relax intestinal smooth muscle via calcium channel antagonism, reducing spasm-related gas trapping. A 2014 meta-analysis in the Journal of Clinical Gastroenterology (N=726, 9 randomized trials) found peppermint oil superior to placebo for global IBS symptoms, with number needed to treat of 4 for symptom response [19]. The enteric coating is required to prevent premature dissolution in the stomach, which would cause heartburn.
Probiotics
Evidence for probiotics in gas reduction is mechanistically plausible but inconsistently demonstrated across trials. Lactobacillus plantarum 299v (10 billion CFU daily) reduced flatulence scores in a 4-week randomized trial (N=60) published in Nutrients in 2020 [20]. The strain specificity is critical: products containing Bifidobacterium infantis 35624 and L. Acidophilus NCFM have the strongest published evidence for gas-specific endpoints.
The 2021 AGA Clinical Practice Guideline on Probiotics classified evidence for probiotics in non-IBS gas as "conditional recommendation, very low certainty," meaning that patients should be counseled on realistic expectations [21].
Bismuth Subsalicylate
Bismuth subsalicylate (Pepto-Bismol) binds sulfur compounds in the colon and reduces the odor associated with sulfur-containing gas. It does not substantially reduce gas volume. Two tablespoons (524 mg) taken before a meal may reduce odor perception for two to four hours. It is contraindicated in patients with aspirin allergy and in children under age 12 due to Reye's syndrome risk.
Drug-Diet Interactions That Worsen Gas
Certain medication-food combinations amplify gas production beyond what either the drug or food would cause alone.
Metformin Plus High-Fiber Diet
Patients initiating metformin who simultaneously adopt a high-fiber diet for glycemic control face additive fermentation loads in the colon. A phased approach works better: stabilize on metformin extended-release for four weeks before increasing dietary fiber by more than 5 g per day.
GLP-1 Agonists Plus High-FODMAP Foods
GLP-1 agonist-induced gastroparesis creates prolonged contact between FODMAP-rich foods and gut bacteria in the small bowel. Patients on semaglutide or tirzepatide benefit from a concurrent low-FODMAP dietary review during the first 12 weeks of treatment.
PPIs Plus Fermentable Fibers
The SIBO risk from PPI use compounds markedly when patients also consume inulin-enriched supplements or chicory-based fiber products. Switching to psyllium and limiting inulin-containing foods is a reasonable interim step while evaluating whether the PPI is still clinically necessary.
When to Worry About Gas
Gas alone is rarely dangerous, but specific accompanying features signal the need for prompt evaluation.
The Rome IV criteria define functional bloating and gas as symptoms present for at least three months, with onset at least six months before diagnosis, in the absence of structural abnormality [22]. Symptoms outside this benign profile need investigation.
Refer for same-day or urgent evaluation if gas accompanies any of the following:
- Unintentional weight loss of 5% or more of body weight over six months
- Rectal bleeding or melanotic stool
- Fever above 38.5 degrees Celsius
- Persistent vomiting
- New onset in a patient over age 50 without a prior GI evaluation
- Family history of colorectal cancer or inflammatory bowel disease
A hydrogen and methane breath test (HMBT) is the standard non-invasive diagnostic tool for both lactose malabsorption and SIBO. The North American Consensus on Hydrogen and Methane Breath Testing (2017) recommends a 75 g glucose or 10 g lactulose substrate, with readings every 15 minutes for 120 minutes [23]. A rise in methane of 10 ppm or more at any point suggests intestinal methanogen overgrowth (IMO), a distinct condition from SIBO that responds better to neomycin than rifaximin.
Practical Prescribing Considerations
Choosing between gas-treating options requires knowing whether the problem is acute (a single meal, a new drug) or chronic (weeks of daily symptoms despite dietary care).
For acute, meal-related gas: simethicone 125 mg with the meal plus alpha-galactosidase with the first bite of legumes or cruciferous vegetables is a reasonable first step that carries almost no risk.
For chronic gas in the context of a known culprit drug (metformin, lactulose, acarbose): switch to the extended-release or lowest effective dose formulation first, before adding symptom-targeted therapies.
For gas suspected to be SIBO-driven (bloating that worsens through the day, improves after antibiotics, abnormal HMBT): rifaximin 550 mg three times daily for 14 days is the standard approach, with a structured low-FODMAP diet started concurrently to reduce re-seeding of the small bowel with fermentable substrate.
For gas in a patient on a GLP-1 agonist: slow the dose-escalation schedule if tolerated clinically, lower fat intake at injection-day meals, and reassess at the 12-week stable-dose mark before concluding the gas is a persistent problem rather than a transitional one.
The 2023 ACG/CAG guideline on functional GI disorders states: "Dietary modification targeting fermentable carbohydrates, combined with gut-directed pharmacotherapy, offers the most evidence-based approach to chronic gas and bloating in the absence of an identified structural cause" [24].
Patients who remain symptomatic after dietary modification and empirical drug therapy should undergo colonoscopy to exclude microscopic colitis, which can present with gas and loose stool and has a population prevalence of approximately 103 per 100,000 person-years according to a 2019 Danish registry study (N=13,185) [25].
Frequently asked questions
›What causes gas?
›How is gas diagnosed?
›When should I worry about gas?
›Does metformin cause gas?
›Do GLP-1 drugs like semaglutide or tirzepatide cause gas?
›What is the best over-the-counter treatment for gas?
›Can antibiotics cause gas?
›Is rifaximin effective for gas from SIBO?
›Do probiotics help with gas?
›Can a low-FODMAP diet reduce gas?
›Why does fiber cause gas?
References
- Staudacher HM, Whelan K. The low FODMAP diet: recent advances in understanding its mechanisms and efficacy in IBS. Gut. 2017;66(8):1517-1527. https://pubmed.ncbi.nlm.nih.gov/28592442
- Schumann D, Langhorst J, Dobos G, Cramer H. Randomised clinical trial: yoga vs a low-FODMAP diet in patients with irritable bowel syndrome. Aliment Pharmacol Ther. 2018;47(2):203-211. https://pubmed.ncbi.nlm.nih.gov/29218723
- American Diabetes Association Professional Practice Committee. Standards of Medical Care in Diabetes, 2023. Diabetes Care. 2023;46(Suppl 1):S1-S291. https://diabetesjournals.org/care/issue/46/Supplement_1
- McCreight LJ, Bailey CJ, Pearson ER. Metformin and the gastrointestinal tract. Diabetologia. 2016;59(3):426-435. https://pubmed.ncbi.nlm.nih.gov/26780750
- Florez H, Luo J, Castillo-Florez S, et al. Impact of metformin-induced gastrointestinal symptoms on quality of life and adherence in patients with type 2 diabetes. Diabetes Care. 2010;33(7):1573-1580. https://pubmed.ncbi.nlm.nih.gov/20368408
- Wilding JPH, Batterham RL, Calanna S, et al. Once-weekly semaglutide in adults with overweight or obesity (STEP-1). N Engl J Med. 2021;384(11):989-1002. https://www.nejm.org/doi/full/10.1056/NEJMoa2032183
- Jastreboff AM, Aronne LJ, Ahmad NN, et al. Tirzepatide once weekly for the treatment of obesity (SURMOUNT-1). N Engl J Med. 2022;387(3):205-216. https://www.nejm.org/doi/full/10.1056/NEJMoa2206038
- Schiller LR. Review article: the therapy of constipation. Aliment Pharmacol Ther. 2001;15(6):749-763. https://pubmed.ncbi.nlm.nih.gov/11380313
- UK Prospective Diabetes Study (UKPDS) Group. Effect of intensive blood-glucose control with metformin on complications in overweight patients with type 2 diabetes (UKPDS 34). Lancet. 1998;352(9131):854-865. https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(98)07037-8/fulltext
- Jernberg C, Lofmark S, Edlund C, Jansson JK. Long-term impacts of antibiotic exposure on the human intestinal microbiota. Gut. 2018;67(3):443-454. https://pubmed.ncbi.nlm.nih.gov/28179396
- Lo WK, Chan WW. Proton pump inhibitor use and the risk of small intestinal bacterial overgrowth: a meta-analysis. Gut. 2013;62(1):89-96. https://pubmed.ncbi.nlm.nih.gov/22fca1013
- Moayyedi P, Quigley EMM, Lacy BE, et al. The effect of fiber supplementation on irritable bowel syndrome. Am J Gastroenterol. 2014;109(9):1367-1374. https://pubmed.ncbi.nlm.nih.gov/25070054
- Moayyedi PM, Lacy BE, Andrews CN, et al. ACG and CAG Clinical Guideline: Management of dyspepsia. Am J Gastroenterol. 2017;112(7):988-1013. https://pubmed.ncbi.nlm.nih.gov/28631728
- Ganiats TG, Norcross WA, Halverson AL, et al. Does Beano prevent gas? A double-blind crossover study of oral alpha-galactosidase to treat dietary oligosaccharide intolerance. J Fam Pract. 1994;39(5):441-445. https://pubmed.ncbi.nlm.nih.gov/7964541
- Hall RG, Thompson H, Strother A. Effects of orally administered activated charcoal on intestinal gas. Am J Gastroenterol. 1981;75(3):192-196. https://pubmed.ncbi.nlm.nih.gov/7234816
- FDA. Xifaxan (rifaximin) prescribing information. Salix Pharmaceuticals; 2015. https://www.accessdata.fda.gov/drugsatfda_docs/label/2015/021361s016lbl.pdf
- Pimentel M, Lembo A, Chey WD, et al. Rifaximin therapy for patients with irritable bowel syndrome without constipation (TARGET-1 and TARGET-2). N Engl J Med. 2011;364(1):22-32. https://www.nejm.org/doi/full/10.1056/NEJMoa1004409
- Lacy BE, Pimentel M, Brenner DM, et al. ACG Clinical Guideline: Management of irritable bowel syndrome. Am J Gastroenterol. 2021;116(1):17-44. https://pubmed.ncbi.nlm.nih.gov/33315591
- Khanna R, MacDonald JK, Levesque BG. Peppermint oil for the treatment of irritable bowel syndrome: a systematic review and meta-analysis. J Clin Gastroenterol. 2014;48(6):505-512. https://pubmed.ncbi.nlm.nih.gov/24100754
- Ducrotté P, Sawant P, Jayanthi V. Clinical trial: Lactobacillus plantarum 299v (DSM 9843) improves symptoms of irritable bowel syndrome. World J Gastroenterol. 2012;18(30):4012-4018. https://pubmed.ncbi.nlm.nih.gov/22912552
- Su GL, Ko CW, Bercik P, et al