What Causes Gas in Your Stomach and How to Reduce It

Gas in your stomach comes from two main sources: air you swallow and gas produced when bacteria in your gut break down food. Everyone produces gas, typically passing it 13 to 21 times a day, but certain habits, foods, and digestive conditions can increase the amount significantly.

Swallowed Air Is the Most Common Cause

Every time you eat, drink, or swallow saliva, a small amount of air goes down with it. Most of this air contains nitrogen and oxygen, and it either gets burped back up or moves through your digestive tract. Under normal circumstances, this is barely noticeable. But certain behaviors cause you to swallow much more air than usual, a pattern sometimes called aerophagia.

The biggest culprits include eating too fast, talking while eating, chewing gum, sucking on hard candy, drinking through a straw, and smoking. Each of these activities forces extra air past your throat and into your stomach. If you’ve noticed more bloating or belching after picking up one of these habits, the connection is likely direct.

Carbonated drinks deserve special mention. The carbon dioxide dissolved in soda, sparkling water, and beer gets rapidly released as gas once it hits the warm environment of your stomach. Your body responds by triggering a belch to relieve the pressure. Research published in the journal Nutrition, Metabolism and Cardiovascular Diseases found that symptoms of gastric discomfort typically appear after drinking more than 300 ml (about 10 ounces) of a carbonated beverage. Below that threshold, most people handle the extra gas without issue.

How Gut Bacteria Create Gas

The second major source of gas happens lower in your digestive system. Trillions of bacteria live in your large intestine, and they survive by fermenting nutrients your body didn’t fully absorb higher up. The main fuel for this fermentation is carbohydrates, particularly complex ones like resistant starch, fiber, and certain plant-based sugars. As bacteria break these down, they produce hydrogen, methane, and hydrogen sulfide as byproducts. Hydrogen sulfide is the compound responsible for the unpleasant smell.

Protein can also contribute. When gut bacteria metabolize amino acids (the building blocks of protein), they produce some of the same gases, though carbohydrates are by far the bigger driver.

Foods That Produce the Most Gas

Certain foods are especially prone to fermentation because they contain short-chain carbohydrates that your small intestine absorbs poorly. Researchers at Monash University categorize these as FODMAPs (fermentable oligosaccharides, disaccharides, monosaccharides, and polyols). When you eat high-FODMAP foods, the unabsorbed sugars travel to your large intestine, drawing water along the way. Once they arrive, bacteria ferment them rapidly, producing a surge of gas.

The foods most likely to cause this reaction include:

  • Vegetables: garlic, onion, artichoke, asparagus, cauliflower, mushrooms, green peas
  • Fruits: apples, pears, watermelon, mangoes, cherries, peaches, dried fruit
  • Legumes: beans, lentils, chickpeas
  • Dairy: milk, ice cream, custard, yogurt
  • Grains: wheat, rye, and barley-based breads and cereals
  • Sweeteners: honey, high fructose corn syrup, sugar-free candy and gum

You don’t need to avoid all of these. Most people are sensitive to specific categories rather than the entire list. Paying attention to which foods consistently cause problems is more useful than eliminating everything at once.

Lactose Intolerance

Lactose intolerance is one of the most common reasons for excessive gas worldwide. A systematic review covering nearly 63,000 participants across 89 countries estimated that about 68% of the global adult population has some degree of lactose malabsorption. Rates vary dramatically by region: as low as 28% in parts of Europe but as high as 70% in the Middle East, with even higher rates in parts of East Asia and Africa.

When your body doesn’t produce enough of the enzyme that breaks down lactose (the sugar in milk), the undigested lactose passes into your colon. There, bacteria ferment it, producing gas that causes bloating, cramping, and flatulence. The severity depends on how much lactose you consumed and how little enzyme your body makes. Some people can handle a splash of milk in coffee but not a full glass. Others react to even small amounts hidden in processed foods.

Sugar Alcohols in Sugar-Free Products

If you chew sugar-free gum or eat sugar-free candy, the sweetener is often a sugar alcohol like sorbitol, xylitol, or erythritol. These compounds taste sweet but are poorly absorbed in the small intestine, which means they end up being fermented by bacteria in the colon, just like FODMAPs.

Sorbitol is the most well-studied offender. At higher doses, it reliably causes bloating, cramps, and diarrhea. But UC Davis researchers have noted that some people experience digestive upset even from small amounts, a pattern known as sorbitol intolerance. If sugar-free products consistently bother you, the sugar alcohol content is almost certainly the reason.

Small Intestinal Bacterial Overgrowth

Normally, the bulk of your gut bacteria lives in the large intestine. In small intestinal bacterial overgrowth (SIBO), an abnormally large population of bacteria colonizes the small intestine instead. Because food arrives there before most nutrients have been absorbed, these bacteria get first access to a rich supply of carbohydrates and start fermenting them earlier in the digestive process. The result is excessive gas, bloating, and often diarrhea or abdominal pain.

SIBO is typically diagnosed with a breath test. You drink a sugar solution, and your breath is measured over the next few hours. A rapid rise in exhaled hydrogen or methane signals that bacteria are fermenting the sugar in the small intestine rather than the large intestine, where it would normally be processed. SIBO is more common in people with conditions that slow gut motility, such as diabetes, prior abdominal surgery, or long-term use of acid-suppressing medications.

Other Medical Causes

Several digestive conditions can increase gas production or make you more sensitive to normal amounts of gas. Irritable bowel syndrome (IBS) is one of the most common. People with IBS often produce a normal volume of gas but experience it as more painful because their gut nerves are more sensitive to stretching and pressure. Celiac disease, in which the immune system reacts to gluten, damages the lining of the small intestine and impairs nutrient absorption, leaving more undigested food for bacteria to ferment.

Chronic constipation also plays a role. When stool moves slowly through the colon, bacteria have more time to ferment residual carbohydrates, and the gas that forms has fewer opportunities to exit. This creates a cycle of increasing bloating and discomfort that resolves once bowel movements become more regular.

Reducing Stomach Gas

The most effective approach depends on the cause. If swallowed air is the issue, slowing down at meals, avoiding straws and gum, and cutting back on carbonated drinks can make a noticeable difference within days. These are simple changes, but they address a surprisingly large share of gas complaints.

If certain foods are the trigger, an elimination approach works well. Remove the most common gas-producing foods for two to three weeks, then reintroduce them one at a time to identify your specific triggers. This is essentially what a low-FODMAP diet does, and it has strong evidence behind it for people with IBS-related bloating.

For lactose intolerance, you can take a lactase enzyme supplement before eating dairy, switch to lactose-free products, or simply reduce the portion size. Most people with lactose malabsorption can still tolerate small amounts without symptoms.

Over-the-counter enzyme supplements designed to break down complex sugars in beans and vegetables can help some people, though the evidence for their effectiveness varies. Probiotics may help rebalance gut bacteria over time, particularly after antibiotic use or in cases of mild bacterial imbalance, but results are inconsistent and strain-specific.