Most foul-smelling gas comes from sulfur compounds produced by bacteria in your large intestine. The food you eat is the single biggest factor determining how bad your gas smells, though certain digestive conditions can make the problem worse. A healthy adult passes gas roughly 10 to 20 times a day, producing anywhere from about 500 to 1,500 ml of gas total. The volume and frequency are normal. The smell is where things get interesting.
Sulfur Is the Main Culprit
Your large intestine hosts trillions of bacteria that break down whatever your stomach and small intestine didn’t fully digest. When those bacteria ferment sulfur-containing compounds in food, they release hydrogen sulfide, the gas responsible for that rotten-egg smell. Even tiny amounts of hydrogen sulfide are potent enough for your nose to detect, so a small dietary shift can make a noticeable difference in odor.
The biggest sulfur contributors are cruciferous vegetables: broccoli, brussels sprouts, cabbage, cauliflower, and radishes. Onions, leeks, and garlic are also high in sulfur compounds. Among proteins, eggs and red meat deliver significant sulfur through amino acids like cysteine and methionine. Your gut bacteria break cysteine down directly into hydrogen sulfide, which is why a steak-and-eggs dinner can produce particularly pungent results the next morning.
High-Protein Diets Make It Worse
When you eat more protein than your small intestine can fully absorb, the excess reaches your colon, where bacteria go to work on it. This process, sometimes called putrefaction, generates not just hydrogen sulfide but also ammonia and other nitrogen-containing compounds that add their own sharp, unpleasant notes to the mix. Research shows that high protein intake raises ammonia levels in the gut, and that ammonia production increases as more undigested protein reaches the colon.
This is especially relevant if you’ve recently started a high-protein diet, begun using protein shakes, or increased your meat intake. Your gut bacteria adapt over time, but the transition period often comes with noticeably worse-smelling gas. The same applies to diets heavy in dried legumes like kidney beans, lentils, and chickpeas, which contain both sulfur compounds and complex carbohydrates that your body can’t break down on its own.
Other Foods That Fuel Smelly Gas
Sulfur and protein aren’t the only drivers. Several other food categories reliably increase gas production and odor:
- Sugar alcohols like sorbitol and mannitol, found in sugar-free gum, candy, and some “diet” products, pass through your small intestine undigested and ferment aggressively in the colon.
- High-fat foods like fried dishes, fatty meats, rich cream sauces, and pastries slow digestion, giving bacteria more time to ferment whatever else is sitting in your gut.
- Beer and carbonated drinks introduce extra gas into your system and can contain fermentable sugars that feed odor-producing bacteria.
- Fermented foods like sauerkraut are high in both sulfur and bacterial byproducts, a double hit for smell.
When a Digestive Condition Is the Cause
If your gas has become persistently foul and dietary changes haven’t helped, a malabsorption problem could be involved. These conditions prevent your small intestine from properly absorbing nutrients, sending undigested food to the colon where bacteria produce excess gas and odor.
Lactose intolerance is one of the most common culprits. If you lack enough of the enzyme that breaks down milk sugar, dairy products ferment in your colon, producing acidic, smelly gas along with bloating and sometimes diarrhea. Many people develop some degree of lactose intolerance as adults without realizing it, and the connection to worsening gas can be easy to miss.
Celiac disease, an immune reaction to gluten, damages the lining of the small intestine and impairs nutrient absorption. Foul-smelling gas, greasy stools that float, bloating, and unexplained weight loss are hallmark signs. Some people with celiac disease have minimal gut symptoms but develop iron-deficiency anemia because the damage occurs in the part of the intestine where iron is absorbed.
Small intestinal bacterial overgrowth (SIBO) happens when bacteria that normally live in your colon migrate into the small intestine and begin fermenting food before it can be properly absorbed. SIBO produces significant bloating and gas, and can mimic celiac disease closely enough that distinguishing between the two sometimes requires specific testing.
The pattern to watch for is persistent foul gas combined with other symptoms: ongoing diarrhea, unintentional weight loss, greasy or floating stools, abdominal pain, or bloating that doesn’t respond to dietary changes. Rectal bleeding, fever, or an unexplained rash alongside increased gas also warrant a medical conversation.
How to Reduce the Smell
The most effective approach is an elimination experiment. Cut the highest-sulfur foods (cruciferous vegetables, eggs, onions, garlic, red meat) for two to three weeks and see if the smell improves. If it does, reintroduce them one at a time to identify which ones your gut handles worst. You don’t necessarily need to eliminate them permanently, just figure out your threshold.
If beans and legumes are a staple in your diet, an enzyme supplement containing alpha-galactosidase (sold as Beano) can help. It breaks down the complex carbohydrates in beans that your body can’t digest, reducing the raw material available for bacterial fermentation. For dairy-related gas, a lactase enzyme supplement taken before eating dairy does the same job.
Probiotics can also shift the balance. Introducing beneficial bacteria to your gut may improve digestion and reduce the population of sulfur-producing species, though results vary from person to person and can take several weeks to become noticeable.
Eating more slowly and chewing thoroughly gives your small intestine a better chance of absorbing nutrients before they reach the colon. Reducing portion sizes of problem foods rather than cutting them entirely is often enough. Spreading your protein intake across the day instead of loading it into one or two large meals also helps, because your small intestine can only absorb so much protein per sitting. Whatever it can’t handle gets sent downstream to the bacteria.

