Tagamet (cimetidine) and Pepcid (famotidine) are both H2 blockers that reduce stomach acid and relieve heartburn. Famotidine is stronger per milligram, lasts longer and has far fewer drug interactions, so it’s the H2 blocker most doctors and pharmacists recommend today. Cimetidine is still sold over the counter as Tagamet HB but interacts with many common medicines.
- Both start working in about 30 to 60 minutes and are used to relieve or prevent heartburn, typically before a trigger meal.
- Tagamet HB: cimetidine 200 mg, up to twice a day. It blocks several liver enzymes (CYP1A2, CYP2C9, CYP2D6 and CYP3A4), raising levels of drugs such as warfarin, theophylline, phenytoin and some antidepressants.
- Pepcid AC: famotidine 10 mg or 20 mg, up to twice a day. It doesn’t meaningfully affect liver enzymes.
- Hormonal effects: cimetidine can cause breast enlargement (gynecomastia) and, rarely, erectile problems at higher doses. Famotidine doesn’t.
- Older adults and kidney disease: both can cause confusion at high levels; doses may need lowering.
This is general information, not medical advice. If you take prescription medicines, ask a pharmacist before using cimetidine. See a doctor for heartburn more than twice a week or with warning signs such as trouble swallowing or black stools.
Tagamet vs Pepcid at a glance
| Tagamet HB (cimetidine) | Pepcid AC (famotidine) | |
|---|---|---|
| Drug class | H2 receptor blocker | H2 receptor blocker |
| First approved | 1977 (first H2 blocker) | 1986 |
| OTC strengths | 200 mg | 10 mg, 20 mg |
| OTC dose | 1 tablet up to twice daily | 1 tablet up to twice daily |
| Onset | 30 to 60 minutes | 15 to 60 minutes |
| Duration | About 4 to 8 hours | About 10 to 12 hours |
| Relative potency | Lowest of the H2 blockers | About 20 to 50 times more potent per mg than cimetidine |
| Liver enzyme interactions | Many | Few |
| Gynecomastia | Possible | Not expected |
| Prescription brand still sold | No (generic cimetidine available) | Yes, plus generics |
How H2 blockers work
Histamine, released in the stomach lining, tells acid-producing cells to make acid by acting on H2 receptors. H2 blockers occupy those receptors so histamine can’t switch them on. They reduce acid well, particularly the acid made overnight, but less completely than proton pump inhibitors (PPIs) such as omeprazole.
Cimetidine was the first H2 blocker and transformed ulcer treatment in the late 1970s. Famotidine, a later drug, is more potent and lasts longer, so lower doses work well.
Effectiveness
At their labeled OTC doses, both relieve and prevent heartburn better than placebo. Famotidine’s longer action makes it more practical for twice-daily use and for overnight symptoms.
For frequent heartburn (2 or more days a week) or diagnosed erosive esophagitis, PPIs are more effective than either H2 blocker. H2 blockers are best for:
- occasional heartburn
- taking 15 to 60 minutes before a meal that triggers heartburn
- bedtime use alongside a daytime PPI, on a doctor’s advice
With daily use, tolerance can develop to H2 blockers within weeks, making them less effective.
Dosing
| Tagamet HB | Pepcid AC | |
|---|---|---|
| To relieve symptoms | 1 tablet (200 mg) with water | 1 tablet (10 or 20 mg) with water |
| To prevent symptoms | 1 tablet right before or up to 30 minutes before eating | 1 tablet 15 to 60 minutes before eating |
| Maximum | 2 tablets in 24 hours | 2 tablets in 24 hours |
| How long without a doctor | 14 days | 14 days |
| Children | Not for under 12 without a doctor | Not for under 12 without a doctor |
Drug interactions: the biggest difference
Cimetidine inhibits several cytochrome P450 liver enzymes, which break down many medicines. When cimetidine slows that breakdown, other drugs can build up to unsafe levels.
| Medicine | Effect of cimetidine | Effect of famotidine |
|---|---|---|
| Warfarin | Raises levels; bleeding risk | No meaningful effect |
| Theophylline | Raises levels; toxicity risk | No meaningful effect |
| Phenytoin | Raises levels | No meaningful effect |
| Lidocaine, some heart rhythm drugs | Raises levels | No meaningful effect |
| Some antidepressants and benzodiazepines | Raise levels; more sedation | No meaningful effect |
| Metformin | May raise levels | Little effect |
| Drugs needing acid for absorption (ketoconazole, atazanavir) | Reduced absorption | Reduced absorption |
| Dofetilide | Contraindicated | Not significant |
Because of these interactions, the Tagamet HB label tells people taking warfarin, theophylline or phenytoin to ask a doctor first.
Side effects
Both
- headache
- dizziness
- diarrhea or constipation
- confusion or agitation, mainly in older adults or people with kidney or liver disease
Cimetidine only (mainly at higher prescription doses)
- gynecomastia (breast enlargement) and breast tenderness in men
- reduced libido or erectile dysfunction, rarely
- raised prolactin levels
These are due to cimetidine’s weak anti-androgen effect. Famotidine doesn’t have this effect.
Kidney and liver disease
Both drugs are cleared mostly by the kidneys. People with reduced kidney function need lower doses, especially of cimetidine, to avoid confusion and other side effects. Older adults are more sensitive to both drugs’ effects on the brain.
What about Zantac and Axid?
- Ranitidine (Zantac) was withdrawn in the US in April 2020 because of contamination with NDMA, a likely carcinogen. “Zantac 360” products now contain famotidine.
- Nizatidine (Axid) is another H2 blocker, available as a generic.
Interesting off-label use of cimetidine
Cimetidine has been used off-label for common warts in children, based on a theory that it boosts immune responses. Results in studies have been mixed, and it isn’t an approved use. Ask a doctor before using any medicine off-label.
Which should you choose?
| Your situation | Typical choice |
|---|---|
| Occasional heartburn, no other medicines | Either; famotidine lasts longer |
| Take warfarin, theophylline, phenytoin or several prescriptions | Pepcid (famotidine) |
| Concerned about hormonal side effects | Pepcid |
| Heartburn 2 or more days a week | A PPI, or see a doctor |
| Older adult or kidney disease | Lowest dose; famotidine generally preferred |
Frequently asked questions
Is Pepcid or Tagamet better?
Most experts prefer Pepcid (famotidine). It is more potent, lasts longer and has far fewer drug interactions than Tagamet (cimetidine).
Why does Tagamet interact with so many drugs?
Cimetidine blocks several liver enzymes (CYP450 enzymes) that break down other medicines, so those drugs can build up in the body. Famotidine doesn’t block these enzymes meaningfully.
Can Tagamet cause breast enlargement?
Yes, cimetidine can cause gynecomastia in men, mainly at higher prescription doses or with long-term use, due to a weak anti-androgen effect. Famotidine doesn’t cause this.
How quickly do Tagamet and Pepcid work?
Both usually begin working within 30 to 60 minutes. Famotidine’s effect lasts longer, about 10 to 12 hours.
Can I take Pepcid every day?
OTC Pepcid shouldn’t be used for more than 14 days without a doctor’s advice. If you need it daily, see a doctor, as a PPI or further evaluation may be more appropriate.
References
- FDA. Over-the-counter heartburn treatment
- StatPearls. Cimetidine
- MedlinePlus. Cimetidine
- MedlinePlus. Famotidine
- FDA. FDA requests removal of all ranitidine products (Zantac) from the market, April 2020
About this article
Written by the Health Linear Editorial Team from primary sources such as FDA prescribing information, DailyMed, NIH and peer-reviewed studies, which are linked in the article. Last updated October 30, 2026.
Read our editorial process and medical disclaimer. Spotted an error? Tell us and we will correct it.