The main goal of treatment for heartburn and gastroesophageal reflux disease (GERD) is to improve your symptoms by reducing stomach acidity and the production of stomach acid. This can help manage or prevent symptoms like a burning sensation in the esophagus and stomach pain.
Early treatment for GERD can also help prevent complications, such as ulcers.
This article will review the treatment options available for treating heartburn and GERD and their potential side effects.
Antacids

Antacids are typically an option for people who have mild heartburn or GERD symptoms. Antacids are available as over-the-counter (OTC) medications. They work by neutralizing stomach acid.
While OTC antacids do not require a prescription, they can have adverse effects, particularly in people with certain conditions. Consider talking with a doctor or healthcare professional before taking OTC antacids.
Antacid medications include:
- Gaviscon
- Mylanta
- Tums
- Alka-Seltzer
- Rolaids
Side effects
Taking antacids may cause side effects such as:
- diarrhea
- constipation
- nausea
- vomiting
- abdominal pain
- flatulence
- cramps
- headache
Acid reducers: OTC PPIs and H2 blockers
Proton pump inhibitors (PPIs) and histamine-2 (H2) blockers are acid reducers available as OTC medications that can reduce the production of acid in the stomach.
H2 blockers work faster than PPIs and are more suitable for milder and occasional cases of heartburn and GERD. H2 blockers can help heal the esophagus by decreasing the production of stomach acid and reducing the risk of acid reflux.
OTC H2 blockers may include:
- famotidine (Pepcid AC, Pepcid Complete)
- cimetidine (Tagamet HB)
- nizatidine (Axid AR)
Doctors may recommend taking OTC PPIs to treat more frequent cases of heartburn. PPIs are not intended to give immediate relief from heartburn, as they may take a few days before providing full effect. OTC PPIs are only suitable for a 14-day course of treatment that people can repeat up to three times per year.
OTC PPIs are typically more effective than H2 blockers in the long-term management of heartburn and GERD. OTC PPI medications may include:
- lansoprazole (Prevacid)
- omeprazole magnesium (Prilosec OTC)
- omeprazole and sodium bicarbonate (Zegerid OTC)
- esomeprazole (Nexium)
Side effects
Acid-reducer medications may cause side effects such as:
- nausea
- vomiting
- headache
- constipation
- diarrhea
- increased risk of weakened bones over time, though the link to PPIs is not definitive
Prescription H2 blockers
If your symptoms do not improve with OTC medications, your doctors may recommend prescription-strength H2 blockers.
All prescription H2 blockers are available as an oral medication, though famotidine may be administered through an IV for people who are hospitalized.
Prescription H2 blockers may include:
- nizatidine (Axid)
- cimetidine (Tagamet)
- famotidine (Pepsid)
Another H2 blocker, ranitidine (Zantac), was a previous treatment option, but the FDA issued a recall in 2020 due to the presence of impurities in the drug.