Prilosec (omeprazole) works by permanently shutting down the acid-producing pumps in your stomach lining. It belongs to a class of drugs called proton pump inhibitors, or PPIs, and it reduces stomach acid output by 95% to 99% at standard doses. That makes it one of the most powerful acid-suppressing medications available.
The Acid Pump in Your Stomach
Your stomach lining contains specialized cells called parietal cells, and these cells have tiny molecular pumps on their surface that push acid into your stomach. These pumps are the final step in the acid-making process. No matter what signals your body sends to ramp up acid production (from food, stress, or histamine), every drop of acid has to pass through these pumps to reach your stomach.
Prilosec is actually a prodrug, meaning it isn’t active when you swallow it. Once it reaches your bloodstream, it concentrates in the parietal cells and gets activated by the acidic environment there. The activated drug then forms a permanent chemical bond with the acid pump, locking it in the “off” position. That pump never works again. Your body has to build entirely new pumps to resume full acid production, which is why the effects of a single dose can last up to 72 hours even though the drug itself leaves your bloodstream quickly.
Why Timing With Meals Matters
Because Prilosec needs active acid pumps to do its job, you should take it 30 to 60 minutes before eating. A meal is one of the strongest triggers for your parietal cells to start pumping acid. Taking the drug before you eat ensures it’s circulating in your blood right when the most pumps are switched on and vulnerable to being disabled. Studies have confirmed that taking omeprazole before a meal maintains optimal acid suppression, while taking it on a full stomach or without food reduces its effectiveness.
How Quickly It Works
Prilosec absorbs rapidly, reaching peak blood levels within 30 minutes to 3.5 hours. But don’t expect full relief right away. After one dose, acid suppression is only about 50% of its maximum at the 24-hour mark. It takes several days of daily dosing to reach full effectiveness because each dose disables a new batch of pumps. Only after enough cycles of pump turnover and drug exposure does the acid suppression plateau. This is why the over-the-counter version instructs you to take it once daily for 14 consecutive days.
How It Differs From Antacids and H2 Blockers
Antacids like Tums or Maalox neutralize acid that’s already in your stomach. They work within minutes but wear off quickly, making them useful for occasional, short-lived heartburn but not for sustained relief.
H2 blockers (like famotidine, sold as Pepcid) take a different approach. They block one of the chemical messengers, histamine, that tells parietal cells to produce acid. This reduces acid output, but histamine is only one of several signals that trigger acid production. Other signals, like those from food or the vagus nerve, can still get through. That’s why H2 blockers cause less acid suppression than Prilosec. PPIs bypass all those upstream signals entirely by disabling the pump itself, the single chokepoint where all acid production converges.
What Prilosec Is Used For
The FDA has approved Prilosec for a range of acid-related conditions. It treats active stomach and duodenal (upper intestinal) ulcers, typically over a 4 to 8 week course. It’s also used to treat GERD and the heartburn that comes with it, and to heal erosive esophagitis, a condition where stomach acid damages the lining of the esophagus. For people whose erosive esophagitis has healed, Prilosec can be used long-term to keep it from coming back.
In combination with certain antibiotics, it’s also part of the standard treatment to eliminate H. pylori, the bacterium responsible for many ulcers. Reducing acid creates a better environment for the antibiotics to work and allows the ulcer to heal. For rare conditions that cause extreme overproduction of stomach acid, like Zollinger-Ellison syndrome, higher doses are used on an ongoing basis.
Over-the-Counter vs. Prescription Strength
Prilosec OTC is a 20 mg delayed-release tablet taken once a day for 14 days. It’s designed for frequent heartburn, defined as two or more episodes per week. Prescription omeprazole comes in the same 20 mg strength but also in higher doses (up to 40 mg or more for certain conditions), and your doctor may prescribe it for longer courses depending on the diagnosis. The active ingredient is identical in both versions.
Risks of Long-Term Use
Short courses of Prilosec are generally well tolerated, but using it continuously for months or years carries some health considerations. Because stomach acid plays a role in absorbing certain nutrients, long-term suppression can lead to deficiencies. Vitamin B12 and magnesium levels can drop, particularly if you’re also taking other medications that affect absorption, like metformin or diuretics. Calcium absorption may also be impaired, and long-term PPI use has been linked to a higher risk of fractures in the hip, spine, and wrist.
These risks don’t mean the drug is dangerous for everyone who takes it long-term, but they’re worth factoring in. If you’ve been on Prilosec for more than the recommended 14-day OTC course, it’s reasonable to revisit whether you still need it and whether the dose can be reduced.

