Famotidine 20 mg is an acid-reducing medication used to treat heartburn, stomach ulcers, and gastroesophageal reflux disease (GERD). It works by blocking histamine receptors in the stomach lining, which cuts down on how much acid your stomach produces. It’s available both over the counter and by prescription, with the key difference being what you’re treating and how long you take it.
Conditions Famotidine 20 mg Treats
The 20 mg dose covers a wide range of acid-related conditions. Over the counter, it’s sold for occasional heartburn, the kind triggered by spicy food, coffee, or heavy meals. The prescription version treats more serious and persistent problems.
Prescription uses include stomach ulcers (open sores on the stomach lining), duodenal ulcers (sores in the upper part of the small intestine), GERD, and erosive esophagitis, which is damage to the esophagus caused by chronic acid exposure. It’s also used for Zollinger-Ellison syndrome, a rare condition where tumors cause the stomach to overproduce acid.
How Long Each Treatment Lasts
The duration and frequency of the 20 mg dose depends entirely on the condition. For GERD, the typical course is 20 mg twice daily (morning and bedtime) for up to 6 weeks. Erosive esophagitis follows a similar pattern but may extend to 12 weeks. Stomach ulcers are usually treated with 20 mg twice daily for up to 8 weeks.
Once an ulcer has healed, a maintenance dose of 20 mg once daily can help keep it from coming back. For Zollinger-Ellison syndrome, the dosing is more aggressive: 20 mg every 6 hours, adjusted based on how well acid production is controlled.
Over-the-counter use is meant to be short term. If you’re taking it for heartburn more than 14 days in a row, that’s a signal the problem may need a different approach.
How Quickly It Works
Famotidine starts reducing stomach acid within about one hour of taking it. Peak effect hits somewhere between one and three hours. A single 20 mg dose suppresses acid production for 10 to 12 hours, which is why twice-daily dosing covers a full 24-hour cycle for conditions like GERD or ulcers.
For occasional heartburn prevention, the practical takeaway is to take it 15 to 60 minutes before eating or drinking something you know triggers symptoms. That timing lets the drug reach its peak effect right when your stomach ramps up acid production.
Where Famotidine Fits Among Acid Reducers
Famotidine belongs to a class called H2 blockers. It’s effective for mild to moderate acid problems, but for more severe GERD or confirmed esophageal damage, proton pump inhibitors (PPIs) like omeprazole are generally more potent. Gastroenterology guidelines recognize that PPIs suppress acid more completely than H2 blockers, which in turn work better than antacids alone.
That said, famotidine has some practical advantages. It kicks in faster than most PPIs, which can take several days to reach full effect. It also carries fewer concerns about long-term use. Many people with mild reflux or occasional heartburn get full relief from famotidine without needing a stronger medication.
Common Side Effects
Famotidine is well tolerated at 20 mg. The most commonly reported side effects are headache, dizziness, constipation, and diarrhea. These tend to be mild and often resolve on their own. Serious reactions are rare at standard doses.
People with reduced kidney function need to be more careful. Because the kidneys clear famotidine from the body, impaired kidney function causes the drug to stick around longer than intended. When kidney filtration drops below a certain threshold, the dose typically needs to be cut in half or spaced out to every 36 to 48 hours to avoid buildup, which can increase the risk of neurological side effects like confusion or dizziness.
Medications That Don’t Mix Well
Because famotidine raises the pH inside your stomach (making it less acidic), it can interfere with other medications that need an acidic environment to dissolve and absorb properly. This is a bigger deal than many people realize.
Certain antifungal medications are the most dramatic example. Studies have shown that when famotidine raises stomach pH, absorption of some antifungals drops by over 90%. HIV medications in the protease inhibitor class can also lose significant potency. Certain antibiotics and blood-thinning agents show reduced absorption as well.
If you take any medications regularly, spacing them apart from famotidine or checking for interactions is important. The issue isn’t a chemical reaction between the drugs. It’s simply that a less acidic stomach can’t dissolve certain pills effectively, so your body never absorbs the full dose.
OTC vs. Prescription: What’s Different
The tablet itself is identical. A 20 mg famotidine pill from the pharmacy shelf contains the same active ingredient at the same strength as a prescription version. The difference is in the labeling, intended use, and how long you’re expected to take it.
Over-the-counter packaging directs you to use it for occasional heartburn relief or prevention, generally no more than two weeks at a time. Prescription famotidine comes with specific instructions for a diagnosed condition, a defined treatment duration (often 6 to 12 weeks), and follow-up from a provider to check whether the underlying problem has healed. If heartburn keeps returning after short OTC courses, the prescription route gives you a structured treatment plan and the option of diagnostic testing to see what’s actually going on.

