Omeprazole 20 mg is used to treat conditions caused by excess stomach acid, most commonly gastroesophageal reflux disease (GERD), stomach ulcers, and frequent heartburn. It’s one of the most widely taken medications in the world, available both over the counter and by prescription, and it works by shutting down the tiny acid-producing pumps in your stomach lining.
How Omeprazole Works
Your stomach produces acid through structures called proton pumps, which sit on the surface of cells in the stomach lining. Omeprazole is what’s known as a proton pump inhibitor, or PPI. Once you swallow it and it reaches those cells, it binds permanently to the pumps and switches them off. This isn’t a temporary block. Each pump it reaches is deactivated for good, and your body has to build new ones, which takes roughly 24 hours. That’s why a single daily dose keeps acid levels low around the clock.
The acid-lowering effect kicks in within about one hour of taking a dose, with peak suppression around the two-hour mark. But full symptom relief builds over days. Most people notice meaningful improvement within one to four days, and healing of damaged tissue typically takes four to eight weeks depending on the condition being treated.
Conditions It Treats
GERD and Heartburn
The most common reason people take omeprazole 20 mg is GERD, a condition where stomach acid repeatedly flows back into the esophagus. This causes persistent heartburn, a burning sensation in the chest or throat, and can eventually damage the esophageal lining. At the 20 mg dose, omeprazole is prescribed for up to four weeks in adults with GERD symptoms but no visible esophageal damage. When acid has already caused erosive esophagitis (actual sores on the esophageal lining), treatment runs four to eight weeks to allow healing. Children one year and older can also be treated for GERD with prescription omeprazole.
Stomach and Intestinal Ulcers
Omeprazole treats active ulcers in both the stomach and the upper part of the small intestine (duodenal ulcers). By dramatically reducing acid, it gives these open sores the chance to heal. Most duodenal ulcers close within four weeks, though some need an additional four weeks. Stomach ulcers are generally treated for four to eight weeks.
When ulcers are caused by the bacterium H. pylori, omeprazole is paired with antibiotics to both kill the infection and heal the damage. The acid reduction omeprazole provides also helps the antibiotics work more effectively in the stomach’s environment. This combination approach treats the ulcer and reduces the chance it comes back.
Zollinger-Ellison Syndrome
This is a rare condition in which tumors cause the stomach to produce far more acid than normal. Omeprazole is used to manage the excess acid, often at higher doses and for longer periods than typical GERD treatment.
Over the Counter vs. Prescription
Omeprazole 20 mg is the same molecule whether you buy it off the shelf or get it prescribed, but the intended use and duration differ significantly.
The over-the-counter version (sold as Prilosec OTC and store-brand equivalents) is specifically for frequent heartburn, defined as heartburn occurring two or more days per week. It’s meant to be taken once daily for 14 days, then stopped. The FDA advises against repeating a 14-day course more often than every four months without a doctor’s guidance. If your heartburn is occasional, happening once a week or less, OTC omeprazole isn’t the right fit. It also won’t provide immediate relief for a single episode of heartburn the way an antacid would.
Prescription omeprazole covers more serious territory: erosive esophagitis, ulcers, H. pylori eradication, and Zollinger-Ellison syndrome. These conditions require a diagnosis, and treatment courses often run longer than 14 days. Prescription use in children, including infants as young as one month for certain conditions, also requires medical supervision.
How to Take It for Best Results
Timing matters with omeprazole. Capsules and delayed-release forms should be taken before a meal, preferably in the morning. The reason is practical: omeprazole works best when proton pumps are active, and eating triggers pump activity. Taking it 30 to 60 minutes before breakfast lines up the drug’s peak activity with your stomach’s highest acid output.
Swallow capsules whole. Crushing or chewing them breaks the protective coating that keeps the drug from being destroyed by stomach acid before it can reach the cells it needs to act on. Powder-for-suspension forms should be taken on an empty stomach at least one hour before eating.
Side Effects and Short-Term Tolerability
Most people tolerate omeprazole well over standard treatment courses. The most commonly reported side effects are headache, stomach pain, nausea, diarrhea, and gas. These tend to be mild and often resolve as your body adjusts.
Risks of Long-Term Use
When omeprazole is used for months or years, several potential concerns come into play. These aren’t reasons to panic if you need the medication, but they’re worth understanding.
Nutrient absorption. Stomach acid plays a role in absorbing certain nutrients. With prolonged acid suppression, absorption of vitamin B12, magnesium, and calcium can decrease. Low magnesium and calcium may contribute to bone-weakening over time. The FDA has issued warnings about a possible increased risk of fractures in the hip, wrist, and spine with long-term PPI use. That said, current guidelines note that people without existing risk factors for bone disease don’t need extra calcium or vitamin D monitoring solely because they take a PPI. The same applies to B12: routine monitoring isn’t considered necessary unless you already have risk factors for deficiency.
Kidney health. There is a recognized, though uncommon, association between PPIs and a type of kidney inflammation called acute interstitial nephritis. In some cases, this can progress to chronic kidney disease. For people without pre-existing kidney problems, routine kidney monitoring isn’t recommended just because of PPI use. But if you already have reduced kidney function, closer monitoring is appropriate.
The practical takeaway is that omeprazole works best as a targeted treatment for a defined period. If you’ve been taking it for years out of habit rather than active need, it’s worth revisiting whether you still need it.
What Omeprazole Won’t Do
Omeprazole is not a fast-acting antacid. If you’re looking for immediate relief from a single bout of heartburn, a standard antacid that neutralizes existing acid will work much faster. Omeprazole takes an hour to begin suppressing acid production and days to reach full effect. It’s designed for recurring problems, not one-off episodes. It also won’t help with bloating, indigestion, or stomach discomfort that isn’t driven by excess acid.

