Most people can eat tomatoes during a bout of diarrhea without making things significantly worse, but the answer depends on the cause of your diarrhea, the form the tomato takes, and whether you have an underlying gut condition. Tomatoes sit in an unusual spot nutritionally: they contain compounds that research suggests can protect the intestinal lining, yet they also carry natural chemicals that can irritate it. For a straightforward stomach bug or a mild episode, a moderate amount of cooked tomato is unlikely to be a problem. For someone with inflammatory bowel disease, irritable bowel syndrome, or a sensitivity they may not even know about, tomatoes can genuinely aggravate symptoms.
What Makes Tomatoes Potentially Irritating During Diarrhea
Tomatoes are acidic, with a pH typically between 4.3 and 4.9. When your gut lining is already inflamed or irritated from diarrhea, that acidity can sting. The sensation is less about the acid causing damage and more about already-raw tissue reacting to an environment that would normally feel benign. This is similar to why citrus or vinegar can feel harsh when you have a canker sore in your mouth.
Tomatoes also contain a fair amount of fiber, particularly in the skin and seeds. Fiber is generally a good thing for digestion, but during active diarrhea your gut is already moving contents through faster than normal. Insoluble fiber, the kind concentrated in tomato skins, can speed transit further. This is why dietary advice during acute diarrhea episodes often steers people toward low-fiber, bland foods for the first day or two.
Then there is the sugar content. A medium tomato has around 3 grams of sugar, mostly fructose. In a healthy gut that is trivial, but some people with fructose malabsorption find that even modest amounts of fructose during a diarrhea episode can pull water into the intestine and worsen loose stools. If you already know that stone fruits or honey bother your stomach, the fructose in tomatoes might contribute to the same pattern.
Glycoalkaloids and the Nightshade Question
Tomatoes belong to the nightshade family, alongside potatoes, peppers, and eggplant. Nightshade plants produce glycoalkaloid compounds as a defense against being eaten. In tomatoes, the main glycoalkaloid is called tomatine. At the concentrations found in ripe, red tomatoes, tomatine is present in small enough amounts that it does not bother most people. In unripe green tomatoes, though, levels are considerably higher.
Animal studies have shown that tomatine at toxic doses can cause vomiting, diarrhea, and abdominal pain, with a symptom profile resembling solanine poisoning from potatoes.1Nutrition. Beneficial effects and potential risks of tomato consumption for human health: An overview These are extreme doses, well beyond what you would get from eating a few ripe tomatoes. But the underlying mechanism matters: glycoalkaloids have been shown to disrupt the intestinal lining and can activate immune cells in the gut wall called mast cells, which release histamine and other inflammatory signals.2PubMed. Nightshade Vegetables: A Dietary Trigger for Worsening Inflammatory Bowel Disease and Irritable Bowel Syndrome? If your intestinal barrier is already compromised by an active diarrhea episode, even lower levels of these compounds could potentially add to the irritation.
For someone with a healthy gut eating a normal portion of ripe tomato, glycoalkaloids are not a realistic concern. But if you are dealing with persistent or severe diarrhea, the added irritation from nightshade compounds is a reasonable factor to consider, especially if tomatoes have bothered you during flare-ups before.
IBS, IBD, and Why Tomatoes Hit Harder for Some People
The conversation changes substantially for people with inflammatory bowel disease or irritable bowel syndrome. Research is now paying closer attention to nightshade vegetables as a potential dietary trigger in these populations. The glycoalkaloids that most people tolerate without issue may worsen gut symptoms in people whose intestinal barriers are already chronically compromised. A 2023 review noted that mast cell activation, the immune mechanism nightshade compounds can trigger, plays a role in both the pain of IBS and the inflammation of IBD.2PubMed. Nightshade Vegetables: A Dietary Trigger for Worsening Inflammatory Bowel Disease and Irritable Bowel Syndrome? Given how common tomatoes are in Western diets, they are attracting fresh scrutiny as a contributor that many patients and clinicians overlook.
This does not mean everyone with IBS or IBD reacts to tomatoes. Dietary triggers vary enormously between individuals, and plenty of people with these conditions eat tomatoes without trouble. The practical takeaway is that if you have a diagnosed gut condition and your diarrhea flares up regularly, tomatoes are worth testing as a variable. An elimination period of two to three weeks followed by a careful reintroduction is the most reliable way to figure out whether they are part of your personal trigger profile.
Salicylate Sensitivity, a Less Obvious Factor
Beyond glycoalkaloids, tomatoes contain naturally occurring salicylates, compounds chemically related to aspirin. Most people metabolize dietary salicylates without any problem, but a subset of people, particularly those who are sensitive to aspirin, can develop gastrointestinal symptoms from salicylate-rich foods.
A pilot study testing high-salicylate versus low-salicylate diets in people with IBS found that overall, the group showed no significant difference in symptoms between the two diets. However, the participant who was aspirin-sensitive experienced clear worsening of all abdominal symptoms during the high-salicylate phase.3PubMed Central. Naturally‐occurring dietary salicylates in the genesis of functional gastrointestinal symptoms in patients with irritable bowel syndrome: Pilot study This was a small study, so broad conclusions are premature. But it points to a practical reality: if aspirin or NSAIDs have ever given you stomach trouble, tomatoes during diarrhea might be more irritating for you than for the average person, and the salicylate content could be part of the reason.
Tomatoes are among the higher-salicylate foods in a typical diet, along with berries, spices, and tea. You do not need to memorize a salicylate table, but if you notice a pattern where multiple foods from that family seem to worsen gut symptoms, it is worth mentioning to a doctor.
The Other Side: Lycopene and Gut Protection
It would be misleading to present tomatoes as purely risky for a troubled gut, because the evidence cuts both ways. Lycopene, the red pigment that gives tomatoes their color, has demonstrated protective effects on the intestinal lining in laboratory research. In a mouse study, lycopene reduced pro-inflammatory signaling molecules in the gut and improved markers of intestinal barrier function in a dose-dependent manner.4Scientific Reports. Lycopene ameliorates intestinal barrier dysfunction following traumatic brain injury by inhibiting pyroptosis Separately, tomato pomace extract combined with probiotics showed a protective effect against experimentally induced gut inflammation in animals, lowering oxidative stress and inflammatory markers while boosting antioxidant activity.5Scientific Reports. Protective effect of tomato pomace extract encapsulated in combination with probiotics against indomethacin induced enterocolitis
These findings are from animal models, so they do not translate directly into dietary advice for you during a stomach flu. But they illustrate why the question is not simply “tomatoes: good or bad for your gut.” The same fruit contains compounds that irritate and compounds that protect, and the net effect depends on the dose, the preparation, and the state of your gut at the time. Cooking tomatoes increases the bioavailability of lycopene, which is part of why cooked tomato products are generally gentler and potentially more beneficial than raw tomatoes during digestive distress.
Raw Versus Cooked Tomatoes During Diarrhea
If you do decide to eat tomatoes while your gut is unsettled, how you prepare them makes a meaningful difference. Raw tomatoes deliver more of everything at once: higher acid impact, intact fiber in the skin and seeds, and the full glycoalkaloid content. Cooking breaks down some of the fiber, reduces acidity slightly, and softens the overall impact on your stomach. Peeling and deseeding cooked tomatoes further reduces the insoluble fiber load.
Tomato sauce, paste, and soup are generally better tolerated than fresh sliced tomatoes during a diarrhea episode. That said, many prepared tomato sauces contain added ingredients like garlic, onion, chili, and oil, all of which can individually aggravate diarrhea. A simple homemade sauce of just peeled tomatoes cooked down with a pinch of salt is about the gentlest way to include tomato in your diet during an episode. Canned tomato products tend to be made from ripe tomatoes, which keeps glycoalkaloid levels low.
The one preparation to actively avoid during diarrhea is anything involving unripe green tomatoes. Fried green tomatoes are a classic dish, but green tomatoes have substantially higher tomatine levels than their ripe counterparts, and the frying adds fat that can further speed gut transit and worsen loose stools.
Food Safety and the Salmonella Connection
Sometimes the tomato is not just a bystander during diarrhea; it can be the cause. Raw tomatoes have been linked to multiple foodborne illness outbreaks, most prominently a large 2008 Salmonella Saintpaul outbreak in the United States. In that outbreak, eating raw tomatoes was significantly associated with illness, with infected people roughly five and a half times more likely to have eaten raw tomatoes than uninfected controls.6PubMed. 2008 outbreak of Salmonella Saintpaul infections associated with raw produce
The risk comes from contamination on the tomato’s surface, which can occur during growing, harvesting, or handling. Because tomatoes are often eaten raw, any bacteria on the skin get consumed directly. Washing tomatoes under running water reduces surface contamination but does not eliminate it entirely, and cutting through a contaminated surface can transfer bacteria to the interior flesh.
If you are already dealing with diarrhea and suspect a foodborne cause, continuing to eat raw tomatoes from the same batch is obviously unwise. More broadly, during any diarrhea episode, choosing cooked tomatoes over raw ones adds a layer of food safety by killing any surface pathogens. This is particularly relevant for young children, older adults, pregnant women, and anyone with a weakened immune system, all groups that face higher risks from foodborne illness.
Oral Allergy Syndrome and Tomato Cross-Reactivity
Some people experience itching, tingling, or swelling in the mouth and throat after eating raw tomatoes but have no trouble with cooked tomato products. This pattern often points to oral allergy syndrome, a condition where the immune system mistakes proteins in certain foods for pollen proteins it is already sensitized to. Tomatoes cross-react with grass pollen in particular, so if you have grass pollen allergies and notice oral symptoms from raw tomatoes, the two are likely related.7PubMed Central. Oral Allergy Syndrome: An Update for Stomatologists
Oral allergy syndrome itself does not typically cause diarrhea, since the problematic proteins break down in the stomach. But some people with this sensitivity report broader digestive symptoms beyond the oral cavity, especially during pollen season when their immune system is already on high alert. Cooking denatures the cross-reactive proteins, which is why cooked tomatoes rarely trigger the syndrome. If raw tomatoes give you any oral symptoms and you are dealing with diarrhea simultaneously, switching to cooked preparations removes one variable from the equation.
How Tomatoes Affect Your Gut Bacteria
An emerging angle in the tomato-and-digestion story involves the gut microbiome. A study using polyphenol-rich tomatoes found that just two weeks of a tomato-enriched diet was enough to shift the microbial composition in mice, both in healthy animals and in those with an inflammatory gut condition.8Nutrients. A Bronze-Tomato Enriched Diet Affects the Intestinal Microbiome under Homeostatic and Inflammatory Conditions The polyphenol compounds in tomatoes appeared to create conditions that favored some bacterial species over others.
Whether this microbial shift is helpful or harmful depends on context. During an acute diarrhea episode caused by an infection, your gut microbiome is already disrupted. Adding a new dietary variable that alters microbial balance could theoretically either help by displacing harmful bacteria or hinder recovery by further destabilizing the community. The honest answer is that we do not have clinical data in humans to say which direction wins during active diarrhea. What the research does suggest is that tomatoes are not inert passengers in your gut. They interact with your intestinal ecosystem in ways that go beyond simple nutrition, and those interactions are more significant than most people assume.
Practical Guidelines for Eating Tomatoes During Diarrhea
Pulling the threads together, here is what makes sense as a practical approach:
- Wait out the worst: During the first 12 to 24 hours of acute diarrhea, when symptoms are most severe, stick with clear fluids and the blandest foods you can tolerate. Tomatoes, even cooked ones, are not a first-day food.
- Choose cooked over raw: Once you are past the acute phase and starting to reintroduce foods, cooked and peeled tomatoes are gentler than raw. Tomato soup or a plain sauce is a reasonable option.
- Avoid high-fat tomato dishes: Pizza, creamy pasta sauces, and fried preparations add fat that can worsen diarrhea independently of the tomato itself.
- Skip green tomatoes: Their higher glycoalkaloid content is an unnecessary risk when your gut is already inflamed.
- Watch for personal patterns: If you have IBS, IBD, aspirin sensitivity, or grass pollen allergies, pay closer attention to how tomatoes affect you during flare-ups. These conditions shift the risk-benefit balance.
True tomato allergy, as opposed to oral allergy syndrome or a nightshade sensitivity, is relatively rare. If eating tomatoes consistently triggers diarrhea even when you are otherwise well, that pattern is worth investigating with an allergist rather than assuming tomatoes are universally safe because most people tolerate them. The same fruit that supplies lycopene and potassium to one person’s gut can deliver glycoalkaloids and salicylates that tip another person’s system over the edge. Your own track record with tomatoes is better evidence than any general guideline.