What to Eat to Get Rid of Gas and Bloating

Certain foods produce far less intestinal gas than others, and swapping a few key items in your diet can make a noticeable difference within days. Gas forms when bacteria in your large intestine ferment carbohydrates that your stomach and small intestine couldn’t fully break down. The fix is straightforward: eat more of the foods that digest easily, cut back on the ones that feed those gas-producing bacteria, and add a few natural remedies that help move things along.

Why Some Foods Create More Gas

Your body lacks a specific enzyme needed to break down a family of sugars called raffinose oligosaccharides. These sugars pass through your stomach and small intestine completely intact, then land in your colon where bacteria feast on them and release hydrogen, methane, and carbon dioxide as byproducts. That’s the gas you feel.

Legumes are the biggest source. Dry beans contain roughly 2 to 56 mg per gram of stachyose (one of these indigestible sugars), and lentils, chickpeas, soybeans, and black gram are all packed with them. But beans aren’t the only culprit. Cruciferous vegetables like broccoli, cauliflower, kale, and collard greens contain similar fermentable carbohydrates. So do certain fruits (apples, peaches, pears), whole wheat, dairy products, and anything sweetened with sugar alcohols ending in “-ol,” like sorbitol, mannitol, and xylitol, which are common in sugar-free gum and candy.

Foods That Produce Less Gas

The simplest strategy is replacing high-fermentation foods with ones your body digests more completely before they reach the colon.

  • Proteins: Meat, poultry, fish, and eggs produce virtually no gas because they contain little to no fermentable carbohydrate. Tofu is generally better tolerated than whole soybeans.
  • Non-cruciferous vegetables: Zucchini, bell peppers, spinach, lettuce, cucumbers, tomatoes, and green beans are all low in the sugars that feed gas-producing bacteria.
  • Low-fructose fruits: Berries, citrus fruits, bananas, and grapes tend to cause less gas than apples, pears, and stone fruits.
  • Rice: Among all grains, white rice is the least likely to cause gas. Oats are also relatively well tolerated for most people.
  • Lactose-free dairy: If regular milk or ice cream gives you gas, switching to lactose-free versions or hard cheeses (which are naturally lower in lactose) often resolves it.

You don’t need to eliminate every gas-producing food permanently. The goal is identifying which ones bother you most and adjusting portions or frequency.

The Low-FODMAP Approach

If swapping individual foods isn’t enough, a low-FODMAP diet is the most studied approach for reducing gas systematically. FODMAPs are a group of fermentable carbohydrates found in a wide range of foods, including the ones listed above plus garlic, onions, wheat, and certain sweeteners. The diet works in phases: you eliminate high-FODMAP foods for two to six weeks, then reintroduce them one category at a time to pinpoint your personal triggers.

Research at Johns Hopkins has found this approach reduces symptoms in up to 86% of people. It’s particularly effective for anyone with irritable bowel syndrome, but it works for garden-variety gas problems too. A dietitian can help you navigate the elimination phase without unnecessarily restricting your diet.

Herbs and Teas That Ease Gas

Fennel has been used for digestive complaints for centuries, and the science backs it up. Its active compound is chemically similar to dopamine and works by relaxing the smooth muscles in your intestinal wall. This antispasmodic effect helps trapped gas move through rather than building up and causing pain. You can chew fennel seeds after a meal, steep them in hot water as tea, or find fennel in many “digestive” tea blends.

Peppermint works through a similar muscle-relaxing mechanism. Enteric-coated peppermint oil capsules are available over the counter and are designed to dissolve in the intestine rather than the stomach. The NHS recommends taking one capsule 30 to 60 minutes before eating, up to three times a day, increasing to two capsules per dose if needed. Swallow them whole with water, since chewing them releases the oil too early and can cause heartburn. Peppermint tea is a gentler alternative that many people find soothing after meals.

Ginger is another traditional remedy. It helps stimulate the movement of food through your digestive tract, which can prevent the slow transit that lets gas accumulate. Fresh ginger sliced into hot water or grated into meals is the easiest way to use it.

Enzyme Supplements for Problem Foods

If you love beans and don’t want to give them up, enzyme supplements can help. Products containing alpha-galactosidase (sold under brand names like Beano) supply the enzyme your body lacks to break down raffinose sugars before they reach the colon. In a double-blind crossover study, people who took the enzyme before a bean-heavy meal had significantly fewer gas episodes over the following six hours compared to those who took a placebo.

The key is timing: you need to take the enzyme with your first bite of the problem food, not after symptoms start. Similarly, if lactose is your issue, lactase enzyme tablets taken before dairy can prevent gas from that source.

Eating Habits That Reduce Swallowed Air

Not all gas comes from food fermentation. A surprising amount is simply swallowed air, a condition called aerophagia. You swallow more air than you realize when you eat quickly, talk during meals, drink through a straw, or chew gum. Each of these habits introduces extra air into your digestive tract that has to come out as gas or belching.

A few simple changes help: chew each bite slowly and swallow completely before taking the next one. Save conversations for after the meal rather than during it. Sip from a glass instead of using a straw. Skip chewing gum, mints, and hard candies you suck on, like lollipops. These behavioral shifts can reduce the air-swallowing component of gas noticeably within a day or two.

Fermented Foods and Probiotics

Fermented foods like yogurt, kefir, sauerkraut, and kombucha introduce beneficial bacteria that can improve how your gut handles fermentable carbohydrates over time. The tradeoff is that they sometimes increase gas temporarily as your gut microbiome adjusts. Mayo Clinic recommends starting with one serving a day and building up gradually to minimize that initial bloating phase.

On the supplement side, specific probiotic strains have shown more promise than others. Bacillus coagulans Unique IS2, studied in people with IBS, reduced the severity of flatulence along with bloating, pain, and other digestive symptoms. Other well-studied strains like Lactobacillus plantarum 299v increased the number of patients reporting improvements in flatulence and general digestive symptoms, though the effect on bloating severity was less clear. Probiotics aren’t a quick fix. Most studies run four to eight weeks before measuring results, so consistency matters more than the first few doses.

Putting It All Together

Start with the easiest wins: slow down when you eat, cut back on the most obvious gas producers (beans, cruciferous vegetables, sugar-free gum, carbonated drinks), and try a cup of fennel or peppermint tea after meals. If that’s not enough, a structured low-FODMAP elimination can help you identify exactly which carbohydrates your gut struggles with. For the foods you don’t want to give up, enzyme supplements taken before the meal can bridge the gap. Layer in fermented foods or a targeted probiotic over several weeks to support longer-term improvement.