Is Pepcid Good for Diarrhea or Can It Cause It?

Pepcid (famotidine) is not a standard treatment for diarrhea, and it won’t work the way something like loperamide (Imodol) does to slow your gut and firm up stools. However, there are specific situations where Pepcid can help with diarrhea, particularly when excess stomach acid or a histamine-related condition is the underlying cause.

How Pepcid Works in Your Gut

Pepcid belongs to a class of drugs called H2 blockers. It reduces the amount of acid your stomach produces by blocking histamine receptors on the cells lining your stomach wall. This makes it effective for heartburn, ulcers, and acid reflux, but it doesn’t directly target the mechanisms that cause most diarrhea.

Standard anti-diarrheal medications work by slowing the contractions of your intestines, giving your body more time to absorb water from stool. Pepcid doesn’t do this. So if you have a stomach bug, food poisoning, or run-of-the-mill loose stools, Pepcid is unlikely to help.

When Pepcid Can Help With Diarrhea

There are a few scenarios where Pepcid may genuinely reduce diarrhea:

  • Acid-related diarrhea: Conditions that cause your stomach to overproduce acid (like Zollinger-Ellison syndrome) can overwhelm your small intestine and trigger watery diarrhea. By cutting acid production, Pepcid can address the root cause. For pathological hypersecretory conditions like these, prescription doses start at 20 mg every six hours and are adjusted based on symptoms.
  • Mast cell activation syndrome (MCAS): This condition causes your body to release too much histamine, which can trigger a range of symptoms including diarrhea, flushing, and abdominal cramping. The University of Virginia Health System lists H2 blockers like famotidine as a first-line treatment for MCAS, typically combined with an H1 antihistamine (like cetirizine) and adjusted to the lowest effective dose.
  • Histamine intolerance: Some people experience diarrhea after eating histamine-rich foods like aged cheese, fermented foods, or wine. An H2 blocker can reduce the gut’s response to that histamine load.

In all of these cases, the diarrhea is being driven by either excess acid or excess histamine. If your diarrhea has a different cause, such as a viral infection, irritable bowel syndrome, or antibiotic use, Pepcid won’t address it.

Can Pepcid Actually Cause Diarrhea?

Ironically, diarrhea is one of the recognized side effects of famotidine itself. The FDA’s prescribing information lists diarrhea among the most common adverse reactions, alongside headache, dizziness, and constipation. While the incidence appears to be under 1% in clinical trials (it did not reach the 1% or greater threshold reported for headache, dizziness, and constipation), it does happen. If you started taking Pepcid for heartburn and noticed your stools becoming looser, the medication could be contributing.

A Risk Worth Knowing About

If you’re already dealing with diarrhea, there’s one important reason to be cautious with acid-suppressing medications. Stomach acid serves as a natural barrier against harmful bacteria. Reducing that acid can make you more vulnerable to gut infections, particularly Clostridioides difficile (C. diff), a bacteria that causes severe, persistent diarrhea.

A large meta-analysis published in JAMA Internal Medicine found that people taking acid-suppressing medications, including H2 blockers like Pepcid, had a recurrent C. diff rate of 22.1% compared to 17.3% in people not taking these drugs. That works out to roughly a 50% increase in the odds of a C. diff recurrence. This doesn’t mean Pepcid causes C. diff, but if you’ve had it before or are at higher risk (recent antibiotic use, hospitalization, older age), it’s worth factoring in.

What Works Better for Most Diarrhea

For typical acute diarrhea, over-the-counter loperamide (sold as Imodil) is the more appropriate choice. It directly slows intestinal movement and is specifically designed for diarrhea relief. Bismuth subsalicylate (Pepto-Bismol) is another option that can help with both diarrhea and the nausea or upset stomach that often accompanies it.

Staying hydrated matters more than any medication for most diarrhea episodes. Water, broth, and oral rehydration solutions replace the fluids and electrolytes your body loses. Most acute diarrhea resolves on its own within two to three days.

If your diarrhea is chronic, meaning it persists for four weeks or longer, the cause matters far more than the remedy you grab off the shelf. Conditions like MCAS, celiac disease, inflammatory bowel disease, and bile acid malabsorption all cause ongoing diarrhea but require very different treatments. Pepcid would only be relevant if excess histamine or acid turned out to be the driver.