Several types of over-the-counter medicine can relieve heartburn, and the best choice depends on how often you get it and how quickly you need relief. Antacids work fastest for occasional flare-ups, H2 blockers offer longer-lasting protection, and proton pump inhibitors are the strongest option for frequent heartburn that strikes two or more days per week.
Antacids for Quick, Short-Term Relief
Antacids are the go-to for occasional heartburn because they work within minutes. They neutralize the acid already sitting in your stomach rather than stopping your body from producing it. Common active ingredients include calcium carbonate, magnesium hydroxide, aluminum hydroxide, and sodium bicarbonate. You’ll find these in brands like Tums, Rolaids, and Maalox.
The tradeoff is that relief only lasts a few hours. Liquid antacids tend to work faster than chewable tablets because the liquid coats the esophagus and stomach lining more quickly. If your heartburn happens mostly after a heavy meal or when you lie down, an antacid taken at the right moment can be enough.
Antacids do come with a catch if you take them regularly. They can reduce your body’s absorption of iron, zinc, and other minerals by neutralizing the stomach acid your body uses to break down those nutrients. They can also interfere with certain medications, including some antibiotics, heart medications, and even aspirin. If you take other medicines daily, space them at least two hours apart from any antacid.
H2 Blockers for Longer Protection
H2 blockers take a different approach. Instead of neutralizing acid after it’s produced, they reduce how much acid your stomach makes in the first place. The most widely available one is famotidine (sold as Pepcid). Cimetidine (Tagamet) is another option available without a prescription.
These medications don’t kick in as fast as antacids, but their effects last significantly longer, typically four to ten hours. That makes them a better fit if you get heartburn repeatedly throughout the day or want to prevent it before a meal you know will trigger symptoms. Many people take an H2 blocker 30 minutes before eating rather than waiting for the burn to start.
Proton Pump Inhibitors for Frequent Heartburn
Proton pump inhibitors, commonly called PPIs, are the most powerful acid suppressors available. Over-the-counter options include omeprazole (Prilosec) and esomeprazole (Nexium). Lansoprazole (Prevacid) is another well-known name in this class. PPIs have been shown to eliminate symptoms and heal irritation in the esophagus more effectively and more quickly than H2 blockers.
PPIs are not designed for immediate relief. They work by gradually shutting down acid-producing pumps in your stomach lining, and it can take one to four days of daily use before you feel the full effect. They’re meant for people who experience heartburn two or more days a week, not for the occasional post-pizza burn. You take them once a day, usually in the morning before breakfast, and OTC versions are typically labeled for 14-day courses.
Long-term PPI use, beyond a few weeks without medical guidance, carries some risks worth knowing about. Extended use has been associated with reduced absorption of certain vitamins and minerals, a higher risk of bone thinning, and an increased chance of a difficult-to-treat gut infection called C. difficile. None of this means PPIs are dangerous for short-term use, but if you find yourself reaching for them month after month, that’s a conversation to have with a doctor who can weigh the benefits against the downsides for your situation.
Choosing the Right Medicine for Your Pattern
The simplest way to pick is to match the medicine to how often heartburn shows up:
- Once in a while after meals: An antacid is fast and sufficient. Chew a tablet or take a liquid dose when you feel the burn.
- A few times a week: An H2 blocker before meals gives you hours of coverage without the stronger commitment of a PPI.
- Most days of the week: A 14-day course of a PPI can break the cycle. If symptoms return after you stop, it’s worth getting evaluated for gastroesophageal reflux disease (GERD).
Some people combine approaches. Taking an antacid for immediate relief while waiting for an H2 blocker or PPI to take effect is a common and reasonable strategy.
Heartburn Medicine During Pregnancy
Heartburn is extremely common in pregnancy, especially in the second and third trimesters, as the growing uterus pushes stomach contents upward. Antacids are generally considered the safest first option. They coat the esophagus and neutralize acid without being absorbed into the bloodstream in significant amounts.
H2 blockers are also considered safe for most of pregnancy, though many providers recommend avoiding them during the first trimester as a precaution. If you’re pregnant and over-the-counter options aren’t cutting it, your OB can help determine which stronger medication makes sense for you.
Heartburn Medicine for Children
Children can get acid reflux too, but not all adult heartburn medicines are approved for pediatric use. The FDA has approved omeprazole, lansoprazole, and esomeprazole for children one year and older. Rabeprazole is approved for ages 12 and up. Dosing is weight-based and different from adult dosing, so checking with a pediatrician before giving any acid-suppressing medication to a child is important.
Nighttime Heartburn
Heartburn that wakes you up or keeps you from falling asleep can be particularly miserable. Acid reflux tends to worsen when you’re lying flat because gravity is no longer helping keep stomach contents down. If you eat within two hours of bedtime, the risk goes up further.
For nighttime symptoms, a liquid antacid before bed provides fast short-term coating of the esophagus. An H2 blocker taken 30 minutes before your evening meal can suppress acid production through most of the night. Elevating the head of your bed by about six inches, using a wedge pillow rather than stacking regular pillows, also makes a noticeable difference because it keeps your esophagus above your stomach while you sleep.
When Chest Pain Isn’t Just Heartburn
Heartburn and heart attacks can feel remarkably similar. Even experienced doctors sometimes can’t tell the difference without testing. Typical heartburn causes a burning sensation in the chest, usually after eating, and is often relieved by antacids. It may come with a sour taste in the mouth or a small amount of liquid rising into the back of your throat.
Heart attack symptoms are more likely to include pressure or squeezing in the chest that spreads to the neck, jaw, or arms, along with shortness of breath, cold sweat, lightheadedness, or sudden fatigue. Women are more likely than men to experience jaw or back pain, nausea, and shortness of breath as primary symptoms rather than classic chest pain. If you have persistent chest pain and you’re not sure it’s heartburn, call 911. The pain doesn’t have to last a long time to be a warning sign.

