provider image
Welcome! You’re in GoodRx for healthcare professionals. Now, you’ll enjoy a streamlined experience created specifically for healthcare professionals.
Skip to main content
HomeHealth ConditionsHeartburn

The 3 Best OTC Options for Heartburn and GERD

Kevin Le, PharmD, BCPS, BCPPSChristina Aungst, PharmD
Updated on April 14, 2025

Key takeaways:

  • Antacids, histamine-2 antagonists (H2 blockers), and proton pump inhibitors (PPIs) are the best over-the-counter (OTC) medications for heartburn.

  • Antacids provide quick relief but don’t last long. H2 blockers and PPIs can take more time to work, but their effects last longer. The best OTC heartburn medication depends on your symptoms as well as the other medications you’re taking.

  • If heartburn doesn’t improve or you need to take an OTC heartburn medication for more than 2 weeks, it’s time to see a healthcare professional.

Access savings on related medications

01:53
Featuring Roshini Raj, MD
Reviewed by Mera Goodman, MD, FAAP | April 29, 2023

You just finished eating a delicious, cheesy slice of deep-dish pizza. As you lie back on the couch to watch television, you suddenly feel a burning sensation in your chest. This may be a classic sign of heartburn — a symptom of acid reflux. Acid reflux happens when your stomach contents flow backward into your esophagus (the tube that carries food from your mouth to your stomach).

More than 60 million Americans experience heartburn at least once a month. Thankfully, there are many medications available to relieve heartburn. And you can find several effective options over-the-counter (OTC) at your local drugstore. Keep reading to learn about the best OTC heartburn medications.

What OTC medications are available for heartburn?

There are three main groups of OTC heartburn medications. They work in different ways, which we’ll discuss below.

Antacids

As mentioned, heartburn symptoms happen when stomach contents flow back towards the esophagus. The burning sensation you might feel is because the contents of your stomach are acidic. Antacids provide relief by neutralizing your stomach acid.

Antacids usually work quickly — often within minutes. It’s recommended to take antacids within 1 hour after eating or immediately when heartburn symptoms occur. But their effects might not last long — usually for just about 1 hour.

Antacids can also affect how other medications are absorbed. You may need to take other medications 1 hour before or 4 hours after taking antacids. This is why it’s a good idea to have your pharmacist or prescriber check your medication list before taking an antacid. They can let you know if there are any interactions to know about.

GoodRx icon
  • What does heartburn feel like? Real people share their experiences of what heartburn and gastroesophageal reflux disease (GERD) felt like to them.

  • How to get rid of acid reflux fast: Our experts share some tips and tricks that help get rid of heartburn symptoms sooner rather than later.

  • Is it heartburn, or something else? Learn when heartburn may be a sign of a more serious issue, and what to do about it.

There are many different antacids available. They usually contain calcium, aluminum, magnesium — or some combination of these. Antacids come in different forms, including chewable tablets, liquids, and gummies.

Common OTC antacids include:

  • Tums (calcium carbonate)

  • Milk of Magnesia (magnesium hydroxide)

  • Rolaids (calcium carbonate / magnesium hydroxide)

  • Mylanta (aluminum hydroxide / magnesium hydroxide / simethicone)

If you need to take an antacid for more than 2 weeks at a time or your symptoms haven’t improved, it’s time to see a healthcare professional.

Histamine-2 antagonists

OTC histamine-2 antagonists (H2 blockers) can treat or prevent heartburn symptoms.

H2 blockers work by blocking histamine-2 receptors (binding sites) in your stomach. This lowers the amount of acid made there. H2 blockers usually start working 1 to 3 hours after you take them, and can provide relief for several hours. They work best if you take them before you eat or drink anything that may cause heartburn. But you can also take them after you start having symptoms. OTC H2 blockers are available as tablets and capsules.

The most common OTC H2 blockers include:

If you take H2 blockers for a long time, they may not work as well as they did at first. Over time, your stomach adapts to the medication, which can make them less effective. If you need an H2 blocker daily for longer than 2 weeks, talk to a healthcare professional. There could be a more serious cause of your symptoms. Or you may need a prescription H2 blocker or a different medication altogether.

Proton pump inhibitors 

Proton pump inhibitors (PPIs) are another OTC heartburn medication. They work by blocking an enzyme (protein) in stomach cells. This enzyme is known as the “proton pump.” The proton pump helps the stomach make acid. By blocking it, PPIs lower acid levels in the stomach.

PPIs take longer than antacids or H2 blockers to improve heartburn symptoms. It can take about 3 days for PPIs to have a noticeable effect. So they typically work better to prevent frequent heartburn than to treat an occasional episode.

PPIs are available as tablets, capsules, and orally disintegrating tablets. Common OTC PPIs include:

You should only take an OTC PPI for 2 weeks at a time up to 3 times each year unless otherwise directed to by a healthcare professional. Taking them longer or more often than directed can lead to harmful side effects. More on this later.

Is one OTC medication better than the others for heartburn?

It depends on your heartburn symptoms and how frequent they are.

Antacids are good options for heartburn symptoms that occur once in a while. This is because they work quickly to provide fast relief when needed.

H2 blockers and PPIs block the production of acid in your stomach. So they’re a better option to help prevent or treat frequent heartburn.

Keep in mind that all OTC heartburn medications can interact with other medications you’re taking. So it’s a good idea to check with your pharmacist or prescriber to make sure one option isn’t safer for you than another based on your current medication list.

What about OTC medications for GERD?

Gastroesophageal reflux disease (GERD) is a more serious form of acid reflux. You shouldn’t treat GERD on your own with OTC medications without the guidance of a healthcare professional. That’s because there could be other causes of frequent heartburn that require different treatment.

That being said, PPIs are considered the first-choice treatment for GERD. H2 blockers are also effective for GERD, but they’re typically reserved for those who can’t tolerate PPIs. Antacids work for occasional heartburn, but they don’t treat or prevent GERD.

What side effects can you expect from OTC heartburn treatments?

OTC heartburn medications cause different side effects. As mentioned, they can also interact with other medications you’re taking. It’s a good idea to discuss these risks with your healthcare team before starting an OTC heartburn medication.

Common side effects of antacids, H2 blockers, and PPIs are listed below.

Antacids H2 blockers PPIs
Potential side effects
  • Diarrhea (with antacids containing magnesium)
  • Constipation (with antacids containing calcium or aluminum)
  • Stomach pain
  • Nausea
  • Headache
  • Diarrhea
  • Constipation
  • Stomach pain
  • Drowsiness
  • Fatigue
  • Headache
  • Diarrhea
  • Constipation
  • Stomach pain
  • Dizziness
  • Rash
  • Nausea
  • Gas

More severe side effects can occur with these medications too.

Antacids with calcium can cause kidney stones, and antacids with aluminum can cause weaker bones (osteoporosis) if you take them too often.

H2 blockers can have serious side effects in people with kidney or liver problems and those over age 50. In rare cases, confusion, slurred speech, and hallucinations can occur. This seems to be most common with cimetidine, but can happen with any H2 blocker. Talk to a healthcare professional if you have any kidney or liver issues before starting an H2 blocker.

Taking PPIs for a long period of time (more than 4 months) has also been linked to more serious side effects. These include:

It’s best to take OTC heartburn medications at the lowest effective dose and for the shortest amount of time needed to reduce the risk of serious side effects. As mentioned, you shouldn’t take any OTC heartburn medication for more than 2 weeks at a time without a healthcare professional’s OK.

When should you see a healthcare professional for heartburn?

If you’re having heartburn more than two to three times a week, or your symptoms worsen or don’t improve with OTC medications, it’s time to seek medical care. These can be signs of a more serious health condition, such as GERD or peptic ulcer disease (PUD).

These conditions can worsen without proper treatment, even if you’re able to mask the symptoms with OTC heartburn medications. A healthcare professional can help determine exactly what’s going on and the best treatment plan moving forward.

Good to know: Heartburn symptoms can also resemble signs of a heart attack. Both can cause chest pain, but a heart attack can also cause trouble breathing, lightheadedness, and sweating. Still, if you’re unsure what’s causing your symptoms, it’s best to call 911 or seek emergency care.

Frequently asked questions

What drinks are recommended for heartburn and acid reflux?

Some evidence suggests that chamomile tea and aloe vera juice may help with acid reflux. It’s also common to hear that drinking milk or apple cider vinegar helps with heartburn, but there’s no evidence that either of these drinks actually work. You should also avoid drinks such as coffee, soda, and alcohol, which can worsen heartburn symptoms.

Can you combine OTC medications for heartburn or GERD?

Yes, it’s generally fine to combine an antacid with an H2 blocker or a PPI. In fact, some OTC heartburn medications are sold as combination treatments, such as famotidine / calcium carbonate / magnesium hydroxide (Pepcid Complete). But you shouldn’t take an H2 blocker and a PPI at the same time without a healthcare professional’s OK.

The bottom line

Over-the-counter (OTC) heartburn medications include antacids, histamine-2 antagonists (H2 blockers), and proton pump inhibitors (PPIs). Antacids provide relief quickly, but the relief is short term. H2 blockers and PPIs take more time to work, but have longer-lasting effects. So they’re typically better for more frequent heartburn symptoms. H2 blockers and PPIs are also effective OTC treatments for gastroesophageal reflux disease (GERD). But this use requires guidance from a healthcare professional.

All OTC heartburn medications have side effects and drug interactions to consider. The best OTC heartburn medication depends on your symptoms as well as the other medications you’re taking. If you need to take heartburn medication for more than 2 weeks or your symptoms worsen, it’s time to see a healthcare professional.

why trust our exports reliability shield

Why trust our experts?

Kevin Le, PharmD, BCPS, BCPPS
Kevin Le, PharmD, BCPS, BCPPS is a clinical pharmacy specialist in solid organ transplant at Ann & Robert H. Lurie Children’s Hospital of Chicago. He has been working as a pediatric pharmacist since 2016.
Stacia Woodcock, PharmD
Stacia Woodcock, PharmD, is a pharmacy editor for GoodRx. She earned her Doctor of Pharmacy degree from the University of Kentucky and is licensed in New York and Massachusetts.
Christina Aungst, PharmD
Christina Aungst, PharmD, is a pharmacy editor for GoodRx. She began writing for GoodRx Health in 2019, transitioning from freelance writer to editor in 2021.

References

Ahmed, A., et al. (2023). Proton pump inhibitors (PPI). StatPearls.

Florentin, M., et al. (2012). Proton pump inhibitor-induced hypomagnesemia: A new challenge. World Journal of Nephrology.

View All References (19)

Garg, V., et al. (2022). Antacids revisited: Review on contemporary facts and relevance for self-management. Journal of International Medical Research.

Heidelbaugh, J. J. (2013). Proton pump inhibitors and risk of vitamin and mineral deficiency: Evidence and clinical implications. Therapeutic Advances in Drug Safety.

Herdiana, Y. (2023). Functional food in relation to gastroesophageal reflux disease (GERD). Nutrients.

International Foundation for Gastrointestinal Disorders. (n.d.). Antacids.

Katz, P. O., et al. (2023). ACG Clinical Guideline: Guidelines for the diagnosis and management of gastroesophageal reflux disease. American Journal of Gastroenterology.

LiverTox: Clinical and Research Information on Drug-Induced Liver Injury. (2018). Histamine Type-2 Receptor Antagonists (H2 Blockers). National Institute of Diabetes and Digestive and Kidney Diseases.

Llorente, C., et al. (2017). Gastric acid suppression promotes alcoholic liver disease by inducing overgrowth of intestinal Enterococcus. Nature Communications.

McRorie, J. W., et al. (2014). Histamine2-receptor antagonists: Rapid development of tachyphylaxis with repeat dosing. World Journal of Gastrointestinal Pharmacology and Therapeutics.

MedlinePlus. (2017 ). Esophagus disorders.

MedlinePlus. (2024). Taking antacids.

MedlinePlus Magazine. (2020). Heartburn: What you need to know.

National Institute of Diabetes and Digestive and Kidney Diseases. (2020). Treatment for GER & GERD.

National Kidney Foundation. (n.d.). Acid reflux and proton pump inhibitors.

Nguyen, P. A., et al. (2020). Meta-analysis of proton pump inhibitors induced risk of community-acquired pneumonia. International Journal for Quality in Health Care.

Salisbury, B. H., et al. (2021). Antacids. StatPearls.

U.S. Food and Drug Administration. (2017). FDA drug safety communication: Clostridium difficile associated diarrhea can be associated with stomach acid drugs known as proton pump inhibitors (PPIs).

U.S. Food and Drug Administration. (2017). FDA drug safety communication: Possible increased risk of fractures of the hip, wrist, and spine with the use of proton pump inhibitors.

U.S. Food and Drug Administration. (2021). Over-the-counter (OTC) heartburn treatment.

Yibirin, M., et al. (2021). Adverse effects associated with proton pump inhibitor use. Cureus.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Get the facts on Heartburn.

Sign up for our newsletter to get expert tips on condition management and prescription savings.

By signing up, I agree to GoodRx's Terms and Privacy Policy, and to receive marketing messages from GoodRx.

Related Articles