For quick heartburn relief, antacids containing calcium carbonate or magnesium hydroxide neutralize stomach acid within minutes. But the best option depends on how often you get heartburn, how severe it is, and whether you need something fast-acting or long-lasting. Several categories of treatments exist, from chewable tablets to lifestyle shifts that cut symptoms by more than a third.
Antacids for Fast, Short-Term Relief
Antacids are the go-to for occasional heartburn. They work by directly neutralizing the acid already sitting in your stomach, which is why relief comes within minutes. Common active ingredients include calcium carbonate, magnesium hydroxide, and aluminum hydroxide. You’ll find these in products like Tums, Maalox, and Rolaids.
The tradeoff is duration. Antacids typically provide relief for only a few hours, so they’re best suited for heartburn that hits after a big meal or a specific trigger food rather than something that lingers all day. They’re also not designed for daily long-term use. If you’re reaching for antacids more than twice a week, that’s a signal to explore other options.
Alginate Products: A Physical Barrier
Some heartburn products contain alginates, a seaweed-derived ingredient that works differently from standard antacids. When alginates mix with stomach acid, they form a gel-like raft that floats on top of your stomach contents. This barrier physically blocks acid from splashing back up into your esophagus. Products like Gaviscon combine alginates with antacids for both immediate acid neutralization and that protective floating layer. They’re particularly useful for heartburn that worsens when you lie down or bend over.
H2 Blockers for Longer-Lasting Control
H2 blockers reduce the amount of acid your stomach produces in the first place, rather than neutralizing acid after it’s made. Famotidine (sold as Pepcid) is the most widely available over-the-counter option. Cimetidine (Tagamet) is also available without a prescription.
These take about an hour to kick in, but the effects last 4 to 10 hours, far longer than antacids. That makes them a better fit if your heartburn tends to persist or if you know a trigger is coming. Taking an H2 blocker 30 to 60 minutes before a meal you suspect will cause trouble can prevent symptoms from starting at all.
Proton Pump Inhibitors for Frequent Heartburn
Proton pump inhibitors, or PPIs, are the strongest acid suppressors available over the counter. They block an enzyme responsible for producing stomach acid at the source. Omeprazole (Prilosec), esomeprazole (Nexium), and lansoprazole (Prevacid) are all sold without a prescription.
PPIs aren’t designed for immediate relief. They take one to four days to reach full effect and are meant for short courses, typically 14 days, to heal irritation and break a cycle of frequent heartburn. They work well for people who experience symptoms multiple times a week, but they come with considerations for longer use. Extended PPI use has been linked to reduced absorption of certain vitamins and minerals, lower bone density, and a higher risk of certain gut infections. If you need a PPI for more than a couple of weeks, that’s a conversation to have with a doctor who can weigh the benefits against those risks and reassess periodically.
Baking Soda as a Home Remedy
Baking soda (sodium bicarbonate) is a legitimate antacid that neutralizes stomach acid on contact. A half teaspoon dissolved in a glass of water can bring relief within minutes. Some people prefer it because it’s inexpensive and already in the kitchen.
There are real limits, though. Baking soda is loaded with sodium, which makes it a poor choice for anyone managing high blood pressure, heart disease, kidney disease, or swelling in the legs and feet. Even for healthy adults, it shouldn’t be used for more than two weeks straight. If you’re on a sodium-restricted diet, skip this one entirely and use a commercial antacid instead.
Lifestyle Changes That Actually Help
A large Harvard-affiliated study identified five lifestyle factors that, when followed together, reduced heartburn symptoms by 37 percent: maintaining a healthy weight, not smoking, getting at least 30 minutes of moderate physical activity daily, limiting coffee, tea, and sodas to two cups a day, and eating a balanced diet that isn’t heavy on processed or fried foods. Physical activity in particular may help by improving the clearance of acid from the esophagus.
Beyond those broader habits, some practical adjustments target nighttime heartburn specifically. Eating your last meal at least two to three hours before lying down gives your stomach time to empty. Elevating the head of your bed by about six inches (using blocks or a wedge pillow, not just stacking regular pillows) uses gravity to keep acid where it belongs. Wearing loose clothing around your waist reduces pressure on your stomach, which can push acid upward.
Heartburn During Pregnancy
Heartburn is extremely common in pregnancy, driven by hormonal changes that relax the valve between the stomach and esophagus plus the physical pressure of a growing uterus. Calcium carbonate antacids like Tums are generally considered a first-line option, but you should confirm with your provider before starting any heartburn medication during pregnancy. If lifestyle changes and antacids aren’t cutting it, prescription options that are safe during pregnancy do exist.
Signs That Heartburn Needs Medical Attention
Occasional heartburn is normal. But certain symptoms suggest that acid has caused real damage or that something else is going on. These include difficulty swallowing or a sensation of food getting stuck behind your chest, vomiting blood or material that looks like coffee grounds, black or tarry stools, unexplained weight loss, and chronic coughing or hoarseness caused by acid reaching your airway.
The American College of Gastroenterology recommends seeing a doctor if you’re using over-the-counter heartburn products more than twice a week, or if your symptoms persist despite treatment. At that point, the heartburn may reflect gastroesophageal reflux disease, which benefits from a structured treatment plan and possibly further testing rather than ongoing self-treatment.