Omeprazole is a widely used acid-reducing medication prescribed for conditions ranging from frequent heartburn to stomach ulcers. It works by shutting down the tiny pumps in your stomach lining that produce acid, which allows damaged tissue to heal and relieves symptoms caused by excess acid. Here’s what it treats, how to take it, and what to know about long-term use.
How Omeprazole Reduces Stomach Acid
Omeprazole belongs to a class of drugs called proton pump inhibitors (PPIs). Your stomach lining contains millions of acid-producing pumps, and omeprazole permanently disables them by bonding directly to the pump’s active site. Because the drug physically locks onto the pump rather than just blocking a signal, each dose provides strong, sustained acid reduction for roughly 24 hours. Your body gradually builds new pumps, which is why the medication is taken daily rather than as needed.
Omeprazole is actually inactive when you swallow it. It only converts into its active form once it reaches the highly acidic environment right next to the stomach’s acid pumps. This targeted activation is what makes it effective at low doses and limits its action to the stomach rather than affecting acid chemistry elsewhere in the body.
Gastroesophageal Reflux Disease (GERD)
GERD is the most common reason adults take omeprazole. When stomach acid repeatedly flows backward into the esophagus, it causes persistent heartburn, chest discomfort, and sometimes a sour taste in the back of the throat. Omeprazole treats both the symptoms and the underlying damage. For mild GERD with heartburn but no visible injury to the esophagus, a course of treatment typically relieves symptoms within one to four weeks.
When acid exposure has already caused erosive esophagitis, visible damage to the esophageal lining confirmed by an endoscopy, prescription omeprazole is used for four to eight weeks to allow healing. After the tissue repairs, many people continue on a lower maintenance dose to prevent the erosions from returning. This maintenance use is one of the few situations where long-term omeprazole is specifically approved.
Stomach and Duodenal Ulcers
Omeprazole treats active ulcers in both the stomach and the duodenum, the first stretch of small intestine just past the stomach. By dramatically lowering acid levels, it creates the conditions for ulcer tissue to heal on its own. Most duodenal ulcers close within four weeks. Stomach ulcers generally take four to eight weeks.
Many ulcers are caused by a bacterial infection called H. pylori. When testing confirms this, omeprazole is paired with antibiotics to both kill the bacteria and heal the ulcer. The most common approach is a 14-day regimen combining omeprazole with two antibiotics. Several combinations exist, and your doctor will choose one based on local antibiotic resistance patterns and your medication history. Clearing the infection is critical because ulcers caused by H. pylori tend to come back if the bacteria survive.
Rare Conditions With Excess Acid Production
A small number of adults produce dangerously high levels of stomach acid due to conditions like Zollinger-Ellison syndrome, where tumors stimulate acid-producing cells far beyond normal levels. These patients require much higher doses of omeprazole, sometimes several times daily, and often stay on the medication indefinitely. Some people with Zollinger-Ellison syndrome have been treated continuously with omeprazole for more than five years.
OTC Omeprazole for Frequent Heartburn
Over-the-counter omeprazole is a 20 mg tablet sold for adults who experience heartburn two or more days per week. It contains the same active ingredient as the prescription version, but the approved use is narrower: frequent heartburn only, not ulcers or diagnosed GERD. The recommended course is one tablet daily for 14 days, taken before eating. You should not repeat a 14-day course more often than every four months without medical guidance.
If your heartburn doesn’t improve after a 14-day course, or keeps returning every few months, that pattern suggests something more than occasional heartburn and is worth investigating with a healthcare provider.
How to Take It for Best Results
Timing matters with omeprazole. The drug works best when taken 30 minutes before your first meal of the day, on an empty stomach. Because it only activates in an acidic environment, you need your stomach’s acid pumps to be “turned on” by a meal shortly after the drug arrives. Taking it at bedtime or hours away from food significantly reduces its effectiveness.
Omeprazole does not work like an antacid. You won’t feel relief within minutes of your first dose. Acid suppression begins within the first day, but it takes several days of consistent daily use for the full effect to build. Most people notice meaningful symptom improvement within one to four days, with maximum benefit by about day four or five.
Risks of Long-Term Use
Short courses of omeprazole, a few weeks to a couple of months, carry minimal risk for most adults. The concerns center on people who take it continuously for months or years, sometimes without a clear ongoing need.
Bone fracture risk increases modestly with prolonged use. A large meta-analysis found that long-term PPI users had a 22% higher risk of hip fracture and a 49% higher risk of spine fracture compared to nonusers. Interestingly, PPIs don’t appear to reduce bone mineral density directly, so the mechanism isn’t fully understood. Reduced calcium absorption due to lower stomach acid is one leading theory.
Kidney problems are another concern. PPIs are associated with both acute kidney injury and, in some cases, progression to chronic kidney disease. A systematic review estimated that for every 20 to 27 long-term users, one additional case of kidney disease could be attributed to the medication. Over half of patients who develop PPI-related acute kidney inflammation don’t fully recover their previous kidney function.
Low magnesium levels are a recognized risk that prompted an FDA safety warning. Magnesium is essential for muscle function and heart rhythm, so prolonged depletion can cause symptoms ranging from muscle cramps to irregular heartbeat. This risk is most relevant for people taking omeprazole for a year or longer.
None of these risks mean omeprazole is unsafe. For conditions like erosive esophagitis or Zollinger-Ellison syndrome, the benefits clearly outweigh the risks. The practical takeaway is that omeprazole works best as a targeted treatment for a defined period, and staying on it indefinitely “just in case” is worth reconsidering with your provider, especially if the original problem has resolved.

