Farts smell like rotten eggs because of sulfur-containing gases, primarily hydrogen sulfide, produced by bacteria in your large intestine. These gases make up only about 50 parts per million of any given fart, but hydrogen sulfide is so potent that even tiny amounts produce that distinctive rotten egg odor. The rest of a fart is mostly odorless gases like nitrogen, carbon dioxide, and sometimes methane.
The Sulfur Gases Behind the Smell
Three sulfur compounds do most of the damage: hydrogen sulfide (rotten eggs), methanethiol (rotten cabbage), and dimethyl sulfide (garlic-like). Combined, they average just 50 ppm of each fart’s total volume. That means over 99% of every fart is completely odorless. The smell is entirely driven by that tiny sulfur fraction, and the balance between these three compounds determines whether a particular fart leans more toward eggs, cabbage, or something harder to describe.
Your gut bacteria produce hydrogen sulfide in two main ways. The primary route is breaking down cysteine, a sulfur-containing amino acid found in many protein-rich foods. The secondary route involves a group of specialized microbes called sulfate-reducing bacteria, which pull sulfur from inorganic compounds like dietary sulfates and sulfites. These bacteria, predominantly species of Desulfovibrio, live in your colon and convert sulfate into hydrogen sulfide as a byproduct of their metabolism.
Foods That Increase Sulfur Gas
The biggest dietary driver is sulfur-rich food. Cruciferous vegetables top the list: broccoli, cauliflower, cabbage, Brussels sprouts, and bok choy all contain sulfur compounds that your gut bacteria readily convert into hydrogen sulfide. Beans and lentils are also major contributors, though they tend to increase gas volume overall rather than sulfur content specifically.
High-protein foods are the other key trigger. Eggs, red meat, dairy, and whey protein supplements are rich in the sulfur-containing amino acids cysteine and methionine. When you eat more protein than your small intestine fully absorbs, the excess reaches your colon, where bacteria break those amino acids down into sulfur gases. This is why people on high-protein diets often notice their gas smells worse, even if they aren’t passing gas more frequently.
Some less obvious sources matter too. Beer and wine contain sulfites used as preservatives. Dried fruits, processed meats, and some soft drinks contain added sulfites or fructose that can increase fermentation. Garlic and onions are naturally high in sulfur compounds. Even dairy products can play a role: if you’re lactose intolerant, the undigested lactose ferments in your colon and produces extra gas, which can carry more sulfur compounds along with it.
Why Some People’s Gas Smells Worse
The composition of your gut microbiome determines how much hydrogen sulfide you produce from the same meal. People with higher populations of sulfate-reducing bacteria will convert more dietary sulfur into odorous gas. These bacteria, particularly Desulfovibrio piger and Desulfovibrio desulfuricans, vary significantly from person to person based on long-term diet, antibiotic history, and individual gut ecology.
Your transit time also matters. When food moves slowly through your colon, bacteria have more time to ferment it, producing more sulfur gas. Constipation, dehydration, or a low-fiber diet can all slow things down and intensify the smell. Conversely, when things move quickly (during a bout of diarrhea, for instance), you may pass more gas but with less concentrated odor per episode.
Medical Conditions That Play a Role
Persistently foul-smelling gas can sometimes point to a digestive condition rather than just diet. The common thread is malabsorption: when your small intestine doesn’t fully break down or absorb certain nutrients, those undigested compounds reach your colon, where bacteria ferment them aggressively.
Lactose intolerance is the most common example. Without enough of the enzyme that breaks down milk sugar, lactose passes intact into the colon and fuels excessive bacterial fermentation. Fructose malabsorption works the same way with fruit sugars. Celiac disease and inflammatory bowel disease cause broader malabsorption of carbohydrates, fats, and proteins, all of which can increase sulfur gas production along with symptoms like bloating, diarrhea, fatty stools, and abdominal pain.
Small intestinal bacterial overgrowth (SIBO) is another possibility. When bacteria colonize the small intestine in abnormally high numbers, they begin fermenting food before it reaches the colon, producing excess gas and often a sulfur smell. A hydrogen breath test can help diagnose both specific carbohydrate intolerances and SIBO.
If your gas has changed suddenly, comes with abdominal pain, unexplained weight loss, diarrhea, constipation, or blood in your stool, those are signals worth discussing with a doctor. Smelly gas on its own is almost always harmless, but paired with other symptoms, it can be a clue to something that needs attention.
How to Reduce the Rotten Egg Smell
The most direct approach is reducing your sulfur intake for a few days to see if the smell improves. Cut back on cruciferous vegetables, eggs, red meat, garlic, onions, and beer. You don’t need to eliminate these permanently, but a short trial helps confirm that diet is the issue rather than something else.
Increasing fiber from non-sulfur sources (oats, rice, bananas, potatoes) can help speed up transit time and reduce the window for bacterial fermentation. Staying well hydrated supports this same effect. Eating smaller, more frequent meals rather than large ones also limits the amount of undigested food reaching your colon at any given time.
Bismuth-based compounds, the active ingredient in some over-the-counter stomach remedies, bind to sulfur in the gut and can noticeably reduce hydrogen sulfide levels. Research in animal models has shown that bismuth compounds inhibit the growth of sulfate-reducing bacteria and reduce sulfide production, particularly when combined with certain other treatments. The practical effect for most people is a noticeable drop in gas odor within a day or two of use.
Probiotics may help shift your gut microbiome away from sulfate-reducing species over time, though results vary widely between individuals. For targeted relief, adjusting what you eat will always produce faster and more predictable results than trying to reshape your bacterial population.