Several things help heartburn, ranging from quick fixes you already have at home to over-the-counter medications that can keep symptoms away for hours or even days. The best option depends on whether you need fast relief right now or a longer-term strategy for recurring symptoms. Here’s what actually works and why.
Fast-Acting Options at Home
The quickest home remedy is baking soda dissolved in water. Sodium bicarbonate neutralizes stomach acid on contact. The standard dose is half a teaspoon in a full glass of water, taken every two hours as needed. Don’t exceed five teaspoons in a day. It tastes unpleasant and shouldn’t become a regular habit, but for occasional flare-ups it works within minutes.
Ginger has a modest reputation as a natural heartburn aid. It can reduce pressure on the muscular valve between your esophagus and stomach, which helps prevent acid from creeping upward. Ginger tea or fresh ginger in food is generally well tolerated, though ironically, some people find that ginger itself triggers mild heartburn. It’s better suited as a gentle preventive measure than as rescue relief for a bad episode.
Over-the-Counter Antacids
Antacids are the classic first-line treatment. They work by chemically neutralizing the acid already sitting in your stomach, and most provide noticeable relief within minutes. Liquid forms tend to work faster than tablets because they coat the stomach lining more evenly, though tablets are obviously more portable.
The main types differ by their active mineral. Calcium-based antacids (like Tums and Rolaids) are the most widely used. Magnesium-based products (like Maalox and Mylanta) are known for being especially fast-acting. Aluminum-based antacids provide similar relief but can cause constipation with frequent use. Many products combine two or more of these minerals to balance speed and side effects. Gaviscon, for example, blends aluminum and magnesium and also forms a physical barrier that floats on top of stomach contents to help block reflux.
Antacids are great for occasional heartburn, but their relief typically lasts only one to three hours. If you find yourself reaching for them daily, that’s a sign you need something stronger or a change in habits.
Stronger Medications for Frequent Heartburn
Two classes of drugs go beyond neutralizing acid and actually reduce how much your stomach produces in the first place.
H2 blockers (like famotidine, sold as Pepcid) work by blocking the signal that tells your stomach’s acid-producing cells to ramp up. They take about 30 to 60 minutes to kick in but last significantly longer than antacids, often 6 to 12 hours. They’re a good fit if you get heartburn predictably, such as after dinner, because you can take one beforehand.
Proton pump inhibitors (PPIs, like omeprazole sold as Prilosec, or esomeprazole sold as Nexium) are the most powerful option available without a prescription. They shut down acid production at its source, the enzyme that pumps acid into your stomach. PPIs don’t provide instant relief. They need one to four days of daily use to reach full effect. But once working, they suppress acid more completely and for a longer duration than H2 blockers.
The FDA recommends using over-the-counter PPIs for only 14 consecutive days at a time, up to three times per year. Long-term PPI use has been linked to reduced absorption of iron, vitamin D, and calcium, and can contribute to iron deficiency anemia over time. If you need acid suppression beyond a two-week course, that conversation belongs with a doctor who can weigh the benefits against these risks.
Foods and Drinks That Trigger Heartburn
The valve at the top of your stomach, called the lower esophageal sphincter, is supposed to stay closed after you swallow so acid can’t travel upward. Certain foods and drinks relax this valve, making reflux more likely. The well-established culprits are high-fat meals, chocolate, alcohol, and carbonated beverages. All of them reduce the pressure that keeps that valve shut.
Spicy foods and citrus don’t necessarily relax the valve the same way, but they can irritate an esophagus that’s already inflamed from previous reflux episodes. The trigger list varies from person to person. Paying attention to what you ate in the hour or two before a flare-up is more useful than memorizing a generic list. Large meals of any kind are also a common trigger simply because a full, distended stomach puts physical pressure on the valve.
Sleep Position Makes a Real Difference
Heartburn that wakes you up at night or hits when you lie down responds well to two simple physical changes: elevating your head and sleeping on your left side.
Raising the head of your bed by about 20 centimeters (roughly 8 inches) reduces how much acid reaches your esophagus and helps it drain back down faster when it does. You can use wooden blocks or risers under the bedposts, or a wedge-shaped pillow angled at about 20 degrees. Stacking regular pillows doesn’t work as well because it bends you at the waist rather than creating a gradual slope, which can actually increase abdominal pressure.
Sleeping on your left side positions your esophagus above your stomach, so gravity works in your favor. When you sleep on your right side, the anatomy flips: your stomach sits higher than your esophagus, and acid flows more easily toward your throat. Studies consistently show that right-side sleeping causes more reflux episodes and longer acid exposure than left-side sleeping. If you tend to roll over during the night, a body pillow behind your back can help you stay on your left.
Other Habits That Help
Timing matters as much as what you eat. Eating your last meal at least two to three hours before lying down gives your stomach time to empty, leaving less acid available to reflux. This single change eliminates nighttime heartburn for many people.
Tight clothing around your midsection, including belts, waistbands, and shapewear, increases pressure on the stomach and can push acid upward. Loose-fitting clothes after meals can make a noticeable difference, especially if you’re prone to post-meal heartburn. Maintaining a healthy weight reduces that same kind of pressure on a more permanent basis. Even modest weight loss can improve heartburn frequency in people who carry extra weight around the abdomen.
Heartburn That Feels Like Something Worse
Heartburn and heart attacks can feel surprisingly similar. Both cause chest discomfort that sometimes radiates, and both can come and go. Typical heartburn produces a burning sensation in the chest or upper abdomen, usually after eating or when lying down. It often comes with a sour taste in your mouth or a small amount of stomach contents rising into your throat, and antacids generally bring relief.
A heart attack doesn’t always look like the dramatic, crushing chest pain you see in movies. The symptoms can be subtle and may subside on their own, only to return. Even experienced doctors sometimes can’t tell the difference based on symptoms alone. If you have persistent chest pain and you’re not confident it’s heartburn, call 911. If you had an episode of unexplained chest pain that went away on its own, contact your doctor afterward. Short-lived pain can still be a warning sign.