Omeprazole is linked to a modest increase in depression risk, though the connection is not straightforward cause-and-effect. The FDA lists depression as a known postmarketing adverse reaction on the official Prilosec label, and a large Korean cohort study found that omeprazole users had a 15% higher odds of developing depressive disorder compared to users of a newer acid-reducing drug. That’s a real but relatively small increase, and several factors beyond the pill itself may explain part of it.
What the Research Shows
A nationwide cohort study published in the Journal of Korean Medical Science compared proton pump inhibitors (PPIs) like omeprazole to a newer class of acid suppressors. After adjusting for age, sex, and other health conditions, PPI users overall had 34% higher odds of depression. Omeprazole specifically carried an adjusted odds ratio of 1.15, meaning users were about 15% more likely to develop depression than the comparison group. That placed omeprazole at the lower end of the PPI class for this risk. Lansoprazole had the highest association at 80% increased odds, followed by pantoprazole at 42% and esomeprazole at 32%.
These are population-level statistics, not guarantees. An odds ratio of 1.15 means the absolute risk increase for any individual is small. But the pattern is consistent: multiple studies and meta-analyses find that PPIs as a class are associated with higher rates of depression compared to people who don’t take them or who use different acid-reducing medications.
How Omeprazole Might Affect Mood
Researchers have identified three plausible biological pathways connecting long-term PPI use to depressive symptoms.
Vitamin B12 depletion. Omeprazole dramatically reduces stomach acid, which your body needs to release B12 from food. Long-term use has been shown to lower blood B12 levels. B12 is essential for producing neurotransmitters, the chemical messengers that regulate mood. Specifically, B12 helps your body make a compound called SAM, which is involved in dozens of chemical reactions in the brain tied to mood regulation. When B12 drops, so does SAM production, and low SAM has been directly linked to depression.
Magnesium depletion. PPIs can reduce magnesium absorption from the gut, and long-term use may cause clinically low magnesium levels. A meta-analysis found that people with low magnesium have roughly a 1.3-fold increased risk of depression. Magnesium plays a role in producing dopamine, a neurotransmitter central to motivation and pleasure. When magnesium levels fall, dopamine-related gene expression changes in ways that could contribute to low mood.
Gut microbiome changes. By raising the pH of your stomach, omeprazole changes the environment bacteria encounter on the way to your intestines. This can shift the composition of your gut flora in ways that affect the gut-brain axis, a communication network between your digestive system and your brain. While this pathway is less well-quantified than the nutrient deficiencies, it adds another layer to the biological plausibility.
The Condition Itself May Play a Role
One of the biggest challenges in this research is separating the effect of omeprazole from the effect of the condition it treats. GERD and chronic acid reflux are independently associated with higher rates of anxiety and depression. The chronic discomfort, disrupted sleep, and dietary restrictions that come with reflux disease take a psychological toll on their own.
There also appears to be a shared inflammatory mechanism. The esophageal tissue of people with GERD contains elevated levels of inflammatory molecules, and similar low-grade inflammation in the bloodstream and brain has been linked to depressive disorders. So someone taking omeprazole for GERD may have been at higher risk for depression before they ever filled the prescription. This makes it difficult for any observational study to fully separate the drug’s effect from the disease’s effect.
A Drug Interaction Worth Knowing About
If you take omeprazole alongside certain antidepressants, there’s an important interaction to be aware of. Omeprazole inhibits a liver enzyme called CYP2C19 that breaks down several common medications. Sertraline (Zoloft) is processed through this same enzyme, so taking it with omeprazole can cause sertraline levels to build up in your body. In serious cases, this can trigger serotonin syndrome, a potentially dangerous excess of serotonin activity.
Pantoprazole does not inhibit this enzyme and is generally preferred when a PPI is needed alongside these antidepressants. This interaction is especially relevant for older adults, who are more likely to be taking multiple medications simultaneously.
Duration Matters
The nutrient depletion pathways, B12 and magnesium, take time to develop. Short courses of omeprazole for a few weeks are unlikely to drain your body’s stores enough to affect mood. The concern centers on long-term use, generally months to years, which is when cumulative nutrient losses become meaningful and gut flora changes become more established.
Case reports offer some reassurance that the psychiatric effects can be reversible. In one published case, a patient developed panic attacks, confusion, and fear ten days after starting a PPI. Within two days of stopping the drug, all neuropsychiatric symptoms resolved. The earliest case reports of central nervous system effects from omeprazole date to 1997, where symptoms disappeared after discontinuation. These are individual cases, not large trials, but they suggest the brain effects are not necessarily permanent.
Alternatives With Lower Psychiatric Risk
H2 blockers like famotidine reduce stomach acid through a different mechanism and have not shown the same association with depression in studies. One review noted that no link to depression was detected with antacids or H2 blockers, only with PPIs. H2 blockers are less potent acid suppressors and sometimes require more frequent dosing (up to three times daily), so they may not be suitable for everyone, particularly those with severe reflux or conditions like Barrett’s esophagus.
For people who need to stay on omeprazole, monitoring B12 and magnesium levels periodically is a practical step. B12 absorption from supplements is not affected by reduced stomach acid the way food-bound B12 is, so supplementation can help offset the depletion. Using the lowest effective dose and periodically reassessing whether the medication is still necessary are standard approaches to minimizing long-term risks.

