DietSleuth
Gut Health

What Can Cause Diarrhea - and How to Find Out If Food Is the Trigger

By DietSleuth Team
diarrheagut healthfood intoleranceIBSlactose intoleranceFODMAPsfood diarydigestive healthsymptom tracking

Diarrhea is one of those symptoms nobody wants to talk about - but almost everyone deals with. If you're here, chances are it's happening more than once. Maybe it's a regular disruption. Maybe it's unpredictable enough that you're rearranging your day around it. That's worth paying attention to.

This article covers the main causes of diarrhea, but it doesn't stop there. If your symptoms are recurrent rather than a one-off, the cause is almost certainly something you're regularly exposed to - and food is one of the most common culprits. We'll look at how to start tracking that connection in a way that actually gets you answers.

What Are the Most Common Causes of Diarrhea?

Most cases of diarrhea fall into one of a few categories.

Infections (acute diarrhea)

The stomach flu - caused by viruses like norovirus or rotavirus - is the most common cause of short-term diarrhea in adults. Bacterial infections from contaminated food or water (food poisoning) are another frequent trigger. These infections usually resolve within a few days.

Food intolerances

Lactose intolerance is one of the most common food-related causes of diarrhea. If your body can't fully digest lactose (the sugar in dairy products), it may cause loose stools, bloating, and cramping - often within a couple of hours of eating. Fructose (found in fruit, honey, and many processed foods) can have a similar effect in some people. You can read more about how this shows up in our article on lactose intolerance symptoms.

FODMAPs and other dietary triggers

FODMAPs are a group of fermentable carbohydrates found in foods like garlic, onions, wheat, apples, and legumes. For people with IBS or sensitive guts, high-FODMAP foods may trigger diarrhea, bloating, and cramping. Artificial sweeteners (sorbitol, mannitol, erythritol) can also have a laxative effect in some people.

Irritable Bowel Syndrome (IBS)

IBS-D (the diarrhea-predominant subtype) is a chronic functional gut condition where bowel movements are frequent, loose, or urgent - without any obvious structural damage to the gut. Stress, anxiety, and specific foods may all worsen symptoms.

Medications

Antibiotics are a well-known cause of diarrhea - they disrupt the balance of gut bacteria, and some people experience loose stools throughout (and after) a course. Antacids containing magnesium and some cancer treatments are also commonly linked to diarrhea.

Other gut conditions

Inflammatory bowel conditions like Crohn's disease and ulcerative colitis can cause chronic diarrhea alongside other symptoms like blood in the stool, weight loss, and fatigue. Celiac disease - an immune reaction to gluten - is another cause that may go undiagnosed for years. If you have ongoing symptoms, working with a doctor to rule these out is important.

Stress and anxiety

The gut-brain connection is real. Many people notice that stress, anxiety, or disrupted sleep makes their gut symptoms worse - particularly if they have IBS. This doesn't mean the problem is "all in your head." It means the gut and nervous system are closely linked, and managing one often helps the other.

When Is Diarrhea a Warning Sign?

One-off diarrhea that clears up in a day or two is usually not a cause for concern. But there are signs that warrant a visit to your doctor:

  • Blood or mucus in the stool
  • Severe abdominal pain
  • Unexplained weight loss
  • Fever alongside diarrhea
  • Symptoms lasting more than two days in adults
  • Diarrhea that keeps coming back without a clear reason

These could indicate an infection that needs treatment, or a condition like IBD or celiac disease that requires proper diagnosis. Please don't put off seeing a healthcare provider if any of these apply.

If It Keeps Happening, Food Is Worth Investigating

Here's the thing about recurrent diarrhea: a one-off stomach bug resolves on its own. But if you're experiencing loose stools regularly - weekly, or even a few times a month - the trigger is almost certainly something you're regularly exposed to.

Food is the most likely candidate.

This might be a specific food intolerance (like lactose or FODMAPs), a pattern tied to meal timing (symptoms after eating, or first thing in the morning after certain dinners), or a less obvious ingredient hiding in multiple foods. The tricky part is that the reaction doesn't always happen immediately. A meal eaten at lunch might trigger symptoms that evening - or even the next morning. That delay makes it very hard to connect the dots without a structured approach.

This is exactly where a food diary for diarrhea becomes useful.

How to Track Food and Symptoms to Find Your Trigger

Tracking doesn't have to be complicated. The goal is to build enough data over time that patterns become visible - either to you, or to an AI tool that can spot correlations you'd miss.

Here's what to log:

  • What you ate - Every meal and snack. As much ingredient detail as possible. "Pasta with sauce" is less useful than "pasta, tomato sauce with garlic and onion, parmesan."
  • When you ate it - Timing matters. Log the time of each meal, not just the food.
  • Your symptoms - Note when diarrhea (or urgency, cramping, bloating) occurred. Include severity and time of day.
  • Other context - Stress levels, sleep quality, alcohol, exercise, and medications can all affect your gut. Logging these alongside food gives a much fuller picture.
  • The lag to watch for - Many food-related reactions don't happen immediately. Some people react within an hour; others notice symptoms 12 to 24 hours later. If you only look at what you ate right before symptoms struck, you may be looking in the wrong place.

For people who already suspect IBS, a food diary for IBS can help structure the process. And if you want a more structured elimination approach, the elimination diet is a method many people use to systematically identify food triggers - ideally with support from a dietitian.

How DietSleuth Helps You Find Your Pattern

Manually tracking food and symptoms in a notebook or spreadsheet is a good start - but finding patterns in that data is genuinely difficult. The human brain struggles to spot correlations across dozens of meals and symptoms spread over weeks.

DietSleuth is built for exactly this. You log your meals (using text or voice), your symptoms, and your activities. The AI analyzes everything and surfaces correlations - things like "diarrhea is significantly more common the day after meals containing garlic or onion" or "your symptoms are worse on high-stress days regardless of what you eat."

Instead of guessing, you get a clear picture of what your data is actually showing. You can then take those insights to your doctor or dietitian for further investigation.

Start Your Free Trial of DietSleuth

Could It Be a Food Intolerance You Haven't Identified Yet?

Many people live for years with unexplained diarrhea before realizing it's linked to a specific food or ingredient. Common culprits that often go unidentified include:

  • Lactose - not just obvious dairy; lactose shows up in many processed foods, medications, and supplements
  • Fructose - found in fruit, fruit juice, honey, and high-fructose corn syrup
  • FODMAPs - a broad category that includes foods many people consider "healthy," like apples, onions, garlic, and legumes
  • Gluten - beyond celiac disease, some people experience non-celiac gluten sensitivity
  • Artificial sweeteners - common in "diet" products, chewing gum, and protein supplements

If you recognize any of these as foods you eat regularly, they're worth tracking closely. Our article on food intolerance symptoms covers the broader picture of how food intolerances may present.

Frequently Asked Questions

Why do I have diarrhea but I'm not sick?

If you're not running a fever and don't feel unwell in other ways, the cause is often dietary rather than infectious. Food intolerances (like lactose or FODMAPs), stress, medications, or an underlying gut condition like IBS may all cause diarrhea without making you feel generally sick. If it's happening regularly, tracking what you eat alongside your symptoms is a useful first step.

Can stress cause diarrhea?

Yes - stress and anxiety can affect gut motility and may trigger or worsen diarrhea, particularly in people with IBS. The gut has its own nervous system (the enteric nervous system), which communicates closely with the brain. Managing stress may help reduce symptoms, though it's worth identifying whether dietary factors are also involved.

How long after eating does food-related diarrhea occur?

It varies. Some reactions - like those from lactose intolerance - may occur within 30 minutes to two hours of eating. Others, particularly reactions to certain carbohydrates like FODMAPs, may take 12 to 24 hours to show up. This delayed timing is one reason food diaries are so useful: you may need to look at what you ate the day before, not just the last meal.

Can diarrhea be caused by something I eat every day?

Yes - and this is one of the most common scenarios. Foods eaten every day rarely feel like the obvious suspect, but a daily food can absolutely be the trigger. Common everyday foods linked to diarrhea in sensitive individuals include milk, coffee, wheat, high-fiber foods, and foods with artificial sweeteners. Tracking helps surface these hidden patterns.

When should I see a doctor about recurrent diarrhea?

You should see a doctor if diarrhea is happening regularly (more than a few times a month), if you notice blood or mucus in the stool, if you're losing weight without trying, if you have a fever alongside the diarrhea, or if symptoms are significantly affecting your quality of life. Recurrent diarrhea that doesn't resolve on its own warrants a proper evaluation to rule out conditions like IBD or celiac disease.

This content is for informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult your healthcare provider before making changes to your diet or health routine.

Sources

Ready to Track How You Feel?

DietSleuth uses AI to help you identify connections between what you eat, your activities, and your symptoms.

Start Your Free 7-Day Trial

7-day free trial • Then $5/week • Cancel anytime