Farts smell bad because gut bacteria produce small amounts of sulfur gases, mainly hydrogen sulfide, when they ferment protein and fiber in the colon. In a study of healthy adults, flatus odor tracked the concentration of hydrogen sulfide.[1] Smelly gas is usually a diet and gut-bacteria effect, not a sign of disease.
This page explains where the smell comes from, which foods make it worse, what the research says about reducing it, and the few patterns that call for a doctor.
Get medical help promptly if smelly gas comes with blood in your stool, unintentional weight loss, a stomach ache or bloating that will not go away, or a sudden change that persists. These can signal a digestive condition that needs a clinician, not home care.[2][3]
What is the chemical composition of a fart?
The scientific word for farting is flatulence, and the gas that passes is called flatus.[3] People pass gas 8 to 14 times a day on average, and up to 25 times a day counts as normal, so human gas is an everyday event, not a fault.[3] Two other facts about farts matter for the smell: they come from swallowed air and from bacterial fermentation of undigested carbohydrates, and some contain sulfur gas while others barely do.[3][4]
Most fart composition is odorless. Carbon dioxide, hydrogen and nitrogen made up most of the flatus analyzed in one study of 16 people, and about 74% came from gases produced inside the gut by bacteria.[4] The smell comes from trace sulfur compounds mixed into that gas.
Three of them matter:
| Sulfur gas | Mean amount in flatus (µmol/L) |
|---|---|
| Hydrogen sulfide | 1.06 |
| Methanethiol | 0.21 |
| Dimethyl sulfide | 0.08 |
These figures come from 16 healthy adults who ate pinto beans and lactulose to increase gas output, so they overstate everyday levels.[1] The study found that hydrogen sulfide was the main sulfur gas, but not the only odor source: removing sulfur gases with zinc acetate did not eliminate the smell entirely.[1]
The same volatile sulfur compounds are a major driver of bad odor in feces and breath, which is why smelly gas and bad breath share a chemistry.[5] Methane, which many people assume is the culprit, is a separate gas that bacteria called methanogens make, and it carries no sulfur.[4]
Why do my farts smell like rotten eggs?
A rotten-egg smell is hydrogen sulfide, the sulfur gas most closely tied to flatus odor.[1] Colon bacteria make it from sulfur that reaches the large intestine in three forms: inorganic sulfate and sulfite, sulfur-containing amino acids from dietary protein, and sulfated mucins from the gut lining itself.[6]
The best-studied producers are sulfate-reducing bacteria, which are common colon residents. Other bacterial pathways can generate hydrogen sulfide too, and the authors of one review argue they may matter as much.[6] Sulfur is essential to life, and researchers still debate whether colonic hydrogen sulfide is detrimental or beneficial.[6]
So an egg-like smell does not mean food is "rotting" in your gut. It means sulfur-handling bacteria are active, which they are in nearly everyone.
Which foods make farts smell worse?
Protein is the clearest trigger. In a controlled feeding study, five healthy men ate diets containing 0 to 600 g of meat a day for 10 days each. Fecal sulfide climbed from 0.22 mmol/kg on the meat-free diet to 3.38 mmol/kg on the 600 g diet, and tracked meat intake closely.[7] The sample was tiny and the top dose is far above typical intake, but the direction is consistent with a review concluding that high-protein, low-carbohydrate diets raise hydrogen sulfide, ammonia and phenols while lowering short-chain fatty acids.[8]
Carbohydrates add gas volume, which carries the smell out. NIDDK lists these as common sources:[9]
| Food group | Examples |
|---|---|
| Cruciferous vegetables | Broccoli, cauliflower, collard greens, kale |
| Legumes | Beans, peas, lentils |
| Fruit and juice | Apples, peaches, pears |
| Dairy | Milk, ice cream, yogurt |
| Whole grains | Whole wheat |
| Sweeteners ending in "-ol" | Sorbitol, mannitol, xylitol, erythritol, maltitol |
| High-fructose corn syrup drinks | Soft drinks, sports and energy drinks |
NIDDK also notes that some people react to too much fiber, and others to high-fat foods, which can increase bloating.[9] Individual reactions vary widely: in the flatus study, gas composition differed enormously between people and even between passages in the same person.[4]
We searched PubMed and found no trial that measured flatus smell after garlic, onion or eggs, so we do not rank individual foods beyond what the sources above support.
What does the gut microbiome have to do with it?
Your microbial mix decides how much hydrogen sulfide a given meal yields. Sulfate-reducing bacteria such as Desulfovibrio piger and Bilophila wadsworthia are the best-known producers, and methane-making microbes coexist with them in many people.[6][4]
Diet shifts this community quickly. In a trial where volunteers ate diets made entirely of animal or plant products for a short period, the animal-based diet increased bile-tolerant microbes including Bilophila, and decreased fiber-fermenting Firmicutes.[10] In mice, a diet high in milk-derived saturated fat expanded B. wadsworthia and promoted colitis in genetically susceptible animals, not in normal mice.[11] That mouse finding does not show that fatty meals cause colitis in people.
Not every diet change moves these bacteria, though. In a pilot crossover of four healthy volunteers, 10 to 14 days of high or low sulfur amino acid intake did not change Desulfovibrio or Bilophila abundance, and differences between people persisted throughout.[12] The practical reading is that diet changes what your existing bacteria produce faster than it changes which bacteria you carry.
Fiber matters here because it competes with protein as bacterial fuel. A review reports that adding oligosaccharides, resistant starch or non-starch polysaccharides can attenuate the protein-fermentation shift, as can lowering total protein or sulfur amino acids. The authors add that trials on malodorous flatus itself are still missing.[8]
Why do my farts smell worse some days?
Day-to-day swings usually trace back to one of these:
- Slow transit. In a study using radio-opaque markers, a longer colonic transit time went with a shift from carbohydrate fermentation toward protein breakdown.[13] Stool that sits longer gives bacteria more time on the same material, so constipation is a plausible reason for stronger smell.
- Unabsorbed sugars. Lactose intolerance and fructose intolerance send sugars to the colon, where bacteria ferment them.[3] AGA guidance says carbohydrate enzyme deficiencies can be ruled out with dietary restriction or breath testing.[14]
- Sugar-free products. Sorbitol, mannitol, xylitol, erythritol and maltitol are on NIDDK's gas-trigger list.[9]
- Medicines. NHS inform lists NSAIDs, statins and some laxatives as drugs that may increase farting. Do not stop or change a prescribed medicine without speaking to your GP.[2]
- Swallowed air. Gum, hard candy, fizzy drinks, fast eating, smoking and loose dentures add air that later passes as gas.[3]
- Gut conditions. NIDDK names IBS and other functional gut disorders, celiac disease, constipation and SIBO as conditions that can increase gas symptoms.[3]
SIBO means too many or the wrong kind of bacteria in the small intestine, causing symptoms. The ACG guideline covers its diagnosis and treatment, and it is a question for a clinician rather than a self-diagnosis.[15]
How do I get rid of smelly gas?
No treatment has been proven to remove fart odor in everyday life, so start with the lowest-risk steps and test one change at a time.
- Keep a food and symptom diary. NIDDK suggests this so a doctor or dietitian can spot patterns.[9]
- Swallow less air. Skip gum, straws and fizzy drinks, avoid talking while eating, eat slowly while seated, and have smaller, more frequent meals.[9]
- Trim your personal triggers. Reduce the foods in the table above that you notice a pattern with, rather than cutting whole groups.[9] If you have IBS, NIDDK mentions a low FODMAP trial of a few weeks under a doctor or dietitian.[9]
- Balance protein with fiber. If your meals are mostly meat and eggs with little fiber, adding fermentable fiber is the approach the protein-fermentation research points to. Add it gradually, because fiber itself makes gas.[8]
- Treat constipation if you have it, since slow transit goes with more protein fermentation.[13]
Do charcoal, bismuth and special underwear work?
The evidence is mixed and mostly old and small:
| Option | What the research found | Limits |
|---|---|---|
| Activated charcoal tablets | No significant reduction in fecal sulfur gases after 0.52 g four times daily for 1 week (5 volunteers). Binding sites appeared to saturate in the gut.[16] | Tiny study. NHS inform still lists charcoal tablets among pharmacist suggestions.[2] |
| Bismuth subsalicylate | More than 95% reduction in fecal hydrogen sulfide release in 10 healthy people taking 524 mg four times daily for 3 to 7 days.[17] | Measured gas release, not smell ratings. It contains a salicylate, so ask a pharmacist or doctor first. |
| Carbon-fiber underwear | Briefs made of activated carbon fiber adsorbed virtually all sulfide gas in a lab test of 6 volunteers.[18] | Pads inside underwear removed 55% to 77%, and most cushions about 20%.[18] |
| People often ask whether a probiotic can help. That is a separate question with its own evidence, covered in our guide to probiotics for gas and bloating. For the upper-gut version of the same sulfur chemistry, see sulfur burps. |
When should I see a doctor about smelly farts?
Smell alone rarely needs a visit. NIDDK advises talking with a doctor if gas symptoms bother you, change suddenly, or come with abdominal pain, constipation, diarrhea or weight loss.[3]
NHS inform adds specific triggers for a GP appointment:[2]
- farting that affects daily life despite self-help and pharmacy treatments
- a stomach ache or bloating that will not go away or keeps coming back
- constipation or diarrhea that keeps returning
- weight loss you did not intend
- blood in your stool for 3 weeks
- fever, vomiting, chills, or joint and muscle pain
- loss of control over bowel movements
The AGA advises abdominal imaging and upper endoscopy only for patients with alarm features, recent worsening or an abnormal physical exam, which is why symptom changes matter more than odor.[14] NIDDK also lists obstruction, which cancers of the colon, ovary or stomach can cause, among the conditions behind gas symptoms. That is rare, and it is the reason a new, persistent change is worth reporting.[3]
This article is for general educational purposes and is not medical advice. It does not diagnose the cause of your symptoms. Talk to a qualified healthcare professional before changing your diet, starting charcoal, bismuth or any supplement, or stopping a medicine, particularly if you are pregnant, immunocompromised, taking prescription medication, or managing a diagnosed condition.
Frequently Asked Questions
Am I unhealthy if I fart a lot?
Usually not. NIDDK says people pass gas 8 to 14 times a day on average and that experts consider up to 25 times a day normal. Passing more than that is worth a conversation with a clinician if it bothers you, changes suddenly, or comes with abdominal pain, constipation, diarrhea or weight loss. A food diary showing which meals precede the gas is the most useful thing to bring.
What are the possible causes of excessive gas?
Two sources explain most of it: swallowed air (gum, fizzy drinks, eating fast, smoking, loose dentures) and bacteria in the large intestine fermenting carbohydrates that the small intestine did not absorb. Conditions that can add to it include IBS, lactose or fructose intolerance, celiac disease, constipation and small intestinal bacterial overgrowth. Some medicines, including NSAIDs, statins and some laxatives, may also increase gas, so do not stop a prescribed drug without asking your prescriber.
Does drinking water reduce gas?
We found no trial showing that drinking water reduces gas or its smell, so we cannot promise it does. What the sources support is indirect: constipation is linked to more gas symptoms, and slow stool transit shifts gut bacteria toward protein breakdown. Swapping fizzy drinks for still water also cuts swallowed air, which NIDDK lists as a gas source.
How do you flush gas out of your body, and what removes gas immediately?
We found no tested remedy that removes gas instantly. Passing it is the quickest relief. To produce less, NIDDK suggests swallowing less air (no gum, straws or fizzy drinks, no talking while eating), eating slowly while seated, and having smaller, more frequent meals. For the smell itself, odor-absorbing underwear made from activated carbon fiber adsorbed virtually all sulfur gas in one small lab test.
What is the strongest gas relief?
No head-to-head trial ranks gas remedies, so we cannot name a strongest one. For smell, the best-measured options are bismuth subsalicylate, which cut fecal hydrogen sulfide release by more than 95% in 10 healthy people, and activated carbon fiber briefs. Swallowed activated charcoal did not reduce sulfur gas release in 5 volunteers. Ask a pharmacist before taking bismuth, since it contains a salicylate.
What does a healthy fart smell like?
Some smell is normal. In a study of 16 healthy adults, flatus contained hydrogen sulfide, methanethiol and dimethyl sulfide on average, and odor tracked the hydrogen sulfide concentration. A mild sulfur or egg-like smell after a protein-rich or high-fiber meal is the expected result of bacterial fermentation. What deserves attention is a lasting change, not the presence of smell.
Why do my farts smell worse after eating meat?
Meat protein supplies sulfur-containing amino acids that colon bacteria turn into hydrogen sulfide. In a controlled feeding study of five men, fecal sulfide rose from 0.22 mmol/kg on a meat-free diet to 3.38 mmol/kg on a diet with 600 g of meat per day. That was a small study and a very high intake, but it shows the direction of the effect.
References
- Suarez FL, Springfield J, Levitt MD. Identification of gases responsible for the odour of human flatus and evaluation of a device purported to reduce this odour. Gut. 1998;43(1):100-104. doi:10.1136/gut.43.1.100 ↩
- NHS inform. Farting. NHS 24, Scotland. 2023. Available at: https://www.nhsinform.scot/illnesses-and-conditions/stomach-liver-and-gastrointestinal-tract/farting/ ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Gas in the Digestive Tract. NIDDK, National Institutes of Health. 2021. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gas-digestive-tract/symptoms-causes ↩
- Suarez F, Furne J, Springfield J, Levitt M. Insights into human colonic physiology obtained from the study of flatus composition. American Journal of Physiology-Gastrointestinal and Liver Physiology. 1997;272(5):G1028-G1033. doi:10.1152/ajpgi.1997.272.5.g1028 ↩
- Tangerman A. Measurement and biological significance of the volatile sulfur compounds hydrogen sulfide, methanethiol and dimethyl sulfide in various biological matrices. Journal of Chromatography B. 2009;877(28):3366-3377. doi:10.1016/j.jchromb.2009.05.026 ↩
- Carbonero F, Benefiel AC, Alizadeh-Ghamsari AH, Gaskins HR. Microbial pathways in colonic sulfur metabolism and links with health and disease. Frontiers in Physiology. 2012;3. doi:10.3389/fphys.2012.00448 ↩
- Magee EA, Richardson CJ, Hughes R, Cummings JH. Contribution of dietary protein to sulfide production in the large intestine: an in vitro and a controlled feeding study in humans. The American Journal of Clinical Nutrition. 2000;72(6):1488-1494. doi:10.1093/ajcn/72.6.1488 ↩
- Yao CK, Muir JG, Gibson PR. Review article: insights into colonic protein fermentation, its modulation and potential health implications. Alimentary Pharmacology & Therapeutics. 2015;43(2):181-196. doi:10.1111/apt.13456 ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Eating, Diet, & Nutrition for Gas in the Digestive Tract. NIDDK, National Institutes of Health. 2021. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gas-digestive-tract/eating-diet-nutrition ↩
- David LA, Maurice CF, Carmody RN, et al.. Diet rapidly and reproducibly alters the human gut microbiome. Nature. 2013;505(7484):559-563. doi:10.1038/nature12820 ↩
- Devkota S, Wang Y, Musch MW, et al.. Dietary-fat-induced taurocholic acid promotes pathobiont expansion and colitis in Il10−/− mice. Nature. 2012;487(7405):104-108. doi:10.1038/nature11225 ↩
- Dostal Webster A, Staley C, Hamilton MJ, et al.. Influence of short-term changes in dietary sulfur on the relative abundances of intestinal sulfate-reducing bacteria. Gut Microbes. 2019;10(4):447-457. doi:10.1080/19490976.2018.1559682 ↩
- Roager HM, Hansen LBS, Bahl MI, et al.. Colonic transit time is related to bacterial metabolism and mucosal turnover in the gut. Nature Microbiology. 2016;1(9):16093. doi:10.1038/nmicrobiol.2016.93 ↩
- Moshiree B, Drossman D, Shaukat A. AGA Clinical Practice Update on Evaluation and Management of Belching, Abdominal Bloating, and Distention: Expert Review. Gastroenterology. 2023;165(3):791-800.e3. doi:10.1053/j.gastro.2023.04.039 ↩
- Pimentel M, Saad RJ, Long MD, Rao SSC. ACG Clinical Guideline: Small Intestinal Bacterial Overgrowth. American Journal of Gastroenterology. 2020;115(2):165-178. doi:10.14309/ajg.0000000000000501 ↩
- Suarez FL, Furne J, Springfield J, Levitt MD. Failure of activated charcoal to reduce the release of gases produced by the colonic flora. American Journal of Gastroenterology. 1999;94(1):208-212. doi:10.1111/j.1572-0241.1999.00798.x ↩
- Suarez FL, Furne JK, Springfield J, Levitt MD. Bismuth subsalicylate markedly decreases hydrogen sulfide release in the human colon. Gastroenterology. 1998;114(5):923-929. doi:10.1016/s0016-5085(98)70311-7 ↩
- Ohge H, Furne JK, Springfield J, Ringwala S, Levitt MD. Effectiveness of Devices Purported to Reduce Flatus Odor. The American Journal of Gastroenterology. 2005;100(2):397-400. doi:10.1111/j.1572-0241.2005.40631.x ↩