Foul-smelling poop is usually caused by something you ate, not a medical problem. Foods high in sulfur, fat, or protein break down into compounds like hydrogen sulfide (the classic rotten-egg smell) and other volatile gases that intensify stool odor. But when the smell is persistently unusual, greasy, or accompanied by other digestive symptoms, it can point to malabsorption, food intolerance, or infection.
Why Poop Smells the Way It Does
Stool odor comes from the chemical byproducts of digestion, particularly from bacteria in your large intestine breaking down what you’ve eaten. The main offenders are sulfur compounds, nitrogen (which smells like ammonia), short-chain fatty acids (rancid butter or body odor), and thiols (skunk-like). Hydrogen sulfide is the single biggest sulfur contributor in the lower gut, where concentrations can reach levels roughly 1,000 parts per million. That’s enough to make any bathroom visit unpleasant.
Everyone’s stool has an odor. The question isn’t whether it smells, but whether it smells noticeably different from your normal, and whether that change sticks around.
Foods That Make Stool Smell Worse
Diet is the most common reason for a sudden change in stool odor. Foods rich in sulfur-containing amino acids feed a specialized group of gut bacteria that produce hydrogen sulfide as a byproduct. Processed meats are the biggest culprit because they deliver sulfur from two sources: the amino acids in the meat itself and the inorganic sulfur used as a preservative. Red meat, eggs, dairy, and cruciferous vegetables like broccoli, cauliflower, and cabbage are also high in these compounds.
High-fat meals can worsen things too. When you eat more fat than your digestive system can efficiently process, the excess reaches the colon and produces particularly strong-smelling byproducts. A weekend of heavy, greasy food can easily shift your stool odor for a day or two. If the smell returns to normal once your diet does, there’s nothing to investigate.
Lactose Intolerance and Other Food Sensitivities
When your body can’t break down a particular sugar or nutrient, it passes undigested into your colon, where bacteria ferment it aggressively. Lactose intolerance is the most familiar example. Undigested lactose gets fermented into a cocktail of acids, alcohols, aldehydes, and gases, including hydrogen, carbon dioxide, and methane. Lab studies show that samples containing lactose produce clearly higher levels of alcohols and aldehydes compared to samples without it. The result is bloating, gas, diarrhea, and stool that smells sour or unusually sharp.
Fructose malabsorption and gluten sensitivity can trigger similar patterns. If you notice consistently foul stool after eating specific foods, an elimination diet (removing the suspect food for two to three weeks, then reintroducing it) is often the simplest way to test the connection.
Infections That Change Stool Odor
Certain gut infections produce distinctively foul stool. Giardia, a waterborne parasite, causes smelly, greasy diarrhea that often floats, along with gas, stomach cramps, and nausea. The infection is common after drinking untreated water while camping or traveling and can persist for weeks without treatment.
C. diff (Clostridioides difficile) is a bacterial infection that typically follows antibiotic use. It produces diarrhea with a smell people describe as unusually strong and oddly sweet, likely because the bacteria increase bile acid levels in the stool. C. diff diarrhea is often watery, frequent (three or more times a day), and may be accompanied by fever.
Bacterial infections from contaminated food, like Salmonella or Campylobacter, can also cause short-term changes in stool odor alongside diarrhea and cramping. These usually resolve within a week, but the smell can be noticeably worse than a typical stomach bug.
Fat Malabsorption and Pancreatic Problems
Persistently foul, greasy stool is one of the hallmark signs of fat malabsorption. When your body can’t properly digest fats, they pass through to the large intestine and produce pale, bulky, oily stools that smell particularly bad and tend to float. They’re often difficult to flush.
The most common medical cause is exocrine pancreatic insufficiency, or EPI. Your pancreas normally releases digestive enzymes that break down fats, proteins, and carbohydrates. When it can’t produce enough of these enzymes, fat passes through undigested. EPI can develop from chronic pancreatitis, cystic fibrosis, or after pancreatic surgery. Celiac disease and Crohn’s disease can also impair fat absorption by damaging the intestinal lining.
If your doctor suspects fat malabsorption, they may order a stool elastase test, which measures an enzyme your pancreas produces. Low levels point toward pancreatic insufficiency. A fecal fat test can also confirm the diagnosis: healthy stool contains less than 7 grams of fat per 24-hour collection period. Higher amounts confirm that fat is passing through undigested. Treatment for EPI involves taking enzyme supplements with meals, which typically improves both the smell and consistency of stool significantly.
Symptoms That Warrant Attention
A day or two of unusually smelly stool after a heavy meal or a dietary change is normal. But certain combinations of symptoms suggest something beyond diet is going on:
- Greasy, pale, floating stools that persist for more than a few days suggest fat malabsorption.
- Unintentional weight loss alongside foul stool can indicate your body isn’t absorbing nutrients properly, whether from pancreatic insufficiency, celiac disease, or another malabsorption condition.
- Blood in the stool (red or black/tarry) combined with odor changes needs evaluation regardless of other symptoms.
- Fever and watery diarrhea, especially after antibiotic use, raise concern for C. diff infection.
- Persistent diarrhea lasting more than two weeks with foul odor may point to a parasitic infection like Giardia or an underlying inflammatory condition.
Foul-smelling stool on its own is rarely a sign of cancer. But MD Anderson Cancer Center notes that fat malabsorption, which can be associated with pancreatic cancer, does produce distinctly foul, greasy stools. The smell alone isn’t the red flag. It’s the combination of persistent greasy stool, weight loss, abdominal pain, or new-onset digestive symptoms that prompts further testing.
Simple Changes That Help
If your stool smells worse than usual and you don’t have other concerning symptoms, your diet is the first place to look. Cutting back on processed meats, which are the most concentrated source of sulfur in most people’s diets, often makes a noticeable difference within a few days. Increasing fiber from vegetables, legumes, and whole grains supports a more diverse gut microbiome, which tends to produce less hydrogen sulfide overall. Research shows that diets lower in processed meat and higher in vegetables and legumes are consistently associated with fewer sulfur-metabolizing bacteria in the gut.
Staying hydrated and eating meals at regular intervals also helps keep digestion moving efficiently. When food sits in the colon longer, bacteria have more time to ferment it, which intensifies odor. If dietary changes don’t help after a couple of weeks, or if the smell is accompanied by any of the symptoms listed above, that’s a reasonable point to bring it up with your doctor.

