What Is PPI Medication and How Does It Work?

PPI stands for proton pump inhibitor, a class of drugs that reduces stomach acid production. PPIs are among the most widely used medications in the world, available both over the counter and by prescription to treat conditions like acid reflux, stomach ulcers, and chronic heartburn. They work by shutting down tiny acid-producing pumps in the lining of your stomach, and they’re significantly more powerful than older antacids or acid reducers.

How PPIs Work

Your stomach lining contains millions of specialized cells called parietal cells. These cells use small molecular pumps to push acid into your stomach. PPIs are actually inactive when you swallow them. They only switch on once they reach the highly acidic environment near those pumps, where they bind permanently to the pump and disable it. Because the drug locks onto the pump and doesn’t let go, a single dose suppresses acid production for much longer than other heartburn medications.

At a standard once-daily dose taken before breakfast, PPIs block roughly 66% of your stomach’s maximum acid output. Twice-daily dosing, taken before breakfast and before dinner, pushes that to about 80%. The reason they can’t hit 100% is that PPIs have a short window of activity in your bloodstream, and not every pump is active at the moment the drug arrives. Your body continuously makes new pumps, which is why you need to take PPIs daily for them to maintain their effect.

Common PPI Medications

Seven PPIs are currently approved in the United States. Three are available over the counter:

  • Omeprazole (Prilosec)
  • Esomeprazole (Nexium)
  • Lansoprazole (Prevacid)

Four others require a prescription:

  • Pantoprazole (Protonix)
  • Rabeprazole (AcipHex)
  • Dexlansoprazole (Dexilant)
  • Omeprazole with sodium bicarbonate (Zegerid)

All PPIs work through the same basic mechanism. The differences between them are mostly about how quickly they’re absorbed, how long they last, and how they interact with other medications. For most people, the practical differences are small.

What PPIs Treat

PPIs are the go-to treatment for any condition driven by excess stomach acid. The most common reason people take them is gastroesophageal reflux disease (GERD), where acid repeatedly washes up into the esophagus, causing heartburn and potential damage to the esophageal lining. They’re also used to heal stomach and duodenal ulcers, treat damage from long-term use of anti-inflammatory painkillers like ibuprofen, and manage a rare condition called Zollinger-Ellison syndrome that causes the stomach to produce extreme amounts of acid.

For people with Barrett’s esophagus, a precancerous change in the esophageal lining caused by chronic acid exposure, PPIs help control ongoing damage. They’re also prescribed alongside antibiotics when treating stomach ulcers caused by H. pylori bacteria, since lowering acid levels helps the antibiotics work more effectively and lets the ulcer heal.

Over-the-Counter vs. Prescription Strength

The OTC and prescription versions of the same PPI often contain the identical dose. Omeprazole, for instance, is sold over the counter at 20 mg, the same strength prescribed for GERD. The key difference is how long you’re meant to take it. OTC PPIs are labeled for a 14-day course to treat frequent heartburn, with the expectation that you’ll stop after two weeks. Prescription PPIs are typically used for 4 to 8 weeks, and for conditions like stomach ulcers, the dose may go up to 40 mg.

If your heartburn doesn’t improve after a two-week OTC course, that’s a signal to talk to a healthcare provider rather than simply continuing the medication on your own.

How to Take PPIs for Best Results

Timing matters more with PPIs than with most medications. Because PPIs only work when your stomach’s acid pumps are actively firing, and eating is what triggers those pumps, you should take a PPI 20 to 30 minutes before a meal. Taking it before breakfast is the standard recommendation for once-daily dosing. If you take it on an empty stomach with no meal following, or right after eating, the drug may clear your bloodstream before enough pumps have turned on.

PPIs don’t provide instant relief the way an antacid does. It typically takes one to four days of consistent use before you notice a meaningful reduction in symptoms, and full effect builds over the first week. This is because new acid pumps are constantly being produced, and the PPI needs several daily doses to catch and disable most of them.

PPIs vs. H2 Blockers

H2 blockers (like famotidine, sold as Pepcid) are the other major class of acid-reducing drugs. They work differently: instead of disabling the acid pump directly, they block one of the chemical signals that tells the pump to start working. This makes them less powerful. An H2 blocker keeps stomach pH in a therapeutic range for about 4 hours, while a PPI maintains it for 15 to 22 hours.

In clinical trials, PPIs consistently outperform H2 blockers. A large meta-analysis of 30 trials found that omeprazole healed 15% more duodenal ulcers and nearly 10% more stomach ulcers than H2 blockers after just two weeks. Patients who didn’t respond to H2 blockers often improved when switched to a PPI. The tradeoff is that H2 blockers work faster on the first dose, making them better for occasional, on-demand heartburn relief, while PPIs are better for sustained acid control.

Short-Term Side Effects

Most people tolerate PPIs well in the short term. The most commonly reported side effects are headache, nausea, diarrhea, constipation, and abdominal pain. These tend to be mild and often resolve on their own. Across large studies, serious side effects during a standard 4- to 8-week course are uncommon.

Risks of Long-Term Use

The concerns around PPIs center on prolonged use, generally defined as taking them continuously for months or years. Because stomach acid plays a role in absorbing certain nutrients and defending against infections, suppressing it over long periods can create downstream problems.

Vitamin B12 deficiency is one of the more established risks. Your stomach needs acid to separate B12 from the proteins it’s bound to in food. Long-term PPI use has been linked to lower B12 levels across multiple studies, and the risk increases if you’re also taking metformin for diabetes. Symptoms of B12 deficiency include fatigue, numbness or tingling in the hands and feet, and difficulty with balance.

Bone fractures are another concern. The FDA issued a safety alert in 2010 about an association between long-term PPI use and increased risk of hip, spine, and wrist fractures. Multiple meta-analyses have confirmed a modest increase in fracture risk, likely related to reduced calcium absorption. This is most relevant for older adults already at risk for osteoporosis.

Kidney problems have also appeared in the research. Studies have linked chronic PPI use to higher rates of acute kidney injury, chronic kidney disease, and a type of kidney inflammation called acute interstitial nephritis. A large analysis of Veterans Affairs data found that PPI users had both a higher risk of developing chronic kidney disease and a measurable decline in kidney filtration over time.

None of these risks mean PPIs are dangerous when used appropriately. For people with conditions that genuinely require acid suppression, the benefits typically outweigh the risks. The issue is that many people continue taking PPIs long after they’re needed, or take them for conditions that could be managed with lifestyle changes or less potent medications. If you’ve been on a PPI for more than a few months, it’s worth revisiting whether you still need it.