Beans, dairy, cruciferous vegetables, certain fruits, and carbonated drinks are among the most common gas-producing foods. Passing gas 14 to 23 times a day is normal, but certain foods can push you well beyond that range by feeding the bacteria in your large intestine, which release hydrogen, methane, and carbon dioxide as byproducts.
Understanding which foods are the biggest offenders, and why, can help you figure out what’s behind your discomfort and what you can actually do about it.
Beans and Legumes
Beans are the most notorious gas producers for a straightforward reason: they contain sugars called raffinose and stachyose that your body literally cannot digest. Your small intestine doesn’t make the enzyme needed to break these sugars apart into absorbable molecules. The result is that virtually 100% of the raffinose and stachyose you eat passes intact into your colon, where bacteria ferment it and release large volumes of carbon dioxide and hydrogen gas.
This applies to all legumes: black beans, kidney beans, lentils, chickpeas, soybeans, and peas. The good news is that preparation matters. Soaking dried beans and discarding the soaking water before cooking can reduce these gas-causing sugars by roughly 40%, and total sugars by as much as 80%. Canned beans, which have been soaked and cooked in liquid you drain off, tend to cause less gas than beans cooked from dry without soaking. Over-the-counter supplements containing the enzyme your body lacks can also help by breaking down the problem sugars before they reach your colon. Taking one before a bean-heavy meal can noticeably reduce bloating, cramping, and flatulence.
Cruciferous Vegetables
Broccoli, cauliflower, cabbage, Brussels sprouts, and kale all belong to the cruciferous family, and they cause gas through two separate mechanisms. First, they’re high in fiber and complex carbohydrates that gut bacteria ferment. Second, they contain sulfur-based compounds called glucosinolates. When you chew and digest these vegetables, enzymes break the glucosinolates apart, releasing sulfur-containing byproducts. Sulfur is what gives gas its smell, so cruciferous vegetables are often responsible not just for more gas but for more noticeable gas.
Cooking these vegetables, especially steaming or boiling them, breaks down some of the fiber and deactivates some of the enzymes involved, which can reduce (though not eliminate) their gas-producing potential compared to eating them raw.
Dairy Products
About 65% of the global population has a reduced ability to digest lactose, the sugar in milk, after infancy. If you’re one of them, drinking milk or eating ice cream, soft cheese, or yogurt sends undigested lactose into your colon, where bacteria ferment it the same way they ferment bean sugars. The result is bloating, gas, and often cramping or diarrhea.
The severity varies widely. Some people can handle a splash of milk in coffee but not a bowl of cereal. Hard aged cheeses like cheddar and parmesan contain very little lactose and rarely cause problems. Lactase enzyme supplements taken with dairy can help your body break down the lactose before it reaches your colon.
Certain Fruits
Apples, pears, and dried fruits are naturally high in fructose, a fruit sugar that many people absorb poorly. When fructose isn’t fully absorbed in the small intestine, it travels to the colon and gets fermented, producing gas in the same way undigested lactose does. Peaches, cherries, and watermelon can trigger similar effects.
Fruits also contain soluble fiber, particularly pectin, which is readily fermented by gut bacteria. This combination of fructose and fermentable fiber makes certain fruits surprisingly potent gas producers, even though they’re otherwise very healthy foods.
Sugar-Free Gum and Candy
Sugar alcohols like sorbitol and xylitol, commonly used to sweeten sugar-free gum, mints, and candies, are poorly absorbed in the small intestine. They draw water into the gut and get fermented by bacteria, causing gas, bloating, and sometimes diarrhea. If you chew several pieces of sugar-free gum a day, this alone could explain unexplained bloating. The chewing itself also causes you to swallow extra air, compounding the problem.
Onions, Garlic, and Wheat
These everyday foods are high in fructans, a type of soluble fiber made of fructose chains. Fructans are classified as FODMAPs (fermentable short-chain carbohydrates) because gut bacteria readily convert them to gas. Onions and garlic are among the most concentrated sources, which is why they show up frequently as triggers for people with sensitive digestion. Wheat contains enough fructans that people who think they’re reacting to gluten are sometimes actually reacting to the fermentable carbohydrates in bread and pasta instead.
Carbonated Drinks
Soda, sparkling water, and beer introduce carbon dioxide directly into your digestive system. Some of this gas comes back up as belching almost immediately, but the rest moves through your intestines. You’ll typically feel the effects as flatulence within 24 hours. Beer is a double offender because it’s both carbonated and contains fermentable carbohydrates from grains.
Why Some Fibers Cause More Gas Than Others
Not all fiber is equally gassy. The key distinction is fermentability. Soluble fibers dissolve in water and are readily fermented by gut bacteria, producing gas as a byproduct. Insoluble fibers like wheat bran and cellulose don’t dissolve, don’t ferment much, and pass through relatively quietly.
The most gas-producing fiber types include inulin, oligofructose, fructooligosaccharides, resistant starch, and guar gum. These show up in foods you’d expect, like beans and onions, but also in processed foods where they’re added as fiber supplements or prebiotics. Protein bars, high-fiber cereals, and “fiber-enriched” snack foods often contain inulin or chicory root fiber, and they can cause significant bloating if you’re not used to them.
If you’re increasing your fiber intake, doing it gradually over a few weeks gives your gut bacteria time to adjust. An abrupt jump in fiber is one of the most common causes of sudden, unexplained gas and cramping.
Reducing Gas Without Avoiding Healthy Foods
Most of the worst gas offenders, beans, cruciferous vegetables, fruits, whole grains, are also some of the healthiest things you can eat. The goal isn’t necessarily to eliminate them but to manage how much gas they produce.
- Soak beans overnight and discard the water before cooking. This alone removes a significant portion of the indigestible sugars.
- Cook vegetables rather than eating them raw. Steaming or roasting breaks down some of the fibers and compounds that cause gas.
- Increase fiber gradually. Adding a little more each week lets your gut microbiome adapt, which genuinely reduces gas production over time.
- Try enzyme supplements before meals with known triggers. Products containing the enzyme for bean sugars, or lactase for dairy, work by breaking down the problem compounds before they reach your colon.
- Watch for hidden sources. Sugar-free sweeteners, fiber-fortified processed foods, and carbonated drinks can add up without you realizing they’re contributing.
Your gut bacteria are unique to you, so the specific foods that cause the most gas vary from person to person. Keeping a simple food diary for a week or two, noting what you eat and when you feel bloated, is one of the fastest ways to identify your personal triggers.

