H2 blockers reduce stomach acid by blocking histamine signals on the acid-producing cells in your stomach lining. They start working in about 60 minutes and keep acid levels low for 4 to 10 hours, making them a practical option for heartburn, acid reflux, and ulcers. Here’s what’s actually happening inside your body when you take one.
The Histamine Signal Your Stomach Relies On
Your stomach produces acid through specialized cells called parietal cells. These cells have receptors on their surface that respond to different chemical signals, one of the most important being histamine. This isn’t the same histamine response involved in allergies (that’s the H1 receptor). The H2 receptor sits on parietal cells and, when activated by histamine, triggers them to pump hydrogen ions into your stomach, creating hydrochloric acid.
H2 blockers (also called H2 receptor antagonists) attach to these H2 receptors and physically prevent histamine from binding. Without that signal, the parietal cells produce significantly less acid. A single dose can inhibit up to 80% of baseline acid secretion for 4 to 5 hours.
Available H2 Blockers
The main H2 blockers you’ll find are famotidine (Pepcid), cimetidine (Tagamet), and nizatidine. All are available over the counter for occasional use and by prescription at higher doses. Ranitidine (Zantac), once the most popular option, was pulled from the U.S. market in 2020 over concerns about a cancer-linked impurity called NDMA that could form during storage. The FDA approved a reformulated version in 2025 after five years of safety testing and manufacturing improvements. The new version comes with specific storage requirements: keep it in the original bottle, discard unused tablets 3 months after opening, and keep the desiccant inside.
How They Differ From PPIs
Proton pump inhibitors like omeprazole (Prilosec) and esomeprazole (Nexium) work further downstream. Instead of blocking one of the signals that tells parietal cells to make acid, PPIs shut down the actual pump that releases acid into the stomach. This makes PPIs more powerful: they maintain a stomach pH above 4 for 15 to 22 hours a day, compared to roughly 4 hours for H2 blockers.
That difference matters when choosing between them. H2 blockers are well suited for occasional heartburn or as-needed relief because they kick in within an hour and wear off in a predictable window. PPIs take longer to reach full effect (often a few days of consistent use) but provide stronger, longer-lasting suppression, which is why they’re preferred for active ulcers or severe reflux disease.
When and How to Take Them
Because H2 blockers take about 60 minutes to start working, timing matters. If you’re taking one to prevent heartburn from a meal, swallow it 30 to 60 minutes beforehand. For nighttime acid reflux, a dose before bed can cover most of the night, though the effect may taper after 4 to 5 hours depending on the specific medication.
Their relatively quick onset and moderate duration make H2 blockers useful for on-demand treatment. You don’t need to take them daily for weeks to see a benefit the way you do with PPIs. That said, some people do take them on a regular schedule for conditions like mild GERD or to prevent ulcer recurrence.
Tolerance Can Develop Quickly
One important limitation: your body can adapt to H2 blockers faster than you might expect. Studies in healthy volunteers show that acid-suppressing effects begin to weaken after just one to two weeks of regular use. In one trial, the median stomach pH on famotidine dropped from 3.2 on day 1 to 1.9 by day 28, meaning the drug was losing nearly half its acid-reducing power within a month. Another trial found that high-dose ranitidine taken three times daily saw its effect cut roughly in half by day 14.
This tolerance, sometimes called tachyphylaxis, is more pronounced with frequent dosing throughout the day. Taking a single evening dose showed less tolerance overall, though it still diminished nighttime effectiveness over time. This is one reason H2 blockers work best for occasional or short-term use rather than as a long-term daily strategy for aggressive acid suppression.
Side Effects
H2 blockers are generally well tolerated. Side effects are uncommon and usually minor: headache, diarrhea, constipation, drowsiness, fatigue, or muscle aches. Rare cases of liver injury have been reported with all four H2 blockers, though this is unusual enough that it shouldn’t deter most people from short-term use.
Cimetidine deserves a special note. It interferes with liver enzymes responsible for breaking down a range of other medications, including caffeine, certain blood pressure drugs, some antidepressants, codeine, and tramadol. If you take any of these, cimetidine can cause those drugs to build up in your system to higher-than-expected levels. Famotidine and nizatidine don’t share this problem, which is one reason famotidine has become the most widely used H2 blocker.

