Stinky farts come down to one thing: sulfur. Specifically, bacteria in your large intestine break down certain foods and produce tiny amounts of sulfur-containing gases that your nose can detect at extraordinarily low concentrations. The smell isn’t random. It’s a direct result of what you eat, how long food sits in your gut, and which bacteria are doing the digesting.
Why Farts Smell: The Sulfur Connection
Most of the gas you pass is completely odorless. Roughly 99% of flatulence is made up of nitrogen, oxygen, carbon dioxide, hydrogen, and sometimes methane, none of which have any smell at all. The stink comes from the remaining 1% or less, which contains sulfur-based compounds produced when gut bacteria ferment undigested food.
The primary culprit is hydrogen sulfide, the same compound responsible for the smell of rotten eggs. Research measuring the chemical composition of human flatulence found that hydrogen sulfide was the dominant sulfur gas, present at concentrations roughly five times higher than the next contributor (methanethiol, which smells like rotting cabbage). A third compound, dimethyl sulfide, contributes a slightly sweeter, less pungent note. The intensity of the bad smell correlated directly with hydrogen sulfide concentration, meaning the more hydrogen sulfide in the gas, the worse it smells.
What makes hydrogen sulfide so potent is that your nose is absurdly sensitive to it. The human detection threshold sits around 0.008 parts per million, and some people can smell it at concentrations as low as 0.0005 ppm. That’s why even a tiny amount of the gas can fill a room.
Foods That Make Gas Smell Worse
The sulfur in your farts has to come from somewhere, and the biggest source is your diet. Foods high in sulfur give your gut bacteria more raw material to work with, which means more hydrogen sulfide in the end product. The main dietary sulfur sources fall into a few categories:
- Cruciferous vegetables: Broccoli, cabbage, kale, Brussels sprouts, and radishes all contain sulfur compounds called glucosinolates. These are the same compounds that give these vegetables their slightly bitter, peppery taste.
- Allium vegetables: Garlic, onions, and leeks are packed with specialized sulfur metabolites. In garlic, for example, only about 10% of the total sulfur comes from protein. The rest comes from these unique compounds that gut bacteria readily ferment.
- Animal protein: Fish, chicken, beef, and eggs are rich in sulfur-containing amino acids. In meat and fish, 74% to 97% of the total sulfur content comes from these amino acids, making a high-protein diet a reliable source of smelly gas.
- Drinking water: Inorganic sulfate in tap water is another often-overlooked source. It feeds sulfate-reducing bacteria in the colon, which produce hydrogen sulfide as a byproduct.
This doesn’t mean these foods are unhealthy. Cruciferous vegetables are some of the most nutrient-dense foods you can eat. But if you’re wondering why your gas suddenly got worse, a dietary inventory is the best place to start.
Constipation and Slow Digestion
How long food sits in your colon matters just as much as what you eat. When stool moves through the digestive tract slowly, bacteria have more time to ferment its contents and generate gas. Constipation is a common and underappreciated cause of especially foul-smelling flatulence for exactly this reason. The longer the bacteria work on the material, the more sulfur gases accumulate.
High-fiber foods can contribute to this effect in a different way. Fiber is beneficial for digestion overall, but it takes longer to break down, giving it more time to ferment in the gut. If you’ve recently increased your fiber intake and noticed worse-smelling gas, that’s a normal adjustment period. Your gut bacteria population shifts over a few weeks to accommodate the change, and the smell typically improves.
Sugar Alcohols and Artificial Sweeteners
Sugar alcohols like sorbitol, xylitol, and erythritol (found in sugar-free gum, protein bars, and diet candies) are poorly absorbed in the small intestine. Whatever isn’t absorbed passes into the colon, where bacteria ferment it and produce gas. The fermentation generates hydrogen, methane, and carbon dioxide, and if sulfur-containing foods are also present, the conditions are ripe for particularly smelly results.
The severity depends on how much you consume, what else you’ve eaten, and your individual gut bacteria. Some people tolerate moderate amounts of sugar alcohols without issue. Others experience bloating, gas, and even osmotic diarrhea from relatively small doses, because unabsorbed sugar alcohols pull water into the intestine. If your smelly gas tracks with sugar-free products, reducing those is an easy experiment.
Food Intolerances and Malabsorption
When your body can’t properly digest or absorb certain nutrients, those undigested particles become a feast for gas-producing bacteria further down the digestive tract. Two of the most common culprits are lactose intolerance and celiac disease.
With lactose intolerance, undigested milk sugar reaches the colon intact and gets fermented aggressively, producing both high-volume gas and foul odor. This affects a significant portion of the global population and is easy to identify with a simple elimination trial: cut out dairy for two weeks and see if the problem resolves.
Celiac disease damages the lining of the small intestine, which impairs absorption of many nutrients at once. The result is a wide range of undigested material reaching the colon, leading to bloating, foul-smelling gas, and often diarrhea or greasy stools. Fructose intolerance works similarly, with unabsorbed fructose fermenting in the colon. In all these cases, an elimination diet (removing the suspected trigger food for a set period) can be both diagnostic and therapeutic.
Bacterial Overgrowth in the Small Intestine
Normally, most of your gut bacteria live in the large intestine. Small intestinal bacterial overgrowth, or SIBO, is a condition where an abnormal number of bacteria colonize the small intestine, where they don’t belong. These bacteria start fermenting food before it’s fully digested and absorbed, producing excess gas much earlier in the digestive process. The result is bloating, abdominal discomfort, and often noticeably smellier flatulence.
SIBO is diagnosed with a breath test that measures hydrogen and methane levels after you drink a sugar solution. If levels spike above a certain threshold, it suggests bacterial overgrowth. Treatment typically involves addressing the underlying cause (which can range from slow gut motility to structural issues) along with targeted antibiotics to reduce the bacterial population.
What You Can Actually Do About It
Most smelly gas is a normal byproduct of digestion, not a sign of disease. But if you want to reduce it, the most effective strategies target the sulfur supply chain:
- Track your diet for a week. Write down what you eat and when the worst episodes happen. Patterns usually emerge quickly, especially around high-sulfur foods, dairy, or sugar-free products.
- Reduce sulfur-heavy foods temporarily. Cut back on garlic, onions, cruciferous vegetables, and red meat for a few days. If the smell improves noticeably, you’ve found your trigger. You can then reintroduce foods one at a time.
- Stay regular. Constipation makes everything worse. Adequate water intake, physical activity, and consistent fiber intake keep things moving and reduce fermentation time.
- Introduce fiber gradually. If you’re adding beans, whole grains, or vegetables to your diet, increase the amount slowly over two to three weeks rather than all at once.
If smelly gas is accompanied by abdominal pain, unexplained weight loss, blood in your stool, persistent diarrhea, or fever, those are signs that something beyond normal digestion is going on and worth investigating with a healthcare provider.

