Farts smell bad because of tiny amounts of sulfur-containing gases produced by bacteria in your large intestine. These gases make up less than 1% of a fart’s total volume, but your nose is extraordinarily sensitive to them, detecting hydrogen sulfide at concentrations as low as 0.6 parts per billion. The rest of a fart is mostly odorless nitrogen, hydrogen, carbon dioxide, and sometimes methane.
The Sulfur Gases Behind the Smell
A fart is overwhelmingly made of gases you can’t smell at all. Nitrogen, oxygen, hydrogen, carbon dioxide, and methane account for the vast majority of what comes out. The stink comes from trace sulfur compounds that ride along in minuscule quantities.
The biggest offender is hydrogen sulfide, the same compound that gives rotten eggs their signature smell. In lab measurements of human flatulence, hydrogen sulfide showed up at roughly five times the concentration of the next two culprits: methanethiol (which smells like rotting cabbage) and dimethyl sulfide (which has a sweeter, slightly garlicky odor). Together, these three sulfur gases are the primary source of fart odor, though researchers note they aren’t the only malodorous components.
What makes this remarkable is how little of these gases it takes. The human nose can detect hydrogen sulfide at a concentration of about 0.008 to 0.13 parts per million, and half of all people can pick it up at just 0.0006 parts per million. That’s an almost absurdly low threshold. Evolution gave us this sensitivity for good reason: hydrogen sulfide is toxic at high concentrations, so being able to smell it early is a survival advantage.
How Gut Bacteria Create the Stink
Your colon is home to trillions of bacteria, and some of them produce sulfur gases as a byproduct of their normal metabolism. There are two main pathways this happens.
The first involves a group called sulfate-reducing bacteria, with the genus Desulfovibrio being the most common in the human gut. These microbes consume hydrogen gas (produced when other bacteria ferment fiber and carbohydrates) and use sulfate as fuel, converting it step by step into hydrogen sulfide. Sulfate enters your colon through food, drinking water, and digestive secretions, so there’s almost always raw material available for these bacteria to work with.
The second pathway is more direct. Several common bacterial species, including Fusobacterium and certain Streptococcus strains, can break down the amino acid cysteine (a sulfur-containing building block of protein) and release hydrogen sulfide directly. So when you eat protein-rich foods, you’re feeding this second production line as well.
The balance between these bacterial populations varies from person to person, which is one reason some people’s gas is consistently more pungent than others’.
Foods That Make It Worse
The sulfur has to come from somewhere, and that somewhere is your diet. Foods naturally high in sulfur compounds are the most reliable producers of smelly gas. The usual suspects include:
- Cruciferous vegetables like broccoli, cauliflower, cabbage, and Brussels sprouts, which contain sulfur-rich compounds called glucosinolates
- Alliums like garlic, onions, and leeks, which are loaded with sulfur-containing molecules
- High-protein foods like eggs, meat, and dairy, which deliver sulfur-containing amino acids (cysteine and methionine) to your colon
- Dried fruits and wine, which often contain sulfite preservatives
- Beans and legumes, which produce large volumes of gas through carbohydrate fermentation, giving sulfur gases more carrier gas to travel with
It’s worth noting that many of these foods are extremely healthy. Cruciferous vegetables are among the most nutrient-dense foods you can eat. Smelly gas after a plate of broccoli is just a sign that your gut bacteria are doing their job on fiber your small intestine couldn’t digest.
Why Some Farts Smell Worse Than Others
Not every fart is equally offensive, and several factors explain the variation. The most obvious is what you recently ate. A meal heavy in sulfur-rich foods gives your gut bacteria more raw material, so the gas they produce contains a higher concentration of those trace sulfur compounds.
How quickly food moves through your digestive tract also matters. When stool sits in the colon longer, bacteria have more time to ferment it, which increases gas production and concentrates the smelly components. This is why constipation can lead to particularly foul-smelling gas. The fermentation process simply runs longer.
Your individual microbiome composition plays a role too. Someone with a higher population of sulfate-reducing bacteria will consistently produce more hydrogen sulfide than someone whose gut is dominated by methane-producing microbes instead. These microbial communities are shaped by long-term dietary habits, so people who eat high-sulfur diets over time may cultivate more of the bacteria that produce the worst-smelling gas.
When Smelly Gas Signals a Problem
Occasional foul-smelling gas is completely normal. But a sustained change toward unusually smelly flatulence, especially paired with other symptoms, can point to a digestive issue worth investigating.
Malabsorption conditions, where your small intestine fails to properly absorb nutrients, are a common culprit. When fats aren’t absorbed properly, they reach the colon and produce greasy, unusually foul-smelling stool and gas. Celiac disease, for example, can cause painful bloating and noticeably smelly gas in both children and adults, particularly after eating foods containing gluten. Lactose intolerance follows a similar pattern: undigested lactose ferments rapidly in the colon, producing explosive gas and bloating.
The pattern to watch for is a combination of persistently foul gas with changes in stool consistency, unintentional weight loss, or abdominal pain that doesn’t resolve. Any one of those alongside the smell suggests something beyond normal digestion.
Reducing the Smell
The most straightforward approach is dietary. Cutting back on sulfur-heavy foods, even temporarily, will noticeably reduce the odor of your gas within a day or two. This doesn’t mean avoiding vegetables entirely, but being aware that a dinner of eggs, broccoli, and garlic is going to produce results.
Bismuth subsalicylate, the active ingredient in Pepto-Bismol, has a surprisingly strong effect on flatulence odor. It works by chemically binding hydrogen sulfide in the colon before it can become gas. In one study, subjects who took it four times daily for several days saw a greater than 95% reduction in hydrogen sulfide released from fecal samples. That’s a dramatic drop, though it’s a short-term solution rather than something to take indefinitely.
Increasing your fiber intake gradually, rather than all at once, can also help. A sudden jump in fiber overwhelms your gut bacteria and produces a temporary surge in gas. Ramping up slowly gives your microbiome time to adjust, which typically means less volume and less odor over time. Staying well-hydrated and physically active also keeps food moving through the colon at a steady pace, reducing the extended fermentation that concentrates smelly gases.