The biggest gas producers are beans, cruciferous vegetables, dairy products, certain fruits, and sugar-free foods containing sugar alcohols. All of these share something in common: they contain carbohydrates your small intestine can’t fully break down, so bacteria in your large intestine ferment them instead, producing hydrogen, carbon dioxide, and methane as byproducts.
Beans and Legumes
Beans are the most well-known gas culprits for good reason. They’re packed with a type of sugar called raffinose that humans lack the enzyme to digest. When these sugars reach your large intestine intact, gut bacteria feast on them and produce gas in the process. Lentils, chickpeas, black beans, and kidney beans all fall into this category.
The good news is that preparation makes a real difference. Soaking dried beans before cooking and discarding the soaking water reduces total sugars by about 80% and raffinose-type compounds by roughly 42%. Canned beans, which have already been soaked and cooked in liquid, tend to cause less trouble than dry beans cooked without soaking. Starting with smaller portions and gradually increasing your intake also gives your gut bacteria time to adjust.
Cruciferous Vegetables
Broccoli, cauliflower, cabbage, Brussels sprouts, and bok choy are all notorious for causing bloating and flatulence. These vegetables are high in insoluble fiber, which passes through your stomach completely undigested and arrives in your large intestine intact. There, trillions of microorganisms break it down through fermentation, and gas is the direct byproduct of that process.
Cooking these vegetables softens the fiber and can reduce (though not eliminate) gas production compared to eating them raw. Steaming tends to preserve more nutrients than boiling while still helping with digestibility.
Dairy Products and Lactose
About 65% of adults worldwide have some degree of lactose intolerance, meaning they don’t produce enough of the enzyme needed to break down lactose, the natural sugar in milk. Rates vary enormously by region: 70 to 100% of people in East Asia are lactose intolerant, while only about 5% of people in Northern Europe are affected. If you’re in the majority, undigested lactose ferments in your gut and produces gas, bloating, and sometimes cramping or diarrhea.
Not all dairy is equal, though. A cup of milk (whole, skim, or anything in between) contains about 11 grams of lactose, making it one of the worst offenders. Ice cream has a similar amount per cup. Yogurt and cottage cheese land in the middle at 4 to 6 grams per cup, partly because the bacterial cultures in yogurt pre-digest some of the lactose for you. Hard aged cheeses like cheddar, Swiss, and blue cheese contain only 1 to 2 grams per ounce and rarely cause problems, even for people with significant intolerance.
Fruits High in Fructose
Some fruits contain more fructose than your small intestine can efficiently absorb, and the excess ends up fermenting in your colon. The key factor isn’t just how much fructose a fruit contains, but the ratio of fructose to glucose. Glucose actually helps your body absorb fructose, so fruits with more glucose relative to fructose tend to be easier on your gut.
The fruits most likely to cause gas include apples, pears, watermelon, mangoes, grapes, kiwi, and dried fruits like raisins and dates. Fruit juice concentrates the fructose from multiple servings into a single glass, making it especially problematic. Bananas are an interesting case: they’re high in fructose, but they also contain enough glucose to balance things out, so most people tolerate them well. Mangoes have a similar fructose level but less glucose, which is why they cause more symptoms for many people.
Whole Grains and Bran
Whole wheat bread, bran cereal, oats, and other whole grains contain significant insoluble fiber that your body can’t digest on its own. Just like with cruciferous vegetables, gut bacteria do the work of breaking this fiber down, and gas comes along for the ride. Bran, the outer layer of grain kernels, is particularly dense in this type of fiber.
If you’re increasing your fiber intake for health reasons, doing it gradually over a few weeks gives your gut microbiome time to adapt. People who eat high-fiber diets consistently often produce less gas from the same foods than people who eat fiber only occasionally, because their bacterial populations shift over time.
Sugar-Free Foods and Sugar Alcohols
Sugar-free gum, candy, protein bars, and diet drinks often contain sugar alcohols as sweeteners. These compounds (listed on labels as sorbitol, mannitol, xylitol, or maltitol) are poorly absorbed in the small intestine, so they travel to the colon where bacteria ferment them. Sorbitol is one of the worst offenders, capable of causing significant flatulence, abdominal pain, and even diarrhea. Mannitol acts as an osmotic laxative at doses above 20 grams.
Erythritol is the notable exception. Unlike other sugar alcohols, it’s absorbed in the small intestine before it reaches the colon, and gut bacteria have a much harder time fermenting it. This makes it far less likely to cause gas or bloating. If you use sugar-free products regularly and experience symptoms, checking the label for which specific sweetener is used can help you identify the problem.
Carbonated Drinks
Soda, sparkling water, and beer introduce carbon dioxide directly into your digestive system. Some of this gas escapes as burping, but whatever passes into the intestines contributes to bloating and flatulence. Beer is a double hit: it’s both carbonated and contains fermentable carbohydrates from the grains used in brewing. Drinking through a straw or gulping drinks quickly also increases the amount of air you swallow, adding to the problem.
Why Some People Are More Affected
Two people can eat the same meal and have completely different gas responses. This comes down to individual differences in gut bacteria. Your colon hosts a unique mix of microbial species, and some bacterial profiles produce more gas than others. Certain bacteria generate hydrogen, others produce methane, and some convert those gases into other compounds. Less than 1% of intestinal gas is actually the smelly part; over 99% is odorless hydrogen, carbon dioxide, and methane.
Your tolerance also depends on how sensitive your gut nerves are. Some people produce a normal amount of gas but feel it more intensely because of heightened visceral sensitivity. This is common in people with irritable bowel syndrome, where the issue is often perception of gas rather than excess production.
Practical Ways to Reduce Gas
Keeping a simple food diary for a week or two is the most reliable way to identify your personal triggers, since everyone’s gut responds differently. Beyond that, a few strategies consistently help:
- Soak dried beans overnight and discard the water before cooking. This alone removes the majority of the sugars that cause fermentation.
- Cook vegetables rather than eating them raw, especially cruciferous ones.
- Increase fiber gradually rather than making a sudden dietary shift. A few weeks of slow increases lets your gut bacteria adjust.
- Choose aged cheeses over milk if dairy bothers you. Hard cheeses have a fraction of the lactose.
- Check labels on sugar-free products for sorbitol and maltitol, and consider switching to erythritol-based alternatives.
- Eat slowly and avoid chewing gum, both of which reduce the amount of air you swallow.

