What Foods Cause Gas? Common Culprits Explained

Beans, dairy, cruciferous vegetables, and certain fruits are among the most common foods that cause gas. Most gas-producing foods share one trait: they contain carbohydrates your small intestine can’t fully break down, so bacteria in your colon ferment them and release hydrogen, methane, and carbon dioxide in the process. The specific foods that bother you depend on your individual gut bacteria and enzyme levels, but several categories are consistent triggers for most people.

Beans and Legumes

Beans have their reputation for a reason. They’re loaded with a group of sugars called raffinose and stachyose that humans simply can’t digest. Your body lacks the enzyme needed to break these sugars apart in the upper digestive tract, so they pass intact into your large intestine, where bacteria feast on them and produce gas. Dry beans contain roughly 2 to 10 milligrams of raffinose per gram and 2 to 56 milligrams of stachyose per gram, depending on the variety. Lentils, chickpeas, and peas carry similar compounds.

On top of those sugars, legumes are rich in several types of soluble, highly fermentable fiber, including resistant starch, pectin, and inulin. These fibers are moderate to high gas producers on their own, which is why beans tend to cause more gas than almost any other food category.

There’s a practical fix, though. Soaking dried beans before cooking and then discarding the soaking water reduces raffinose content by about 25% and stachyose by a similar amount, without hurting the beans’ nutritional value. Canned beans, which have been soaked and processed, tend to cause less gas than beans cooked from dry without soaking. Gradually increasing the amount of beans you eat over a few weeks also helps your gut bacteria adjust.

Cruciferous Vegetables

Broccoli, cauliflower, cabbage, Brussels sprouts, and bok choy all belong to the cruciferous family, and they’re among the vegetables most likely to cause gas. Like beans, they contain raffinose sugars that bypass digestion in the small intestine. They also contain sulfur compounds, which is why the gas they produce tends to smell worse than what you’d get from fruit or grains.

Cooking these vegetables breaks down some of their fiber and complex sugars, which generally makes them easier to digest than eating them raw. Steaming tends to preserve more nutrients than boiling while still softening the compounds that cause trouble.

Dairy Products

Milk, ice cream, soft cheese, and other dairy products cause gas in people with lactose intolerance. This happens when your small intestine produces low levels of lactase, the enzyme that breaks down lactose (the natural sugar in milk). Without enough lactase, undigested lactose travels to your colon, where bacteria break it down and create fluid and gas. Symptoms typically show up within a few hours of eating or drinking dairy.

Lactose intolerance is extremely common, affecting the majority of adults worldwide, though rates vary by ethnic background. If dairy consistently gives you gas, bloating, or diarrhea, you’re likely producing less lactase than you need. Hard aged cheeses like cheddar and Parmesan contain very little lactose and are usually well tolerated. Yogurt, because its bacterial cultures partially digest lactose during fermentation, tends to cause fewer problems than milk.

Fruits High in Fructose

Fructose, the natural sugar in fruit, causes gas when your small intestine can’t absorb it all. Apples, pears, mangoes, and watermelon are particularly high in fructose. The issue gets worse with foods and drinks sweetened with high-fructose corn syrup, because these deliver fructose in larger amounts than most people can absorb in one sitting. The unabsorbed fructose draws water into the intestine, speeds up transit to the colon, and gets fermented by bacteria there.

Sugar Alcohols in “Sugar-Free” Products

If you chew sugar-free gum or eat sugar-free candy, the sweeteners used in those products are a common and often overlooked source of gas. Sugar alcohols like sorbitol, xylitol, mannitol, and maltitol are poorly absorbed in the small intestine, which means they behave much like the undigestible sugars in beans.

The threshold varies by sweetener. Sorbitol can cause diarrhea at doses as low as 20 grams. Xylitol is generally tolerated in single doses of 10 to 30 grams, though gas can start at lower amounts. Lactitol is particularly sensitive: as little as 10 grams per day causes symptoms in some people. These amounts add up faster than you might expect. A few sticks of sugar-free gum and a handful of sugar-free mints in the same day can easily push you past the threshold.

High-Fiber Grains and Bran

Whole wheat, oats, and bran are healthy additions to your diet, but they can increase gas production, especially if you add them suddenly. Fiber is partially or fully fermented in the colon, producing carbon dioxide, hydrogen, and methane. The type of fiber matters: soluble fiber from sources like oats, beans, and seeds is more fermentable and produces more gas than insoluble fiber from wheat bran and cereal grains.

This is why a sudden switch to a high-fiber diet often causes a wave of bloating and gas that settles down after a week or two. Your gut bacteria population shifts to accommodate the new fuel source, and fermentation becomes more efficient. Increasing fiber intake gradually, by about 5 grams per day each week, gives your system time to adjust.

Carbonated Drinks

Soda, sparkling water, and beer introduce gas directly into your digestive system. The carbon dioxide in these drinks can cause belching as it escapes from your stomach, but some of it travels further into the intestines. Beer compounds the effect because it also contains fermentable carbohydrates and, in many cases, wheat or barley that add to gas production in the colon.

Why the Same Foods Affect People Differently

Your gut bacteria are unique to you, which is why your coworker can eat a bowl of lentil soup without issue while you’re uncomfortable for hours afterward. The composition of your microbiome determines how much gas gets produced from any given food. Enzyme levels matter too. Lactase production, fructose absorption capacity, and the efficiency of your upper digestive tract all vary from person to person.

Some people also feel gas more intensely than others, even when the actual volume of gas is normal. Conditions like irritable bowel syndrome (IBS) involve heightened sensitivity in the gut, so a normal amount of intestinal gas can cause significant discomfort, bloating, and pain. Functional GI disorders like IBS affect how gas moves through the intestines, which can make it feel like you’re producing more gas than you actually are.

When Gas Points to Something Else

Occasional gas after eating known trigger foods is normal. But gas that changes suddenly, comes with unexplained weight loss, or is accompanied by persistent diarrhea, constipation, or abdominal pain may signal an underlying condition. Small intestinal bacterial overgrowth (SIBO), where excess bacteria colonize the small intestine, produces extra gas along with diarrhea and weight loss. Celiac disease, an immune reaction to gluten, can also increase gas production. These conditions are treatable once identified, and a doctor can distinguish them from ordinary dietary gas with relatively simple testing.