Why Does Famotidine Cause Anxiety? What Science Says

Famotidine can cause anxiety because it crosses the blood-brain barrier and blocks histamine receptors involved in mood regulation and neuronal signaling. This side effect is rare in the general population, occurring in fewer than 1% of adults in clinical trials, but certain groups face a meaningfully higher risk. Understanding why it happens can help you figure out whether your medication might be contributing to how you’re feeling.

How Famotidine Reaches the Brain

Famotidine is designed to block H2 histamine receptors in the stomach, reducing acid production. But those same H2 receptors exist throughout the brain, concentrated in areas that regulate emotion, memory, and stress responses. Because famotidine crosses the blood-brain barrier, it doesn’t stay confined to the gut. Once in the brain, it interferes with normal histamine signaling in regions like the amygdala (which processes fear and anxiety), the hippocampus (involved in memory and stress regulation), and the cerebral cortex.

When famotidine blocks H2 receptors in these areas, it disrupts a signaling chain that normally helps regulate how neurons grow, adapt, and communicate. Histamine acting on H2 receptors triggers a cascade that influences neuronal plasticity, circadian rhythm, and cognitive function. Blocking that cascade changes the brain’s chemical environment in ways that can produce psychiatric symptoms, including anxiety, agitation, insomnia, and in rare cases, hallucinations or confusion.

How Common Anxiety From Famotidine Actually Is

The FDA’s prescribing information lists anxiety among nervous system and psychiatric side effects occurring in fewer than 1% of adults treated in clinical trials. Post-marketing surveillance data categorizes psychiatric effects like anxiety, agitation, hallucinations, and depression as “very rare,” affecting fewer than 1 in 10,000 users. So for most healthy adults taking a standard dose, this is an uncommon reaction.

That said, “rare” in a clinical trial doesn’t mean irrelevant to you. Famotidine is one of the most widely used over-the-counter medications in the world, which means even a small percentage translates to a large number of people. And the reported rate likely underestimates the true number, since mild or moderate anxiety is the kind of symptom people often don’t connect to a heartburn pill.

Who Is Most at Risk

The biggest risk factor is reduced kidney function. Famotidine is cleared from the body primarily through the kidneys. In healthy adults, the drug is processed and eliminated in a predictable window. But in people with moderate or severe kidney impairment, the half-life of famotidine can stretch from its normal range to over 20 hours. In people with very poor kidney function, it can reach 24 hours, meaning the drug accumulates to higher levels in the blood and, consequently, in the brain.

Both the FDA and Health Canada have issued warnings about using famotidine in patients with moderate kidney impairment, recommending lower doses or longer intervals between doses to prevent central nervous system toxicity. Elderly adults are particularly vulnerable because kidney function naturally declines with age, often without obvious symptoms. The FDA prescribing label specifically flags confusion, delirium, agitation, and hallucinations as CNS adverse reactions seen in elderly patients and those with renal impairment.

Infants are another notable group. Agitation has been reported in 14% of infants treated with famotidine, a dramatically higher rate than the less-than-1% seen in adults. This likely reflects differences in drug metabolism and brain development.

The Vitamin B12 Connection

There’s a second, slower pathway by which long-term famotidine use could contribute to anxiety and other neurological symptoms. By suppressing stomach acid, famotidine reduces your body’s ability to absorb vitamin B12 from food. Studies have found that taking H2 blockers daily for a year or more increases the risk of B12 deficiency.

B12 deficiency doesn’t just cause fatigue and anemia. It can produce neurological and psychiatric symptoms, including numbness, difficulty walking, mood changes, and anxiety. If you’ve been on famotidine for months or years and are experiencing new anxiety, low B12 is worth considering as a contributing factor, especially since it’s easily tested with a blood draw.

How Famotidine Compares to Other H2 Blockers

Famotidine is generally considered to have fewer central nervous system side effects than cimetidine, the oldest drug in this class. One comparative study found neurological side effects only in the cimetidine-treated group, not the famotidine group. Cimetidine crosses the blood-brain barrier more readily and also interacts with a wider range of receptors, which likely explains the difference. Still, famotidine is not free of CNS effects. Its FDA label, post-marketing reports, and case studies all confirm that psychiatric symptoms do occur, just less frequently than with cimetidine.

How Quickly Symptoms Resolve

The reassuring news is that anxiety and other psychiatric symptoms tied to famotidine typically clear up quickly once the drug is stopped. In one published case report, a patient’s mental status changes resolved completely within two days of discontinuing the medication. This rapid resolution makes sense given famotidine’s relatively short half-life in people with normal kidney function.

If your kidneys aren’t working at full capacity, the timeline could be longer, since the drug takes more time to leave your system. Dose reduction or extending the time between doses can also reduce CNS side effects without necessarily stopping the medication entirely.

What to Do if You Suspect a Link

If you started or increased famotidine and noticed new anxiety, agitation, or sleep disruption, the timing matters. Drug-related psychiatric effects tend to correlate with when you began the medication or changed your dose. Keeping a simple log of when you take famotidine and when your anxiety is worst can help you and your doctor spot a pattern.

Your kidney function is the single most important variable in determining your risk. If you’re over 65, have any history of kidney problems, or take other medications that affect the kidneys, the standard over-the-counter dose may be too much. A lower dose or a switch to a different type of acid-reducing medication could resolve the issue. For people who’ve been on famotidine long-term, checking B12 levels is a simple step that can rule out (or catch) a nutritional deficiency compounding the problem.