Omeprazole 20 mg is a medication that reduces stomach acid by blocking the enzyme responsible for the final step of acid production in the stomach lining. It belongs to a class of drugs called proton pump inhibitors (PPIs) and is one of the most widely used medications in the world, available both over the counter and by prescription. The 20 mg dose is the standard strength for most adult conditions.
How Omeprazole Works
Your stomach lining contains specialized cells called parietal cells that produce hydrochloric acid. These cells use a tiny pump, an enzyme system, to push acid into the stomach. Omeprazole shuts down that pump by binding to it directly, blocking the final step of acid production. This works regardless of what triggered the acid in the first place, whether it’s food, stress, or your body’s natural baseline production.
The effect is dose-related: higher doses suppress more acid. At 20 mg, omeprazole provides enough suppression for most common acid-related conditions. It’s a delayed-release formulation, meaning the tablet or capsule is designed to pass through the stomach intact and absorb in the small intestine, where the drug can then travel through the bloodstream to reach those acid-producing cells.
What It Treats
The 20 mg dose is used for several overlapping but distinct conditions. For gastroesophageal reflux disease (GERD), where stomach acid repeatedly flows back into the esophagus, 20 mg once daily is the standard treatment. The same dose treats erosive esophagitis, a more severe form of acid damage where the esophageal lining has visible inflammation or ulcers. Duodenal ulcers (ulcers in the upper part of the small intestine) are also treated at 20 mg once daily, and when those ulcers are caused by the bacterium H. pylori, omeprazole is used alongside antibiotics at 20 to 40 mg doses.
OTC vs. Prescription Versions
Both over-the-counter and prescription omeprazole contain the same active ingredient at the same 20 mg strength. The difference is what they’re approved to treat and how long you take them.
The OTC version (sold as Prilosec OTC and generic equivalents) is specifically for frequent heartburn, defined as heartburn occurring two or more days per week. You take it once daily for 14 days, and you shouldn’t repeat that 14-day course more often than every four months without a doctor’s guidance. It’s not designed for occasional heartburn or immediate relief.
Prescription omeprazole treats diagnosed conditions like GERD, ulcers, and esophagitis, often for longer durations of four to eight weeks or more. Your doctor may also prescribe 40 mg for more severe cases, a strength not available over the counter.
When and How to Take It
Take omeprazole before a meal, typically in the morning. The drug works best when acid-producing cells are about to become active, which happens when you eat. Swallow the capsule or tablet whole rather than crushing or chewing it, since the delayed-release coating protects the medication from being destroyed by your own stomach acid before it can absorb.
Omeprazole starts suppressing acid shortly after a dose, but you likely won’t feel noticeable heartburn relief for one to four days. Full symptom improvement typically takes about two weeks of consistent daily use. For erosive esophagitis, healing can take four to eight weeks. This delay is normal and doesn’t mean the medication isn’t working.
Common Side Effects
Omeprazole’s short-term safety profile is considered good, with fewer than 1% to 2% of people needing to stop the medication because of side effects. The most commonly reported issues are headache, abdominal pain, nausea, and diarrhea. These tend to be mild and often resolve on their own as your body adjusts.
Risks of Long-Term Use
Most concerns about omeprazole relate to taking it continuously for months or years, which is common for people with chronic GERD. The FDA has issued warnings about several potential long-term risks, though the absolute risk for any individual remains small.
Bone fractures are the most studied concern. A meta-analysis found that PPI users had a modestly increased risk of hip fractures (about 22% higher than nonusers) and spine fractures (about 49% higher). However, the same research found no clear link between PPI use and actual bone mineral density loss, which makes the relationship somewhat uncertain. The mechanism may involve reduced calcium absorption due to lower stomach acid levels.
Low magnesium levels are another FDA-flagged risk. Stomach acid plays a role in mineral absorption, and suppressing it long-term can occasionally lead to magnesium deficiency, which may cause muscle cramps, irregular heartbeat, or seizures in severe cases. Vitamin B12 deficiency is also possible with prolonged use, since stomach acid helps release B12 from food.
Gut infections are a less obvious risk. Stomach acid serves as a barrier against certain bacteria, and reducing it may increase susceptibility to intestinal infections.
Notable Drug Interactions
Omeprazole interacts meaningfully with several medications. The most clinically important involves clopidogrel, a blood thinner often prescribed after heart attacks or stent placement. Omeprazole interferes with the liver enzyme that activates clopidogrel, potentially making the blood thinner less effective. Of all proton pump inhibitors, omeprazole is considered the most likely to cause this interaction.
If you take methotrexate for autoimmune conditions or cancer, omeprazole can slow your body’s ability to clear the drug, increasing the risk of methotrexate toxicity by about 2.6 times. Several HIV medications are also affected: omeprazole can reduce absorption of certain antivirals by 42% to 75%, which could compromise HIV treatment. If you’re on any of these medications, your prescriber will likely choose a different acid-reducing strategy.
Safety During Pregnancy
A controlled study of 113 pregnant women exposed to omeprazole found no increased risk of major birth defects compared to women who took non-harmful medications (4% vs. 2%, a difference that was not statistically significant). Birth weight, gestational age, and rates of complications were comparable across groups. Exposure during the critical period of organ formation in early pregnancy was not associated with increased risk of malformations, and use throughout pregnancy showed no increased risk of miscarriage or other complications.

