Causes of Gas and Bloating: 9 Reasons You're Bloated & What to Do
Share
Everyone experiences gas and bloating. It's a normal part of digestion, and a certain amount of it is completely healthy. But when bloating is persistent, painful, or happening regardless of what you eat, that's your body telling you something deeper is off — and a basic list of "foods to avoid" isn't going to fix it.
This article covers the nine most common causes of chronic gas and bloating, why each one happens at the mechanistic level, and what actually helps. The causes range from straightforward dietary triggers to less obvious contributors like gut bacterial overgrowth, candida, and stress — which are often missed because most gas and bloating advice stops at "eat less broccoli."
My Take as a Nutritionist: The patients I see with chronic bloating almost never have just one thing going on. It's usually a combination: they're eating foods that don't agree with them, their gut microbiome is out of balance, and they're under chronic stress — and all three are feeding each other. What helps is identifying the primary driver first, not trying to fix everything at once. In my experience, SIBO and candida are significantly underdiagnosed causes of chronic bloating that keep people spinning through elimination diets without resolution. If you've been bloated for months and can't identify a clear food trigger, those are worth investigating. — Jordan Dorn CN
9 Causes of Gas and Bloating
1. High-Fermentation Foods

Certain foods produce significantly more gas during digestion than others — not because they're bad for you, but because they contain carbohydrates that your small intestine can't fully absorb. These undigested carbohydrates pass into the large intestine where gut bacteria ferment them, producing hydrogen, methane, and carbon dioxide as byproducts. The result is gas, bloating, and sometimes cramping.
The highest-fermentation foods include beans and legumes (which contain raffinose and other oligosaccharides), cruciferous vegetables like broccoli, cauliflower, and Brussels sprouts (indigestible fibers plus sulfur compounds), onions and garlic (high in fructooligosaccharides), dairy products in lactose-intolerant individuals, and wheat in people with gluten sensitivity. None of these foods are universally problematic — the issue is how your individual gut handles them, which depends heavily on your microbiome composition and digestive enzyme status.
What helps: cooking rather than eating raw reduces fermentation potential in vegetables. Soaking dried legumes and discarding the soaking water removes some oligosaccharides. Digestive enzyme supplements containing alpha-galactosidase (the enzyme that breaks down the gas-producing sugars in beans) can significantly reduce gas from these foods.
2. SIBO — Small Intestinal Bacterial Overgrowth

SIBO is one of the most common and consistently underdiagnosed causes of chronic bloating, particularly bloating that appears within 60–90 minutes of eating almost anything. In a healthy gut, the small intestine contains relatively few bacteria compared to the large intestine. In SIBO, bacteria migrate into or proliferate in the small intestine where they shouldn't be in large numbers. When you eat, these bacteria immediately begin fermenting carbohydrates that should be absorbed before they reach the large intestine — producing gas high up in the digestive tract, which causes the characteristic upper abdominal bloating that often looks like a distended stomach shortly after eating.
A note on diagnosis: SIBO breath testing is the standard diagnostic tool but has meaningful limitations — false positives and false negatives are documented, and symptoms overlap significantly with IBS and functional bloating. A positive breath test in the context of clear clinical symptoms is more useful than a standalone result. Work with a practitioner familiar with current diagnostic guidelines rather than treating a breath test result in isolation.
SIBO is associated with several underlying factors including low stomach acid (which normally limits bacterial growth in the upper GI), impaired migrating motor complex function (the gut's "cleaning wave" between meals), a history of food poisoning, chronic stress, and long-term use of proton pump inhibitors or antibiotics. For a full breakdown of the SIBO-bloating connection and how to address it, see our guide to SIBO.
What helps: SIBO requires specific treatment — either pharmaceutical antibiotics (rifaximin is the standard) or herbal antimicrobials. Dietary approaches like the low-FODMAP diet manage symptoms but don't address the root cause. If your bloating is immediate post-meal, worsens with carbohydrates of almost any type, and hasn't responded to standard dietary interventions, a SIBO breath test is the appropriate next step.
3. Candida Overgrowth

Candida albicans is a yeast that naturally lives in the gut at low levels. In functional medicine, candida overgrowth is discussed as a potential contributor to gas and bloating — particularly following antibiotic use, during periods of high sugar intake, or in immunocompromised individuals, where the evidence for disrupted yeast balance is clearest. When candida overgrows, it produces gas as a metabolic byproduct and disrupts the gut microbiome balance, which indirectly worsens fermentation. It's worth noting that mainstream gastroenterology is more conservative about candida's role in healthy adults without clear risk factors — the symptom picture below is most relevant when you have identifiable triggers.
Candida-related bloating tends to be accompanied by other symptoms: sugar and carbohydrate cravings, fatigue, brain fog, recurring yeast infections, oral thrush, and skin issues. The bloating from candida tends to be less immediately post-meal than SIBO and more chronic and diffuse. For a full picture of how candida overgrowth develops and what to do about it, see our candida and bloating guide.
What helps: reducing dietary sugar and refined carbohydrates starves candida of its primary food source. Herbal antifungals including oregano oil, berberine, and caprylic acid have documented activity against Candida albicans. Probiotic supplementation supports microbiome rebalancing alongside antifungal treatment.
4. Food Intolerances

Food intolerances — distinct from food allergies — occur when the gut lacks sufficient enzymes or transport proteins to properly digest specific food components. The undigested material passes into the large intestine and is fermented by bacteria, producing gas and bloating. The most common food intolerances contributing to bloating are lactose intolerance (deficiency of lactase enzyme), gluten sensitivity or non-celiac gluten sensitivity, fructose malabsorption, and sensitivity to FODMAPs (fermentable oligo-, di-, monosaccharides and polyols) as a broader category.
Unlike SIBO or candida, food intolerance bloating is closely tied to specific foods — if you can identify a consistent pattern (bloated after dairy, after wheat, after stone fruits), intolerance is the likely driver. An elimination and reintroduction protocol is the most reliable way to identify your specific triggers. Celiac disease — an autoimmune condition triggered by gluten — should be tested before undertaking a gluten elimination diet, as removal of gluten before testing makes the blood test unreliable.
5. Gut Dysbiosis

Gut dysbiosis — an imbalance in the composition of your gut microbiome — is a broader category that encompasses SIBO and candida but also includes subtler shifts in microbial populations that don't meet the diagnostic threshold for either condition. Your gut bacteria are responsible for fermenting fiber and producing short-chain fatty acids, vitamins, and other beneficial compounds. When the balance shifts — too many gas-producing bacteria, too few beneficial ones — fermentation becomes excessive and gas production increases.
Dysbiosis can follow antibiotic use (which indiscriminately disrupts the microbiome), chronic stress, a diet low in fiber and high in processed foods, or repeated illness. It's rarely diagnosed directly but is inferred from symptoms and supported by comprehensive stool testing. Supporting the microbiome through fermented foods, prebiotic fiber, and probiotic supplementation is the foundation of treatment. For more on supporting gut microbial balance, see our gut terrain diet guide.
6. Low Stomach Acid

Hydrochloric acid (HCl) in the stomach serves multiple functions — it activates pepsin for protein digestion, sterilizes incoming food and drink, and triggers the cascade of digestive signals that prepare the small intestine for incoming nutrients. When stomach acid is low (a condition called hypochlorhydria), protein digestion is incomplete, and incompletely digested food particles pass into the small intestine where they ferment and produce gas.
Low stomach acid is more common than many people realize, particularly in adults over 50, people under chronic stress, those who have been on proton pump inhibitors (PPIs) long-term, and people with H. pylori infection. The paradox is that low stomach acid and high stomach acid can produce similar symptoms — heartburn and reflux — which is why many people with hypochlorhydria are incorrectly prescribed acid-suppressing medication that makes the underlying problem worse. Signs that point toward low rather than high acid: bloating and gas shortly after eating protein-rich meals, feeling of food sitting heavily in the stomach, and improvement with apple cider vinegar or digestive bitters before meals.
7. Chronic Stress

The connection between stress and bloating is direct and physiological, not just psychosomatic. The gut and brain are connected through the enteric nervous system — sometimes called the "second brain" — which contains more neurons than the spinal cord. During stress, the body activates the sympathetic nervous system (fight-or-flight), which actively suppresses digestive function: stomach acid production drops, digestive enzyme output decreases, blood flow to the gut reduces, and gut motility slows.
Slower gut motility means food moves through the system more slowly, spending more time in contact with bacteria and producing more fermentation gas. Reduced digestive enzyme output means less complete breakdown of food before it reaches the large intestine. The result is more gas, more bloating, and often more cramping. People who notice their bloating is dramatically worse during high-stress periods are experiencing this axis directly. Addressing stress is not optional if you want lasting resolution of gut symptoms — it's as important as dietary changes.
8. Swallowing Air (Aerophagia)

A less glamorous but genuinely significant cause of gas: simply swallowing too much air. This can happen through eating quickly, talking while eating, drinking through straws, chewing gum, drinking carbonated beverages, or mouth-breathing. Air swallowed during eating accumulates in the upper digestive tract and causes belching and upper abdominal bloating that tends to appear quickly after eating rather than building gradually.
The fix is largely behavioral — eating more slowly, chewing thoroughly (aiming for 20–30 chews per bite is a useful benchmark), eliminating carbonated beverages during meals, and avoiding talking while eating all reduce aerophagia significantly. This is often an underappreciated contributor to bloating in otherwise healthy people with no underlying gut condition.
9. Underlying Digestive Conditions

Persistent gas and bloating can also be a symptom of underlying conditions that require medical assessment. Irritable bowel syndrome (IBS) involves altered gut motility and visceral hypersensitivity — the gut is more sensitive to normal levels of gas and distension. Inflammatory bowel disease (IBD) including Crohn's and ulcerative colitis can cause chronic bloating alongside more concerning symptoms. Celiac disease causes intestinal damage in response to gluten, resulting in malabsorption and gas. Gastroparesis (delayed stomach emptying) causes bloating and nausea that begins during or immediately after meals.
Red flags that warrant medical evaluation: bloating accompanied by blood in stool, unintentional weight loss, persistent vomiting, fever, or severe pain. Chest pain alongside bloating should always be evaluated promptly to rule out cardiac causes. Bloating that wakes you from sleep is also clinically significant. Bloating can occasionally signal functional dyspepsia, gastroparesis (delayed stomach emptying), or other conditions requiring medical assessment beyond dietary changes. If your bloating is accompanied by any of these, see a doctor before pursuing self-treatment.
What to Do About Chronic Gas and Bloating
Start with the Most Likely Cause
The most effective approach is identifying which category your bloating fits. Immediate post-meal bloating within 30–60 minutes, especially after carbohydrates, points toward SIBO or low stomach acid. Bloating tied to specific foods points toward intolerance. Bloating alongside sugar cravings, fatigue, and recurring yeast symptoms points toward candida. Bloating that's dramatically worse during stressful periods points toward the gut-brain axis. Identifying the primary driver before reaching for supplements or starting an elimination diet saves significant time.
Dietary Foundation
Regardless of the primary cause, a gut-supportive dietary baseline helps: reducing refined sugar and processed carbohydrates (which feed both candida and dysbiotic bacteria), increasing fermented foods for microbiome diversity, eating slowly and chewing thoroughly, and front-loading digestive support. Our gut terrain diet guide covers the full dietary framework we use for gut restoration.
Targeted Support
For quick relief of acute bloating, our guide to 9 tips to get rid of bloating fast covers the practical immediate interventions. For the SIBO angle specifically, berberine for SIBO covers one of the most well-researched herbal approaches. For the candida side, our 9-step candida management guide walks through the full protocol.
When to See a Doctor
Self-directed dietary and supplement approaches are appropriate for mild to moderate chronic bloating without red flag symptoms. If you have blood in stool, significant unintentional weight loss, persistent vomiting, fever alongside bloating, or symptoms that are worsening rather than improving over weeks of dietary changes, get evaluated. SIBO requires formal breath testing for proper diagnosis. Celiac disease requires blood testing before gluten removal.