What Gives You Gas? Causes and How to Stop It

Gas comes from two sources: air you swallow and food that ferments in your large intestine. Most of it is odorless, and passing gas 14 to 23 times a day is completely normal. The foods you eat, the habits you have while eating, and the unique mix of bacteria living in your gut all determine how much gas your body produces and how noticeable it is.

How Your Body Makes Gas

Your small intestine can’t fully break down every type of carbohydrate you eat. When those undigested remnants reach your large intestine, trillions of bacteria go to work fermenting them. That fermentation produces hydrogen, methane, and carbon dioxide, which are the main components of intestinal gas. The process is entirely normal and actually a sign that your gut bacteria are doing their job.

What makes gas vary so much from person to person is the composition of those bacteria. Your gut flora is relatively stable over time, but it differs significantly from someone else’s. That’s why your friend can eat a bowl of lentils without issue while the same meal leaves you bloated for hours. The volume of gas a healthy person produces in a day ranges from about 500 to 1,500 milliliters, roughly one to three pints.

Foods That Cause the Most Gas

Certain carbohydrates are especially prone to fermentation because your body lacks the enzymes to break them down in the small intestine. The biggest offenders fall into a few categories.

Beans, Lentils, and Legumes

Beans have their reputation for good reason. They’re packed with complex sugars called raffinose-family oligosaccharides. Humans don’t produce the enzyme needed to break these sugars apart, so they pass intact into the large intestine where bacteria ferment them into hydrogen, methane, and carbon dioxide. Soybeans, chickpeas, and lentils are all high in these sugars.

Cruciferous Vegetables

Broccoli, cauliflower, kale, collard greens, Brussels sprouts, and cabbage all contain the same type of fermentable sugars found in beans, plus a good amount of fiber. Both feed gut bacteria and increase gas production. Cooking these vegetables can help break down some of those sugars, which is why raw broccoli tends to cause more discomfort than steamed.

Certain Fruits

Apples, pears, cherries, and peaches are high in fructose and a type of fiber that your small intestine absorbs poorly. When that fructose reaches the colon undigested, bacteria ferment it just like any other sugar. Fruit juice concentrates the fructose without the slower digestion that whole fruit provides, making it even more likely to cause gas.

Dairy Products

If you’re one of the roughly 68% of people worldwide who lose some ability to digest lactose after childhood, milk, yogurt, and ice cream can be significant gas producers. Undigested lactose ferments in the colon the same way other sugars do. You might tolerate small amounts of dairy or aged cheeses (which are lower in lactose) without trouble, while a large glass of milk sets things off.

Wheat and High-Fiber Foods

Wheat-based bread, cereal, and crackers contain fructans, a type of carbohydrate that resists digestion. Fiber-rich foods in general increase gas because fiber is, by definition, something your body can’t fully break down. That doesn’t mean you should avoid fiber. Your gut bacteria thrive on it, and the health benefits are well established. But ramping up fiber intake too quickly is a common reason people suddenly notice more gas.

Sugar-Free Products and Sweeteners

Sugar alcohols are one of the most overlooked causes of gas. Sorbitol, mannitol, xylitol, and maltitol are used widely in sugar-free gum, candy, protein bars, and even some liquid medications. Your small intestine absorbs them poorly, so they travel to the colon where bacteria partially ferment them. The effect is dose-dependent: as little as 5 to 20 grams of sorbitol per day can cause gas, bloating, and cramping. A few sticks of sugar-free gum might not bother you, but a handful of sugar-free candies easily pushes you past that threshold. If the ingredient list includes sweeteners ending in “-ol,” that product can contribute to gas.

Air You Swallow

Not all gas comes from fermentation. A surprising amount enters your body as swallowed air, a process called aerophagia. You swallow small amounts of air every time you eat or drink, but certain habits increase that volume significantly:

  • Eating too fast or talking while eating
  • Chewing gum or sucking on hard candy
  • Drinking through a straw
  • Carbonated drinks like soda and sparkling water
  • Smoking

Swallowed air mostly causes belching, but some of it passes through the stomach into the intestines and exits as flatulence. Eating more slowly, putting your fork down between bites, and drinking from a glass instead of a straw can noticeably reduce this type of gas.

Why Some Gas Smells and Some Doesn’t

The bulk of intestinal gas, hydrogen, methane, and carbon dioxide, is completely odorless. That’s why you can pass gas frequently without anyone noticing. The smell comes from tiny amounts of sulfur-containing gases, particularly hydrogen sulfide, which bacteria produce when they break down proteins. Foods high in sulfur tend to create the most odor: eggs, meat, garlic, onions, and cruciferous vegetables like cabbage and broccoli. So a high-protein, garlic-heavy dinner is more likely to produce smelly gas than a bowl of rice, even if the rice with beans produces a higher total volume.

Medical Conditions That Increase Gas

Sometimes excessive gas points to something beyond diet. Lactose intolerance and celiac disease both cause incomplete digestion of specific nutrients, leaving more fuel for bacterial fermentation. Irritable bowel syndrome (IBS) doesn’t necessarily increase gas production, but it makes the gut more sensitive to normal amounts of gas, so even average volumes can feel painful.

A less well-known condition called small intestinal bacterial overgrowth, or SIBO, occurs when bacteria that normally live in the large intestine colonize the small intestine. Your small intestine is designed to have relatively few bacteria, kept low by the rapid flow of contents and bile. When bacteria multiply there instead, they begin fermenting food much earlier in the digestive process, producing gas in a part of the gut that isn’t built to handle it. This leads to bloating, pain, and excessive flatulence that doesn’t improve much with dietary changes alone.

Practical Ways to Reduce Gas

The most effective approach is figuring out which foods are your personal triggers, since gut bacteria vary so much between individuals. Keeping a simple food diary for a week or two can reveal patterns you wouldn’t notice otherwise.

Eating smaller, more frequent meals gives your digestive system less to process at once. If you want to increase your fiber intake, do it gradually over several weeks rather than all at once, giving your gut bacteria time to adjust. For lactose intolerance, lactase supplements taken before dairy can help break down the sugar before it reaches the colon.

Over-the-counter products containing simethicone help gas bubbles combine so they’re easier to pass, though they don’t reduce the total amount of gas produced. For people with IBS or SIBO, a healthcare provider may recommend a low-FODMAP diet, which systematically removes the most fermentable carbohydrates and then reintroduces them one at a time to identify specific triggers. Prescription treatments exist for SIBO and other conditions where dietary changes aren’t enough.

Some gas is inevitable and healthy. Your gut bacteria produce it as a byproduct of keeping your digestive system functioning. The goal isn’t to eliminate gas entirely, but to reduce the amount that causes discomfort or disrupts your day.