The fastest way to relieve heartburn at night is to take a chewable antacid, which neutralizes stomach acid within minutes, and then reposition your body so gravity works in your favor. Unlike H2 blockers, which take about an hour to kick in, antacids provide almost immediate relief. But a few other strategies can stack with that antacid to get you back to sleep quickly and prevent it from happening again.
What Works in the Next Few Minutes
Chewable antacids containing calcium carbonate are the fastest over-the-counter option. They work by directly neutralizing the acid already in your stomach and esophagus, so relief comes within minutes rather than the hour or more that an H2 blocker like famotidine requires. The tradeoff is that antacids wear off faster, but when you’re trying to fall back asleep, speed matters more than duration.
If you don’t have antacids on hand, half a teaspoon of baking soda dissolved in a glass of cold water works on the same principle. It’s sodium bicarbonate, the active ingredient in many commercial antacids. This is a reasonable one-time fix, but it’s not something to rely on regularly. Baking soda contains a lot of sodium, making it a poor choice if you have high blood pressure, kidney disease, heart disease, or any condition where sodium intake matters.
While you wait for the antacid or baking soda to work, roll onto your left side. When you lie on your left, your esophagus sits higher than your stomach, which lets acid drain back down more quickly than in any other sleeping position. Lying on your right side does the opposite, positioning the stomach above the junction with the esophagus and making reflux worse. This single change can make a noticeable difference within minutes.
Elevate Your Upper Body, Not Just Your Head
Propping up with an extra pillow under your head actually makes things worse for many people because it bends you at the neck without changing the angle of your torso. The acid still pools at the same level. What works is raising your entire upper body so gravity keeps stomach contents where they belong.
A wedge pillow designed for reflux typically sits at a 30- to 45-degree angle and elevates your head between 6 and 12 inches above your stomach. If you don’t own one, you can improvise tonight by stacking firm pillows or folded blankets under your upper back and shoulders, not just your head. Even raising the head of your bed frame with blocks or risers under the legs can serve as a long-term solution if nighttime heartburn is a recurring problem.
Chewing Gum as a Surprisingly Effective Tool
This one sounds odd, but chewing sugar-free gum for 15 to 20 minutes after heartburn starts can meaningfully reduce acid in your esophagus. Chewing stimulates saliva production, and saliva is slightly alkaline. Each swallow sends a small wave of saliva down the esophagus, which does two things: it triggers the muscular contractions that push acid back into the stomach, and it neutralizes the residual acid clinging to the esophageal lining. Studies have shown that chewing gum raises both esophageal and throat pH levels. Avoid peppermint-flavored gum, though, because peppermint relaxes the valve between your stomach and esophagus and can make reflux worse.
Alginate Products for a Physical Barrier
Alginate-based medications (often sold in combination with antacids) offer a different kind of protection. When the alginate mixes with your stomach acid, it forms a gel-like layer that floats on top of the acid, creating a physical raft between your stomach contents and your esophagus. This barrier is light enough to stay on top but strong enough to block acid from splashing upward. For nighttime reflux, this floating raft can be especially useful because lying down is when acid is most likely to creep up. Taking an alginate product right before bed, or when heartburn wakes you up, adds a layer of mechanical protection that a standard antacid alone doesn’t provide.
Why Heartburn Gets Worse at Night
Nighttime heartburn isn’t just regular heartburn that happens to occur in the evening. Lying flat removes the gravitational advantage that keeps acid in your stomach during the day. You also swallow less frequently while sleeping, which means less saliva washing acid back down. And your stomach may still be actively digesting if you ate within a few hours of lying down. All of these factors combine to let acid sit in your esophagus longer, which is why nighttime episodes often feel more intense and last longer than daytime ones.
Preventing Tomorrow Night’s Episode
The most effective prevention strategy is straightforward: stop eating at least three hours before bedtime. This gives your stomach enough time to empty most of its contents before you lie down. Late dinners and bedtime snacks are the single biggest modifiable trigger for nighttime reflux.
Certain foods and drinks are especially problematic because they relax the muscular valve at the top of your stomach, the seal that’s supposed to keep acid from flowing upward. Coffee (even decaf), chocolate, peppermint, garlic, onions, and fatty or fried foods all weaken this valve. Spicy foods both relax the valve and delay stomach emptying, a double hit. You don’t necessarily need to eliminate all of these permanently, but avoiding them at dinner or in the evening hours can dramatically reduce nighttime episodes.
If you know you’re about to eat something that typically triggers heartburn, taking an H2 blocker like famotidine 30 to 60 minutes before the meal can help. These medications reduce acid production rather than neutralizing existing acid, so they work best as prevention rather than rescue. They take about an hour to reach full effect but last significantly longer than antacids.
Signs That Need Medical Attention
Occasional nighttime heartburn is common and manageable. But certain symptoms suggest something more serious is going on. Difficulty swallowing, or a feeling that food gets stuck behind your chest, can indicate narrowing of the esophagus from chronic acid damage. Vomiting blood (which may look like coffee grounds) or having black, tarry bowel movements signals bleeding. Unexplained weight loss combined with an inability to tolerate foods, or a chronic sensation of acid reaching your windpipe causing coughing, hoarseness, or shortness of breath, all warrant prompt evaluation. If nighttime heartburn is happening more than twice a week despite the strategies above, that pattern alone is worth discussing with a doctor.

