Famotidine is an acid-reducing medication used to treat heartburn, stomach ulcers, and gastroesophageal reflux disease (GERD). It works by blocking histamine receptors on the acid-producing cells in your stomach, which lowers the amount of acid your stomach makes. You can buy it over the counter at a lower strength or get a prescription-strength version for more serious conditions.
How Famotidine Works
After you eat, your stomach releases a chemical called histamine that signals specialized cells (called parietal cells) to pump out acid. Famotidine blocks the docking site where histamine attaches to those cells, so the signal never gets through. Less signal means less acid. It starts working within one hour of taking it, reaches its peak effect within one to three hours, and keeps acid levels low for 10 to 12 hours per dose.
Approved Uses
Famotidine is FDA-approved for several conditions, all related to excess stomach acid:
- Heartburn and GERD: Both the erosive kind (where acid damages the lining of your esophagus) and the milder, non-erosive form that causes discomfort without visible damage.
- Stomach and duodenal ulcers: Open sores in the stomach lining or the upper part of your small intestine. Famotidine helps them heal by reducing the acid that irritates them.
- Ulcer prevention: Once a duodenal ulcer has healed, a lower maintenance dose can reduce the chance of it coming back.
- Excess acid conditions: Rare disorders like Zollinger-Ellison syndrome, where tumors cause the stomach to produce far too much acid.
It is also approved for children 1 year and older for peptic ulcer disease.
OTC vs. Prescription Strength
Over-the-counter famotidine (sold as Pepcid AC and store brands) comes in lower-dose tablets, typically 10 or 20 mg. Prescription versions contain more medication per tablet and are used for conditions that need stronger or longer treatment. The dosing depends on what you’re treating:
- Stomach ulcers: 20 mg twice daily, or 40 mg once at bedtime, for up to 8 weeks.
- GERD: 20 mg twice daily for up to 6 weeks.
- Erosive esophagitis: 20 mg once or twice daily, or 40 mg at bedtime, for up to 12 weeks.
- Ulcer prevention: 20 mg once daily.
- Zollinger-Ellison syndrome: 20 mg every 6 hours, adjusted as needed.
If you’re using the OTC version for occasional heartburn, taking it 15 to 60 minutes before a meal can prevent symptoms before they start.
Famotidine vs. Proton Pump Inhibitors
Proton pump inhibitors (PPIs) like omeprazole are the other major class of acid-reducing drugs, and people often wonder which one to use. The key difference is speed versus staying power. Famotidine starts working within an hour, making it a better choice for quick relief or preventing heartburn before a specific meal. Omeprazole can take one to four days to reach full effect, but once it does, it suppresses acid production more completely and for a longer stretch, roughly 24 hours per dose compared to famotidine’s 10 to 12.
For occasional heartburn, famotidine is often all you need. For chronic GERD or healing significant esophageal damage, PPIs tend to be more effective because of that deeper, longer-lasting acid suppression. Many people start with famotidine and only move to a PPI if their symptoms don’t resolve.
Common Side Effects
Famotidine is well tolerated by most people. The side effects that show up in 1% to 10% of users are headache, dizziness, constipation, and diarrhea. Serious reactions are rare. The medication is considered safe during all three trimesters of pregnancy and while breastfeeding, based on clinical guidelines from maternal health specialists.
Off-Label Uses
Because histamine plays a role in allergic reactions, not just stomach acid, famotidine sometimes gets used for purposes beyond digestion. Dermatologists and allergists pair it with a standard antihistamine like cetirizine for chronic hives (urticaria) that don’t respond well to a single antihistamine alone. The logic is that blocking both types of histamine receptors, H1 and H2, gives the body a more complete brake on the allergic response.
During the early COVID-19 pandemic, researchers explored this same dual-antihistamine strategy for hospitalized patients. A cohort study of 110 patients with severe pulmonary symptoms found that combining cetirizine and famotidine, alongside standard care, was associated with a lower rate of intubation and shorter hospital stays. The thinking was that blocking histamine could help dampen the inflammatory cascade in the lungs. This remains an area of interest rather than a standard treatment, but it illustrates how famotidine’s effects extend beyond the stomach.
Medications That Interact With Famotidine
Because famotidine raises the pH inside your stomach, it can interfere with how your body absorbs certain other drugs. Medications that need an acidic environment to dissolve properly may not get absorbed well. The antifungal ketoconazole is the most dramatic example: taking it alongside an acid reducer can cut the amount that reaches your bloodstream by 80% to 95%, potentially making it ineffective.
On the flip side, some medications actually get absorbed better when stomach acid is lower. Weak acids like certain heart and bone medications can see increased absorption in a less acidic stomach. If you take other prescription drugs regularly, it’s worth checking whether the timing or effectiveness of those medications changes when you add famotidine to your routine. Spacing doses apart by a couple of hours can sometimes solve the problem.

