Prilosec (omeprazole) treats conditions caused by excess stomach acid, including GERD, stomach ulcers, duodenal ulcers, erosive esophagitis, and rare hypersecretory conditions like Zollinger-Ellison syndrome. It works by shutting down the tiny acid pumps lining your stomach, reducing acid production at the source rather than just neutralizing acid after it’s made. This makes it more effective than antacids or older acid-blocking medications for serious acid-related conditions.
How Prilosec Reduces Stomach Acid
Your stomach lining contains millions of cells that actively pump acid into your stomach. Prilosec belongs to a class of drugs called proton pump inhibitors (PPIs), which block these pumps directly. By disabling the final step of acid production, Prilosec can dramatically lower the amount of acid your stomach makes throughout the day.
The acid-reducing effect kicks in within one to two hours of your first dose, but Prilosec builds in effectiveness over several days. The full suppression of acid reaches a plateau after about four days of daily use. This is why you won’t feel complete relief on day one, and why doctors recommend taking it consistently rather than as needed.
GERD and Heartburn
Gastroesophageal reflux disease, or GERD, is the most common reason people take Prilosec. GERD happens when stomach acid repeatedly flows back into the esophagus, causing persistent heartburn, chest discomfort, and sometimes a sour taste in the mouth. Clinical trials show omeprazole resolves GERD symptoms in over 96% of patients during maintenance therapy, with relapse rates under 7%.
Over-the-counter Prilosec OTC is specifically labeled for frequent heartburn, defined as heartburn occurring two or more days per week. The OTC version is a 20 mg tablet taken once daily for 14 days before eating. You should not take it longer than 14 days or repeat a 14-day course more often than every four months without a doctor’s guidance. If your heartburn is more persistent or severe, a prescription version allows for longer treatment courses and higher doses under medical supervision.
Erosive Esophagitis
When acid reflux is severe or goes untreated for a long time, it can damage the lining of the esophagus, causing visible erosions and inflammation. This condition, called erosive esophagitis, goes beyond the discomfort of ordinary heartburn. It can cause painful swallowing, difficulty eating, and in some cases bleeding.
Prescription Prilosec is approved to both heal erosive esophagitis and maintain that healing over time. Treatment typically runs four to eight weeks at 20 mg daily. For patients whose esophagus has healed, ongoing maintenance therapy can prevent the erosions from returning. This is one of the key differences between prescription and OTC Prilosec: the OTC version is not intended for treating or maintaining healing of actual tissue damage.
Stomach and Duodenal Ulcers
Prilosec treats both gastric (stomach) ulcers and duodenal ulcers, which form in the first section of the small intestine. By cutting acid production, it gives damaged tissue the chance to heal. Treatment for duodenal ulcers typically requires 20 mg daily for four to eight weeks. Gastric ulcers generally need a higher dose of 40 mg daily over the same timeframe.
Healing rates are strong. In studies of duodenal ulcer patients, 75% achieved complete healing within the first six weeks of therapy, with most cases resolving successfully in that window. Ulcers that don’t respond within 12 weeks may require extended treatment or additional investigation.
H. Pylori Infection
Many stomach and duodenal ulcers are caused by a bacterial infection called H. pylori. Prilosec alone won’t eliminate the bacteria, but it plays a critical role in combination therapy. The standard approach pairs omeprazole with two antibiotics, taken twice daily for 10 days. Prilosec suppresses acid during this period, which helps the antibiotics work more effectively against the bacteria and allows the ulcer to heal simultaneously.
Eradicating H. pylori is important because without it, ulcers tend to come back. Clearing the infection significantly reduces the risk of recurrence.
Zollinger-Ellison Syndrome and Hypersecretory Conditions
Prilosec is also approved for pathological hypersecretory conditions, the most well-known being Zollinger-Ellison syndrome. This rare disorder involves tumors that stimulate the stomach to produce dangerously high levels of acid, leading to severe ulcers, diarrhea, and abdominal pain.
These conditions require much higher doses than typical GERD or ulcer treatment. The starting dose is usually 60 mg daily, but some patients need up to 360 mg daily (split into multiple doses) to keep acid secretion under control. Treatment is typically long-term, sometimes lifelong, because the underlying condition continues to drive excess acid production.
Pediatric Use
Prilosec is not just for adults. It is approved for treating GERD symptoms in children one year and older, and for healing erosive esophagitis in infants as young as one month old. Dosing in children is weight-based and determined by a doctor. The conditions treated are the same as in adults, primarily acid reflux and esophageal damage, but the thresholds for use tend to be more conservative given the developing digestive system.
OTC Versus Prescription Prilosec
The active ingredient is identical in both versions. The difference comes down to what they’re intended to treat and how long you take them. OTC Prilosec is designed for self-treating frequent heartburn in short, 14-day courses. Prescription Prilosec covers the full range of approved conditions: ulcers, erosive esophagitis, H. pylori eradication, and hypersecretory conditions. These require medical diagnosis, longer treatment durations, and sometimes higher doses.
If you find yourself needing OTC Prilosec more than one 14-day course every four months, that’s a signal your symptoms may point to something more than occasional heartburn.
Long-Term Use Considerations
For conditions like Zollinger-Ellison syndrome or maintenance of healed erosive esophagitis, long-term Prilosec use is sometimes necessary. Prolonged use has been associated with a mild increased risk of vitamin B12 deficiency, likely because stomach acid plays a role in absorbing this nutrient from food. Magnesium levels can also be affected over time. Cleveland Clinic researchers have additionally identified changes to the gut microbiome with extended PPI use.
These risks are generally modest and manageable, but they’re worth knowing about if you’ve been taking Prilosec for months or years. Periodic blood work can catch deficiencies early, and your doctor can help weigh the benefits of continued treatment against these potential effects.