The smell comes from sulfur. More than 99% of the gas in a fart is completely odorless, made up of nitrogen, oxygen, carbon dioxide, hydrogen, and methane. The stink is produced by a tiny fraction of sulfur-containing gases, primarily hydrogen sulfide, the same compound responsible for the smell of rotten eggs.
The Three Gases Behind the Smell
Researchers have pinpointed three sulfur compounds as the main culprits. Hydrogen sulfide is the dominant one, present at roughly five times the concentration of methanethiol (which smells like rotting cabbage) and about thirteen times the concentration of dimethyl sulfide (which has a sweeter, garlic-like odor). When scientists recreated these three gases in a lab at the same ratios found in human gas, the mixture replicated the familiar smell perfectly.
What makes this remarkable is how little of these compounds it takes. The human nose can detect hydrogen sulfide at concentrations as low as 0.5 parts per billion. That’s why even trace amounts, well under 1% of total gas volume, produce such a noticeable odor.
How Your Gut Bacteria Create Sulfur Gas
Your large intestine is home to trillions of bacteria, and some of them specialize in producing hydrogen sulfide. The most common group belongs to a class called sulfate-reducing bacteria, with one species in particular found in the guts of about 60% of people studied. These microbes consume hydrogen and sulfate (a compound found in many foods and in bile) and convert them into hydrogen sulfide as a byproduct.
A second pathway involves the breakdown of sulfur-containing amino acids, the building blocks of protein. When bacteria in your colon ferment proteins that weren’t fully digested in the small intestine, they release sulfur gases directly. This is why high-protein meals, especially those rich in eggs, meat, and cruciferous vegetables like broccoli and cauliflower, tend to produce smellier gas. These foods are packed with sulfur-containing compounds that give gut bacteria more raw material to work with.
Why Some Farts Smell Worse Than Others
Not all gas is created equal. Several factors shift the balance between odorless gas and the sulfur compounds that make you clear a room.
- What you ate. Foods high in sulfur produce more hydrogen sulfide. Eggs, red meat, garlic, onions, and vegetables in the cabbage family are common triggers. Beer and wine also contain sulfites that feed sulfate-reducing bacteria.
- How much protein reaches your colon. Protein that gets fully absorbed in the small intestine doesn’t contribute to smelly gas. But large servings of protein, or protein paired with hard-to-digest fiber, can push undigested amino acids further down the digestive tract where bacteria ferment them.
- Your personal bacterial mix. Everyone’s gut microbiome is different. People with higher populations of sulfate-reducing bacteria will naturally produce more hydrogen sulfide. This is partly why the same meal can produce drastically different results in different people.
- Transit time. When food moves slowly through the colon, bacteria have more time to ferment it, which can increase the concentration of sulfur gases. Constipation, dehydration, and low-fiber diets all slow transit and can make gas more pungent.
Carbohydrates Make More Gas, Protein Makes It Smellier
There’s a useful distinction between volume and odor. Carbohydrates that aren’t fully absorbed in the small intestine, like the fiber in beans, the lactose in dairy, or the fructose in fruit, get fermented by colon bacteria into large volumes of hydrogen and carbon dioxide. This produces bloating and frequent gas, but the gas itself is mostly odorless.
Sulfur-rich proteins, on the other hand, tend to produce smaller volumes of gas that carry a much stronger smell. So the person eating a big bowl of beans may pass gas more often, but the person who had a steak and eggs dinner is more likely to produce the kind that lingers.
When Smelly Gas Signals a Digestive Problem
Occasional foul-smelling gas is normal. Persistently terrible-smelling gas, especially when paired with bloating, cramping, diarrhea, or greasy stools, can point to a digestive issue worth investigating.
Lactose intolerance is one of the most common causes. People who lack the enzyme to break down milk sugar send undigested lactose straight to the colon, where bacteria feast on it and produce excess gas. Fructose malabsorption works the same way with fruit sugars. In both cases, the undigested sugars ferment aggressively and can shift the bacterial environment in ways that increase sulfur production.
Celiac disease, Crohn’s disease, and small intestinal bacterial overgrowth (SIBO) all damage or disrupt the lining of the small intestine, reducing its ability to absorb nutrients properly. When fats, proteins, and carbohydrates pass through unabsorbed, they become fuel for gas-producing bacteria further downstream. Fat malabsorption in particular produces greasy, unusually foul-smelling stools alongside increased gas. Pancreatic insufficiency and gallbladder problems can have similar effects by reducing the digestive enzymes and bile acids needed to break down food before it reaches the colon.
If your gas has changed noticeably in smell or frequency and stays that way for weeks, especially alongside other digestive symptoms, that pattern is worth mentioning to a doctor. A sudden, sustained shift often reflects a change in what’s reaching your colon bacteria rather than just a bad meal.

