Does Omeprazole Cause Diarrhea, Bloating or Gas?

Can omeprazole (Prilosec) cause diarrhea, bloating or gas? The five ways PPIs can upset your gut, from side effects and SIBO to infections and microscopic colitis, and what to do.

written by
Josh Ternyak
PUBLISHED ON
December 2, 2026

You started omeprazole to calm your stomach. Now you are dealing with loose stools, a bloated belly or more gas than usual, and you are wondering whether the medicine is to blame. It is a fair question, and for people with IBS it can be especially confusing, because these are the same symptoms you may already live with.

The short answer is yes, omeprazole can cause diarrhea, bloating and gas, and there are several different ways it can do it. Some are minor, short-term side effects. Others, like infections or a type of colitis, need medical attention. This guide walks through each one so you can work out what might be happening and what to do next.

The quick answer

  • In clinical trials, diarrhea (4%), gas (3%), stomach pain (5%) and nausea (4%) were among the most common omeprazole side effects.
  • PPIs can also contribute to gut symptoms indirectly, through changes in gut bacteria, SIBO, infections and microscopic colitis.
  • Watery diarrhea that does not improve, especially with fever or pain, needs a doctor because it can be a sign of C. diff.
  • If symptoms started after you began omeprazole, tell your doctor. Do not stop a prescription suddenly without a plan.

Cause 1: a direct side effect

The simplest explanation is that the drug itself upsets your gut. In the clinical trials listed in omeprazole's prescribing information, the most common side effects included:

  • Abdominal pain: 5%
  • Diarrhea: 4%
  • Nausea: 4%
  • Vomiting: 3%
  • Flatulence (gas): 3%

Drug references also list constipation and abdominal distension (a swollen-feeling belly) among other reported reactions (Healio). These direct effects are usually mild and often appear early. If they persist for more than a couple of weeks, or if they are bothering you, talk to your doctor or pharmacist.

Cause 2: changes to your gut bacteria

Stomach acid acts as a filter. It kills or stops many of the bacteria that you swallow with food and saliva before they reach your intestines. When acid is reduced for a long time, that filter weakens.

A study of 1,815 people found that PPI use was linked with lower diversity of gut bacteria and changes in about 20% of bacterial groups, with more bacteria normally found in the mouth showing up in the gut (Imhann et al., Gut 2016). A study of 1,827 twins found similar changes (Jackson et al., Gut 2016). The authors of the first study noted that, at a population level, the effect of PPIs on gut bacteria was more prominent than that of antibiotics or other common drugs.

Whether these changes directly cause bloating or bowel changes in a given person is not proven, but gut bacteria play a big role in gas production and stool form. More in How Prilosec changes your gut bacteria.

Cause 3: small intestinal bacterial overgrowth (SIBO)

SIBO means there are too many bacteria in the small intestine. It can cause bloating, abdominal distension, pain and diarrhea, according to a Mayo Clinic study of duodenal aspirates. That same study found a significantly higher percentage of patients with SIBO were using PPIs than patients without SIBO.

A 2018 meta-analysis of 19 studies found PPI use was linked with 1.71 times the odds of SIBO (Su et al.). An earlier meta-analysis found the link was clearest in studies that diagnosed SIBO with the most accurate test, a sample of fluid from the small intestine (Lo and Chan, 2013).

If bloating and gas are your main problems and you have been on a PPI for a while, SIBO is worth discussing with your doctor. See Can omeprazole cause SIBO? and IBS vs SIBO: are they the same thing?

Cause 4: gut infections

With less acid in the stomach, more germs survive. PPI users have higher odds of several gut infections:

Infections usually cause sudden diarrhea, often with cramps, fever or vomiting, rather than the slow, long-term changes of the other causes. Anyone on a PPI who develops diarrhea that does not improve should seek care promptly.

Cause 5: microscopic colitis

This is the cause most people have never heard of. Microscopic colitis is an inflammation of the large intestine that causes chronic, watery, non-bloody diarrhea. The colon looks normal during a colonoscopy, so it can only be diagnosed by taking small tissue samples (biopsies). It is sometimes mistaken for IBS with diarrhea.

Several medicines have been linked to it, including PPIs. A meta-analysis in the American Journal of Gastroenterology found PPI use was associated with 2.68 times the odds of microscopic colitis. A nationwide Danish study also found a strong association between PPI use and microscopic colitis (Aliment Pharmacol Ther, 2018), and lansoprazole in particular has been singled out in the literature (Arquivos de Gastroenterologia). The risk appears to be even higher when PPIs and anti-inflammatory painkillers (NSAIDs) are taken together (Aliment Pharmacol Ther, 2016).

If you have ongoing watery diarrhea that started or worsened after beginning a PPI, ask your doctor whether microscopic colitis should be considered, especially if you are over 50 or also take NSAIDs. Our article Do you need a colonoscopy to diagnose IBS? explains when biopsies are taken.

Why bloating can also be a sign the PPI is not the right tool

Many people take omeprazole for upper belly discomfort, fullness or bloating that is not actually caused by acid. In those cases, the drug may not help, and the symptoms that led to it may continue. A PPI is very good at treating acid problems like heartburn and ulcers. It is not a treatment for gas or bloating, and it is not a treatment for IBS. See Omeprazole and IBS: can acid reducers make symptoms worse?

Red flags: when to get help quickly

Contact a doctor promptly if you have:

  • Watery diarrhea that does not improve, especially after antibiotics or a hospital stay
  • Fever or severe stomach pain
  • Blood in your stool or black, tarry stools
  • Signs of dehydration, like dizziness or very little urine
  • Diarrhea that wakes you up at night
  • Unexplained weight loss

See our full guide to red flag symptoms that are not IBS.

What to do if you think omeprazole is upsetting your gut

  1. Note the timeline. Did symptoms start or get worse after you began omeprazole or changed the dose? Write it down.
  2. Check how you take it. Swallow it whole with water before a meal, as the label directs. See Best time to take omeprazole.
  3. Talk to your doctor. Ask whether the drug could be the cause and whether you still need it. The AGA recommends regular reviews of every PPI (AGA, 2022).
  4. Ask about tests if symptoms persist: a stool test for infection, SIBO testing for bloating, or biopsies for ongoing watery diarrhea.
  5. Do not stop a prescription suddenly. Rebound acid can make you feel worse for a few weeks. See How to stop taking omeprazole safely.
  6. Consider alternatives such as a lower dose, on-demand use, an H2 blocker or lifestyle changes for reflux. See How to reduce reflux without Prilosec.

Frequently asked questions

How long does omeprazole diarrhea last?

Mild diarrhea from the drug itself often settles within the first weeks. Diarrhea that persists, gets worse or comes with fever or pain should be checked, because it may have another cause such as infection or microscopic colitis.

Can omeprazole make IBS worse?

It can for some people, either through direct side effects or through gut bacteria changes and SIBO. It is not a treatment for IBS. See Omeprazole and IBS.

Does omeprazole cause constipation?

Constipation is listed among less common reported reactions. Diarrhea is more commonly reported in trials.

Will bloating go away when I stop omeprazole?

If the PPI is contributing, symptoms may improve after stopping, but rebound acid can cause upper gut discomfort for a few weeks. If you have SIBO, you may need treatment for it as well. Discuss a plan with your doctor.

Is Nexium or pantoprazole less likely to cause diarrhea?

All PPIs share similar gut side effects and class warnings. Some studies suggest differences between PPIs for microscopic colitis, with lansoprazole most often implicated, but there is no PPI that is free of these risks.

The bottom line

Omeprazole can cause diarrhea, bloating and gas directly, and it can also contribute through changes in gut bacteria, SIBO, infections and microscopic colitis. Most cases are mild, but persistent watery diarrhea always deserves a check. If your gut has been worse since starting Prilosec, it is worth reviewing whether you still need it. For the full overview, see our complete guide to Prilosec and omeprazole side effects.

Sources

  • Omeprazole prescribing information, adverse reactions. PrescriberPoint; Healio drug reference.
  • Imhann F, et al. PPIs affect the gut microbiome. Gut. 2016. PubMed. Jackson MA, et al. PPIs alter the composition of the gut microbiota. Gut. 2016. PMC.
  • Su T, et al. J Gastroenterol. 2018. PubMed. Lo WK, Chan WW. Clin Gastroenterol Hepatol. 2013. PubMed. Duodenal aspirates for SIBO (Mayo Clinic Arizona). PMC.
  • FDA warning on C. difficile and PPIs (2012), as discussed in Gastroenterol Hepatol. PMC. Hafiz RA, et al. 2018. PubMed.
  • Tong J, et al. Incidence, prevalence and temporal trends of microscopic colitis. Am J Gastroenterol. 2015. PubMed. Danish case-control study. Aliment Pharmacol Ther. 2018. PubMed. NSAIDs and PPIs in microscopic colitis. 2016. PubMed. Arq Gastroenterol.
  • Targownik LE, et al. AGA Clinical Practice Update. 2022. PubMed.

Medical note: This article is for education and does not replace advice from your doctor. Persistent, watery or bloody diarrhea, fever, dehydration or severe pain need prompt medical care. Do not stop a prescribed medicine without talking to your doctor.

bg
get started today

Ready to enjoy life without IBS?

Need assistance?
We’re here to provide support
Get Started
bg-leftright-cta

Reach out to us

hello@ibshope.org