Smelly farts come from sulfur-containing gases produced by bacteria in your large intestine. The primary culprit is hydrogen sulfide, the same compound that gives rotten eggs their smell. Two other sulfur gases, methanethiol and dimethyl sulfide, contribute as well, but hydrogen sulfide concentration correlates most strongly with how bad the odor actually is. The foods you eat, the bacteria living in your gut, and how well you digest certain nutrients all influence how much of these gases get produced.
Why Farts Smell: Sulfur Gases
Most of the gas you pass is odorless. It’s a mix of hydrogen, carbon dioxide, and sometimes methane, none of which have a noticeable smell. The stink comes from a small fraction of the total volume: sulfur-containing compounds. In lab measurements of human flatulence, hydrogen sulfide is present at roughly five times the concentration of methanethiol and about thirteen times that of dimethyl sulfide. When researchers tested odor-reducing strategies, activated charcoal removed virtually all the smell, while zinc acetate reduced sulfur gas levels but couldn’t eliminate the odor entirely, suggesting there are minor non-sulfur contributors to the smell as well.
For context, healthy adults on a normal diet pass somewhere between 500 and 1,500 milliliters of gas per day. That’s roughly one to three pints. The volume alone doesn’t determine smell. Someone can pass a lot of gas that’s mostly odorless, while a small amount of sulfur-heavy gas can clear a room.
High-Sulfur Foods
The biggest dietary driver of smelly gas is sulfur-rich food. Cruciferous vegetables are the classic offenders: broccoli, cauliflower, cabbage, kale, Brussels sprouts, radish, and mustard greens. These all contain compounds called glucosinolates, which are sulfur-based molecules responsible for their characteristic pungent taste. When you chew these vegetables, an enzyme called myrosinase breaks the glucosinolates down into active sulfur compounds. Whatever doesn’t get broken down in your mouth or stomach reaches your large intestine intact, where gut bacteria finish the job, releasing sulfur gases in the process.
Other high-sulfur foods include eggs, red meat, garlic, onions, and dried fruits preserved with sulfites. Beer and wine can contribute too, since fermentation produces small amounts of sulfur compounds. If your farts have gotten noticeably worse, it’s worth looking at whether any of these foods have recently increased in your diet.
Food Intolerances and Malabsorption
When your body can’t fully digest a sugar or nutrient in the small intestine, the undigested portion passes into the colon where bacteria ferment it aggressively. Lactose intolerance is the most common example. If you lack enough of the enzyme that breaks down lactose (the sugar in dairy), that lactose reaches your colon and feeds bacteria that produce hydrogen, carbon dioxide, and methane. But there’s a less obvious effect: when bacteria have plenty of carbohydrates to ferment, the overall balance of gas production shifts. Lab studies on colonic fermentation show that when lactose isn’t present, bacteria shift toward fermenting proteins instead, producing more sulfides, branched-chain fatty acids, phenols, and indoles. All of these smell worse than the byproducts of carbohydrate fermentation.
Fructose malabsorption works similarly. People who absorb fructose poorly send excess sugar into the colon, where it ferments and produces gas. High-fructose foods include apples, pears, honey, and many processed foods sweetened with high-fructose corn syrup. If your gas is both more frequent and more foul after eating fruit or sweetened foods, fructose malabsorption could be involved.
Gut Bacteria and What They Eat
Your gut microbiome is the engine behind all flatulence odor. The specific mix of bacterial species in your colon determines what gets fermented and which gases are produced. Two people can eat the exact same meal and produce very different-smelling gas because their bacterial populations differ.
High-protein diets tend to produce smellier gas because bacteria break down amino acids (the building blocks of protein) into sulfur compounds, ammonia, and other pungent molecules. This is why a steak-heavy meal often produces worse-smelling gas than a rice-based one. Fiber, on the other hand, feeds bacteria that primarily produce odorless gases. A diet very low in fiber can actually make your gas smell worse, because without carbohydrates to ferment, bacteria turn to protein as their main fuel source.
Medical Conditions That Cause Foul Gas
Persistent, unusually foul-smelling gas can sometimes point to a digestive condition that affects how you absorb nutrients. Small intestinal bacterial overgrowth (SIBO) is one possibility. In SIBO, bacteria that normally live in the large intestine migrate into the small intestine, where they start fermenting food much earlier in the digestive process. This leads to excess gas, bloating, and sometimes oily or particularly smelly stool. The bacteria feast on carbohydrates before your body can absorb them, producing more gas and short-chain fatty acids than normal.
Celiac disease, an autoimmune reaction to gluten, damages the lining of the small intestine and impairs nutrient absorption. Unabsorbed fats and carbohydrates reach the colon and get fermented, producing foul-smelling gas. Inflammatory bowel diseases like Crohn’s disease can have a similar effect. Parasitic infections such as giardiasis are another cause, particularly if the change in gas odor started after traveling or drinking untreated water.
If your gas has changed suddenly, comes with abdominal pain, unexplained weight loss, persistent diarrhea, or oily stools, those are signs worth investigating with a healthcare provider rather than writing off as a food issue.
Medications and Supplements
Antibiotics are a common trigger for smellier gas. By killing off certain bacterial populations and allowing others to flourish, antibiotics can temporarily shift the balance of your gut microbiome toward species that produce more sulfur gases. This usually resolves within a few weeks of finishing the course, as your normal bacterial populations recover.
Iron supplements are another well-known offender. Iron changes the chemical environment in your gut and often produces darker, more foul-smelling stool and gas. Sugar alcohols found in sugar-free gum, candy, and protein bars (like sorbitol and xylitol) are poorly absorbed and ferment readily in the colon, producing both more gas and smellier gas.
Practical Ways to Reduce the Smell
Since hydrogen sulfide is the main odor driver, reducing sulfur intake is the most direct approach. Cutting back on cruciferous vegetables, eggs, and red meat for a few days can help you gauge whether diet is the primary factor. This doesn’t mean avoiding these foods permanently. Small portions spread across multiple meals produce far less gas than a large serving all at once.
Increasing soluble fiber from sources like oats, bananas, and rice gives your gut bacteria carbohydrates to ferment instead of protein, which shifts gas production toward odorless compounds. You may notice more gas initially when adding fiber, but the smell typically improves. Introduce it gradually to let your gut adjust.
Bismuth subsalicylate, the active ingredient in Pepto-Bismol, has been shown to reduce hydrogen sulfide release from the colon by more than 95% in controlled studies. It works by binding sulfur before it becomes gas. This isn’t a long-term solution, but it can help in the short term while you sort out dietary triggers. Activated charcoal, taken as a supplement or even used in charcoal-lined seat cushions, absorbs sulfur gases effectively. In testing, charcoal-lined cushions captured more than 90% of sulfur gases before they escaped into the air.
Keeping a simple food diary for a week or two, noting what you ate and when your gas was particularly bad, can reveal patterns that aren’t obvious day to day. Many people find their triggers are a combination of factors: a high-protein meal plus dairy, for instance, or cruciferous vegetables paired with beer.