Most PPI side effects are mild: headache, nausea, gas, diarrhea or constipation[1]. The bigger questions are about long-term use. Proton pump inhibitors change which bacteria survive the trip from your mouth to your gut[2], and they are linked to SIBO[3], C. difficile infection[4], low vitamin B12[5] and fractures[6].
Most of those links come from observational studies[4][6]. In the largest placebo-controlled trial, about 17,600 people took pantoprazole or placebo for a median of 3 years. The only clear difference was slightly more gut infections[7]. This guide covers the common and long-term side effects with their real numbers, what PPIs do to your gut bacteria, who genuinely needs them long term, and what happens when you stop.
Get medical help promptly if you have severe watery diarrhea with stomach pain or a fever that does not go away, an irregular or pounding heartbeat with muscle spasms or seizures, or swelling of your face or throat with trouble breathing. The same applies to black or bloody stools, vomiting blood, trouble swallowing or unexplained weight loss[1]. These need a clinician, not home care.
What are the common side effects of PPIs?
The common, short-term side effects of omeprazole (Prilosec) and the other PPIs are digestive or mild[1]. In clinical trials of 3,096 people taking omeprazole, these were the most frequent[8]:
| Side effect | How often in omeprazole trials |
|---|---|
| Headache | 6.9% |
| Abdominal pain | 5.2% |
| Nausea | 4.0% |
| Diarrhea | 3.7% |
| Vomiting | 3.2% |
| Gas (flatulence) | 2.7% |
| Constipation, dizziness, rash | 1.5% each |
For causes and the gut bacteria involved in a slow bowel, see our constipation guide. Tell your doctor if any of these are severe or do not go away[1]. Less common but serious reactions include severe skin reactions, allergic swelling, an irregular or fast heartbeat with muscle spasms or shaking, and a new sun-sensitive rash with joint pain[1].
Over-the-counter PPIs are meant for frequent heartburn, 2 or more days a week. They take 1 to 4 days to work fully, and the FDA says they are intended for a 14-day course, up to three times a year[9]. Needing them more often than that is a reason to see a doctor, not to keep self-treating.
Can a PPI cause abdominal pain?
Yes. Abdominal pain was the second most common side effect in omeprazole trials, reported by about 1 in 20 people[8]. Stomach pain with severe watery diarrhea or a fever that does not go away is different: it needs prompt medical attention[1].
What are the side effects of long-term PPI use?
Long-term PPI use is linked to a set of risks, most of them small and most of them from observational studies[10]. The table gives the best estimate for each and how strong the evidence is.
| Possible risk | Best estimate | Type of evidence |
|---|---|---|
| Gut infections (enteric infections) | 1.4% vs 1.0% over about 3 years (OR 1.33) | Large randomized trial[7] |
| C. difficile infection | 26% higher odds (OR 1.26) | 50 observational studies[4] |
| No significant increase (RR 1.19, 95% CI 0.75-1.89) | 8 randomized trials, 29,880 people[11] | |
| SIBO | 1.7 to 2.1 times the odds | Meta-analyses of 19 and 29 studies[3][12] |
| Low vitamin B12 | 65% higher odds after 2+ years | Case-control study, about 210,000 people[5] |
| Low magnesium | 44% higher risk, but inconsistent | Meta-analysis of 15 studies[13] |
| Hip fracture | 20% higher risk (RR 1.20) | 24 observational studies[6] |
| Kidney function | 0.27 mL/min per year faster decline; no clear rise in CKD | Post hoc analysis of a randomized trial[14] |
| Dementia | No clear evidence (RR 1.16, 95% CI 1.00-1.35) | Meta-analysis with bias analysis[15] |
| Stomach (fundic gland) polyps | Rare and benign; risk highest at high doses or after a year | Drug label information[1][8] |
Why the trial and the observational studies disagree
Observational studies compare people who happen to take PPIs with people who do not, so other differences between the groups can masquerade as drug effects[16]. A 2022 meta-analysis that ran extensive bias checks found no clear link between PPIs and dementia[15]. The COMPASS trial avoided the problem by randomly assigning pantoprazole 40 mg a day or placebo. It found no significant difference in pneumonia, fractures, chronic kidney disease, dementia, heart disease, cancer or death[7].
The trial had limits. Its participants had heart or artery disease, follow-up was about 3 years, and C. difficile was roughly twice as common on pantoprazole, though with only 13 cases the difference was not significant[7]. A later analysis of the same trial found a small, statistically significant extra loss of kidney function, about 0.27 mL/min per year[14].
Omeprazole side effects long term
Omeprazole, esomeprazole (Nexium), lansoprazole (Prevacid), pantoprazole (Protonix) and the others belong to the same drug class, so the long-term evidence applies to all of them[1].
Is omeprazole safe to take long term? For people with a clear indication, guidelines support it, with regular review[10]. MedlinePlus notes that the fracture and polyp risks are highest in people on high doses or taking a PPI for one year or longer[1]. The American Gastroenterological Association advises against picking one PPI over another because of its side effects[10].
Do PPIs mess up your gut bacteria?
Yes, measurably. Stomach acid acts as a barrier between the bacteria of the mouth and upper gut and those further down. Researchers think that with less acid, more upper-gut and mouth bacteria get through and settle in the lower gut[2].
Four lines of evidence point the same way:
- Large population studies. In 1,815 people across three Dutch cohorts, PPI use was linked to lower diversity and changes in 20% of gut bacterial groups. On a population level, the effect was larger than that of antibiotics or other common drugs[17].
- Twin studies. In 1,827 healthy twins, PPI users had fewer typical gut residents and more mouth bacteria, especially Streptococcaceae. The pattern held in 70 identical twin pairs where only one twin took a PPI[2].
- Controlled trials. Healthy volunteers who took omeprazole 40 mg twice a day for 4 weeks gained Enterococcaceae and Streptococcaceae and lost Clostridiales, a shift linked to C. difficile risk[18]. In a 7-day randomized trial, a PPI moved more mouth bacteria into the gut than an H2 blocker did, including Fusobacterium nucleatum and Streptococcus anginosus[19].
- Pooled data. A meta-analysis of four datasets found lower diversity and fewer Ruminococcaceae and Lachnospiraceae, families that make short-chain fatty acids[20].
PPI users also carry more Enterococcus, Staphylococcus and potentially harmful Escherichia coli, and more of the mouth genus Rothia[17]. These are associations in stool samples from a cross-sectional study[17]. They help explain the infection signal, but they do not show that every PPI user is harmed.
How to restore gut health after a PPI
The short answer is that no trial has tested a way to speed recovery. What is known about recovery comes from short courses. In 34 healthy young adults who took omeprazole 20 mg a day for 7 days, the rise in species richness and in mouth-type bacteria such as Streptococcus vestibularis and Veillonella dispar faded by one week after stopping[21]. Whether changes after years of use reverse as fully has not been well studied.
The AGA does not recommend routine probiotics for long-term PPI users to prevent infection[10]. The step with the clearest support is covered below: confirm you still need the PPI and use the lowest effective dose[22]. For rebuilding the gut after antibiotics, a different problem, see our gut restoration protocol.
PPIs and SIBO
Small intestinal bacterial overgrowth (SIBO) is more common in people taking PPIs. A meta-analysis of 19 studies found 71% higher odds (OR 1.71)[3]. A 2025 analysis of 29 studies found SIBO in 37% of PPI users vs 20% of controls, rising by about 4 percentage points for each extra month of treatment[12].
The test matters. In an earlier meta-analysis, the link was strong when SIBO was diagnosed by culturing fluid from the small intestine, but not significant with the glucose breath test[23]. If you have new bloating or loose stools on a PPI, a doctor can decide whether SIBO testing makes sense. Our SIBO diet guide explains why diet alone rarely clears it.
PPIs and C. difficile
The Clostridioides difficile link is the most studied. Across 50 observational studies, PPI users had 26% higher odds of C. difficile infection, mainly in hospital patients[4]. Randomized trials have not confirmed that increase[11].
Recurrence is a separate concern. In 16 studies of 7,703 people who already had C. difficile, 22.1% of those on acid suppression had it come back, compared with 17.3% of those who were not[16]. The authors suggest re-evaluating the need for acid suppression after an infection.
Are PPIs bad for you, or do you need one long term?
For people with a clear reason to take one, guidelines support long-term use despite the risks above. The American Gastroenterological Association recommends long-term PPIs for people with[10]:
- GERD with complications such as erosive esophagitis or a peptic stricture
- Barrett's esophagus (recommended with reflux symptoms, worth considering without them)
- a high risk of ulcer bleeding while continuing NSAIDs such as ibuprofen[10]
People with uncomplicated GERD who respond well to a short course should try, with their doctor, to stop or reduce the dose[10]. PPIs are also combined with other medicines to treat ulcers caused by Helicobacter pylori, which is a different situation from daily long-term use[1].
The AGA's 2022 update says everyone on a PPI should have the reason reviewed and written down regularly, usually by their primary care clinician[22]. People taking a PPI twice a day for a chronic condition should generally be considered for a step down to once a day[22].
What happens when you stop taking omeprazole or another PPI?
The most common effect is rebound acid. In a randomized trial of 120 healthy volunteers, 44% of those who stopped an 8-week esomeprazole course had heartburn, regurgitation or indigestion in the next 4 weeks, compared with 15% on placebo[24]. These volunteers were healthy before the trial, which supports the idea that acid production rebounds when the drug is withdrawn.
The AGA advises that[22]:
- The decision to stop should rest on whether you still have a reason to take a PPI, not on fear of side effects.
- Some people should generally stay on one, including those with severe erosive esophagitis, Barrett's esophagus or a high risk of upper gastrointestinal bleeding.
- When stopping is appropriate, tapering the dose or stopping outright are both options.
- Patients should be told to expect temporary upper digestive symptoms from rebound acid[22].
Can you just stop taking omeprazole 20 mg?
It depends on why you take it. Over-the-counter omeprazole is designed as a 14-day course that ends on its own[9]. For prescription omeprazole, MedlinePlus advises not stopping without talking to your doctor[1]. When stopping is appropriate, the AGA considers both a taper and an abrupt stop acceptable[22].
Heartburn in the first weeks after stopping can be rebound rather than a sign the original problem is back, which is worth discussing before restarting[24].
How to lower your risk if you take a PPI
The evidence supports a few practical steps, and it argues against some popular ones.
- Know your reason. Ask whether your PPI is for a condition that needs it long term, and when it should next be reviewed[22].
- Use the lowest dose that works. Guidelines recommend checking the dose periodically[10].
- Respect the OTC limits. A 14-day course, up to three times a year, unless a doctor advises otherwise[9].
- Bring it up after a C. difficile infection. Acid suppression is linked to the infection coming back[16].
What the AGA does not recommend for every long-term PPI user[10]:
- routine probiotics to prevent infection
- calcium, vitamin B12 or magnesium above the recommended daily amount
- routine bone scans or blood tests for kidney function, magnesium or B12
Testing still makes sense when symptoms appear. Stomach acid helps free B12 from food, so acid reducers can lower absorption; low B12 can cause tiredness, weakness, and numb or tingly hands and feet[25]. If you get muscle spasms, shaking or an irregular heartbeat on omeprazole, call your doctor promptly; they may order blood tests during treatment[1]. If you take antibiotics too, our guide to antibiotic-related diarrhea explains what is normal and what is not.
When to see a doctor
See a doctor if you are taking a PPI and you have:
- severe watery diarrhea, stomach pain or fever that does not go away[1]
- heartburn with chest pain, shortness of breath, or pain spreading to your arm or neck[1]
- trouble swallowing, vomiting blood, black stools or unexplained weight loss[1]
- an irregular heartbeat, muscle spasms or unusual tiredness[1]
- numb or tingly hands and feet, or ongoing tiredness and weakness, after months or years on a PPI[25][5]
- heartburn that needs over-the-counter PPIs more than three 14-day courses a year[9]
This article is for general educational purposes and is not medical advice. It summarizes research on PPI side effects and does not replace a review of your own prescription. Do not stop, start or change the dose of a PPI without talking to a qualified healthcare professional, particularly if you are pregnant, immunocompromised, taking other prescription medication, or managing a diagnosed condition such as Barrett's esophagus or erosive esophagitis.
Frequently Asked Questions
What is the safest PPI for long-term use?
No single PPI has been shown to be safer than the others over the long term. The American Gastroenterological Association advises against choosing a specific PPI because of its potential risks. What matters more is using the lowest dose that controls your condition and reviewing the reason for it regularly. Omeprazole, esomeprazole, lansoprazole and pantoprazole belong to the same drug class, and the long-term risks described for PPIs come from studies of the class.
What are the downsides of taking Prilosec?
Prilosec is omeprazole. In clinical trials of 3,096 patients, the most common side effects were headache (6.9%), abdominal pain (5.2%), nausea (4.0%), diarrhea (3.7%), vomiting (3.2%) and gas (2.7%). With long-term use it shares the risks of all PPIs: shifts in gut bacteria, and links to SIBO, C. difficile infection, low vitamin B12 and fractures, mostly from observational studies. Over-the-counter Prilosec is meant for 14-day courses, no more than three times a year, unless a doctor advises otherwise.
How many years can you stay on omeprazole?
There is no fixed limit. For people with a clear reason, such as erosive esophagitis, Barrett's esophagus or a high risk of ulcer bleeding, guidelines support long-term use with a regular review of the dose and the reason. In the largest placebo-controlled trial, about 17,600 people took pantoprazole or placebo for a median of 3 years, and the only clear difference was slightly more gut infections (1.4% vs 1.0%). Omeprazole is in the same drug class. MedlinePlus notes that fracture and stomach polyp risks are highest at high doses or after a year or more.
What happens if you take a PPI for 20 years?
No trial has followed people on PPIs for 20 years. The longest placebo-controlled data come from the COMPASS trial, with a median of 3 years and no clear increase in pneumonia, fractures, dementia or kidney disease. Concerns about very long use come from observational studies, which link PPIs with low vitamin B12, hip fracture, SIBO and C. difficile but cannot prove the drug causes them. That is why guidelines recommend a regular review of whether you still need it.
What vitamin deficiency does a PPI cause?
Vitamin B12 is the best documented. Stomach acid frees B12 from the protein in food, so acid reducers can lower how much you absorb. In a study of about 26,000 people with B12 deficiency, 2 or more years of PPI prescriptions were linked to 65% higher odds of deficiency. Low magnesium is also reported, though studies disagree. The American Gastroenterological Association does not advise extra B12, magnesium or calcium above the recommended amounts for everyone on a PPI; ask for a test if you have symptoms.
Is there a safer alternative to PPIs?
H2 blockers such as famotidine also reduce stomach acid, and in head-to-head comparisons they appear to disturb the gut less. In a 7-day randomized trial, a PPI moved more mouth bacteria into the gut than an H2 blocker did. H2 blockers were also linked with a smaller rise in B12 deficiency risk. Whether switching is right depends on why you take a PPI: guidelines support long-term PPIs for erosive esophagitis, Barrett's esophagus and high ulcer-bleeding risk. Discuss any change with your prescriber.
How long do PPI side effects last after stopping?
Rebound acid symptoms usually appear in the first weeks after stopping and are temporary. In a randomized trial of healthy volunteers, 44% of people who stopped an 8-week PPI course had heartburn, regurgitation or indigestion in the following 4 weeks, compared with 15% on placebo. Guidelines describe these symptoms as transient. Whether the gut bacteria changes fully reverse after stopping has not been well studied in adults.
References
- MedlinePlus, National Library of Medicine. Omeprazole: MedlinePlus Drug Information. MedlinePlus. 2023. Available at: https://medlineplus.gov/druginfo/meds/a693050.html ↩
- Jackson MA, Goodrich JK, Maxan ME, et al.. Proton pump inhibitors alter the composition of the gut microbiota. Gut. 2015;65(5):749-756. doi:10.1136/gutjnl-2015-310861 ↩
- Su T, Lai S, Lee A, He X, Chen S. Meta-analysis: proton pump inhibitors moderately increase the risk of small intestinal bacterial overgrowth. Journal of Gastroenterology. 2017;53(1):27-36. doi:10.1007/s00535-017-1371-9 ↩
- Cao F, Chen C, Wang M, et al.. Updated meta-analysis of controlled observational studies: proton-pump inhibitors and risk of Clostridium difficile infection. Journal of Hospital Infection. 2018;98(1):4-13. doi:10.1016/j.jhin.2017.08.017 ↩
- Lam JR, Schneider JL, Zhao W, Corley DA. Proton Pump Inhibitor and Histamine 2 Receptor Antagonist Use and Vitamin B12 Deficiency. JAMA. 2013;310(22):2435-2442. doi:10.1001/jama.2013.280490 ↩
- Poly T, Islam M, Yang HC, Wu C, Li YC. Proton pump inhibitors and risk of hip fracture: a meta-analysis of observational studies. Osteoporosis International. 2018;30(1):103-114. doi:10.1007/s00198-018-4788-y ↩
- Moayyedi P, Eikelboom JW, Bosch J, et al.. Safety of Proton Pump Inhibitors Based on a Large, Multi-Year, Randomized Trial of Patients Receiving Rivaroxaban or Aspirin. Gastroenterology. 2019;157(3):682-691.e2. doi:10.1053/j.gastro.2019.05.056 ↩
- National Library of Medicine. Label: Omeprazole capsule, delayed release (DailyMed). DailyMed. 2026. Available at: https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=d8b466e0-a35e-4fba-9d43-4e6c0122e7ad ↩
- U.S. Food and Drug Administration. Over-The-Counter (OTC) Heartburn Treatment. FDA. 2023. Available at: https://www.fda.gov/drugs/understanding-over-counter-medicines/over-counter-otc-heartburn-treatment ↩
- Freedberg DE, Kim LS, Yang YX. The Risks and Benefits of Long-term Use of Proton Pump Inhibitors: Expert Review and Best Practice Advice From the American Gastroenterological Association. Gastroenterology. 2017;152(4):706-715. doi:10.1053/j.gastro.2017.01.031 ↩
- Floria DE, Obeidat M, Váncsa S, et al.. Proton pump inhibitors are not associated with an increased risk of Clostridioides difficile infection: a systematic review and meta-analysis of randomized controlled trials. Gut Microbes. 2025;17(1):2562341. doi:10.1080/19490976.2025.2562341 ↩
- Khurmatullina AR, Andreev DN, Kucheryavyy YA, et al.. The Duration of Proton Pump Inhibitor Therapy and the Risk of Small Intestinal Bacterial Overgrowth: A Systematic Review and Meta-Analysis. Journal of Clinical Medicine. 2025;14(13):4702. doi:10.3390/jcm14134702 ↩
- Liao S, Gan L, Mei Z. Does the use of proton pump inhibitors increase the risk of hypomagnesemia: An updated systematic review and meta-analysis. Medicine. 2019;98(13):e15011. doi:10.1097/md.0000000000015011 ↩
- Pyne L, Smyth A, Molnar AO, et al.. The Effects of Pantoprazole on Kidney Outcomes. Journal of the American Society of Nephrology. 2024;35(7):901-909. doi:10.1681/asn.0000000000000356 ↩
- Ahn N, Nolde M, Krause E, et al.. Do proton pump inhibitors increase the risk of dementia? A systematic review, meta-analysis and bias analysis. British Journal of Clinical Pharmacology. 2022;89(2):602-616. doi:10.1111/bcp.15583 ↩
- Tariq R, Singh S, Gupta A, Pardi DS, Khanna S. Association of Gastric Acid Suppression With Recurrent Clostridium difficile Infection: A Systematic Review and Meta-analysis. JAMA Internal Medicine. 2017;177(6):784-791. doi:10.1001/jamainternmed.2017.0212 ↩
- Imhann F, Bonder MJ, Vich Vila A, et al.. Proton pump inhibitors affect the gut microbiome. Gut. 2015;65(5):740-748. doi:10.1136/gutjnl-2015-310376 ↩
- Freedberg DE, Toussaint NC, Chen SP, et al.. Proton Pump Inhibitors Alter Specific Taxa in the Human Gastrointestinal Microbiome: A Crossover Trial. Gastroenterology. 2015;149(4):883-885.e9. doi:10.1053/j.gastro.2015.06.043 ↩
- Zhu J, Sun C, Li M, Hu G, Zhao XM, Chen WH. Compared to histamine-2 receptor antagonist, proton pump inhibitor induces stronger oral-to-gut microbial transmission and gut microbiome alterations: a randomised controlled trial. Gut. 2023;73(7):1087-1097. doi:10.1136/gutjnl-2023-330168 ↩
- Zhang J, Zhang C, Zhang Q, et al.. Meta-analysis of the effects of proton pump inhibitors on the human gut microbiota. BMC Microbiology. 2023;23(1):171. doi:10.1186/s12866-023-02895-w ↩
- Koo SH, Deng J, Ang DSW, et al.. Effects of proton pump inhibitor on the human gut microbiome profile in multi-ethnic groups in Singapore. Singapore Medical Journal. 2019;60(10):512-521. doi:10.11622/smedj.2018152 ↩
- Targownik LE, Fisher DA, Saini SD. AGA Clinical Practice Update on De-Prescribing of Proton Pump Inhibitors: Expert Review. Gastroenterology. 2022;162(4):1334-1342. doi:10.1053/j.gastro.2021.12.247 ↩
- Lo WK, Chan WW. Proton Pump Inhibitor Use and the Risk of Small Intestinal Bacterial Overgrowth: A Meta-analysis. Clinical Gastroenterology and Hepatology. 2013;11(5):483-490. doi:10.1016/j.cgh.2012.12.011 ↩
- Reimer C, Søndergaard B, Hilsted L, Bytzer P. Proton-Pump Inhibitor Therapy Induces Acid-Related Symptoms in Healthy Volunteers After Withdrawal of Therapy. Gastroenterology. 2009;137(1):80-87.e1. doi:10.1053/j.gastro.2009.03.058 ↩
- Office of Dietary Supplements, National Institutes of Health. Vitamin B12: Fact Sheet for Consumers. NIH Office of Dietary Supplements. 2023. Available at: https://ods.od.nih.gov/factsheets/VitaminB12-Consumer/ ↩