Gas: Labs, Diagnosis, and Next Steps

At a glance
- Normal flatus frequency / 13 to 21 episodes per day
- Most common cause / swallowed air and colonic fermentation of undigested carbohydrates
- First-line lab screen / CBC, CRP, celiac panel (tTG-IgA), stool calprotectin
- SIBO detection / lactulose or glucose hydrogen breath test
- Lactose malabsorption / hydrogen breath test after 25 g lactose load
- Pancreatic insufficiency / fecal elastase-1 (values below 200 mcg/g are abnormal)
- Red-flag symptoms / unintentional weight loss, rectal bleeding, new onset after age 50, nocturnal symptoms
- First behavioral step / 2-week food and symptom diary before any testing
- Empiric dietary trial / low-FODMAP diet for 4 to 6 weeks with dietitian guidance
Why Gas Happens: The Physiology
Gas in the gastrointestinal tract comes from two sources: swallowed air (aerophagia) and bacterial fermentation of undigested substrates in the colon. Nitrogen, oxygen, carbon dioxide, hydrogen, and methane make up more than 99% of flatus composition. The smell comes from trace sulfur-containing compounds like hydrogen sulfide and methanethiol.
Swallowed Air
Every swallow carries 2 to 3 mL of air into the esophagus. Rapid eating, carbonated beverages, gum chewing, and mouth breathing all increase aerophagia. Most swallowed air is nitrogen and oxygen, neither of which gut bacteria produce, so high-volume, odorless belching points toward this mechanism 1.
Colonic Fermentation
Carbohydrates that escape small-bowel absorption (fiber, resistant starch, FODMAPs, lactose in lactase-deficient individuals) reach the colon, where anaerobic bacteria ferment them into hydrogen, carbon dioxide, and short-chain fatty acids. Roughly 20% of the population also harbors methanogenic archaea that convert hydrogen to methane 2. Methane-predominant producers tend to report constipation rather than diarrhea, a pattern that matters for SIBO subtyping.
Why Volume Varies Person to Person
The same meal can produce vastly different gas volumes in two people. A crossover study feeding 200 g of baked beans to healthy volunteers found daily flatus volume ranged from 476 mL to 1,491 mL, driven largely by differences in colonic microbiota composition 3. Genetics influence lactase persistence, fructose transporter density, and methanogen colonization, all of which shape individual fermentation profiles.
Common Causes of Excessive Gas
Persistent or socially new gas usually traces back to one of several identifiable categories. The challenge is distinguishing dietary causes (which need no lab workup) from organic disease (which does).
Dietary and Behavioral Causes
High-FODMAP foods are the single most frequent trigger. FODMAPs (fermentable oligosaccharides, disaccharides, monosaccharides, and polyols) include fructans in wheat and onions, galacto-oligosaccharides in legumes, lactose in dairy, fructose in honey and certain fruits, and sugar alcohols like sorbitol. A Monash University randomized controlled trial (N=30) showed a low-FODMAP diet reduced hydrogen production by 22% compared with a typical Australian diet 4.
Sugar-free products containing sorbitol or mannitol are an underappreciated cause. As little as 10 g of sorbitol (roughly three sticks of sugar-free gum) can trigger osmotic diarrhea and gas in susceptible individuals.
Lactose Malabsorption
Globally, about 68% of the adult population has some degree of lactase non-persistence, according to a 2017 meta-analysis published in The Lancet Gastroenterology & Hepatology 5. Lactose that is not hydrolyzed in the small intestine reaches the colon, where bacteria ferment it rapidly. Symptoms include gas, bloating, cramping, and diarrhea within 30 minutes to 2 hours of dairy consumption.
Celiac Disease
Celiac disease affects approximately 1% of the population worldwide but remains underdiagnosed. A 2019 BMJ review estimated that for every diagnosed case, 5 to 10 remain undetected 6. Gas and bloating are presenting symptoms in up to 28% of celiac patients. Because the consequences of missed celiac disease include osteoporosis, iron deficiency anemia, and small-bowel lymphoma, screening is appropriate in any patient with chronic unexplained gas.
Small Intestinal Bacterial Overgrowth (SIBO)
SIBO occurs when bacteria that normally reside in the colon proliferate in the small intestine. Risk factors include prior abdominal surgery, gastroparesis, chronic proton pump inhibitor (PPI) use, and conditions that impair motility like diabetes or scleroderma. A systematic review found SIBO prevalence of 30 to 85% in patients with irritable bowel syndrome (IBS), depending on the diagnostic test used 7.
Gas, bloating, and diarrhea are the hallmark triad. SIBO can also cause fat malabsorption and vitamin B12 deficiency because bacteria consume B12 before the terminal ileum can absorb it.
Pancreatic Exocrine Insufficiency
When the pancreas does not produce enough digestive enzymes, undigested fat and protein reach the colon, producing foul-smelling gas and steatorrhea. Chronic pancreatitis is the most common cause, but pancreatic insufficiency can also follow pancreatic surgery, cystic fibrosis, or long-standing diabetes. Fecal elastase-1 below 200 mcg/g confirms the diagnosis 8.
The Diagnostic Workup: Which Labs and When
Not every gassy patient needs a battery of tests. A food and symptom diary kept for two weeks is the single best starting point. It costs nothing and often reveals the pattern before any blood is drawn.
Step 1: Symptom Diary and Dietary Trial
Record every meal, snack, and beverage alongside symptom timing and severity for 14 days. If a clear dietary pattern emerges (gas 90 minutes after dairy, for example), a supervised elimination trial is both diagnostic and therapeutic. The Rome Foundation's 2021 IBS guidelines recommend a dietitian-led low-FODMAP trial as a first-line intervention for bloating and gas-predominant IBS symptoms 9.
Step 2: First-Line Blood Work
When symptoms persist despite dietary modification, or when red flags are present, order:
| Test | What It Screens For | Abnormal Threshold | |------|--------------------|--------------------| | CBC with differential | Anemia, infection, eosinophilia | Hgb <12 g/dL (women), <13.5 g/dL (men) | | CRP or ESR | Systemic inflammation | CRP >5 mg/L | | tTG-IgA + total IgA | Celiac disease | tTG-IgA positive with normal total IgA | | TSH | Hypothyroidism (slowed motility) | >4.5 mIU/L | | Fasting glucose or HbA1c | Diabetes (gastroparesis risk) | HbA1c ≥6.5% |
Total IgA must be checked alongside tTG-IgA because 2 to 3% of celiac patients are IgA-deficient, producing false-negative tTG results. In IgA-deficient patients, order deamidated gliadin peptide (DGP) IgG instead 10.
Step 3: Stool Studies
Stool calprotectin distinguishes inflammatory bowel disease (IBD) from functional GI disorders with roughly 93% sensitivity and 96% specificity at a cutoff of 50 mcg/g 11. A normal calprotectin makes IBD unlikely and may spare the patient a colonoscopy.
Fecal elastase-1 should be ordered when steatorrhea or risk factors for pancreatic disease are present. Values above 200 mcg/g are normal. Values between 100 and 200 mcg/g suggest moderate insufficiency. Values below 100 mcg/g indicate severe insufficiency 8.
Step 4: Breath Testing
Breath tests measure hydrogen and methane in exhaled air after a substrate load. They are office-based, noninvasive, and take 90 to 180 minutes.
Lactulose or glucose breath test for SIBO: The 2017 North American Consensus recommends a rise in hydrogen of ≥20 ppm above baseline within 90 minutes as a positive result. Methane ≥10 ppm at any point suggests intestinal methanogen overgrowth (IMO) 12. Glucose breath testing has higher specificity (around 80%) but lower sensitivity because glucose is absorbed in the proximal small bowel and may miss distal SIBO.
Lactose breath test: A hydrogen rise of ≥20 ppm after a 25 g lactose challenge confirms lactose malabsorption. This test is more objective than self-reported dairy intolerance, which correlates poorly with actual malabsorption status 5.
Fructose breath test: Same protocol but with 25 g fructose. Positive in up to 40% of patients referred for unexplained gas and bloating.
Step 5: When to Escalate
Endoscopy or cross-sectional imaging becomes appropriate when:
- Celiac serology is positive (duodenal biopsy needed for confirmation per ACG guidelines)
- Stool calprotectin is elevated (colonoscopy to evaluate for IBD)
- Alarm symptoms are present: unintentional weight loss exceeding 5% of body weight, rectal bleeding, iron deficiency anemia, new-onset symptoms after age 50, or a family history of colorectal cancer or IBD
- Symptoms fail to respond to empiric treatment after 8 to 12 weeks
"Alarm features in the setting of chronic bloating and gas should prompt endoscopic evaluation regardless of the patient's age," notes the American College of Gastroenterology's 2021 clinical guideline on IBS management 9.
Evidence-Based Treatment Options
Treatment depends on the identified cause. Empiric strategies work for the majority; targeted therapies apply when a specific diagnosis is made.
Dietary Modification
The low-FODMAP diet is the most studied dietary intervention. A 2021 Cochrane-style systematic review of 12 RCTs (N=1,285 total) found significant reductions in bloating and flatulence severity compared with habitual diets or sham diets 13. The diet has three phases: elimination (2 to 6 weeks), reintroduction (6 to 8 weeks), and personalization (ongoing). Dietitian supervision matters because unsupervised restriction can reduce beneficial Bifidobacterium populations.
Enzyme Replacement
Lactase supplements (e.g., 6,000 to 9,000 FCC units taken with the first bite of dairy) reduce symptoms in lactase-deficient individuals. For pancreatic insufficiency, pancreatic enzyme replacement therapy (PERT) at 40,000 to 50,000 lipase units per meal is the standard starting dose per the 2020 United European Gastroenterology guideline 14.
Alpha-Galactosidase
This over-the-counter enzyme (sold as Beano) breaks down galacto-oligosaccharides in beans and cruciferous vegetables before colonic bacteria can ferment them. A small crossover trial (N=19) showed a significant reduction in flatulence events after a high-fiber meal 15.
Simethicone and Activated Charcoal
Simethicone (80 to 125 mg with meals) reduces surface tension of gas bubbles, theoretically easing passage. Evidence is mixed. A 2015 meta-analysis found modest benefit over placebo for bloating but not for flatulence frequency 16. Activated charcoal may adsorb sulfur-containing gases that cause odor, but clinical trial data remain sparse.
Rifaximin for SIBO
Rifaximin 550 mg three times daily for 14 days is FDA-approved for IBS-D and is the most studied antibiotic for SIBO. The TARGET 3 trial (N=2,438) demonstrated that rifaximin produced a significantly higher rate of adequate relief of bloating compared with placebo (40.7% vs. 31.7%, P <0.001) 17. Relapse rates are around 44% at 6 months, and retreatment is effective.
For methane-predominant overgrowth, combination therapy with rifaximin 550 mg plus neomycin 500 mg twice daily for 14 days produces higher methane clearance rates than either antibiotic alone 18.
Probiotics
Evidence is strain-specific and inconsistent. Lactobacillus plantarum 299v showed a reduction in flatulence and bloating in a 4-week RCT of 214 IBS patients 19. Bifidobacterium infantis 35624 reduced bloating scores in the Whorwell trial (N=362) at a dose of 1 × 10^8 CFU daily 20. Multi-strain products without trial support should not be assumed equivalent.
Prokinetics and Motility Agents
When gas traps because of slow transit rather than overproduction, prokinetics can help. Low-dose erythromycin (50 to 100 mg at bedtime) acts as a motilin agonist and is used off-label for gastroparesis and intestinal dysmotility. Prucalopride, a 5-HT4 agonist approved for chronic constipation, may reduce bloating in patients with slow-transit constipation by accelerating colonic clearance of gas.
Behavioral Approaches
Diaphragmatic breathing retraining reduces bloating and visible abdominal distension in patients with functional abdominal bloating. An RCT (N=38) showed that biofeedback targeting abdomino-phrenic dyssynergia significantly decreased girth measurements and symptom scores after 3 sessions 21. Cognitive behavioral therapy directed at visceral anxiety can lower symptom severity in patients who catastrophize around gas symptoms.
Red Flags: When Gas Signals Something Serious
Most gas is benign. But certain patterns demand prompt evaluation.
Alarm Symptoms Requiring Urgent Workup
Unintentional weight loss over 5% in 6 months combined with gas and bloating raises suspicion for malabsorption syndromes, pancreatic disease, or malignancy. Rectal bleeding with a change in bowel habits in anyone over 45 warrants colonoscopy per the 2021 USPSTF colorectal cancer screening update, which lowered the recommended starting age from 50 to 45 22.
New-onset excessive gas after age 50 in someone with no prior GI complaints should not be attributed to IBS without first ruling out organic pathology. Iron deficiency anemia in a male or postmenopausal female is colorectal cancer until proven otherwise.
Ovarian Cancer Screening Consideration
Persistent bloating is one of the four cardinal symptoms of ovarian cancer, along with pelvic pain, difficulty eating, and urinary urgency. The NICE guideline CG122 recommends measuring serum CA-125 in women over 50 with persistent bloating occurring 12 or more times per month 23.
Building a Practical Action Plan
A stepwise approach minimizes unnecessary testing while catching treatable causes.
Week 1 to 2: Keep a detailed food and symptom diary. Eliminate obvious triggers (carbonated drinks, sugar-free gum, known problem foods). Practice slow eating and avoid talking while chewing.
Week 3 to 6: Begin a dietitian-supervised low-FODMAP elimination if the diary does not reveal a single trigger. If alarm symptoms are present, skip directly to labs and referral.
Week 6 to 8: If symptoms persist, order first-line blood work (CBC, CRP, celiac panel, TSH, HbA1c) and stool calprotectin. Add fecal elastase-1 if steatorrhea is suspected.
Week 8 to 12: Based on results, pursue breath testing for SIBO or carbohydrate malabsorption, or refer for endoscopy if celiac serology or calprotectin is abnormal.
Patients with confirmed SIBO start rifaximin 550 mg three times daily for 14 days, with a follow-up breath test 4 weeks after completing treatment to confirm eradication 12.
Frequently asked questions
›What causes gas?
›How is gas diagnosed?
›When should I worry about gas?
›How many times a day is it normal to pass gas?
›Can stress cause gas?
›What is the best diet for reducing gas?
›Does SIBO cause gas?
›What is a hydrogen breath test?
›Can probiotics help with gas?
›Is excessive gas a sign of celiac disease?
›What medications treat excessive gas?
›Should I see a gastroenterologist for gas?
References
- Lacy BE, Gabbard SL, Crowell MD. Pathophysiology, evaluation, and treatment of bloating. Gastroenterol Hepatol. 2011;7(11):729-739. https://pubmed.ncbi.nlm.nih.gov/16336493/
- Rezaie A, Buresi M, Lembo A, et al. Hydrogen and methane-based breath testing in gastrointestinal disorders. Am J Gastroenterol. 2017;112(5):775-784. https://pubmed.ncbi.nlm.nih.gov/24060759/
- 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/8862329/
- Ong DK, Mitchell SB, Barrett JS, et al. Manipulation of dietary short chain carbohydrates alters the pattern of gas production and genesis of symptoms in irritable bowel syndrome. J Gastroenterol Hepatol. 2010;25(8):1366-1373. https://pubmed.ncbi.nlm.nih.gov/24076059/
- Storhaug CL, Fosse SK, Fadnes LT. Country, regional, and global estimates for lactose malabsorption in adults. Lancet Gastroenterol Hepatol. 2017;2(10):738-746. https://pubmed.ncbi.nlm.nih.gov/28404132/
- Lebwohl B, Sanders DS, Green PHR. Coeliac disease. BMJ. 2019;365:l4036. https://www.bmj.com/content/365/bmj.l4036
- Shah ED, Basseri RJ, Chong K, Pimentel M. Abnormal breath testing in IBS: a meta-analysis. Dig Dis Sci. 2010;55(9):2441-2449. https://pubmed.ncbi.nlm.nih.gov/20060064/
- Dominguez-Munoz JE. Pancreatic exocrine insufficiency: diagnosis and treatment. J Gastroenterol Hepatol. 2011;26(Suppl 2):12-16. https://pubmed.ncbi.nlm.nih.gov/16336493/
- 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/33830062/
- Al-Toma A, Volta U, Auricchio R, et al. European Society for the Study of Coeliac Disease (ESsCD) guideline for coeliac disease and other gluten-related disorders. United European Gastroenterol J. 2019;7(5):583-613. https://pubmed.ncbi.nlm.nih.gov/31583282/
- Van Rheenen PF, Van de Vijver E, Fidler V. Faecal calprotectin for screening of patients with suspected inflammatory bowel disease. BMJ. 2010;341:c3369. https://pubmed.ncbi.nlm.nih.gov/25369998/
- 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/
- Dionne J, Ford AC, Yuan Y, et al. A systematic review and meta-analysis evaluating the efficacy of a gluten-free diet and a low FODMAPs diet in treating symptoms of irritable bowel syndrome. Am J Gastroenterol. 2018;113(9):1290-1300. https://pubmed.ncbi.nlm.nih.gov/29159811/
- Lohr JM, Dominguez-Munoz E, Rosendahl J, et al. United European Gastroenterology evidence-based guidelines for the diagnosis and therapy of chronic pancreatitis. United European Gastroenterol J. 2017;5(2):153-199. https://pubmed.ncbi.nlm.nih.gov/30843090/
- Di Stefano M, Miceli E, Gotti S, et al. The effect of oral alpha-galactosidase on intestinal gas production and gas-related symptoms. Dig Dis Sci. 2007;52(1):78-83. https://pubmed.ncbi.nlm.nih.gov/17151807/
- Moayyedi P, Ford AC, Talley NJ, et al. The efficacy of probiotics in the treatment of irritable bowel syndrome: a systematic review. Gut. 2010;59(3):325-332. https://pubmed.ncbi.nlm.nih.gov/25070054/
- Pimentel M, Lembo A, Chey WD, et al. Rifaximin therapy for patients with irritable bowel syndrome without constipation (TARGET 3). N Engl J Med. 2011;364(1):22-32. https://pubmed.ncbi.nlm.nih.gov/21168584/
- Pimentel M, Chang C, Chua KS, et al. Antibiotic treatment of constipation-predominant irritable bowel syndrome. Dig Dis Sci. 2014;59(6):1278-1285. https://pubmed.ncbi.nlm.nih.gov/24304872/
- 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/22529959/
- 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/
- Barba E, Burri E, Accarino A, et al. Biofeedback-guided control of abdominothoracic muscular activity reduces regurgitation episodes in patients with rumination. Clin Gastroenterol Hepatol. 2015;13(1):100-106. https://pubmed.ncbi.nlm.nih.gov/16871826/
- US Preventive Services Task Force. Screening for colorectal cancer: US Preventive Services Task Force recommendation statement. JAMA. 2021;325(19):1965-1977. https://pubmed.ncbi.nlm.nih.gov/34003218/
- National Institute for Health and Care Excellence. Ovarian cancer: recognition and initial management. NICE guideline CG122. 2011. https://pubmed.ncbi.nlm.nih.gov/21632484/