Foul-smelling gas is almost always caused by hydrogen sulfide, the same compound responsible for the smell of rotten eggs. Your colon produces this gas when bacteria break down sulfur-containing foods, especially high-protein meals and certain vegetables. In most cases, unusually smelly farts reflect what you’ve been eating over the past day or two, not a medical problem.
That said, persistently terrible-smelling gas, especially alongside other digestive symptoms, can sometimes point to an underlying issue worth investigating.
Why Gas Smells: The Chemistry
Most of the gas your body produces is actually odorless. The bulk of flatulence is nitrogen, oxygen, carbon dioxide, hydrogen, and methane, none of which have a noticeable smell. The stink comes from a small fraction of the total gas: sulfur compounds, primarily hydrogen sulfide.
Hydrogen sulfide is generated in your large intestine by sulfate-reducing bacteria, most commonly a species called Desulfovibrio piger, found in roughly 60% of healthy American adults. These bacteria feed on hydrogen and sulfur-containing compounds in your colon, converting them into hydrogen sulfide as a byproduct. Even tiny amounts of this gas are enough to produce a strong odor, so a shift in what those bacteria are eating can make a big difference in how your gas smells.
Foods That Make It Worse
The most common reason for a sudden change in gas odor is dietary. Two categories of food are the biggest culprits: sulfur-rich vegetables and high-protein meals.
Cruciferous vegetables like broccoli, cauliflower, cabbage, brussels sprouts, kale, arugula, turnips, and radishes are packed with both fiber and sulfur compounds. Your body can’t digest the fiber on its own, so it passes into the colon where bacteria ferment it, producing gas. The sulfur in these vegetables gives that gas its particularly sharp smell. This is completely normal and, ironically, a sign you’re eating foods that are genuinely good for you.
High-protein diets are the other major trigger. When you eat more protein than your body needs for basic functions (roughly more than one gram per kilogram of body weight per day), the excess reaches your colon undigested. Gut bacteria then ferment sulfur-containing amino acids like cysteine and methionine, producing hydrogen sulfide directly. This is why protein-heavy diets, especially those built around eggs, red meat, and dairy, tend to produce noticeably worse-smelling gas.
Other known offenders include garlic, onions, beer, wine, and dried fruits. Foods high in sulfate, like some processed meats and certain mineral waters, also feed sulfate-reducing bacteria and increase hydrogen sulfide production.
Food Intolerances and Malabsorption
If your gas consistently smells bad and comes with bloating, cramping, or diarrhea, a food intolerance may be involved. Lactose intolerance is the most common example. When your small intestine doesn’t produce enough of the enzyme that breaks down lactose (the sugar in milk and dairy), undigested lactose passes into your colon. Bacteria there ferment it aggressively, creating excess gas along with bloating, nausea, abdominal pain, and sometimes diarrhea.
Fructose malabsorption works similarly. If your body struggles to absorb the fructose found in fruit, honey, and many processed foods, the unabsorbed sugar becomes fuel for gas-producing bacteria in the colon. The pattern is the same: more fermentation, more gas, worse smell. If you notice that smelly gas reliably follows certain foods, keeping a simple food diary for a week or two can help you spot the connection.
When Gut Bacteria Are Out of Balance
Sometimes the problem isn’t what you’re eating but which bacteria are doing the digesting. An overgrowth of sulfate-reducing bacteria in the small intestine can lead to a condition sometimes called intestinal sulfide overproduction. This produces elevated levels of hydrogen sulfide with that characteristic rotten egg smell, often alongside diarrhea and abdominal pain. A breath test can measure hydrogen sulfide levels; readings of 3 parts per million or higher at any point during the test suggest above-normal production.
Parasitic infections can also change gas quality. Giardia, a common waterborne parasite, causes gas, stomach cramps, nausea, and distinctively greasy, foul-smelling stool that tends to float. It’s typically picked up through contaminated water while camping, traveling, or swimming in untreated water sources. A stool sample is all that’s needed for diagnosis.
How Much Gas Is Normal
You might be surprised how often healthy people pass gas. Older medical textbooks cite an average of about 14 times per day, but newer research using wearable sensors found that participants actually averaged around 32 times per day. There’s no widely accepted “normal” number, and there’s a lot of individual variation. The frequency of your gas matters less than whether it has changed suddenly or comes with other symptoms.
Signs Something More Serious Is Going On
Bad-smelling gas on its own, especially after a big meal of broccoli or a protein shake, is not a cause for concern. But certain combinations of symptoms deserve attention. Persistent smelly gas paired with unexplained weight loss, blood in your stool, ongoing diarrhea or constipation, or significant abdominal pain may signal conditions like celiac disease, inflammatory bowel disease, or chronic infection. A sudden change in your gas patterns that doesn’t correspond to any dietary shift is also worth noting.
Reducing the Smell
The most straightforward fix is adjusting what you eat. Cutting back on sulfur-heavy foods for a few days will typically reduce odor noticeably. If high protein intake is the cause, bringing your daily intake closer to the one-gram-per-kilogram threshold can help. You don’t need to eliminate cruciferous vegetables entirely. Cooking them (rather than eating them raw) breaks down some of the fiber and sulfur compounds before they reach your colon, which reduces gas production.
Introducing high-fiber foods gradually, rather than in large amounts all at once, gives your gut bacteria time to adjust and generally produces less gas overall. Eating more slowly and chewing thoroughly also reduces the amount of undigested material reaching your colon.
For short-term relief, bismuth subsalicylate (the active ingredient in Pepto-Bismol) has been shown to directly bind hydrogen sulfide in the colon, effectively neutralizing the smell. The bismuth component is the active player here, chemically trapping the sulfur gas before it can be released. It’s not a long-term solution, but it works well for occasional use when you know a meal is likely to cause problems.
Probiotics may help rebalance gut bacteria over time, though results vary widely between individuals. If you suspect a food intolerance, an elimination diet, where you remove a suspected food for two to three weeks and then reintroduce it, is the most practical way to confirm the connection at home.