Why Do I Fart: Causes, Smells, and When to Worry

Farting is your body’s way of releasing gas that builds up in your digestive tract, and it happens to everyone. Healthy adults pass gas up to 25 times a day. That gas comes from two places: air you swallow and gases produced by bacteria breaking down food in your large intestine.

Where the Gas Actually Comes From

Five odorless gases make up 99% of every fart: nitrogen, oxygen, carbon dioxide, hydrogen, and methane. The remaining 1% is what makes some farts smell terrible, but we’ll get to that.

Your body produces intestinal gas through two main routes. The first is swallowed air. Every time you eat, drink, or swallow saliva, small amounts of air travel into your stomach and intestines. Most of it gets burped back up, but some continues through your digestive system and exits the other end. The second, larger source is fermentation. When food reaches your large intestine, trillions of bacteria go to work breaking down whatever your small intestine couldn’t fully digest. That bacterial feast produces hydrogen, carbon dioxide, and sometimes methane as byproducts.

Your personal mix of gut bacteria determines a lot about your gas. Some people harbor bacteria called methanogens that convert hydrogen into methane. Others have more sulfate-reducing bacteria or other hydrogen-consuming microbes. This is why two people can eat the same meal and have very different results. Interestingly, methane-producing bacteria have been linked to slower gut transit and constipation, so your gas composition may even influence how your bowels move.

Why Some Farts Smell Worse Than Others

The smell comes almost entirely from hydrogen sulfide, a gas your nose can detect at concentrations as low as one-half part per billion. Certain gut bacteria generate hydrogen sulfide by breaking down sulfur-containing amino acids from protein. Foods rich in these amino acids, like eggs, meat, and cruciferous vegetables (broccoli, cabbage, cauliflower), give those bacteria more raw material to work with. Other bacteria in the genus Desulfovibrio produce hydrogen sulfide by processing sulfate, a compound found naturally in some foods and drinking water.

So if your gas is frequent but odorless, it’s likely dominated by those five main gases and driven by fermentation of carbohydrates. If it’s especially foul, protein and sulfur-rich foods are the more likely culprits.

Foods That Make You Gassy

The biggest gas producers are foods containing carbohydrates your small intestine can’t fully absorb. These pass into the large intestine where bacteria ferment them enthusiastically. The main categories:

  • Beans and lentils contain a sugar called GOS (galacto-oligosaccharides) that humans lack the enzyme to break down on their own.
  • Dairy products contain lactose, which causes gas in people who don’t produce enough of the enzyme to digest it. This includes roughly 68% of the global population to some degree.
  • Wheat, rye, and barley contain fructans, a type of fiber that ferments readily in the colon.
  • Certain fruits like apples, pears, and watermelon are high in fructose and sorbitol, both of which can escape absorption.
  • Vegetables like onions, garlic, and artichokes are also rich in fructans and another sugar alcohol called mannitol.
  • Sugar-free gums and candies often contain sorbitol, xylitol, or erythritol, all of which are poorly absorbed and highly fermentable.

High-fiber foods in general produce more gas, which is why people who suddenly increase their fiber intake often notice a dramatic uptick. Your gut bacteria do adjust over time, so the effect usually lessens after a few weeks of consistent intake.

Habits That Increase Swallowed Air

Some gas has nothing to do with what you eat. Swallowing excess air pushes more nitrogen and oxygen into your digestive tract, and several everyday habits make this worse: eating too fast, talking while eating, chewing gum, sucking on hard candy, drinking through a straw, drinking carbonated beverages, and smoking. Carbonated drinks are a double source because the dissolved carbon dioxide releases gas directly into your stomach on top of the air you swallow while sipping.

If you suspect swallowed air is a factor, the fixes are straightforward. Eat more slowly, finish chewing and swallowing before taking the next bite, skip the straw, and cut back on sparkling water or soda. Save conversation for between bites rather than during them.

Reducing Gas From Food

For gas caused by specific food groups, a targeted approach works better than a blanket dietary restriction. If beans are the problem, an enzyme supplement containing alpha-galactosidase (sold under brand names like Beano) can help. This enzyme breaks down the indigestible sugars in beans and certain vegetables before your gut bacteria get to them. In a randomized, placebo-controlled trial, alpha-galactosidase significantly reduced bloating and the proportion of patients experiencing flatulence compared to placebo.

Other common remedies have weaker evidence. Simethicone, the active ingredient in Gas-X, breaks up gas bubbles in the stomach but doesn’t reduce the amount of gas your gut actually produces. The evidence for activated charcoal and most probiotic supplements is similarly limited.

For people with irritable bowel syndrome or chronic gas, a low-FODMAP diet, which temporarily restricts those fermentable carbohydrates, is one of the most studied approaches. It’s designed as a short-term elimination diet: you remove high-FODMAP foods for a few weeks, then reintroduce them one category at a time to identify your personal triggers. This is best done with guidance from a dietitian, since cutting out too many food groups long-term can affect nutrition.

If lactose is the issue, reducing dairy or using lactose-free products typically solves it. For fructose intolerance, cutting back on high-fructose corn syrup and certain fruits makes the biggest difference. People with celiac disease often see gas and bloating resolve on a gluten-free diet.

When Gas Signals Something Else

Farting by itself, even frequently, is rarely a sign of a serious problem. But gas paired with other symptoms can point to an underlying condition worth investigating. Pay attention if you notice blood in your stool, unexplained weight loss, persistent diarrhea or constipation, a change in how often you have bowel movements, or ongoing nausea and vomiting. Prolonged abdominal pain alongside gas is worth prompt medical attention.

Several digestive conditions increase gas production. Small intestinal bacterial overgrowth (SIBO) occurs when bacteria that normally live in the large intestine colonize the small intestine, fermenting food earlier than they should and producing excess hydrogen or methane. Food intolerances to lactose, fructose, or gluten can all cause gas as a primary symptom. In these cases, treating the underlying condition, rather than just managing the gas, is what makes a lasting difference.