You can buy Prilosec OTC at any pharmacy, or your doctor can prescribe omeprazole. Both contain the same active drug. So what is the difference, and does it matter which one you take?
It does matter, but not because one is stronger or safer in the bottle. The real differences are in what each is approved to treat, the doses available, how long it is meant to be used, and whether a doctor is overseeing your treatment. This guide breaks it down using the official labels.
The quick answer
- Same drug: both contain omeprazole, a proton pump inhibitor (PPI).
- Prilosec OTC is one 20 mg tablet a day for 14 days, for frequent heartburn in adults, repeatable every 4 months.
- Prescription omeprazole comes in 10, 20 and 40 mg capsules and is approved for ulcers, reflux disease, erosive esophagitis, H. pylori treatment and rare high-acid conditions, with doses and durations set by a doctor.
- The side effect risks are the same drug's risks. They depend mainly on dose and how long you take it, not where you bought it.
- If you are taking OTC omeprazole beyond the label's limits, you are effectively on long-term therapy without medical oversight. That is the main thing to fix.
Side by side
Prilosec OTC
- Form: delayed-release tablet, omeprazole 20 mg (equivalent to 20.6 mg omeprazole magnesium)
- Approved use: frequent heartburn occurring 2 or more days a week
- Who: adults 18 and older
- How: 1 tablet with a glass of water before eating in the morning, once every 24 hours
- How long: 14 days; may repeat every 4 months; not longer or more often unless a doctor directs
- Not for: immediate relief; may take 1 to 4 days for full effect
Source: Prilosec OTC Drug Facts label.
Prescription omeprazole
- Form: delayed-release capsules in 10 mg, 20 mg and 40 mg (other forms exist)
- Approved uses and typical adult courses:
- Active duodenal ulcer: 20 mg once daily for 4 weeks
- H. pylori eradication: with antibiotics, for 10 or 14 days depending on the regimen
- Active benign gastric ulcer: 40 mg once daily for 4 to 8 weeks
- Symptomatic reflux disease (GERD): 20 mg once daily for up to 4 weeks
- Erosive esophagitis: 20 mg once daily for 4 to 8 weeks
- Maintenance of healing of erosive esophagitis: 20 mg once daily (studied for 12 months)
- Pathological high-acid conditions such as Zollinger-Ellison syndrome: starting at 60 mg once daily, for as long as clinically needed
- Who: adults, and some children under a doctor's care (the label includes weight-based dosing for children)
- How: before meals, swallowed whole
Source: omeprazole prescribing information.
The differences that matter
1. What it is meant to treat
Prilosec OTC is only approved for frequent heartburn, which people can reasonably recognize and treat themselves for a short time. Prescription omeprazole is approved for conditions that need a diagnosis, such as ulcers, erosive esophagitis and H. pylori infection. Many of these require tests, like an endoscopy or a breath or stool test, that you cannot do at home.
2. Dose flexibility
OTC comes in one strength, one tablet a day. A doctor can prescribe 10, 20 or 40 mg, adjust the dose up or down, or combine omeprazole with antibiotics. The ability to go lower matters too: a deprescribing guideline lists 10 mg as a low dose of omeprazole, which some people can use to stay well on less medication (Deprescribing.org).
3. How long it is used
OTC is built around a 14-day course. Prescription courses vary from 10 days to indefinite, depending on the condition, and come with follow-up. The American Gastroenterological Association recommends that everyone on a PPI have a regular review of whether they still need it (AGA, 2022).
4. Medical oversight
This is the biggest difference. When a doctor prescribes omeprazole, they should know why you are taking it, check for warning signs, consider interactions with your other medicines and review the need over time. When people take OTC omeprazole every day for months without telling anyone, none of that happens.
Is the OTC version weaker?
No. Prilosec OTC contains 20 mg of omeprazole, the same amount as a 20 mg prescription capsule. The difference is in the salt form (omeprazole magnesium in the OTC tablet) and the label, not the strength of the active drug. Both are delayed-release forms designed to protect the drug from stomach acid.
Are the side effects different?
The risks come from omeprazole itself, so they are the same whichever way you get it. What changes the risk is mainly how much you take and for how long. For example, a large study found twice-daily PPI dosing was linked with a higher risk of chronic kidney disease than once-daily dosing (Lazarus et al., 2016), and most warnings, such as low magnesium, low vitamin B12 and fractures, relate mainly to long-term use. See Omeprazole side effects.
Which should you use?
Prilosec OTC may be reasonable if
- You are an adult with heartburn 2 or more days a week
- You have no warning signs (see below)
- You have not had heartburn for more than 3 months
- You will use it as a 14-day course and see a doctor if you need it more often
See a doctor instead if
- You have had heartburn for more than 3 months
- You need it more than once every 4 months
- You have trouble or pain swallowing, vomiting with blood, or black or bloody stools
- You have unexplained weight loss, nausea, vomiting or stomach pain
- You have chest pain, especially with sweating, shortness of breath or pain spreading to the arm, neck or shoulder
- You take prescription medicines that may interact, such as clopidogrel, methotrexate or some HIV drugs
These are taken from the Prilosec OTC label's warnings.
Frequently asked questions
Can I use Prilosec OTC instead of my prescription to save money?
Possibly, but talk to your doctor first. If your doctor agrees that 20 mg once daily is right for you, OTC omeprazole contains the same amount of drug. The OTC label says to use it beyond 14 days only if directed by a doctor, so make sure they know.
Is generic omeprazole the same as Prilosec?
Generic omeprazole contains the same active ingredient as brand-name Prilosec. Prescription generics are typically capsules; OTC generics are often tablets labeled the same way as Prilosec OTC.
Can I take OTC omeprazole for an ulcer?
No. Ulcers need a diagnosis and a treatment plan from a doctor, including testing for H. pylori. The OTC product is only approved for frequent heartburn.
What about Nexium 24HR or Prevacid 24HR?
These are other OTC PPIs with the same 14-day, every-4-months approach. See Prilosec vs Nexium vs Pepcid vs Tums.
The bottom line
Prilosec OTC and prescription omeprazole are the same drug used in different ways. OTC is for short courses of self-treatment for frequent heartburn. Prescription use covers a wider range of conditions with a doctor guiding the dose and duration. If you have been using OTC omeprazole every day for months, it is time to bring a doctor into the picture. See How long can you take Prilosec OTC? and our complete guide to Prilosec.
Sources
- Prilosec OTC Drug Facts label. DailyMed.
- Omeprazole delayed-release capsules prescribing information. DailyMed.
- Farrell B, et al. PPI deprescribing algorithm. 2018. Deprescribing.org.
- Targownik LE, et al. AGA Clinical Practice Update on De-Prescribing of PPIs. 2022. PubMed.
- Lazarus B, et al. PPI use and the risk of chronic kidney disease. JAMA Intern Med. 2016. PubMed.
Medical note: This article is for education and does not replace advice from your doctor or pharmacist. Always follow your prescription or product label. Chest pain, trouble swallowing, vomiting blood or black stools need urgent medical care.

