Beans, dairy, cruciferous vegetables, certain fruits, and sugar-free products are the most common gas-producing foods. Most intestinal gas comes from bacteria in your large intestine fermenting carbohydrates your body couldn’t fully digest higher up in the gut. Passing gas 14 to 23 times a day is completely normal, but certain foods can push you well beyond that range.
Why Certain Foods Produce Gas
Your small intestine absorbs most nutrients, but some carbohydrates slip through undigested. When they reach the large intestine, trillions of bacteria break them down through fermentation, releasing hydrogen, methane, and carbon dioxide in the process. The volume of gas depends on the type of carbohydrate and how efficiently your gut bacteria ferment it.
Short-chain, highly fermentable carbohydrates (often grouped under the term FODMAPs) produce gas rapidly, sometimes faster than your body can absorb and clear it through the bloodstream and lungs. In controlled studies, people eating a high-FODMAP diet produced roughly four times more hydrogen gas over the course of a day compared to a low-FODMAP diet. People with irritable bowel syndrome produced even more, nearly six times the amount on a high-FODMAP day versus a low one.
Beans and Legumes
Beans have their reputation for good reason. They contain a family of complex sugars called raffinose-type oligosaccharides, including raffinose, stachyose, and verbascose. Your body lacks the enzyme needed to break these sugars apart in the small intestine, so they pass intact to the colon where bacteria ferment them aggressively. Lentils, chickpeas, black beans, kidney beans, soybeans, and faba beans all contain significant amounts of these sugars.
The good news: preparation matters. Soaking dried beans overnight and discarding the soaking water before cooking reduces raffinose by about 25%, stachyose by 25%, and verbascose by roughly 42%. You lose some total sugars in the process but none of the protein or nutritional value. Canned beans, which have been soaked and cooked during processing, tend to cause less gas than beans cooked from dry without soaking. Over-the-counter enzyme supplements containing alpha-galactosidase (the enzyme your body doesn’t make) can also help. Clinical trials show that taking these before a meal rich in fermentable carbohydrates significantly reduces both hydrogen gas production and flatulence severity.
Cruciferous Vegetables
Broccoli, cauliflower, cabbage, Brussels sprouts, and kale are packed with fiber and also contain sulfur-based compounds. The fiber ferments in your colon just like bean sugars do, producing hydrogen and carbon dioxide. The sulfur compounds add a distinct element: when gut bacteria break them down, they produce hydrogen sulfide, which is responsible for the particularly strong smell associated with these vegetables. Cooking cruciferous vegetables softens some of the fiber and can reduce (but not eliminate) gas production compared to eating them raw.
Dairy Products
About 68% of the world’s adult population has some degree of lactose malabsorption, meaning they don’t produce enough of the enzyme that breaks down lactose, the sugar in milk. When undigested lactose reaches the colon, bacteria ferment it rapidly, producing gas, bloating, and sometimes cramping or diarrhea. Milk, soft cheeses, ice cream, and cream-based sauces are the most common triggers.
Hard aged cheeses like cheddar and Parmesan contain very little lactose because bacteria consume most of it during the aging process. Yogurt is also generally better tolerated because the bacterial cultures pre-digest some of the lactose. If you suspect dairy is a problem, lactose-free versions of milk and ice cream use an added enzyme to break down the sugar before it reaches your gut.
Certain Fruits
Apples, pears, mangoes, and watermelon contain more fructose than glucose. That ratio matters because your small intestine absorbs fructose more efficiently when glucose is present in equal amounts. When fructose exceeds glucose, the surplus travels to the colon and ferments. Fruits with a more balanced sugar ratio, like bananas, blueberries, and strawberries, tend to cause less gas.
Dried fruits concentrate these sugars into smaller servings, making it easy to eat a large fructose load without realizing it. A handful of dried mango or a few dried apricot halves delivers considerably more fermentable sugar than the same fruit fresh.
Onions, Garlic, and Wheat
Onions and garlic contain fructans, a type of short-chain carbohydrate that humans cannot digest at all. Every gram of fructan you eat ends up being fermented by bacteria. These are among the most common hidden gas triggers because they appear in so many recipes, sauces, and prepared foods. Even small amounts can be significant for sensitive individuals.
Wheat also contains fructans, though in smaller quantities per serving. For most people, a slice of bread won’t cause problems, but large portions of pasta, bread, or wheat-based cereals can add up. This is separate from gluten sensitivity or celiac disease. It’s the fructan content, not the gluten, that drives gas production in the majority of people who feel bloated after eating wheat.
Sugar Alcohols in Sugar-Free Products
Sugar-free gum, candy, protein bars, and diet foods often contain sugar alcohols like sorbitol, xylitol, mannitol, and erythritol. These are only partially absorbed in the small intestine, and the unabsorbed portion ferments in the colon. The European Union requires products containing more than 50 grams of sorbitol to carry a laxative warning, but gas and bloating can start at much lower doses. As little as 15 to 30 grams of sorbitol can cause diarrhea in some people, and 35 grams of xylitol is enough to increase watery bowel movements.
To put that in perspective, a single stick of sugar-free gum contains about 1 to 2 grams of sugar alcohol, so chewing several pieces throughout the day adds up. Sugar-free candies and mints are more concentrated, sometimes delivering 5 to 10 grams per serving. People who habitually use sugar-free products sometimes develop tolerance over time, with some adults eventually handling 20 to 70 grams of xylitol daily without major symptoms, but the adjustment period involves plenty of gas.
Carbonated Drinks
Soda, sparkling water, and beer introduce carbon dioxide directly into your digestive tract. Most of this gas exits as burping, but some passes into the intestines and contributes to bloating and flatulence. Beer adds a second layer because it contains fermentable carbohydrates from the brewing grains. Drinking through a straw or gulping beverages quickly also increases the amount of air you swallow, compounding the effect.
Fiber and How Fast You Add It
Not all fiber produces the same amount of gas. Short-chain, highly soluble fibers like those in inulin supplements and chicory root ferment rapidly, producing large volumes of gas in a short window. Long-chain, moderately fermentable fibers like psyllium break down slowly and produce minimal gas. If you’re increasing your fiber intake for health reasons, the speed of the increase matters more than the total amount. Adding 10 or 15 grams overnight is a common mistake that leads people to blame fiber itself when the real issue is the pace of change. Increasing by 3 to 5 grams per week gives your gut bacteria time to adjust.
Reducing Gas From the Foods You Eat
You don’t necessarily need to eliminate gas-producing foods. Many of them, especially beans, cruciferous vegetables, and whole grains, are among the most nutritious things you can eat. A few practical strategies can make a real difference:
- Soak and rinse beans. Overnight soaking with a water change before cooking removes a meaningful portion of the sugars that cause gas, without affecting protein or mineral content.
- Cook vegetables rather than eating them raw. Heat breaks down some of the tough fibers and cell structures that resist digestion.
- Eat smaller portions more frequently. A cup of broccoli split across two meals produces less gas at any one time than the same amount eaten at once.
- Try enzyme supplements. Alpha-galactosidase supplements work for bean and vegetable sugars. Lactase supplements work for dairy. Neither helps with fructose or fiber-related gas.
- Check labels for sugar alcohols. Ingredients ending in “-ol” (sorbitol, maltitol, xylitol) are sugar alcohols. If you’re experiencing unexplained gas, sugar-free products are worth investigating.
Keeping a simple food diary for a week or two, noting what you ate and when symptoms hit, is often the fastest way to identify your personal triggers. Gas-producing foods affect everyone differently depending on gut bacteria composition, enzyme levels, and how much of a given food you eat at once.

