You can take Pepcid (famotidine) and Prilosec (omeprazole) together, and there are good clinical reasons to do so. The most common approach is taking Prilosec in the morning before breakfast and Pepcid at bedtime to cover nighttime acid breakthrough. This combination works because the two drugs reduce stomach acid through completely different mechanisms, and pairing them fills gaps that neither medication covers well on its own.
Why the Combination Works
Prilosec and Pepcid attack stomach acid production at different points in the process. Prilosec is a proton pump inhibitor (PPI) that permanently shuts down the acid-producing pumps in your stomach lining. It’s powerful and long-lasting, but it takes time to kick in, often nearly three hours to bring stomach acid down to a comfortable level. Pepcid is an H2 blocker that works by blocking one of the chemical signals that tells your stomach to make acid. It’s less potent overall but starts working fast, typically within an hour.
A clinical study in healthy volunteers found that combining 20 mg of omeprazole with 10 mg of famotidine brought stomach acid to a controlled level in about 63 minutes, compared to 173 minutes with omeprazole alone. On the first day of treatment, the combination kept acid suppressed 37% of the daytime hours versus just 22% with omeprazole alone. By day eight, the combination still held a slight edge (61% vs. 55%), though the gap narrowed as omeprazole reached its full effect.
The Nighttime Acid Problem
The main reason doctors suggest adding Pepcid to Prilosec is a phenomenon called nocturnal acid breakthrough. Even on twice-daily PPI therapy, more than 70% of patients experience a surge of stomach acid during the night that lasts an hour or more. This can cause heartburn that wakes you up, chest discomfort, or a sour taste in the morning.
Adding an H2 blocker like Pepcid at bedtime significantly reduces this problem. In one study, 82% of patients on twice-daily PPIs alone had nocturnal acid breakthrough, compared to just 32% of patients who also took an H2 blocker at bedtime. On the very first night of adding an H2 blocker, only about one-third of patients still experienced breakthrough acid.
How to Time Each Dose
Prilosec works best when you take it 30 to 60 minutes before your first meal of the day. It needs food-triggered acid production to activate, so taking it on a completely empty stomach without eating afterward reduces its effectiveness. Swallow the capsule whole with water.
Pepcid should be taken at bedtime if you’re using it alongside Prilosec. This targets the nighttime window when Prilosec’s effect tends to fade. Pepcid doesn’t need food to activate and can be taken with or without a meal. The standard over-the-counter dose is 20 mg, though 10 mg has been studied in combination therapy as well.
The key spacing principle: keep the two medications separated rather than taking them at the same time. Morning Prilosec, bedtime Pepcid is the most straightforward schedule and aligns with how the drugs have been studied together.
Tolerance Can Reduce Pepcid’s Effect
There’s an important caveat to this combination. Your body can develop tolerance to H2 blockers like Pepcid within as few as three days of continuous use. This means the nighttime acid-suppressing benefit may weaken if you take Pepcid every single night for weeks on end. Increasing the dose doesn’t always overcome this tolerance.
The American College of Gastroenterology acknowledges this issue. Their GERD guidelines note that while adding a bedtime H2 blocker can help with nocturnal symptoms, the benefit may fade after about a month of nightly use. For this reason, taking Pepcid on an as-needed basis, rather than every night indefinitely, may preserve its effectiveness better. Use it on nights when you expect symptoms to be worse, or cycle it rather than treating it as a permanent nightly addition.
How Long to Use This Combination
The standard recommendation for PPI therapy is 8 weeks for most acid-related conditions. After that, the goal is usually to step down: try stopping the PPI, switching to on-demand use, or dropping to a lower dose. Patients with severe erosive esophagitis or Barrett’s esophagus are the exception and may need long-term PPI therapy.
The combination of both drugs is generally considered a short-term strategy for managing symptoms that a PPI alone isn’t fully controlling. Long-term dual therapy doesn’t offer consistent additional benefit for most people, partly because of the tolerance issue with H2 blockers. If you’ve been on both medications for more than a few weeks and your symptoms are well controlled, it’s reasonable to try dropping the Pepcid and seeing whether Prilosec alone is sufficient.
Side Effects to Be Aware Of
Taking both medications together doesn’t introduce unique side effects beyond what each drug carries individually. Pepcid is generally well tolerated, with occasional headache, fatigue, dizziness, or constipation. Prilosec carries the typical PPI concerns with extended use: reduced absorption of vitamin B12, a slightly elevated risk of certain gut infections, and potential interactions with other medications that depend on stomach acid for absorption.
Both drugs suppress stomach acid, so using them together means more total acid suppression than either alone. This is the point, but it also means the considerations around long-term acid suppression, like nutrient absorption, apply more strongly. If you’re on both medications for an extended period, periodic reassessment of whether you still need the combination is worthwhile. The goal is always the lowest level of acid suppression that keeps your symptoms controlled.

