What Causes a Lot of Gas? Foods, Habits & More

Excessive gas comes from two sources: air you swallow and gas produced by bacteria in your large intestine as they break down undigested food. Most people pass gas up to 25 times a day, and that’s completely normal. When it feels like more than that, or when it comes with bloating and discomfort, the cause is usually something identifiable in your diet, your habits, or occasionally an underlying digestive condition.

How Your Gut Produces Gas

Your small intestine absorbs most of what you eat, but certain carbohydrates pass through undigested. When they reach your colon, trillions of bacteria ferment them and release gas as a byproduct. More than 99% of intestinal gas is hydrogen, carbon dioxide, and methane. Less than 1% is the sulfur-containing compounds responsible for the smell.

The volume of gas you produce depends almost entirely on how much undigested material reaches your colon and which bacteria are living there. This is why two people can eat the same meal and have very different experiences afterward.

Foods That Cause the Most Gas

The biggest gas producers are foods rich in carbohydrates that your small intestine can’t fully break down. These include beans, lentils, onions, garlic, wheat, certain fruits like apples and pears, and cruciferous vegetables like broccoli, cabbage, and Brussels sprouts. These foods contain specific types of fermentable sugars and fibers that gut bacteria thrive on.

A study published in the journal Gut found that when both healthy people and those with irritable bowel syndrome ate high-fiber, high-fermentable meals, everyone produced more gas and experienced more abdominal discomfort. The difference was that people with IBS reported significantly more pain from the same amount of gas, suggesting their intestines are more sensitive to normal stretching and pressure.

Carbonated drinks add gas directly. Beer, soda, and sparkling water all introduce carbon dioxide into your digestive tract, and some of it works its way down rather than coming back up as a burp.

Swallowed Air Adds Up Fast

Every time you swallow, a small amount of air goes down with your food or saliva. Certain habits dramatically increase how much air you take in. Eating too fast, talking while eating, chewing gum, sucking on hard candy, drinking through straws, smoking, and sipping carbonated beverages all push extra air into your stomach. Some of that air gets burped out, but the rest travels into your intestines and eventually passes as gas.

Slowing down at meals makes a real difference. Chewing thoroughly, swallowing one bite before taking the next, and drinking from a glass instead of a straw are simple changes that reduce the amount of air entering your system. Having conversations after meals rather than during them helps too.

Lactose Intolerance and Enzyme Deficiencies

If dairy products consistently give you gas, bloating, or diarrhea within 30 minutes to 2 hours of eating them, you may be lactose intolerant. Lactose is the sugar in milk, and it requires a specific enzyme to be digested in the small intestine. When your body doesn’t produce enough of that enzyme, lactose passes intact into the colon, where bacteria ferment it and produce gas.

Lactose intolerance is extremely common. It affects a large percentage of adults worldwide, particularly those of East Asian, West African, Arab, Jewish, Greek, and Italian descent. It can also develop gradually with age, which is why some people who drank milk without problems as children start having trouble in their 20s or 30s. Similar enzyme deficiencies exist for fructose (the sugar in fruit and honey) and sorbitol (a sugar alcohol found in sugar-free gum and diet foods).

Fiber: Too Much, Too Fast

Fiber is healthy, but increasing your intake too quickly is one of the most common causes of sudden, excessive gas. When you go from a low-fiber diet to loading up on whole grains, beans, and vegetables, your gut bacteria get a sudden flood of fermentable material they aren’t accustomed to processing efficiently.

The Academy of Nutrition and Dietetics recommends increasing fiber by no more than 5 grams per day until you reach your target intake. That means adding one new high-fiber food at a time rather than overhauling your diet in a single week. Drinking plenty of water alongside the extra fiber helps keep things moving and reduces the likelihood of bloating and discomfort. Most people find that their gas levels settle down after a few weeks as their gut bacteria adjust.

Medications That Cause Gas

Several common medications list gas and bloating as side effects. These include aspirin, antacids, opioid pain medications, anti-diarrheal drugs, fiber supplements like psyllium-based products, multivitamins, and iron pills. If your gas problem started around the same time you began a new medication or supplement, the connection is worth exploring with your pharmacist or doctor.

Digestive Conditions Behind Chronic Gas

When gas is persistent, uncomfortable, and doesn’t respond to dietary changes, an underlying condition may be involved.

Irritable bowel syndrome (IBS) is one of the most common causes. IBS doesn’t necessarily make you produce more gas, but it changes how your brain and gut communicate, making you more sensitive to normal amounts of gas. The result is more pain, more bloating, and more discomfort than someone without IBS would experience from the same meal.

Small intestinal bacterial overgrowth (SIBO) occurs when bacteria that normally live in the colon start multiplying in the small intestine. These misplaced bacteria ferment food earlier in the digestive process, producing extra gas along with diarrhea and sometimes weight loss. SIBO is typically diagnosed with a breath test that measures hydrogen and methane levels. A hydrogen reading of 20 parts per million or higher, or a methane reading of 10 parts per million or higher, generally points to a positive result.

Celiac disease damages the lining of the small intestine when you eat gluten, leading to poor absorption of nutrients. The unabsorbed food then ferments in the colon and produces gas. Other conditions that can cause chronic gas include gastroparesis (slow stomach emptying), constipation, and in rare cases, intestinal blockages.

What Actually Helps Reduce Gas

Over-the-counter remedies vary widely in effectiveness. Alpha-galactosidase, sold as Beano, has the best evidence for reducing gas from high-fiber and bean-heavy meals. It works by breaking down the fermentable carbohydrates before they reach your colon. Clinical trials have shown significant improvement in gas symptoms compared to placebo.

Simethicone, the active ingredient in Gas-X, is widely used but has not shown consistent benefits for everyday flatulence in clinical studies. It works by combining small gas bubbles into larger ones, which theoretically makes them easier to pass, but the evidence that this actually reduces symptoms is weak.

Activated charcoal taken orally has similarly inconsistent evidence. However, charcoal-lined undergarments are surprisingly effective at neutralizing odor, absorbing up to nearly 100% of sulfur gases in one study. Charcoal pads placed in underwear absorbed 55 to 77% of odor-causing gases.

For most people, the most effective approach is identifying which foods trigger the worst symptoms and adjusting portion sizes or preparation methods. Keeping a simple food diary for a week or two often reveals patterns that are easy to miss otherwise. Soaking dried beans before cooking, eating smaller meals, and spacing out high-fiber foods throughout the day rather than eating them all at once can reduce gas production significantly without requiring you to eliminate foods you enjoy.