Smelly farts come down to one thing: sulfur. Bacteria in your colon break down certain foods and produce sulfur-containing gases, primarily hydrogen sulfide (the classic rotten-egg smell) and methyl mercaptan. These gases are produced in tiny amounts compared to the odorless gases that make up most flatulence, but they have extremely low odor thresholds, meaning even a trace amount hits your nose hard. The good news is that diet is the biggest lever you have, and changes can start working within days.
Why Some Farts Smell Worse Than Others
Most of the gas you pass is odorless: nitrogen, oxygen, carbon dioxide, hydrogen, and sometimes methane. These gases come from swallowed air and the fermentation of carbohydrates. They account for the volume and sound of flatulence but not the smell.
The smell is almost entirely produced by sulfur compounds. When gut bacteria break down sulfur-containing amino acids (cysteine and methionine, found in all animal proteins) or sulfate from certain plant foods, they release hydrogen sulfide and related gases. The more sulfur-rich material that reaches your colon undigested, the more raw material your bacteria have to work with. This is why a steak dinner or a big plate of eggs can produce noticeably worse-smelling gas than a bowl of rice.
The Foods That Make It Worse
Sulfur shows up in a surprisingly wide range of foods. The highest concentrations come from:
- Red meat, eggs, and fish: All animal proteins contain sulfur amino acids, but red meat is the highest. Eggs (both yolk and white) are particularly potent.
- Cruciferous vegetables: Broccoli, cauliflower, Brussels sprouts, cabbage, kale, bok choy, and turnips are all high in sulfur compounds.
- Allium vegetables: Garlic, onions, leeks, shallots, and chives.
- Dried fruits: Raisins, dates, prunes, and dried apricots contain concentrated sulfur and sulfites.
- Beer, wine, and cider: These contain sulfites used as preservatives, plus sulfur compounds from fermentation.
- Whey protein powder and bone broth: Both are concentrated sources of sulfur amino acids, which is why protein shakes are notorious for producing foul gas.
- Nuts and legumes: Brazil nuts, almonds, peanuts, and soybeans are moderate sulfur sources. Beans also contain sugars (raffinose and stachyose) that gut bacteria ferment heavily, increasing gas volume on top of odor.
Some supplements add sulfur you might not expect: glucosamine sulfate, chondroitin sulfate, MSM, and alpha lipoic acid all contribute. Food additives containing sulfite or sulfate (like sodium bisulfite) do the same. Even bread and whole wheat pasta contain moderate levels.
How to Reduce Odor Through Diet
You don’t need to eliminate every sulfur-containing food. The goal is to reduce the total load reaching your colon. Start by identifying your biggest sources. If you eat eggs every morning, drink whey protein shakes, and have broccoli at dinner, that’s a lot of sulfur hitting your gut in one day. Cutting back on one or two of those categories is often enough to notice a difference.
A structured approach is to try a low-FODMAP or low-sulfur elimination diet for two to six weeks, then reintroduce foods one at a time. Cleveland Clinic recommends at least two weeks for the elimination phase, noting it can take time for symptoms to fully subside. Most people notice improvement within the first week, but the full effect builds over several weeks as your gut bacteria adjust to the new fuel supply.
Fiber is worth a separate mention. Increasing fiber too quickly is one of the most common causes of excessive, smelly gas. If you’re adding more vegetables, beans, or fiber supplements to your diet, ramp up slowly over two to three weeks to give your gut time to adapt.
Over-the-Counter Options That Actually Work
Two types of products target flatulence, and they work in completely different ways.
Enzyme supplements reduce gas volume by helping you digest certain sugars before they reach your colon. Alpha-galactosidase (the active ingredient in Beano) breaks down raffinose and stachyose, the complex sugars in beans and legumes that your body can’t digest on its own. Lactase supplements do the same for lactose in dairy. These products reduce how much gas you produce, but they don’t specifically target the sulfur compounds responsible for odor. They’re most useful if beans or dairy are your main triggers.
Bismuth subsalicylate (the active ingredient in Pepto-Bismol) directly targets odor. Bismuth binds to hydrogen sulfide in the colon, converting it into an insoluble compound that doesn’t release smell. A study testing this approach found that taking bismuth subsalicylate four times daily for three to seven days produced a greater than 95% reduction in hydrogen sulfide released from stool samples. That’s a dramatic effect on the specific compound responsible for the worst of the smell. It’s worth noting that bismuth turns your stool black, which is harmless but can be alarming if you’re not expecting it. This isn’t meant for long-term daily use.
Lifestyle Habits That Help
Swallowed air increases total gas volume, which means more frequent passing of gas even if each episode is mild. Eating slowly, chewing with your mouth closed, avoiding carbonated drinks, and not chewing gum all reduce the amount of air entering your digestive tract. Smoking and drinking through straws are other common sources of swallowed air.
Physical activity helps gas move through your intestines more efficiently rather than building up. Even a 15-minute walk after a meal can make a noticeable difference in bloating and gas. Sitting for long periods, especially after a large meal, tends to make things worse.
Probiotics get a lot of attention, but the evidence for odor specifically is mixed. Some strains may shift the balance of gas-producing bacteria in your colon, but results vary widely between individuals. If you want to try them, give it at least four weeks before judging.
When Smelly Gas Signals Something Else
Persistently foul-smelling gas that doesn’t respond to dietary changes can point to an underlying digestive condition. Small intestinal bacterial overgrowth (SIBO) is one of the more common culprits. In SIBO, bacteria colonize parts of the small intestine where they don’t belong, and they convert dietary sulfur into hydrogen sulfide at abnormally high rates.
Malabsorption syndromes are another category to be aware of. Celiac disease, exocrine pancreatic insufficiency, and other conditions that impair your ability to digest and absorb food mean more undigested material reaches the colon, feeding gas-producing bacteria. Symptoms typically include not just smelly gas but also chronic diarrhea, unusually pale or greasy stools, unexplained weight loss, and bloating that feels disproportionate to what you’ve eaten.
Lactose intolerance and fructose malabsorption are milder but very common versions of this pattern. If dairy or fruit seem to reliably trigger your worst episodes, those are worth investigating with a hydrogen breath test.
If you’ve cleaned up your diet for several weeks and the smell hasn’t improved, or if you’re experiencing other digestive symptoms alongside the gas, that’s a reasonable time to get tested for these conditions. Most are straightforward to diagnose and treat.

