Gas: Drugs That Cause or Treat It

At a glance
- Common medication contributors / metformin, lactulose, alpha-glucosidase inhibitors, and medicines that slow gastrointestinal movement
- Best first step / compare symptom timing with medicine starts, dose changes, meals, bowel habits, and other symptoms
- OTC reality / simethicone may help some people, while alpha-galactosidase targets gas from particular carbohydrates
- Prescription reality / rifaximin is FDA-approved for IBS with diarrhea, not for undiagnosed gas
- Important distinction / bloating is a sensation or visible distension; flatulence is passage of intestinal gas
- Do not self-adjust / changing a diabetes, weight-management, laxative, or acid-suppression medicine can create other risks
- Seek prompt care / severe or persistent abdominal pain, repeated vomiting, blood or black stool, marked swelling, inability to pass stool or gas, fainting, or dehydration
Why a Medicine Can Cause Gas
Intestinal gas comes mainly from swallowed air and bacterial fermentation of material that reaches the colon. A medicine can increase symptoms without literally “creating gas.” It may leave more carbohydrate available for fermentation, slow or accelerate transit, cause constipation, or change the gut microbial community. People also perceive the same amount of gas differently, especially when the bowel is sensitive or distended.
Bloating and flatulence are therefore not interchangeable diagnoses. A person may feel pressure with little extra gas, or pass more gas without pain. This matters because a product marketed for “gas” will not correct every cause of abdominal fullness.
The timing is often more informative than an internet list. Useful details include:
- whether symptoms began after a new medicine or dose increase;
- whether they occur after particular meals;
- whether constipation or diarrhea started at the same time;
- whether symptoms improve on days a prescribed medicine is missed accidentally; and
- whether there are warning signs such as bleeding, vomiting, fever, progressive pain, or weight loss.
That history helps a clinician decide whether the medicine is a plausible contributor and whether a formulation, dose, timing, or entirely different diagnosis deserves attention.
Medicines Commonly Associated With Gas or Bloating
Metformin
Metformin commonly causes gastrointestinal adverse effects. The current extended-release label lists diarrhea, nausea/vomiting, flatulence, indigestion, and abdominal discomfort among reported reactions. It also instructs patients to take the medicine with food and provides a prescriber-directed titration schedule. Those label instructions are not a reason to change an individual regimen without the clinician managing diabetes. See the current metformin extended-release prescribing information.
If symptoms began with metformin, the useful question is not simply “Does metformin cause gas?” but whether the symptom burden, glucose-control plan, kidney function, formulation, and dose can be reviewed together. Extended-release products may be better tolerated by some people, but switching is an individualized prescribing decision.
Lactulose
Lactulose reaches the colon, where bacteria break it down. Its current label says initial use may produce flatulence and intestinal cramps and that excessive dosing can cause diarrhea with fluid and electrolyte consequences. Lactulose also has different clinical uses, including constipation and lowering ammonia in portal-systemic encephalopathy, so abruptly reducing it can be consequential. See the current lactulose prescribing information.
Acarbose and related medicines
Alpha-glucosidase inhibitors delay breakdown of carbohydrates in the small intestine. More carbohydrate then reaches colonic bacteria, making flatulence a predictable pharmacologic effect. The same mechanism explains why the symptom may track meals. The safest response is a medication review, not skipping meals or improvising a dose change.
Tirzepatide and other medicines that alter gastrointestinal movement
The current Zepbound label states that tirzepatide delays gastric emptying and lists gastrointestinal adverse reactions, including abdominal distension and eructation. Nausea, diarrhea, vomiting, and constipation are more prominent in its trial tables than flatulence. New abdominal symptoms on these medicines need context because delayed emptying, constipation, gallbladder disease, pancreatitis, and an unrelated gastrointestinal illness do not call for the same response. See the current Zepbound prescribing information.
Proton pump inhibitors and antibiotics
Acid-suppressing medicines and antibiotics can alter the intestinal environment, but the relationship is not simple enough to diagnose by symptoms. A meta-analysis found an association between proton pump inhibitor use and small intestinal bacterial overgrowth, with results influenced by the diagnostic method. Association does not prove that a PPI caused one person’s gas, and it does not justify stopping an indicated PPI. The study is Proton pump inhibitor use and the risk of small intestinal bacterial overgrowth: a meta-analysis.
Antibiotics can also cause diarrhea or abdominal symptoms, but using another antibiotic to “reset” the microbiome is not an evidence-based self-treatment. Persistent or severe diarrhea during or after antibiotics deserves medical review, particularly when accompanied by fever, blood, dehydration, or significant pain.
Medicines and Products Used for Gas
The most defensible treatment framework is cause first, product second.
Simethicone
Simethicone changes the surface tension of gas bubbles so they combine and can be expelled more readily. It does not treat lactose intolerance, constipation, inflammatory disease, an obstruction, or a medication’s underlying effect on motility. Some people find it useful for short-term relief, but a lack of response is not evidence of a dangerous disease or proof of bacterial overgrowth. Follow the label for the exact product and ask a pharmacist about age limits or interactions when the product contains additional ingredients.
Alpha-galactosidase
Alpha-galactosidase breaks down certain complex carbohydrates found in foods such as beans before colonic bacteria ferment them. It is a targeted option for food-related gas, not a general treatment for every bloating symptom. It does not digest lactose and does not reverse a prescription medicine’s adverse effect. Product instructions matter because formulations and enzyme units differ.
Lactase
Lactase can reduce symptoms when lactose malabsorption is the actual trigger. A symptom diary that compares dairy type, amount, timing, and symptoms can be more useful than removing many foods at once. Persistent symptoms despite lactose reduction should prompt reconsideration of the cause rather than repeated escalation of supplements.
Rifaximin
Rifaximin is a prescription antibiotic. Its current US label includes irritable bowel syndrome with diarrhea (IBS-D), travelers’ diarrhea caused by susceptible noninvasive strains of Escherichia coli, and reduction in the risk of overt hepatic encephalopathy recurrence. “Gas” and small intestinal bacterial overgrowth are not stand-alone FDA-approved indications on that label. See the current Xifaxan prescribing information.
In two randomized trials of patients with IBS without constipation, rifaximin improved a composite of IBS symptoms more often than placebo. That does not mean it is the right treatment for any person with flatulence. The exact study is Rifaximin therapy for patients with irritable bowel syndrome without constipation. The American College of Gastroenterology guideline addresses rifaximin in IBS-D as part of a broader diagnostic and treatment strategy: ACG Clinical Guideline: Management of Irritable Bowel Syndrome.
Breath testing, IBS, food intolerance, constipation, and medication adverse effects each require different interpretation. A test result should be read in clinical context rather than used as a universal gateway to antibiotics.
Activated charcoal and probiotics
Evidence and product quality are inconsistent for activated charcoal and many probiotic products. Charcoal can bind medicines in the gut and can turn stool black, which may complicate assessment of bleeding. Probiotic effects are strain- and condition-specific; a result for one named strain should not be generalized to every supplement. Neither category should delay evaluation of warning symptoms.
A Practical Medication Review
Bring a complete list of prescriptions, over-the-counter products, vitamins, fiber products, sweeteners, and supplements. For each one, record when it started, any recent dose or formulation change, and the relationship to symptoms. A brief meal and bowel-habit log can reveal whether the pattern is more consistent with a medicine, constipation, dairy, fermentable carbohydrates, or another cause.
A clinician or pharmacist can then consider:
- whether the suspected drug is known to cause the observed symptom;
- whether the timing supports that explanation;
- whether stopping or changing it would create greater risk;
- whether a different formulation or schedule is supported for that medicine;
- whether another drug, supplement, or food is a better explanation; and
- whether testing is appropriate instead of an empirical treatment.
Avoid making several changes at once. Multiple simultaneous eliminations may make symptoms improve, but they also make it impossible to know which change mattered and can unnecessarily restrict nutrition or destabilize treatment.
When Gas Needs Medical Assessment
Gas that is mild, intermittent, and clearly related to a food or new medicine is often suitable for a routine medication review. Seek prompt assessment when symptoms are severe, progressive, or accompanied by repeated vomiting, blood or black stool, fever, fainting, dehydration, a rigid or markedly swollen abdomen, or inability to pass stool or gas. Sudden chest pressure, shortness of breath, or pain radiating to the arm or jaw should not be assumed to be “just gas.”
Persistent symptoms also deserve evaluation when they disrupt sleep or daily activities, cause unintended weight loss, follow recent abdominal surgery, or occur with a major change in bowel habits. The appropriate workup depends on the full pattern; colonoscopy, imaging, and breath testing are not mandatory for every person with flatulence.
Frequently asked questions
Which medicines commonly cause gas?
Should I stop metformin if it causes gas?
Is rifaximin a treatment for ordinary gas?
What is the difference between simethicone and alpha-galactosidase?
Can a GLP-1 or tirzepatide medicine cause bloating?
When is gas an emergency?
References
- DailyMed. Metformin hydrochloride extended-release tablets, prescribing information. Updated May 2026. https://dailymed.nlm.nih.gov/dailymed/lookup.cfm?setid=0e7b02cc-2ddc-4394-a80c-128e6452d697
- DailyMed. Lactulose solution, prescribing information. Updated January 2026. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=d6975cd8-80e0-43e2-809a-175ea7e40715
- DailyMed. Zepbound (tirzepatide) injection, prescribing information. Revised April 2026. https://dailymed.nlm.nih.gov/dailymed/lookup.cfm?setid=487cd7e7-434c-4925-99fa-aa80b1cc776b
- Lo WK, Chan WW. Proton pump inhibitor use and the risk of small intestinal bacterial overgrowth: a meta-analysis. Clin Gastroenterol Hepatol. 2013. https://pubmed.ncbi.nlm.nih.gov/23270866/
- DailyMed. Xifaxan (rifaximin) tablets, prescribing information. https://dailymed.nlm.nih.gov/dailymed/lookup.cfm?setid=c5e8e2fd-7087-4b78-9181-cc259c0be2f1
- Pimentel M, Lembo A, Chey WD, et al. Rifaximin therapy for patients with irritable bowel syndrome without constipation. N Engl J Med. 2011. https://pubmed.ncbi.nlm.nih.gov/21208106/
- Lacy BE, Pimentel M, Brenner DM, et al. ACG Clinical Guideline: Management of Irritable Bowel Syndrome. Am J Gastroenterol. 2021. https://pubmed.ncbi.nlm.nih.gov/33315591/