The fastest way to get rid of heartburn is to take an antacid containing calcium carbonate, which neutralizes stomach acid within minutes. If you don’t have antacids on hand, sipping water, chewing gum, or simply standing upright can help clear acid from your esophagus and ease the burning. For heartburn that keeps coming back, the fix usually involves changing when and how you eat, how you sleep, and which foods you avoid.
Quick Relief Without Medication
If heartburn hits and you don’t have antacids nearby, a few simple actions can help. Taking small sips of water helps wash acid back down into your stomach and keeps food moving through your digestive system. Ginger tea or ginger steeped in hot water can also help: ginger eases pressure on the valve between your stomach and esophagus while speeding up how quickly your stomach empties, both of which reduce the amount of acid that backs up.
Chewing gum is surprisingly effective. It roughly doubles your saliva production, and that extra saliva acts as a natural acid neutralizer as you swallow it. In one study, chewing gum cut the time acid stayed in the esophagus from about 7 minutes down to just over 2 minutes. Sugar-free gum works fine, but avoid peppermint-flavored varieties since peppermint can relax the valve that keeps acid in your stomach.
Baking soda (sodium bicarbonate) is a classic home remedy that genuinely works as a short-term antacid. The standard dose is half a teaspoon dissolved in a full glass of cold water. Don’t exceed 5 teaspoons in a day, and don’t use it as a regular fix. Baking soda contains a large amount of sodium, which can cause water retention and raise blood pressure. It’s a one-off solution, not a daily habit.
Over-the-Counter Medications
Three types of heartburn medication are available without a prescription, and they work on different timelines. Antacids like calcium carbonate (Tums, Rolaids) act the fastest, neutralizing acid almost immediately, but they wear off relatively quickly. They’re your best option for occasional heartburn that you want gone now.
H2 blockers (famotidine, sold as Pepcid) take about an hour to kick in but provide relief lasting 4 to 10 hours. They work by reducing how much acid your stomach produces rather than just neutralizing what’s already there. If you know a trigger meal is coming, taking one beforehand can prevent heartburn from starting.
Proton pump inhibitors, or PPIs (omeprazole, sold as Prilosec), are the strongest option but the slowest to work. They take one to four days to reach full effect. PPIs are designed for frequent heartburn (two or more days per week), not for putting out a fire that’s already burning. If you find yourself reaching for PPIs regularly, it’s worth reassessing what’s causing the problem, since ongoing use has been linked to nutrient absorption issues. Doctors recommend periodically checking whether you still need them rather than staying on them indefinitely.
Foods That Trigger Heartburn
Heartburn happens when stomach acid pushes past the lower esophageal sphincter, a ring of muscle at the bottom of your esophagus that normally keeps acid contained. Certain foods relax that sphincter and slow digestion at the same time, letting food sit in your stomach longer and giving acid more opportunity to escape upward.
The most common culprits include:
- Fatty and fried foods, which take longer to digest and keep the sphincter relaxed
- Chocolate, which contains compounds that loosen the sphincter
- Peppermint, which has the same relaxing effect despite its reputation as a digestive aid
- Carbonated drinks, which increase pressure in the stomach
- Coffee and alcohol, both of which relax the sphincter and boost acid production
- Tomato-based foods and citrus, which are highly acidic on their own
You don’t necessarily need to cut all of these permanently. Pay attention to which ones actually trigger your symptoms. Many people find they can tolerate some of these foods in smaller portions or earlier in the day, when they’ll have time to digest before lying down.
How You Sleep Matters
Heartburn that strikes at night or wakes you up is often a positioning problem. Lying flat lets gravity work against you, making it easy for acid to flow from your stomach into your esophagus. Two changes make a significant difference.
First, elevate the head of your bed by 6 to 8 inches using blocks under the bedframe legs or a wedge pillow. Stacking regular pillows doesn’t work as well because it bends you at the waist rather than angling your whole torso. Second, sleep on your left side. A Harvard-affiliated study monitoring 57 people with chronic heartburn found that while the number of reflux episodes was similar regardless of position, acid cleared from the esophagus much faster when participants slept on their left side compared to their right side or back. Faster clearance means less burning and less tissue damage over time.
Eating your last meal at least two to three hours before bed also helps. A full stomach lying flat is the ideal setup for nighttime reflux.
Breathing Exercises for Prevention
This one sounds unlikely, but diaphragmatic breathing has real evidence behind it for reducing heartburn over time. Your diaphragm wraps around the lower esophageal sphincter, so strengthening it can improve the seal that keeps acid in your stomach.
The technique is simple: place one hand on your chest and one on your belly. Breathe in slowly so that your belly rises while your chest stays still. This confirms you’re using your diaphragm rather than breathing shallowly into your chest. A structured program tested on reflux patients used 30 slow diaphragmatic breaths over 5 minutes, three times a day, in sitting, standing, and lying positions. This isn’t an instant fix, but practiced consistently, it can reduce how often heartburn occurs.
Body Weight and Abdominal Pressure
Excess weight around the midsection physically compresses the stomach, pushing its contents upward toward the esophagus. This is why heartburn often worsens with weight gain and improves with weight loss, even modest amounts. Tight clothing, heavy lifting, and bending at the waist after meals create the same kind of upward pressure. If you need to bend down after eating, hinge at the knees instead.
When Heartburn Might Be Something Else
Heartburn and heart attacks can feel disturbingly similar. Both cause chest discomfort, and heart attacks can even present with what feels like indigestion. The key differences: heart-related chest pain typically involves pressure, tightness, or a squeezing sensation that may spread to your neck, jaw, or arms. It often comes 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 rather than the classic crushing chest pain.
If your chest discomfort comes with any of those additional symptoms, or if it came on during physical exertion, treat it as a potential cardiac event. This is especially true if you have risk factors like high blood pressure, diabetes, high cholesterol, or a smoking history. Heartburn that doesn’t respond to antacids, happens more than twice a week for several weeks, or is accompanied by difficulty swallowing or unintended weight loss also warrants medical evaluation, as these can signal a more serious digestive condition.

