When you experience heartburn, it is the result of some of the acid content of your stomach making its way up into your esophagus. This process is called acid reflux. It can feel like a burning in your chest and is often worse after meal times or after eating certain foods.
If you experience occasional heartburn, certain foods may trigger your symptoms, and lifestyle changes will be enough to manage it. If this does not work, there are various medications you can try to help relieve heartburn symptoms.
You may wish to try OTC medications like antacids first. If these do not help relieve your symptoms, you can talk with a healthcare professional. They may want to see if you have gastroesophageal reflux disease, or GERD. Around 20% of people in the United States have GERD.
In this case, a healthcare professional may prescribe acid reflux medications. These are typically stronger versions of the OTC medications you can buy.
OTC medications

Antacids
Antacids are the oldest effective treatment for heartburn and can include common household ingredients such as baking soda. They work to neutralize stomach acids and inactivate a stomach enzyme called pepsin, relieving symptoms of acid reflux.
You usually take antacids after symptoms begin. They provide temporary relief from symptoms but don’t stop heartburn from happening again. They work quickly, but the effects only last for a few hours.
Some OTC antacid medications, such as Alka-Seltzer, contain aspirin. If you are taking blood-thinning medication, you should avoid medications that contain aspirin.
Possible side effects of antacids include:
- constipation
- diarrhea
- changes in the color of your stools
- stomach cramps
Antacids are cheap and relatively safe. Side effects are only likely if you overuse them. Be sure to follow the directions on the label. Brands of medication that include antacids include Gaviscon and Tums.
H2 blockers
Histamine-2 blockers, or H2 antagonists, are medications that reduce how much acid your stomach produces. They typically work after around 1 hour, and their effects can last several hours. They provide fast relief from heartburn symptoms, and all types of H2 blockers are equally effective.
You can use these medications to prevent an episode of heartburn by taking them 30 minutes before a meal. There are multiple strengths of H2 blockers available.
Some possible side effects of OTC H2 blockers include:
Brands such as Zantac 360° produce these medications as tablets. Always follow the instructions on the label to avoid side effects.
Antacid/acid-reducing combination medications
H2 blockers such as famotidine are available with added antacids as OTC medications. Brands such as Pepcid Complete combine the acid-neutralizing abilities of antacids with the acid-reducing abilities of H2 receptor blockers.
Proton-pump inhibitors
Proton-pump inhibitors (PPIs) also work by reducing the amount of acid your stomach produces, just in a slightly different way. PPIs work by blocking the site of acid production in your stomach and are suitable for short-term relief from frequent heartburn. They’re available OTC or on prescription.
These medications do not provide immediate relief, taking 1 to 4 days to work. You should not take these medications for longer than 14 days, three times per year.
Some are available OTC in low strengths, such as Prilosec, which is a 20-milligram version of the prescription medication omeprazole.
Side effects from OTC PPIs are rare. However, possible side effects can include:
- headaches
- diarrhea
- constipation
- stomach pain
- excess wind (flatulence)