Why Do You Fart? Causes, Smell, and When to Worry

You fart because bacteria in your large intestine produce gas as they break down food your body couldn’t fully digest. The average healthy person passes gas about 10 times a day, with up to 20 times still considered normal. It’s one of the most routine things your digestive system does, and it happens through two main pathways: gas produced inside your gut by bacteria, and air you swallow throughout the day.

How Your Gut Bacteria Make Gas

Your small intestine absorbs most of the nutrients from food, but certain carbohydrates pass through undigested. Fiber, some starches, and sugars like lactose and fructose can all survive the trip to your colon intact. Once there, trillions of bacteria go to work fermenting them. This fermentation is actually useful. It produces short-chain fatty acids that help nourish the cells lining your colon and reduce inflammation. But gas is a byproduct of that same process.

Five odorless gases make up about 99% of what comes out: nitrogen, oxygen, carbon dioxide, hydrogen, and methane. The proportions vary wildly from person to person. Hydrogen alone can account for anywhere from 0% to 86% of a single episode of flatulence, while nitrogen ranges from 11% to 92%. Your individual gut bacteria, diet, and digestion speed all influence the mix.

Why Some Farts Smell

If 99% of the gas is odorless, the smell comes from the remaining 1% or less. The primary culprit is hydrogen sulfide, a colorless gas with that distinctive rotten-egg smell. Your gut bacteria produce it when they break down sulfur-containing amino acids, which are found in protein-rich foods like eggs, meat, and cruciferous vegetables such as broccoli, cauliflower, and cabbage. The more sulfur-containing food your bacteria have to work with, the more pungent the result.

Swallowed Air Adds Up

Not all gas in your digestive tract is made there. You swallow small amounts of air constantly, and certain habits increase that amount significantly. Eating too fast, talking while eating, chewing gum, sucking on hard candy, using straws, and drinking carbonated beverages all push extra air into your stomach. Smoking does too. Some of that air gets burped back up, but whatever makes it past your stomach travels through the intestines and exits the other end.

Medical factors can also play a role. Loose-fitting dentures cause extra swallowing motions that pull in air. People who use CPAP machines for sleep apnea sometimes swallow pressurized air overnight. Stress and anxiety can change your breathing and swallowing patterns in ways that increase air intake without you noticing.

Foods That Cause the Most Gas

The biggest gas producers are foods high in fermentable carbohydrates, sometimes grouped under the acronym FODMAPs (fermentable oligosaccharides, disaccharides, monosaccharides, and polyols). These include:

  • Beans and lentils: high in oligosaccharides that humans lack the enzyme to break down in the small intestine
  • Cruciferous vegetables: broccoli, Brussels sprouts, cabbage, and cauliflower contain both fiber and sulfur compounds
  • Dairy products: for people with lactose intolerance, undigested lactose ferments rapidly in the colon
  • Fruits high in fructose: apples, pears, and watermelon can cause gas in people who absorb fructose poorly
  • Whole grains and high-fiber foods: the same fiber that benefits your gut health also feeds gas-producing bacteria
  • Sugar alcohols: sweeteners like sorbitol and xylitol, common in sugar-free gum and candy, are poorly absorbed and highly fermentable

The connection between these foods and gas is straightforward. Your small intestine can’t digest them completely, so they arrive in your colon where bacteria ferment them. That fermentation produces beneficial fatty acids for your gut lining, but gas comes along for the ride. This is why high-fiber diets are healthy but also gassier, especially when you increase fiber intake suddenly rather than gradually.

Why Some People Are Gassier Than Others

Your personal gut microbiome, the specific mix of bacteria living in your colon, has a major influence on how much gas you produce. Two people can eat the same meal and have very different outcomes. Someone whose gut bacteria produce more hydrogen during fermentation will generate more total gas. Others may harbor bacteria that consume hydrogen and convert it into methane, which can shift the volume and composition of what’s produced.

Digestive enzyme levels matter too. People with lactose intolerance lack enough of the enzyme that breaks down milk sugar, so lactose reaches the colon undigested and becomes fuel for gas-producing bacteria. The same logic applies to fructose intolerance. These aren’t rare conditions. Lactose intolerance affects a large portion of the global adult population, and many people with mild cases don’t realize their extra gas is diet-related.

When Gas Signals Something Else

Passing gas 10 to 20 times a day is normal and not a sign of any problem. But a noticeable change in your gas patterns, especially paired with other symptoms, can point to an underlying condition. Abdominal pain, persistent diarrhea or constipation, unexplained weight loss, or bloating that doesn’t resolve are all reasons to pay attention.

Several digestive conditions involve excess gas as a key symptom. Irritable bowel syndrome frequently causes bloating and altered gas production. Small intestinal bacterial overgrowth, where bacteria colonize parts of the small intestine where they don’t normally thrive, leads to extra gas production along with diarrhea and weight loss. Celiac disease, an immune reaction to gluten, damages the small intestine’s ability to absorb nutrients, leaving more undigested food for colonic bacteria to ferment.

Gastroparesis, a condition where the stomach empties too slowly, and even obstructions in the digestive tract can alter gas patterns. The key distinction is change. If your gas has always been roughly the same and falls within the normal range, your digestive system is doing its job. If something shifts suddenly or comes with pain, that’s worth investigating.