Most adults pass gas about 15 times a day, though anywhere from a handful to 40 times falls within the normal range. When you’re consistently at the higher end, or when gas comes with pain, bloating, or a change in your usual pattern, something specific is usually driving it. The causes range from everyday habits like eating too fast to underlying conditions like food intolerances or bacterial imbalances in the gut.
How Your Gut Produces Gas
Your body produces intestinal gas through two main routes: swallowing air and bacterial fermentation. The gas itself is mostly a mix of nitrogen, hydrogen, carbon dioxide, methane, and small amounts of oxygen. No human cell can produce hydrogen or methane on its own. Those gases come entirely from bacteria in your colon fermenting carbohydrates that weren’t fully absorbed higher up in your digestive tract.
When undigested sugars, fibers, or starches reach your large intestine, trillions of bacteria break them down anaerobically. This process releases hydrogen gas. From there, different bacterial species compete for that hydrogen. Some convert it into methane, others into hydrogen sulfide (the compound responsible for the smell), and still others into acetate. The balance of these bacterial populations in your gut determines not just how much gas you produce but what kind, which is why two people eating the same meal can have very different experiences.
Foods That Cause the Most Gas
The biggest dietary culprits are fermentable carbohydrates, often grouped under the term FODMAPs. These are short-chain sugars and fibers that your small intestine absorbs poorly, leaving them available for bacteria to feast on in your colon. The major categories break down like this:
- Beans and legumes are high in galacto-oligosaccharides (GOS), a sugar humans lack the enzyme to fully digest. This is why beans have their reputation.
- Wheat, rye, and barley contain fructans, a type of fiber that ferments readily in the colon.
- Onions, garlic, and certain vegetables are also high in fructans and mannitol, another poorly absorbed sugar alcohol.
- Fruits like apples, pears, and watermelon contain excess fructose and sorbitol, both of which can bypass absorption and feed gut bacteria.
- Dairy products contain lactose, which causes gas specifically in people who don’t produce enough of the enzyme that breaks it down.
- Sugar-free products sweetened with sorbitol, xylitol, or erythritol are essentially delivering unabsorbable sugars straight to your colon bacteria.
These foods aren’t unhealthy. They cause gas because they contain fibers and sugars that are genuinely useful for feeding beneficial gut bacteria. The issue is volume and individual tolerance. If you suddenly increase your fiber intake, for example, your gut bacteria haven’t had time to adjust, and gas production spikes. A gradual increase over a few weeks typically reduces the problem.
Swallowed Air Adds Up
Not all gas comes from fermentation. A significant portion, especially gas that causes burping or upper abdominal bloating, comes from swallowed air. You swallow small amounts of air every time you eat or drink, but certain habits dramatically increase the volume: eating too fast, talking while eating, chewing gum, sucking on hard candy, using straws, drinking carbonated beverages, and smoking. Most of the swallowed nitrogen and oxygen either gets burped back up or passes through the digestive tract and exits as flatulence.
If your gas is mostly odorless and comes with frequent burping, swallowed air is a likely contributor. Slowing down at meals and cutting back on carbonation can make a noticeable difference within days.
Lactose Intolerance and Other Food Intolerances
Lactose intolerance is one of the most common causes of excessive gas worldwide. It happens when your small intestine doesn’t produce enough lactase, the enzyme that breaks lactose into absorbable sugars. Without enough lactase, lactose passes intact into your colon, where bacteria ferment it and produce a surge of hydrogen and carbon dioxide gas. Symptoms typically begin within a few hours of eating or drinking dairy.
Fructose malabsorption works similarly. Your small intestine has a limited capacity to absorb fructose, and when you exceed that capacity (from high-fructose corn syrup, fruit juice, or large servings of certain fruits), the excess reaches the colon and ferments. Both conditions are dose-dependent: a small amount of the trigger food might cause no symptoms, while a larger serving causes significant gas and bloating.
IBS: More Sensitivity Than Gas
If you have irritable bowel syndrome, your gas symptoms may be more intense than what other people experience, even if you aren’t actually producing more gas. Research comparing IBS patients to healthy controls found that after consuming the same fermentable carbohydrate, both groups produced similar amounts of colonic gas measured on MRI and similar levels of hydrogen on breath tests. Yet the IBS group reported significantly worse symptoms.
This points to a key mechanism: colonic hypersensitivity to distension. Your gut is more reactive to the stretching that normal gas volumes cause. For people with IBS who did respond with symptoms, the intensity of those symptoms correlated with peak gas levels, but the actual peak gas levels were no different from those of people who felt fine. In other words, IBS doesn’t necessarily mean you’re producing excessive gas. It means your gut’s alarm system is set to a lower threshold.
Bacterial Overgrowth in the Small Intestine
Small intestinal bacterial overgrowth, or SIBO, occurs when bacteria that normally live in the colon migrate upward and colonize the small intestine. Because the small intestine is where most nutrient absorption happens, bacteria fermenting food there produces gas earlier in the digestive process. This leads to bloating, an uncomfortable fullness after eating, and in some cases diarrhea or nutritional deficiencies. SIBO is more common in people with slow gut motility, structural abnormalities, or conditions that reduce stomach acid.
Medications That Increase Gas
Several common medications cause gas as a side effect. Fiber supplements and bulking agents like psyllium are designed to reach the colon intact, where bacteria ferment them. Opioid pain medications slow gut motility, giving bacteria more time to produce gas from food sitting in the colon. Antacids can neutralize stomach acid in ways that generate carbon dioxide. Aspirin, certain anti-diarrheal medications, multivitamins, and iron supplements are also known contributors. If your gas increased noticeably after starting a new medication, that connection is worth exploring.
What Actually Helps
Over-the-counter options vary in how well they work. Alpha-galactosidase (sold as Beano) breaks down the specific carbohydrates in beans, bran, and certain vegetables before bacteria can ferment them. Clinical trials show it significantly reduces bloating and flatulence when taken with meals containing those foods. It won’t help with gas from dairy or gas caused by swallowed air, because it targets a specific enzyme pathway.
Simethicone, the active ingredient in Gas-X, is widely recommended but has not shown benefit for ordinary flatulence in studies. It works by breaking up gas bubbles, which can ease the sensation of a distended stomach, but it doesn’t reduce gas production. It performs better when gas accompanies acute diarrhea, particularly in combination with anti-diarrheal medication.
The most effective approach for most people is identifying and moderating the specific trigger. Keeping a food diary for two weeks, noting what you eat and when symptoms appear, often reveals a pattern. A low-FODMAP elimination diet, developed by Monash University, systematically removes and reintroduces fermentable carbohydrates to pinpoint which ones your gut reacts to. Most people don’t need to avoid all FODMAPs permanently, just the one or two categories that cause them the most trouble.
Signs That Gas May Signal Something Else
Gas on its own, even a lot of it, is rarely a sign of something serious. But certain accompanying symptoms change the picture. Bloody, black, or tarry stools alongside gas warrant prompt evaluation. Persistent diarrhea or constipation that represents a change from your normal pattern, unexplained weight loss, or feeling full after eating much less than usual are all signals that something beyond simple fermentation may be going on. Stomach pain that doesn’t resolve on its own also falls into this category.

