For medical emergencies, call your local emergency number. This site does not provide medical advice.

Foods That Cause Gas and Bloating (and What to Eat Instead)

The most common gas-producing foods, including beans, cabbage, onions and dairy, why they cause bloating, and gentler alternatives with a simple low-FODMAP overview.

By Editorial Team · Updated · 3 min read

Sacks of dried beans, lentils and other legumes at a market
Photo: Paul Morris · CC0

This article is awaiting review by a qualified medical professional.

Quick answer

Foods that most often cause gas and bloating include beans and lentils, cabbage, broccoli, onions, garlic, wheat, dairy, fizzy drinks, and products with sugar alcohols such as sorbitol. They contain carbohydrates that gut bacteria ferment. Lower-gas swaps include rice, oats, carrots, spinach, firm tofu, lactose-free dairy, bananas and blueberries, but tolerance varies, so a food diary helps.

Gas is a natural by-product of digestion. Bacteria in your large intestine ferment carbohydrates that were not absorbed earlier, releasing gas. Some foods produce far more gas than others, and sensitivity varies from person to person. For the full picture, read our guide to gas and bloating.

Why some foods cause gas

Foods high in fibre, certain sugars and starches, and sugar alcohols pass through the small intestine undigested. When they reach the colon, bacteria ferment them, causing gas, bloating and sometimes cramps. The specific carbohydrates are known as FODMAPs (fermentable oligosaccharides, disaccharides, monosaccharides and polyols).

Common gas-causing foods

Beans, lentils and legumes

Beans, lentils, chickpeas and peas contain oligosaccharides that are hard to digest.

Vegetables

Cabbage, Brussels sprouts, broccoli, cauliflower, onions, garlic, leeks, asparagus, artichokes and mushrooms.

Fruit

Apples, pears, peaches, plums, cherries, watermelon and mango, which contain fructose or sorbitol.

Wheat and whole grains

Wheat, rye and barley contain fructans, and high-fibre bran cereals can add to gas when increased suddenly.

Dairy

Milk, soft cheese, ice cream and yogurt contain lactose, which many adults digest poorly.

Sweeteners and sugar-free products

Sorbitol, mannitol, xylitol and maltitol, found in sugar-free gum, sweets and some diet products, can cause gas and loose stools.

Fizzy drinks and swallowed air

Carbonated water and soft drinks add gas directly, as does gum and drinking through straws.

Fatty and fried foods

These slow stomach emptying, which can increase fullness and discomfort.

Lower-gas alternatives

Instead ofTry
Onion and garlicChives, spring onion tops, garlic-infused oil, herbs
Cabbage and cauliflowerCarrots, spinach, zucchini, bok choy, potatoes
Beans and lentilsWell-rinsed canned lentils in small amounts, firm tofu, eggs, fish
Wheat bread and pastaSourdough spelt, rice, oats, quinoa, gluten-free options if advised
MilkLactose-free milk, hard cheese, plant milks such as almond
Apples and pearsBananas, blueberries, strawberries, oranges, kiwi, grapes
Sugar-free sweetsSmall amounts of sugar or a tolerated sweetener
Fizzy drinksStill water, herbal tea, peppermint or ginger tea

Tips to reduce gas from healthy foods

  • Introduce fibre and beans gradually
  • Soak dried beans, discard the water and cook them thoroughly, and rinse canned beans
  • Use an alpha-galactosidase enzyme with gas-producing foods
  • Use lactase if you are lactose intolerant
  • Eat slowly and chew well
  • Cook vegetables rather than eating them all raw
  • Drink plenty of water as you increase fibre

Overview of the low-FODMAP approach

  1. Elimination: avoid high-FODMAP foods for about 2 to 6 weeks
  2. Reintroduction: add each FODMAP group back one at a time to identify triggers
  3. Personalisation: keep only the foods that cause symptoms limited

It is not intended to be lifelong, and it can reduce fibre and affect gut bacteria, so work with a dietitian.

If you also have acid reflux

Some foods that help GERD, such as oats and vegetables, are fine, while others such as onion and garlic can trigger both reflux and gas. See our GERD diet guide.

When to see a doctor

If diet changes do not help, or you have weight loss, blood in the stool, persistent vomiting, severe pain, anemia or persistent bloating (especially in women over 50), see a doctor rather than continuing to restrict foods. Diet restrictions should not replace medical assessment for celiac disease, IBS or other conditions.

Frequently asked questions

What foods cause the most gas?

Beans, lentils, cabbage, cauliflower, broccoli, onions, garlic, artichokes, wheat, rye, dairy, apples, pears, and sugar-free sweets containing sorbitol, mannitol or xylitol are among the biggest contributors.

Why do beans cause gas?

Beans contain sugars called oligosaccharides that humans cannot fully digest. They reach the large intestine, where bacteria ferment them and release gas. Soaking and rinsing beans, cooking them well, and building up portions slowly can help.

Are fruits and vegetables bad for bloating?

Not in general, and they are important for health. Some, such as apples, pears, mango, onions and cauliflower, are high in fermentable carbohydrates, while others such as carrots, spinach, oranges, kiwi and blueberries are usually better tolerated.

What is a low-FODMAP diet?

It is a short-term elimination diet that reduces certain fermentable carbohydrates to see which ones trigger symptoms, followed by reintroduction. It is best done with a dietitian, because it is restrictive.

Sources

  1. NIDDK: Eating, diet and nutrition for gas in the digestive tract
  2. NHS: Bloating

This article is for educational purposes only and does not replace advice from a doctor or other qualified health professional. See our medical disclaimer.