Bad-smelling farts are almost always caused by hydrogen sulfide, a gas produced when bacteria in your colon break down sulfur-containing foods and proteins. The smell has nothing to do with the volume of gas you pass. Most flatulence is actually odorless, made up of nitrogen, oxygen, carbon dioxide, hydrogen, and methane. It’s a tiny fraction of sulfur-based gases that creates the rotten-egg smell.
Why Farts Smell: The Role of Sulfur
Your large intestine is home to trillions of bacteria, and some of them specialize in processing sulfur. These sulfate-reducing bacteria, primarily species of Desulfovibrio (which account for 64 to 81% of the sulfate-reducing population), use sulfate as fuel and release hydrogen sulfide as a byproduct. Other bacteria in the Bacteroides and Clostridium families take a different route, fermenting sulfur-containing amino acids like cysteine and methionine from protein you’ve eaten.
Research published in Gastroenterology found that hydrogen sulfide concentration in flatus strongly correlates with how bad it smells, and may be the single most important compound determining odor. So when your gas is particularly foul, it usually means more hydrogen sulfide is being produced, either because you’re feeding those bacteria more sulfur or because conditions in your gut are favoring their activity.
Foods That Make Gas Worse
Sulfur-rich foods are the most direct cause of smelly gas. These include cruciferous vegetables (broccoli, cauliflower, cabbage, Brussels sprouts), eggs, meat, garlic, onions, and dried fruits preserved with sulfites. Beer and wine also contain sulfur compounds. None of these foods are unhealthy, but eating large amounts in a single meal gives your gut bacteria a bigger sulfur load to work with.
High-protein diets deserve special attention. When you eat more protein than your small intestine can fully absorb, the excess reaches your colon, where bacteria ferment the amino acids. This process produces not just hydrogen sulfide but also ammonia, phenol, and indole compounds, all of which contribute to foul odor. This is why people on high-protein diets often notice their gas smells significantly worse than usual.
Beans, lentils, and high-fiber foods cause more gas overall, but the gas they produce is mostly hydrogen and methane, which are odorless. They’ll make you gassier without necessarily making the smell worse.
How Much Gas Is Normal
Healthy adults pass gas anywhere from 8 to 25 times a day. That range is wide because it depends heavily on diet, gut bacteria composition, and how much air you swallow. Passing gas frequently doesn’t signal a problem on its own. What matters more is a noticeable change in pattern: gas that’s suddenly much more frequent, much more foul, or accompanied by other symptoms.
Medical Conditions That Cause Foul Gas
When your body can’t properly digest or absorb certain nutrients, undigested food reaches the colon and feeds gas-producing bacteria. This is the mechanism behind several conditions that cause persistently bad-smelling gas.
Lactose intolerance is one of the most common. If you lack enough of the enzyme that breaks down milk sugar, dairy products ferment in your colon instead of being absorbed in your small intestine. Celiac disease damages the lining of the small intestine, impairing absorption of multiple nutrients. Both conditions typically come with diarrhea, bloating, and cramping alongside the gas.
Small intestinal bacterial overgrowth (SIBO) occurs when bacteria that normally live in the colon colonize the small intestine, where they ferment food before your body has a chance to absorb it. This produces excess gas and often a particularly sulfurous smell. Exocrine pancreatic insufficiency, where the pancreas doesn’t produce enough digestive enzymes, leads to malabsorption of fats and proteins, which then ferment in the colon.
Infections can also be responsible. Giardia and other intestinal parasites disrupt normal digestion and often cause greasy, foul-smelling stools along with terrible gas. Even a course of antibiotics can shift your gut bacteria balance temporarily, killing off beneficial species and allowing sulfate-reducing bacteria to expand.
When Smelly Gas Signals Something Bigger
Foul gas on its own, especially after a sulfur-heavy meal, is not a concern. But persistent changes in your gas paired with other symptoms can point to an underlying problem. The Cleveland Clinic flags these companion symptoms as worth discussing with a doctor: abdominal pain, diarrhea, unexplained weight loss, bleeding from the rectum, fever, or a skin rash. The combination of smelly gas plus ongoing digestive changes is what separates a dietary issue from something that needs investigation.
How to Reduce Gas Odor
The most effective approach is dietary. Cutting back on sulfur-heavy foods, even temporarily, can tell you a lot about what’s driving the smell. If you’re eating a high-protein diet, try moderating your portion sizes at individual meals so less undigested protein reaches your colon. Spreading your protein intake across more meals rather than loading it into one or two can make a real difference.
How you eat matters too. The NIDDK recommends eating slowly, sitting down for meals rather than eating on the go, and avoiding talking while chewing. These habits reduce the amount of air you swallow, which cuts down on total gas volume. Smaller, more frequent meals also help because they give your digestive system manageable loads to process. Limiting carbonated drinks, gum, hard candy, and drinking through straws reduces swallowed air as well.
For targeted odor reduction, bismuth subsalicylate (the active ingredient in Pepto-Bismol) is one of the few over-the-counter options with solid evidence. In a study published in Gastroenterology, subjects who took it for three to seven days saw a greater than 95% reduction in hydrogen sulfide released from fecal samples. The mechanism is simple: bismuth reacts with hydrogen sulfide to form bismuth sulfide, an insoluble compound that traps the gas before it can become airborne. Researchers noted an obvious reduction in offensive odor. This isn’t a long-term solution, but it works for short-term situations.
Probiotics are often recommended, though the evidence for odor specifically is less clear-cut. The theory is sound: shifting your gut bacteria balance away from sulfate-reducing species and toward beneficial fermenters should reduce hydrogen sulfide production. Fermented foods like yogurt, kefir, and sauerkraut introduce competing bacterial strains, though results vary widely between individuals.
Protein Sources and Gas Odor
Not all protein creates equal amounts of smelly gas. Animal proteins, particularly red meat and eggs, are higher in sulfur-containing amino acids than most plant proteins. Research comparing high-fat and high-protein diets found that excessive protein consumption from any source produces odorous fermentation products, but the composition of those products varies by source. If you’ve recently increased your protein intake for fitness goals or weight loss and noticed worse-smelling gas, the connection is likely direct. Dialing back slightly or switching some animal protein for plant-based sources can help without sacrificing your overall intake.

