Foul-smelling farts come from sulfur-containing gases produced when bacteria in your large intestine break down certain foods, especially high-protein meals and cruciferous vegetables. The average person passes gas about 15 times a day, and most of that gas is actually odorless. The smell kicks in when specific compounds, produced in tiny amounts, make their presence known.
The Three Gases Behind the Smell
Flatulence is mostly made up of odorless gases like nitrogen, carbon dioxide, and methane. The stink comes from sulfur compounds that account for a small fraction of the total volume but pack a disproportionate punch. A study published in the journal Gut identified three main culprits, each with a distinct smell profile:
- Hydrogen sulfide is usually the dominant one, responsible for the classic rotten-egg smell.
- Methanethiol produces a smell described as decomposing vegetables.
- Dimethyl sulfide has a sweeter, less offensive odor.
The ratio of these three gases varies from person to person and meal to meal, which is why some farts smell dramatically worse than others. More sulfur going into your gut means more raw material for bacteria to convert into these gases.
Foods That Make Gas Smell Worse
Two categories of food drive most of the odor: sulfur-rich vegetables and protein.
Cruciferous vegetables like broccoli, cauliflower, cabbage, kale, and radishes naturally contain sulfate compounds that are poorly absorbed in the small intestine. That means they pass largely intact into your colon, where bacteria feast on them. Allium vegetables, including garlic, onions, leeks, and shallots, are another major source. Beer and some breads also contain added sulfates that contribute.
High-protein foods are the other big factor. Meat, eggs, fish, and dairy contain sulfur-containing amino acids (the building blocks of protein). Nuts, seeds, and legumes carry them too, though in different amounts. When you eat more protein than your small intestine fully absorbs, the leftovers reach your colon, and bacteria ferment them into hydrogen sulfide. This is why people who suddenly increase their protein intake, whether from a new diet or protein shakes, often notice their gas becomes significantly more pungent.
The key detail here: it’s not just about eating sulfur-rich foods, it’s about how much of that sulfur escapes digestion in your small intestine and reaches the bacteria in your colon. A massive steak overwhelms your digestive capacity more than a small portion, leaving more undigested protein for bacteria to work on.
Your Gut Bacteria Are Running the Show
The smell ultimately depends on which bacteria live in your colon and how active they are. A group called sulfate-reducing bacteria are the primary producers of hydrogen sulfide. These organisms use sulfate the way your cells use oxygen, as fuel for their metabolism. The dominant species belong to the genus Desulfovibrio, which makes up roughly 64 to 81 percent of sulfate-reducing bacteria in the colon.
But they’re not the only players. Several common gut bacteria, including species of Clostridium, Streptococcus, and even E. coli, can break down the amino acid cysteine directly into hydrogen sulfide through a different chemical pathway. Another organism called Bilophila wadsworthia generates sulfide by processing a related compound called sulfite. Meanwhile, bacteria like Bacteroides and Prevotella can release sulfate from the protective mucus lining your gut wall, creating yet another source of sulfur for gas production.
This means your personal microbiome composition has a real effect on how your gas smells. Two people can eat the same meal and produce very different results. Factors that shift your bacterial populations, like a course of antibiotics, a major dietary change, or a stomach illness, can temporarily or permanently alter your gas odor.
Medical Conditions That Increase Odor
Sometimes persistently foul gas points to a digestive problem rather than just a dietary pattern. The common thread is malabsorption: when your body fails to fully digest and absorb nutrients in the small intestine, more undigested material reaches the colon, giving bacteria extra fuel.
Small intestinal bacterial overgrowth (SIBO) is one well-known cause. When too many bacteria colonize the small intestine, they start fermenting carbohydrates before your body can absorb them, producing excess gas and other byproducts. SIBO can also impair fat absorption, which contributes to oily, foul-smelling stool alongside the gas.
Celiac disease, lactose intolerance, and other malabsorption conditions work through a similar mechanism. Undigested lactose, gluten-damaged intestinal lining, or impaired enzyme production all leave more nutrients available for bacterial fermentation in the colon. Inflammatory bowel conditions can also disrupt normal digestion enough to change gas composition.
Medications and Supplements
Several common medications can change gas odor or increase gas production. Opioid pain medications slow gut motility, giving bacteria more time to ferment food and generate sulfur gases. Fiber supplements and bulking agents like psyllium increase the material available for bacterial fermentation. Multivitamins and iron supplements are also known to cause changes in gas volume and smell. If your gas suddenly became worse after starting a new medication, that’s a likely connection.
How to Reduce the Smell
Since the smell tracks directly to sulfur intake and bacterial activity, the most effective approach is dietary. Cutting back on the biggest sulfur sources, particularly eggs, red meat, cruciferous vegetables, garlic, and onions, typically produces noticeable results within a day or two. You don’t have to eliminate these foods entirely. Smaller portions mean less undigested sulfur reaching your colon.
If you’re on a high-protein diet, spreading your protein across more meals rather than loading it into one or two sittings gives your small intestine a better chance of absorbing it before bacteria get involved. Eating slowly and chewing thoroughly also supports more complete digestion higher up in the GI tract.
Probiotics may help by shifting the balance of bacterial species in your colon, though results vary widely between individuals. Some people find that regular yogurt or fermented foods gradually reduce gas odor over weeks.
Signs Something More Serious Is Going On
Smelly gas on its own, especially after identifiable meals, is almost always harmless. It becomes worth investigating when it’s accompanied by other symptoms: bloody stools, unexplained weight loss, persistent diarrhea or constipation, a consistent change in stool appearance, or ongoing nausea and vomiting. Prolonged abdominal pain that doesn’t resolve is another signal that something beyond normal digestion may be involved. These combinations can point to malabsorption disorders, SIBO, or inflammatory conditions that benefit from diagnosis and treatment.

