What Foods Create Gas and How to Reduce It

The foods most likely to give you gas are beans, cruciferous vegetables (broccoli, cabbage, cauliflower), dairy products, certain fruits, wheat-based foods, and sugar-free products sweetened with sugar alcohols. The average person passes gas 13 to 21 times a day, and most of that gas comes from bacteria in your large intestine fermenting carbohydrates your body couldn’t fully digest higher up in the digestive tract.

Not all gas-producing foods affect everyone equally. Your gut bacteria, enzyme levels, and even how you prepare food all influence how much gas you end up dealing with. Here’s a closer look at the main culprits and what you can do about them.

Beans and Lentils

Beans are the most well-known gas producers for good reason. They contain sugars called alpha-galactosides (part of a group called oligosaccharides) that humans lack the enzymes to break down in the small intestine. These sugars pass intact into the large intestine, where bacteria ferment them and release hydrogen and methane gas as byproducts.

The good news is that preparation makes a real difference. Soaking chickpeas at room temperature for 16 hours reduces these gas-causing sugars by about 40%. Warmer soaking temperatures are even more effective: soaking lentils at 45°C (about 113°F) in slightly acidic water for three hours can cut the problematic sugars by up to 85%. The takeaway for home cooks is simple: soak your beans longer, discard the soaking water, and cook them thoroughly. Much of the gas-producing sugar leaches into the water during soaking and cooking, so draining and rinsing helps significantly.

Over-the-counter enzyme supplements containing alpha-galactosidase (sold as Beano and similar products) can also help. These supplements break down the problem sugars before they reach your large intestine. They work best when taken in tablet form right before eating or with your first bite, not after the meal is over.

Cruciferous Vegetables

Broccoli, Brussels sprouts, cabbage, cauliflower, and kale all belong to the cruciferous family, and they’re notorious for producing gas. These vegetables contain both fiber and sulfur-containing compounds. The fiber ferments in the colon just like bean sugars do, but the sulfur compounds add a distinctive element: they’re responsible for particularly odorous gas, as opposed to the odorless hydrogen and methane that most fermentation produces.

Cooking these vegetables softens the fiber and breaks down some of the sulfur compounds, which is why steamed broccoli tends to cause less trouble than raw broccoli in a salad. If you find cruciferous vegetables especially bothersome, start with smaller portions and increase gradually. Your gut bacteria can adapt over time, often producing less gas as they adjust to a regular supply of these foods.

Dairy Products

Milk, ice cream, yogurt, and soft cheeses cause gas in people who don’t produce enough lactase, the enzyme that breaks down lactose (the natural sugar in milk). When lactose passes undigested into the colon, bacteria ferment it and produce hydrogen and methane, the same gases generated by undigested bean sugars.

Lactose intolerance is extremely common globally. If dairy gives you gas, bloating, or cramping within a few hours of eating it, you’re likely not digesting lactose well. Hard aged cheeses like cheddar and Parmesan contain very little lactose and rarely cause problems. Yogurt is often better tolerated than milk because the bacterial cultures used to make it have already broken down some of the lactose. Lactase enzyme supplements taken with dairy foods work on the same principle as bean enzyme supplements: they supply the missing enzyme so digestion happens in the small intestine instead of fermenting in the colon.

High-Fructose Fruits

Apples, pears, mangos, cherries, and peaches are all high in fructose, a fruit sugar that many people absorb incompletely. When excess fructose reaches the large intestine, bacteria ferment it and produce gas. The issue isn’t fructose itself but the ratio of fructose to glucose in a given fruit. Fruits where fructose significantly exceeds glucose are more likely to cause problems because glucose actually helps your body absorb fructose.

Bananas, oranges, strawberries, and blueberries tend to be gentler on digestion. If you love apples but they leave you bloated, try eating half an apple at a time rather than a whole one. Smaller portions spread across the day give your small intestine a better chance of absorbing the fructose before it reaches the colon.

Wheat and Other Grains

Wheat-based products like bread, cereal, crackers, and pasta contain fructans, a type of short-chain carbohydrate that humans don’t digest well. Fructans belong to the same family of poorly absorbed sugars found in beans and are fermented by gut bacteria in the same way. Rye and barley also contain fructans, though in varying amounts.

This is separate from celiac disease or a wheat allergy. Many people who tolerate wheat just fine in small amounts find that large portions of bread or pasta leave them gassy and bloated. Sourdough bread tends to cause less gas than regular bread because the long fermentation process breaks down a significant portion of the fructans before you eat it.

Onions and Garlic

Onions and garlic are among the highest-fructan foods in a typical diet, and even small amounts can trigger gas in sensitive individuals. They show up in so many recipes, sauces, and processed foods that people who react to them may not realize the connection. Cooking reduces the intensity somewhat, but because fructans are water-soluble, the most effective approach is to sauté onion or garlic in oil and then remove the pieces. The flavor infuses the oil, but most of the fructans stay in the discarded solids.

Sugar-Free and Diet Products

Sugar-free gum, mints, candies, and many “diabetic-friendly” products are sweetened with sugar alcohols like sorbitol, mannitol, xylitol, maltitol, and isomalt. These compounds are absorbed slowly and often incompletely in the small intestine. Whatever isn’t absorbed pulls extra water into the bowel (an osmotic effect) and gets fermented by bacteria, producing gas. This double action explains why sugar alcohols can cause both bloating and loose stools.

Sorbitol also occurs naturally in certain foods. Avocados are very high in sorbitol, and stone fruits like plums, apricots, and prunes contain it as well. If you chew several pieces of sugar-free gum a day or regularly eat sugar-free candy, the cumulative dose of sugar alcohols may be enough to keep you consistently gassy. Many of these products carry a small-print warning: “Excess consumption can have a laxative effect.”

Why Some People Are More Affected

Hydrogen and methane are produced only by bacteria, not by your own cells. The composition of your gut microbiome determines how much gas any particular food generates in your body. Two people can eat the same bowl of lentil soup and have very different experiences. Factors like the diversity of your gut bacteria, how quickly food moves through your digestive tract, and your individual enzyme levels all play a role.

People with irritable bowel syndrome (IBS) or small intestinal bacterial overgrowth (SIBO) tend to be especially sensitive to gas-producing foods. For these individuals, a structured low-FODMAP diet, which temporarily eliminates the major gas-producing sugar categories (oligosaccharides, disaccharides, monosaccharides, and polyols) and then reintroduces them one at a time, can help identify personal triggers.

Practical Ways to Reduce Gas

Rather than eliminating healthy foods entirely, a few strategies can keep gas manageable:

  • Introduce high-fiber foods gradually. A sudden jump in fiber intake overwhelms your gut bacteria. Adding a serving every few days gives your microbiome time to adjust.
  • Soak and rinse beans thoroughly. Overnight soaking at room temperature removes roughly 40% of gas-causing sugars. Longer soaking in warm water removes even more.
  • Cook vegetables well. Steaming, roasting, or sautéing breaks down some of the fibers and compounds that cause gas when eaten raw.
  • Try enzyme supplements before meals. Alpha-galactosidase supplements help with beans and certain vegetables, while lactase supplements help with dairy. Both need to be taken with your first bite to be effective.
  • Watch portion sizes. Many gas-producing foods only cause trouble in larger amounts. A quarter of an avocado might be fine even if a whole one leaves you uncomfortable.
  • Track your triggers. Keep a simple food diary for a week or two. Gas patterns often become obvious once you write down what you ate and when symptoms appeared.