Gas: What Could Be Causing It

Clinical medical image for symptoms gas: Gas: What Could Be Causing It

At a glance

  • Normal flatus frequency / 8, 20 episodes per day in healthy adults
  • Primary gas source / colonic bacterial fermentation of undigested carbohydrates
  • Most common dietary triggers / lactose, fructose, sorbitol, raffinose, resistant starch
  • SIBO prevalence in IBS patients / 30 to 85% depending on diagnostic method
  • Hydrogen breath test sensitivity / 55 to 77% for SIBO detection
  • Lactose malabsorption prevalence / approximately 68% of the global adult population
  • Low-FODMAP diet response rate / 50 to 80% symptom improvement in IBS
  • Rifaximin course for SIBO / 550 mg three times daily for 14 days
  • Time to seek evaluation / persistent symptoms beyond 2 weeks with weight loss, blood in stool, or nocturnal symptoms

The Physiology of Intestinal Gas Production

Your colon is a fermentation chamber. Undigested carbohydrates arriving in the large intestine feed resident bacteria that produce hydrogen, methane, and carbon dioxide as metabolic byproducts. This is normal. The volume produced depends on substrate availability, bacterial composition, and colonic transit time.

Healthy adults produce 500, 1,500 mL of intestinal gas daily and pass flatus 8, 20 times per 24 hours, according to data published in the American Journal of Gastroenterology [1]. Gas becomes a clinical problem when volume exceeds this range, when it causes distension and pain, or when altered visceral sensitivity amplifies the perception of normal gas volumes. The Rome IV criteria classify functional bloating and distension as distinct from IBS, though overlap is substantial [2].

Three mechanisms generate intestinal gas. Aerophagia (air swallowing) introduces nitrogen and oxygen. Bacterial fermentation produces hydrogen and carbon dioxide. Methanogenic archaea convert hydrogen to methane in approximately 30 to 50% of adults [3]. A fourth, minor source is diffusion of carbon dioxide from bicarbonate neutralization of gastric acid in the duodenum.

Dietary Causes: FODMAPs, Fiber, and Fermentable Substrates

Diet is the single most common explanation for excessive gas. Fermentable oligosaccharides, disaccharides, monosaccharides, and polyols (FODMAPs) resist absorption in the small intestine and become substrate for colonic bacteria.

The landmark Monash University trials demonstrated that a low-FODMAP diet reduces bloating and flatulence in 50 to 80% of IBS patients [4]. Specific high-FODMAP foods include onions, garlic, wheat, beans, lentils, apples, pears, and artificial sweeteners containing sorbitol or mannitol. Resistant starch in cooled potatoes and retrograded rice also escapes small-bowel digestion.

Lactose deserves special mention. Approximately 68% of the world's adult population has lactose malabsorption [5]. In these individuals, undigested lactose reaches the colon and undergoes rapid fermentation. A 25-gram lactose hydrogen breath test remains the standard diagnostic tool, with a rise of 20 parts per million above baseline considered positive.

Soluble fiber supplements (psyllium, inulin) increase gas production during the first 1 to 2 weeks of use. Most patients adapt. Insoluble fiber (wheat bran) produces less gas but may worsen bloating through mechanical distension in slow-transit patients.

Small Intestinal Bacterial Overgrowth (SIBO)

SIBO occurs when bacteria colonize the small intestine in abnormally high concentrations, typically defined as greater than 10^5 colony-forming units per milliliter on jejunal aspirate culture. These bacteria ferment nutrients before they can be absorbed, generating hydrogen or methane gas in the proximal gut rather than the colon.

Prevalence estimates in IBS populations range from 30% to 85%, a wide band that reflects inconsistent diagnostic methodology [6]. The glucose hydrogen breath test has a sensitivity of 55 to 77% and specificity of 44 to 83% for SIBO, while lactulose breath testing has higher sensitivity but lower specificity due to rapid colonic fermentation [7].

Risk factors for SIBO include proton pump inhibitor (PPI) use for more than one year, prior abdominal surgery (especially ileocecal valve resection), diabetic gastroparesis, scleroderma, opioid use, and anatomic abnormalities such as small-bowel diverticula. Patients on chronic PPIs showed a 2.3-fold increased risk of SIBO in a meta-analysis of 19 studies (N=7,055) published in the Journal of Gastroenterology [8].

Rifaximin 550 mg three times daily for 14 days is the first-line treatment for hydrogen-predominant SIBO. The TARGET-3 trial (N=2,438) demonstrated that rifaximin produced sustained relief in 36.7% of IBS-D patients vs. 31.7% placebo at 12 weeks post-treatment [9]. For methane-predominant overgrowth (now termed intestinal methanogen overgrowth, or IMO), combination therapy with rifaximin plus neomycin or metronidazole is preferred, as methanogenic archaea are resistant to rifaximin monotherapy.

Irritable Bowel Syndrome and Visceral Hypersensitivity

IBS affects 10 to 15% of adults globally and gas-related symptoms rank among the most burdensome complaints [10]. The pathophysiology involves altered gut-brain signaling, visceral hypersensitivity, and disordered motility rather than excess gas production alone.

Barostat studies show that IBS patients perceive discomfort at lower rectal distension volumes compared to controls. A patient with IBS may produce a normal volume of gas but experience it as severely painful. This distinction matters for treatment selection: reducing gas production helps some patients, but neuromodulation (low-dose tricyclic antidepressants, gut-directed hypnotherapy) may be more effective for those with hypersensitivity [11].

The ACG 2021 clinical guideline on IBS recommends the low-FODMAP diet as a conditional recommendation, peppermint oil (enteric-coated, 180 to 200 mg three times daily) for global symptom improvement, and rifaximin for IBS-D with bloating [12]. Probiotics receive a conditional recommendation, though strain-specific evidence is limited. Bifidobacterium infantis 35624 showed significant improvement in bloating composite scores in a randomized trial (N=362) [13].

Carbohydrate Malabsorption Beyond Lactose

Fructose malabsorption affects an estimated 30 to 40% of the Western population [14]. Unlike hereditary fructose intolerance, this is a dose-dependent absorption-capacity issue. The small intestine absorbs fructose via GLUT5 transporters, which saturate at approximately 25 grams per sitting in susceptible individuals. High-fructose corn syrup, agave, honey, and large apple or pear servings can overwhelm this capacity.

Sucrase-isomaltase deficiency, once considered rare, may affect 2 to 9% of European-descent populations in heterozygous form. These patients malabsorb sucrose and starch, producing gas and osmotic diarrhea after starch-heavy meals. Genetic testing or a sucrose breath test can confirm the diagnosis.

Trehalose intolerance is emerging as a recognized entity following the widespread introduction of trehalose as a food additive after 2001. Patients with reduced trehalase activity ferment this disaccharide in the colon, producing gas and cramping after consuming processed foods, mushrooms, or shellfish containing trehalose.

Celiac Disease and Non-Celiac Gluten Sensitivity

Celiac disease should be excluded in any patient with chronic unexplained gas, especially when accompanied by iron deficiency, diarrhea, or a family history. Tissue transglutaminase IgA antibody testing has a sensitivity of 93 to 96% and specificity of 96 to 98% for untreated celiac disease [15]. Total IgA must be measured simultaneously to rule out selective IgA deficiency, which occurs in 2 to 3% of celiac patients and produces false-negative serology.

The prevalence of celiac disease is approximately 1% globally but rises to 3 to 5% in first-degree relatives. Gas and bloating may be the sole presenting symptom in "silent" celiac disease detected on screening.

Non-celiac gluten sensitivity (NCGS) is more controversial. A double-blind crossover trial (N=59) found that fructans, not gluten, drove symptoms in self-reported gluten-sensitive individuals [16]. This suggests that many patients attributing gas to gluten are actually reacting to FODMAP content in wheat rather than the gluten protein itself.

Gastroparesis and Motility Disorders

Delayed gastric emptying produces upper abdominal bloating, early satiety, and belching. Gas accumulates in the stomach and proximal small bowel rather than the colon. Diabetic gastroparesis (present in 20 to 50% of longstanding type 1 or type 2 diabetes) is the most common recognized cause, though idiopathic gastroparesis accounts for roughly 35% of cases [17].

A 4-hour gastric emptying scintigraphy with a standardized egg-white meal remains the gold standard. Retention of more than 10% at 4 hours is diagnostic. Wireless motility capsule (SmartPill) provides complementary data on whole-gut transit and is useful when scintigraphy is equivocal.

Chronic intestinal pseudo-obstruction and colonic inertia produce gas retention through impaired propulsive motility. These are rare but should be considered in patients with severe distension and radiographic evidence of dilated bowel without mechanical obstruction.

Medication-Induced Gas

Several drug classes increase intestinal gas production or alter motility in ways that trap gas. Metformin causes gas and bloating in 20 to 30% of users during the first 4 to 8 weeks, largely through osmotic effects and altered bile acid metabolism [18]. Extended-release formulations reduce but do not eliminate this side effect.

Acarbose and miglitol (alpha-glucosidase inhibitors) block starch digestion intentionally, shunting undigested carbohydrate to the colon for fermentation. Gas is an expected pharmacologic consequence, not an adverse reaction, and affects 50 to 70% of users.

GLP-1 receptor agonists (semaglutide, tirzepatide) slow gastric emptying and can produce upper abdominal bloating, nausea, and eructation, particularly during dose escalation. In STEP-1 (N=1,961), gastrointestinal events occurred in 74.2% of the semaglutide group vs. 47.9% placebo [19]. Most events were mild to moderate and transient.

PPIs reduce gastric acid, raising intragastric pH and potentially favoring bacterial colonization of the upper GI tract. Chronic PPI use is an independent risk factor for SIBO, as noted above.

The Diagnostic Workup for Persistent Gas

A systematic approach prevents unnecessary testing while catching organic disease. Start with a detailed dietary history (ideally a 7-day food and symptom diary), medication reconciliation, and review for alarm features: unintentional weight loss exceeding 5% over 6 months, rectal bleeding, nocturnal symptoms, new onset after age 50, or family history of colorectal cancer or inflammatory bowel disease.

"The single most cost-effective first step in evaluating chronic gas is a 2-week elimination diet targeting major FODMAPs, combined with a food-symptom diary," states the 2021 British Society of Gastroenterology guideline on IBS management [20].

Initial laboratory testing should include complete blood count, C-reactive protein, tissue transglutaminase IgA with total IgA, and thyroid-stimulating hormone. If SIBO is suspected, glucose or lactulose hydrogen breath testing should follow. Fecal calprotectin (cutoff <50 µg/g) effectively excludes inflammatory bowel disease in patients without alarm features, with a negative predictive value exceeding 95% [21].

Colonoscopy is indicated for patients over 45 who are not up to date on colorectal cancer screening, or for any patient with alarm features. For patients under 45 meeting Rome IV criteria for IBS without alarm features, colonoscopy is not routinely recommended.

Treatment Strategies by Mechanism

Treatment should target the identified mechanism. For dietary causes, a dietitian-guided low-FODMAP elimination and reintroduction protocol over 6 to 8 weeks identifies individual triggers while avoiding unnecessary long-term restriction. Long-term strict FODMAP restriction is discouraged because it reduces Bifidobacterium populations and dietary diversity.

For SIBO, rifaximin is first-line. Recurrence rates reach 40 to 50% at 9 months, so prokinetic agents (low-dose erythromycin 50 to 100 mg at bedtime, or prucalopride 1 to 2 mg daily) are recommended as SIBO relapse prevention [22].

Simethicone (80 to 125 mg four times daily) reduces surface tension of gas bubbles but has modest efficacy in controlled trials. Alpha-galactosidase (Beano) helps with raffinose-containing foods (beans, cruciferous vegetables) specifically.

Peppermint oil (IBgard 180 mg, two capsules twice daily) acts as an L-type calcium channel antagonist in intestinal smooth muscle, reducing spasm and gas trapping. A meta-analysis of 12 RCTs (N=835) found peppermint oil superior to placebo for global IBS symptoms (RR 2.39 to 95% CI 1.93, 2.97) [23].

For visceral hypersensitivity without excess gas production, low-dose amitriptyline (10 to 25 mg at bedtime) or gut-directed cognitive behavioral therapy reduces symptom severity. The ATLANTIS trial (N=463) confirmed amitriptyline's superiority over placebo for IBS symptom scores at 6 months in primary care [24].

When Gas Signals Something Serious

Most gas is benign. But certain patterns require prompt evaluation. New-onset bloating with ascites suggests liver disease or peritoneal malignancy. Progressive distension with obstipation may indicate mechanical obstruction. Gas with steatorrhea (fatty, foul-smelling stools) points toward pancreatic exocrine insufficiency or extensive mucosal disease.

Ovarian cancer presents with bloating as a primary symptom in 70% of cases, and the symptom is frequently dismissed. The NICE guideline recommends CA-125 measurement in women over 50 with persistent bloating occurring 12 or more times per month [25]. This is not gas in the flatulence sense, but patients often describe the sensation interchangeably with "gassiness."

Frequently asked questions

What causes gas?
Gas results from swallowed air and bacterial fermentation of undigested carbohydrates in the colon. The most common dietary triggers are FODMAPs including lactose, fructose, sorbitol, and raffinose found in beans, onions, wheat, and certain fruits.
How is gas diagnosed?
Diagnosis begins with a food-symptom diary and dietary history. Laboratory tests include celiac serology and CRP. Hydrogen breath testing can identify lactose or fructose malabsorption and SIBO. Fecal calprotectin rules out inflammatory bowel disease in patients without alarm features.
When should I worry about gas?
Seek evaluation if gas is accompanied by unintentional weight loss exceeding 5%, rectal bleeding, nocturnal symptoms waking you from sleep, new onset after age 50, progressive worsening over weeks, or iron deficiency anemia.
Can stress cause gas?
Yes. The gut-brain axis modulates motility and visceral sensitivity. Psychological stress increases colonic motor activity and heightens perception of normal gas volumes. Gut-directed hypnotherapy and cognitive behavioral therapy reduce gas-related symptoms in IBS patients.
Does SIBO cause gas?
SIBO is a common cause of excessive gas, particularly in the upper abdomen. Bacteria in the small intestine ferment nutrients prematurely, producing hydrogen or methane before absorption occurs. Treatment with rifaximin 550 mg three times daily for 14 days is first-line therapy.
What foods cause the most gas?
Beans, lentils, onions, garlic, wheat, apples, pears, dairy (in lactose-intolerant individuals), cruciferous vegetables (broccoli, cabbage, cauliflower), and sugar alcohols (sorbitol, mannitol) found in sugar-free products are the most common gas-producing foods.
Is excessive gas a sign of cancer?
Excessive flatulence alone is rarely a sign of cancer. However, persistent bloating and distension, particularly new-onset in women over 50, warrants evaluation for ovarian cancer. Bloating with weight loss or change in stool caliber should prompt colorectal cancer screening.
Do probiotics help with gas?
Some strain-specific probiotics reduce gas. Bifidobacterium infantis 35624 showed improvement in bloating scores in a randomized trial of 362 IBS patients. However, multi-strain commercial probiotics have inconsistent evidence, and some may worsen gas during the initial 1-2 weeks of use.
How long does it take for gas to go away on a low-FODMAP diet?
Most patients notice improvement within 2-4 weeks on a strict low-FODMAP elimination phase. The full protocol takes 6-8 weeks including systematic reintroduction of individual FODMAP groups to identify personal triggers.
Can GLP-1 medications cause gas?
GLP-1 receptor agonists like semaglutide and tirzepatide slow gastric emptying and can cause upper abdominal bloating, nausea, and belching, especially during dose escalation. In STEP-1 to 74.2% of semaglutide users reported gastrointestinal events, though most resolved within weeks.
What is the difference between gas and bloating?
Gas refers to the passage of flatus or belching. Bloating is the subjective sensation of abdominal fullness or pressure. Distension is the measurable increase in abdominal girth. These often coexist but have different mechanisms and may require different treatments.
Does metformin cause gas?
Yes. Metformin causes gas and bloating in 20-30% of users during the first 4-8 weeks, primarily through osmotic effects and altered bile acid metabolism in the colon. Extended-release metformin reduces but does not eliminate this side effect.

References

  1. Tomlin J, Lowis C, Read NW. Investigation of normal flatus production in healthy volunteers. Gut. 1991;32(6):665-669. https://pubmed.ncbi.nlm.nih.gov/2060877/
  2. Lacy BE, Mearin F, Chang L, et al. Bowel disorders. Gastroenterology. 2016;150(6):1393-1407. https://pubmed.ncbi.nlm.nih.gov/27144627/
  3. Levitt MD, Furne JK, Kuskowski M, Ruddy J. Stability of human methanogenic flora over 35 years and a review of insights obtained from breath methane measurements. Clin Gastroenterol Hepatol. 2006;4(2):123-129. https://pubmed.ncbi.nlm.nih.gov/16469670/
  4. Halmos EP, Power VA, Shepherd SJ, Gibson PR, Muir JG. A diet low in FODMAPs reduces symptoms of irritable bowel syndrome. Gastroenterology. 2014;146(1):67-75. https://pubmed.ncbi.nlm.nih.gov/24076059/
  5. Storhaug CL, Fosse SK, Fadnes LT. Country, regional, and global estimates for lactose malabsorption in adults: a systematic review and meta-analysis. Lancet Gastroenterol Hepatol. 2017;2(10):738-746. https://pubmed.ncbi.nlm.nih.gov/28690131/
  6. Ghoshal UC, Shukla R, Ghoshal U. Small intestinal bacterial overgrowth and irritable bowel syndrome: a bridge between functional organic dichotomy. Gut Liver. 2017;11(2):196-208. https://pubmed.ncbi.nlm.nih.gov/28274108/
  7. Rezaie A, Buresi M, Lembo A, et al. Hydrogen and methane-based breath testing in gastrointestinal disorders: the North American Consensus. Am J Gastroenterol. 2017;112(5):775-784. https://pubmed.ncbi.nlm.nih.gov/28323273/
  8. Su T, Lai S, Lee A, He X, Chen S. Meta-analysis: proton pump inhibitors moderately increase the risk of small intestinal bacterial overgrowth. J Gastroenterol. 2018;53(1):27-36. https://pubmed.ncbi.nlm.nih.gov/28770351/
  9. Lembo A, Pimentel M, Rao SS, et al. Repeat treatment with rifaximin is safe and effective in patients with diarrhea-predominant irritable bowel syndrome. Gastroenterology. 2016;151(6):1113-1121. https://pubmed.ncbi.nlm.nih.gov/27528177/
  10. Sperber AD, Bangdiwala SI, Drossman DA, et al. Worldwide prevalence and burden of functional gastrointestinal disorders, results of Rome Foundation Global Study. Gastroenterology. 2021;160(1):99-114. https://pubmed.ncbi.nlm.nih.gov/32294476/
  11. Simrén M, Törnblom H, Palsson OS, et al. Visceral hypersensitivity is associated with GI symptom severity in functional GI disorders. Gut. 2018;67(2):255-262. https://pubmed.ncbi.nlm.nih.gov/28100581/
  12. 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/
  13. Whorwell PJ, Altringer L, Morel J, et al. Efficacy of an encapsulated probiotic Bifidobacterium infantis 35624 in women with irritable bowel syndrome. Am J Gastroenterol. 2006;101(7):1581-1590. https://pubmed.ncbi.nlm.nih.gov/16863564/
  14. Wilder-Smith CH, Materna A, Werber C, Olano J. Fructose and lactose intolerance and malabsorption testing: the relationship with symptoms in functional gastrointestinal disorders. Aliment Pharmacol Ther. 2013;37(11):1074-1083. https://pubmed.ncbi.nlm.nih.gov/23574302/
  15. Lebwohl B, Sanders DS, Green PHR. Coeliac disease. Lancet. 2018;391(10115):70-81. https://pubmed.ncbi.nlm.nih.gov/28760445/
  16. Skodje GI, Sarna VK, Minelle IH, et al. Fructan, rather than gluten, induces symptoms in patients with self-reported non-celiac gluten sensitivity. Gastroenterology. 2018;154(3):529-539. https://pubmed.ncbi.nlm.nih.gov/29102613/
  17. Parkman HP, Yates K, Hasler WL, et al. Clinical features of idiopathic gastroparesis vary with sex, body mass, symptom onset, delay in gastric emptying, and gastroparesis severity. Gastroenterology. 2011;140(1):101-115. https://pubmed.ncbi.nlm.nih.gov/20965184/
  18. McCreight LJ, Bailey CJ, Pearson ER. Metformin and the gastrointestinal tract. Diabetologia. 2016;59(3):426-435. https://pubmed.ncbi.nlm.nih.gov/26780750/
  19. Wilding JPH, Batterham RL, Calanna S, et al. Once-weekly semaglutide in adults with overweight or obesity. N Engl J Med. 2021;384(11):989-1002. https://pubmed.ncbi.nlm.nih.gov/33567185/
  20. Vasant DH, Paine PA, Black CJ, et al. British Society of Gastroenterology guidelines on the management of irritable bowel syndrome. Gut. 2021;70(7):1214-1240. https://pubmed.ncbi.nlm.nih.gov/33903147/
  21. van Rheenen PF, Van de Vijver E, Fidler V. Faecal calprotectin for screening of patients with suspected inflammatory bowel disease: diagnostic meta-analysis. BMJ. 2010;341:c3369. https://pubmed.ncbi.nlm.nih.gov/20634346/
  22. Pimentel M, Saad RJ, Long MD, Rao SSC. ACG Clinical Guideline: Small Intestinal Bacterial Overgrowth. Am J Gastroenterol. 2020;115(2):165-178. https://pubmed.ncbi.nlm.nih.gov/32023228/
  23. Alammar N, Wang L, Saberi B, et al. The impact of peppermint oil on the irritable bowel syndrome: a meta-analysis of the pooled clinical data. BMC Complement Altern Med. 2019;19(1):21. https://pubmed.ncbi.nlm.nih.gov/30654773/
  24. Ford AC, Wright-Hughes A, Alderson SL, et al. Amitriptyline at low-dose and titrated for irritable bowel syndrome as second-line treatment in primary care (ATLANTIS): a randomised, double-blind, placebo-controlled, phase 3 trial. Lancet. 2023;402(10414):1773-1785. https://pubmed.ncbi.nlm.nih.gov/37858323/
  25. National Institute for Health and Care Excellence. Ovarian cancer: recognition and initial management (NG122). 2011, updated 2023. https://www.ncbi.nlm.nih.gov/books/NBK555588/