Acid reflux is when stomach acid flows back into your food pipe (esophagus), causing a burning sensation in the chest, known as heartburn. Persistent acid reflux may lead to esophageal damage if untreated.
Chronic acid reflux may require prescription medications, but OTC options also help.
Prilosec and Pepcid work by reducing the production of stomach acid, which in turn relieves symptoms of acid reflux.
Prilosec contains omeprazole, while Pepcid’s active ingredient is famotidine. You can purchase both active ingredients as generic medications. Omeprazole and famotidine are also available as prescription medications with higher potency.
Choosing the generic option can provide a more affordable alternative without compromising the effectiveness of the medication.
Prilosec vs. Pepcid: Uses

Prilosec and Pepcid reduce the production of stomach acid.
Omeprazole (Prilosec) belongs to the proton pump inhibitor (PPI) drug class, while famotidine (Pepcid) is an H2 blocker. Both of these drug classes treat acid reflux and related conditions like indigestion, stomach ulcers, and gastroesophageal reflux disease (GERD).
Prilosec is additionally approved to treat helicobacter pylori bacterial infections in the stomach.
Both Prilosec and Pepcid are generally safe for short-term use.
Omeprazole, like other PPIs, has been associated with some risks when used long term. Studies have shown that long-term PPI use may increase the risk of certain conditions, such as kidney disease, osteoporosis-related fractures, and vitamin B12 deficiency.
On the other hand, famotidine, like other H2 antagonists, is considered safer for long-term use.
Safety and effectiveness for long-term use may vary individually. Consider talking with a healthcare professional to determine which option is best for you.
————-
If you need help covering the cost of medications, the free Optum Perks Discount Card could help you save up to 80% on prescription drugs. Plus, you can now get them delivered to your home in as little as 3 days. Search for your medication here.

Free prescription coupons
Seriously … free. Explore prices that beat the competition 70% of the time.
Get free cardPrilosec vs. Pepcid: Side effects
Although Prilosec and Pepcid are generally well-tolerated, they may lead to side effects in some people.
Commonly reported side effects of Prilosec include:
- headaches
- stomach pain
- diarrhea
- nausea and vomiting
- gas (flatulence)
While possible side effects of Pepcid include:
- constipation
- headaches
- dizziness
- diarrhea
- fatigue
These side effects are typically mild and temporary. However, it’s best to speak with a healthcare professional if you experience persistent or severe side effects.
Prilosec vs. Pepcid: How long they take to work
Prilosec takes longer to work compared to Pepcid. Prilosec starts to work within 1 hour for most people. But it may take 1 to 3 days to experience the full benefits after taking Prilosec.
If you need faster relief of occasional symptoms, Pepcid typically works within 1 to 3 hours.
To boost its effectiveness, healthcare professionals recommend taking Prilosec OTC in the morning on an empty stomach, as this may help reduce stomach acid production throughout the day. If you need to take Prilosec OTC twice daily, the second dose should be before dinner.
You can take Pepcid any time of the day or night, depending on when you experience symptoms. Some people find it beneficial to take it before meals or at bedtime to help manage acid-related issues during the night.
A healthcare professional can help you decide the most suitable timing for Prilosec or Pepcid, considering factors such as your symptoms, medical history, and whether you’re taking other medications.
—————
Download the free Optum Perks Discount Card to save up to 80% on many prescription medications. Plus, you can now get them delivered to your home in as little as 3 days. Search for your medication here.
Prilosec vs. Pepcid: Strengths
Both omeprazole and famotidine are available in OTC and prescription potencies.
OTC omeprazole (Prilosec) is available in 20 milligrams (mg) only. The prescription version only comes as a generic medication and is available in strengths of 10 mg, 20 mg, and 40 mg.
OTC famotidine (Pepcid) comes in strengths of 10 mg and 20 mg. The prescription version of famotidine is available in strengths of 20 mg and 40 mg.
Can you take them together?
Taking Prilosec and Pepcid together is generally safe and may provide extra symptom relief for some people. Still, a healthcare professional may need to adjust the dosages and timing to avoid drug interactions or adverse effects.
Therefore, consider speaking with a healthcare professional before combining Prilosec and Pepcid in any strength. For safe use, it is important to follow the recommended dosage and usage instructions on the packaging or as directed by a healthcare professional.
Prescription meds for acid reflux
As well as omeprazole and famotidine, other prescription medications are available to manage acid reflux and GERD. Some common options include:
- cimetidine (Tagamet)
- esomeprazole (Nexium)
- lansoprazole (Prevacid)
- pantoprazole (Protonix)
- rabeprazole (AcipHex)
- dexlansoprazole (Dexilant)
These medications reduce acid production and manage symptoms of acid reflux and GERD. It is best to talk with a healthcare professional who can help find the most suitable medication for your symptoms.
Summary
Prilosec and Pepcid are OTC medications used to manage acid reflux and related symptoms. While Pepcid provides quick relief with short-term use, Prilosec takes longer to work and may be suitable for long-term symptom management.
Talk with your doctor if you have questions about how Prilosec and Pepcid compare and which one may best suit you.