The average person passes gas up to 20 times a day; farting is a normal part of the digestive process. However, certain factors can make you produce extra-smelly farts, such as the foods you eat, constipation, or food intolerances. Whether the smell resembles rotten eggs or another pungent odor, having smellier-than-usual farts can be embarrassing but usually isn't harmful.
1. High-Fiber Foods
Certain high-fiber foods can cause you to have smelly farts. Examples of such foods include:
- Asparagus
- Beans
- Broccoli
- Cabbage
- Cauliflower
- Legumes (e.g., lentils, peas, chickpeas)
- Whole grains
These foods contain insoluble fiber (fiber that can't dissolve in water). Unlike soluble fiber, which dissolves in water and is absorbed by the body, insoluble fiber engages the body's gut microbiome to digest it through fermentation, resulting in gas.
Some foods, such as legumes, beans, cabbage, Brussels sprouts, and asparagus, contain raffinose, a complex sugar your body can't digest, resulting in additional gas production.
2. Food Intolerances
A food intolerance is an adverse reaction to a specific type of food, usually caused by an inability or limited ability to digest or absorb certain foods or their components. Some of the most common food intolerances that result in gas and other gastrointestinal (GI) issues include:
- Lactose intolerance: People with lactose intolerance do not produce enough of the enzyme lactase, which helps digest lactose (the sugar found in milk).
- Non-celiac gluten intolerance: People with non-celiac gluten intolerance have problems digesting gluten, a protein in grains.
- Fructose intolerance: People with fructose intolerance lack the protein necessary to break down fructose, a sugar compound found naturally in fruits and vegetables.
- FODMAP intolerance: People with FODMAP intolerance have trouble digesting certain carbohydrates called FODMAPs, which is an acronym for fermentable oligosaccharides, disaccharides, monosaccharides, and polyols.
3. Constipation
Smelly farts can be a symptom of constipation—having fewer than two or three bowel movements per week.
Constipation causes stool (poop) to sit in your digestive tract for longer than usual. As long as the stool remains, bacteria in your colon work to digest sugars in your waste through fermentation, which creates gas. The longer the stool remains in your colon, the more gas you produce.
4. Medication
Certain medications can affect digestion, disrupt your gut microbiome, or promote constipation or diarrhea, resulting in smelly farts.
Examples of medications that can contribute include:
- Antacids
- Antibiotics
- Anticholinergic drugs (medicines that treat various conditions affecting the nervous system; they block the chemical messenger acetylcholine)
- Antidepressants
- Calcium channel blockers (medications to treat high blood pressure and other cardiovascular conditions)
- Chemotherapy medications
- Diarrhea medications, such as Imodium (loperamide) or Kaopectate (bismuth subsalicylate)
- Fiber supplements and bulking agents, such as Citrucel (methylcellulose fiber) and Metamucil (psyllium fiber)
- Iron pills
- Laxatives
- Multivitamins
- Nonsteroidal anti-inflammatory drugs (NSAIDs), such as Aspirin or Advil (ibuprofen)
- Opioid pain medications
5. Bacteria and Digestive Tract Infections
The following types of bacteria and digestive tract infections can produce smelly farts:
- Gastroenteritis:Gastroenteritis, also known as the "stomach flu," causes inflammation of your stomach and intestines and can lead to increased gas, among other symptoms.
- Small intestinal bacterial overgrowth (SIBO): Bacteria and digestive tract infections can increase bacteria in your small intestine, causing problems such as diarrhea, unintended weight loss, and excess gas.
- Gut dysbiosis: Gut dysbiosis is an imbalance of the microorganisms in your gastrointestinal tract. It can occur from an overgrowth of harmful bacteria or inadequate beneficial bacteria in your digestive system.
6. Colon Cancer
Though having smelly farts is usually harmless, excessive gas may be a sign of colon cancer. Research indicates that colon cancer cells produce large amounts of hydrogen sulfide, a gas with a pungent "rotten egg" smell.
Smelly farts can also occur when a tumor from colon cancer causes a significant bowel obstruction. Depending on the size and location, the obstruction can impact your ability to pass gas and/or stool, causing a buildup of gas that becomes smelly as it remains in your colon.
7. Bariatric Surgery
After bariatric (weight loss) surgery, some people experience an increase in smelly farts due to a condition called dumping syndrome.
Abdominal cramps, diarrhea, and gas are signs of early dumping syndrome, which occurs when a dense mass of food is dumped into the small intestine at an earlier-than-normal stage of digestion.
When to Contact a Healthcare Provider
In most cases, smelly farts occur as part of your normal body function and are not a cause for concern. However, persistent smelly gas may indicate an underlying health problem or the need for dietary changes.
Contact a healthcare provider or agastroenterologist (a gastrointestinal specialist) if you have smelly farts accompanied by any of the following symptoms:
- Bloody stools
- Constipation
- Diarrhea
- Fever
- Heartburn
- Melena (black and tarry stools)
- Nausea
- Oily, foul-smelling stools
- Persistent pain in your stomach or rectum
- Symptoms that change or become more intense
- Treatments that worked are no longer effective
- Unintended weight loss
How to Treat Flatulence at Home
Natural Remedies
Natural remedies to relieve gas include:
- Anise
- Caraway
- Chamomile tea
- Coriander
- Fennel
- Peppermint tea
- Turmeric
Over-the-Counter Options
Try one of the following over-the-counter gas remedies:
- Pepto-Bismol: A medication you can take after eating to relieve abdominal pain and gas
- Beano (alpha-galactosidase): A medication you can take before eating to break down complex carbohydrates before they reach your colon
- Lactaid or Dairy Ease: A lactase enzyme you can take before eating dairy products
Tips for Preventing Smelly Farts
Depending on the cause of your smelly farts, you may be able to prevent them by following these tips:
- Add fiber-rich foods to your diet gradually: The Academy of Nutrition and Dietetics recommends increasing total fiber intake by no more than 5 grams daily until you reach your desired intake.
- Avoid swallowing extra air: Air swallowed through chewing gum or consuming carbonated beverages can increase gas.
- Stay hydrated: Water and other unsweetened, non-carbonated beverages help soften your stool, allowing fiber to bind and preventing it from hardening.
- Reduce foods high in sulfur: Eliminate or reduce your consumption of foods that are high in sulfur compounds that can contribute to foul-smelling farts, such as broccoli, cauliflower, cabbage, Brussels sprouts, meat, poultry, eggs, onion, and garlic.
- Treat postnasal drip: A postnasal drip can cause you to swallow more air than usual, contributing to gas.
- Increase physical activity: Research indicates that 10 to 15 minutes of minimal physical activity—like a post-meal walk—releases trapped gas better than medication.
- Manage any food intolerances: If you have a food intolerance, manage your intake of lactose, gluten, sorbitol, fructose, or other ingredients.
Summary
Though farting occurs as part of the natural digestive process, having excess smelly farts can be a cause for concern. In most cases, you can improve the problem by changing your diet and eating habits to limit your consumption of foods that trigger smelly farts. If lifestyle changes don't make a difference, talk to a healthcare provider to determine if you have an underlying condition contributing to smelly farts.
26 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
GI Society: Canadian Society of Intestinal Research. Intestinal gas.
UnityPoint Health. Passing gas: different smells and what they mean.
UCLA Health. Increasing fiber in your diet may increase gas.
National Institute of Diabetes and Digestive and Kidney Diseases.Symptoms and causes of gas in the digestive tract.
Sugar Nutrition Resource Centre. Sources and types of carbohydrates and sugar.
GI Society: Canadian Society of Intestinal Research. Food allergy vs. intolerance: know the difference.
MedlinePlus. Hereditary fructose intolerance.
Yale Medicine. What is a low FODMAP diet?
Breastcancer.org. Gas (flatulence).
Hasler WL. Gas and bloating. Gastroenterol Hepatol (N Y). 2006 Sep;2(9):654-662
NewYork-Presbyterian. Health library: medicines or vitamins that can cause gas, bloating, or burping.
Centers for Disease Control and Prevention.About food safety.
Cedars-Sinai. Bacterial gastroenteritis.
DeGruttola AK, Low D, Mizoguchi A, Mizoguchi E.Current understanding of dysbiosis in disease in human and animal models.Inflamm Bowel Dis. 2016;22(5):1137-1150. doi:10.1097/MIB.0000000000000750
Lin H, Yu Y, Zhu L, et al. Implications of hydrogen sulfide in colorectal cancer: mechanistic insights and diagnostic and therapeutic strategies. Redox Biol. 2023;59:102601. doi:10.1016/j.redox.2023.102601
Szabo C, Coletta C, Chao C, et al.Tumor-derived hydrogen sulfide, produced by cystathionine-β-synthase, stimulates bioenergetics, cell proliferation, and angiogenesis in colon cancer.PNAS, July 8, 2013. doi:10.1073/pnas.1306241110
NewYork-Presbyterian. Bowel obstruction.
University of Rochester Medical Center. Dumping syndrome after gastric bypass surgery.
Cedars-Sinai. Gas in the digestive tract.
Mount Sinai. Gas - flatulence.
Brigham and Women's Hospital. Gas: beat the bloat.
Michigan State University. Get your fiber without the flatulence.
National Institute of Diabetes and Digestive and Kidney Diseases. Treatment for gas in the digestive tract.
Miękus N, Marszałek K, Podlacha M, et al. Health benefits of plant-derived sulfur compounds, glucosinolates, and organosulfur compounds.Molecules. 2020;25(17):3804. doi:10.3390/molecules25173804
Loma Linda University Health. Gas in the digestive tract.
Hosseini-Asl MK, Taherifard E, Mousavi MR. The effect of a short-term physicalactivity after meals on gastrointestinal symptoms in individuals with functional abdominal bloating: a randomized clinical trial. Gastroenterol Hepatol Bed Bench. 2021 Winter;14(1):59-66.
By Anna Giorgi
Giorgi is a freelance writer with more than 25 years of experience writing health and wellness-related content.
See Our Editorial Process
Meet Our Medical Expert Board
Was this page helpful?
Thanks for your feedback!
What is your feedback?