Most of the gas you pass is completely odorless. About 99% of flatulence consists of five scentless gases: nitrogen, oxygen, carbon dioxide, hydrogen, and methane. The smell comes entirely from trace sulfur compounds that make up the remaining 1% or less. The reason some farts stink and others don’t comes down to how much of those sulfur compounds your gut bacteria produced from whatever you recently ate.
The Sulfur Compounds Behind the Smell
A study published in the journal Gut had judges smell and rate flatus samples (a thankless job) and identified three sulfur-containing gases responsible for the odor. Hydrogen sulfide was the dominant one, present at roughly five times the concentration of the next culprit. Judges described its smell as “rotten eggs.” The second gas, methanethiol, smelled like decomposing vegetables. The third, dimethyl sulfide, had a sweeter scent and likely plays a minor role in making farts unpleasant.
Hydrogen sulfide concentration alone correlated strongly with how bad a sample smelled. In 78% of the samples tested, it was the predominant sulfur gas. So the short answer to “why do some farts stink” is: they contain more hydrogen sulfide. The follow-up question is what creates that hydrogen sulfide in the first place.
Your Gut Bacteria Are the Factories
Your large intestine hosts a group of microbes called sulfate-reducing bacteria. These bacteria use sulfur-containing compounds as fuel, and they release hydrogen sulfide as a byproduct. The most common of these belong to the genus Desulfovibrio, which accounts for roughly 64 to 81% of the sulfate-reducing bacteria in the colon. Other species chip in smaller contributions.
Beyond these specialists, many common gut bacteria can also break down the amino acid cysteine and release hydrogen sulfide in the process. Bacteria from genera like Clostridium, Streptococcus, and Enterobacter all carry the genes for this reaction. So it’s not one rogue microbe making your gas smell. It’s a broad coalition of bacteria all processing sulfur in slightly different ways, and the total output determines how noticeable the result is.
Foods That Fuel Smelly Gas
Sulfur enters your colon through food. The amino acids cysteine and methionine, both found in protein, are the primary delivery system. Animal proteins like eggs and red meat tend to contain higher levels of these amino acids than plant proteins, which is why a steak dinner or a three-egg omelet can produce particularly potent results.
Certain vegetables are also high in sulfur compounds:
- Cruciferous vegetables: broccoli, cauliflower, Brussels sprouts, cabbage
- Alliums: onions, garlic
- Legumes: beans and lentils
These foods are healthy, so the goal isn’t to avoid them entirely. But if you notice a pattern where your gas gets worse after a particular meal, the sulfur content of that food is the likely explanation.
Why Protein-Heavy Diets Make It Worse
Your small intestine absorbs most dietary protein, but when you eat more than your body can process upstream, the excess reaches the large intestine intact. There, bacteria ferment it through a process called putrefaction. This doesn’t just produce sulfur gases. It also generates molecules called indole and skatole, which have their own distinctly foul smell. The combination of hydrogen sulfide from sulfur-containing amino acids and indole and skatole from general protein breakdown is what makes high-protein meals a reliable source of the worst-smelling gas.
This is also why constipation can make gas smell worse. When stool moves slowly through the colon, bacteria have more time to ferment whatever is sitting there, producing more of these odorous byproducts.
When Smelly Gas Points to a Digestive Problem
Occasionally, persistently foul gas signals that something in your digestive system isn’t working properly. Lactose intolerance is one of the most common culprits. If you can’t fully break down the sugar in dairy, it passes into the colon undigested, where bacteria ferment it aggressively and produce pungent gas along with bloating and diarrhea.
Other conditions that cause malabsorption, where nutrients aren’t properly broken down or absorbed in the small intestine, can have the same effect. Celiac disease and pancreatic insufficiency both allow more undigested food to reach the colon, giving bacteria extra material to ferment. If your gas has become noticeably worse and is accompanied by abdominal pain, diarrhea, unexplained weight loss, or bleeding, those are signs worth bringing to a doctor. On its own, smelly gas is just your microbiome doing its job with whatever you fed it.
Reducing the Smell
The most straightforward approach is dietary. Cutting back on sulfur-rich foods, especially in combination (think a meal with eggs, broccoli, and onions), reduces the raw material your gut bacteria use to produce hydrogen sulfide. Balancing protein intake with enough fiber to keep things moving through the colon also helps, since slower transit time means more fermentation.
There’s also a pharmacological option. Bismuth subsalicylate, the active ingredient in Pepto-Bismol, binds to hydrogen sulfide in the colon and converts it into an insoluble compound that doesn’t release odor. In one study, 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 surprisingly simple: bismuth chemically traps the sulfur before it becomes gas. Earlier research also showed that zinc acetate could reduce flatus odor through a similar sulfide-binding mechanism.
Neither approach eliminates gas itself. You’ll still pass the same volume of nitrogen, hydrogen, and carbon dioxide. You’re just removing the tiny fraction that carries the smell.

