Most heartburn episodes can be stopped within minutes using an antacid or a simple change in position, and prevented entirely with a few habit adjustments. The burning sensation happens when stomach acid flows backward into your esophagus, the tube connecting your throat to your stomach. A ring of muscle at the bottom of that tube normally keeps acid where it belongs, but when it relaxes at the wrong time or weakens over time, acid escapes upward. Here’s how to stop it quickly and keep it from coming back.
Fast Relief in the Next Few Minutes
If heartburn is hitting you right now, your quickest options are over-the-counter antacids (calcium carbonate products like Tums, or magnesium/aluminum combinations like Maalox). These neutralize stomach acid on contact and typically bring relief within five to ten minutes. They won’t last long, usually one to two hours, but they buy you time.
If you don’t have antacids on hand, dissolving half a teaspoon of baking soda in a full glass of cold water works the same way. It neutralizes acid almost immediately. Don’t exceed five teaspoons in a day, and avoid this remedy altogether if you have high blood pressure, heart disease, kidney problems, or are on a sodium-restricted diet. Baking soda contains a large amount of sodium.
While you wait for relief, stand up or sit upright. Gravity alone helps push acid back down into your stomach. If you’ve been lying down, that’s likely making things worse.
Longer-Lasting Medication Options
When antacids wear off too quickly or heartburn keeps returning the same day, an H2 blocker like famotidine (sold as Pepcid) provides more sustained relief. Famotidine starts suppressing acid production within one hour, hits its peak effect between one and three hours, and keeps acid levels down for 10 to 12 hours. It’s a better choice when you know a big meal or a trigger food is coming.
For heartburn that shows up multiple days per week, proton pump inhibitors (PPIs) like omeprazole (Prilosec) are the strongest over-the-counter option. They block acid production more completely than H2 blockers but take one to four days to reach full effect, so they’re not useful for immediate relief. The FDA recommends limiting OTC PPI use to 4 to 8 consecutive weeks. If you still need them after that, it’s worth getting evaluated for an underlying condition.
Why Heartburn Happens in the First Place
The muscle ring at the base of your esophagus (called the lower esophageal sphincter) is controlled by nerves and hormones, which means a surprising number of things can interfere with it. Certain foods, medications, body weight, and even your stress levels can cause it to relax when it shouldn’t.
Extra weight around your midsection puts direct pressure on your stomach, pushing its contents upward. Pregnancy does the same thing, compounded by hormonal changes that loosen the sphincter. Aging weakens both the sphincter and the muscular contractions that normally sweep acid back down. Smoking is a double hit: nicotine relaxes the sphincter while smoke irritates the lining of your digestive tract. A hiatal hernia, where part of the stomach pushes up through the diaphragm, can also impair the sphincter’s ability to seal properly.
Some prescription medications contribute too, including certain antidepressants, anti-anxiety drugs, and calcium-channel blockers used for blood pressure. If heartburn started or worsened after beginning a new medication, that connection is worth exploring with whoever prescribed it.
Foods and Drinks That Trigger It
Several common foods directly relax the sphincter muscle, making acid reflux more likely regardless of how much you eat. Chocolate contains a compound called methylxanthine (related to caffeine) that loosens the sphincter. Coffee, both regular and decaf, does the same. Peppermint, garlic, and onions are also known relaxers.
Alcohol loosens the sphincter and increases acid production at the same time. Citrus fruits and tomato-based foods don’t affect the sphincter, but their acidity can irritate an already-inflamed esophagus and make heartburn feel worse. Fatty and fried foods slow stomach emptying, which means acid sits in your stomach longer and has more opportunity to escape upward.
You don’t necessarily need to eliminate all of these permanently. Most people find that two or three specific triggers are responsible for the majority of their episodes. Paying attention to what you ate in the hour or two before heartburn strikes is the fastest way to identify your personal list.
Timing Your Meals Matters
Eating too close to bedtime is one of the most common and fixable causes of nighttime heartburn. The American College of Gastroenterology recommends finishing your last meal at least three hours before lying down. When you’re upright, gravity helps keep stomach contents in place. The moment you recline, that advantage disappears, and a full stomach has a much easier time pushing acid into your esophagus.
Smaller, more frequent meals also help. A large meal stretches the stomach, which puts pressure on the sphincter and makes it more likely to open. If dinner is your biggest meal of the day and you’re getting heartburn at night, splitting that volume into a smaller dinner and a later-afternoon snack can make a real difference.
How You Sleep Changes Everything
Sleeping on your left side significantly reduces acid exposure in the esophagus compared to your right side or your back. The anatomy is straightforward: when you lie on your left, your esophagus and its sphincter sit higher than your stomach, so acid drains away from the opening rather than pooling near it.
Elevating the head of your bed by 6 to 8 inches adds another layer of protection. This means raising the bed frame itself or using a foam wedge pillow, not stacking regular pillows. Regular pillows bend you at the waist, which can actually increase abdominal pressure and make reflux worse. A wedge keeps your entire torso on a gentle incline so gravity works in your favor all night.
Exercise Without Making It Worse
Physical activity is good for digestion overall, but certain types of exercise can trigger heartburn. Stomach crunches, abdominal presses, and any movement that compresses your midsection push stomach contents upward. High-impact activities like running, sprinting, and gymnastics cause a jarring motion that can force acid through the sphincter. Heavy weightlifting increases intra-abdominal pressure dramatically, especially with moves like deadlifts and squats.
Lower-impact options like walking, swimming, cycling at moderate intensity, and yoga (avoiding deep forward folds) are generally well tolerated. The simplest rule: wait one to two hours after eating before any workout. Exercising on an empty or mostly-empty stomach eliminates the main source of trouble.
When It Might Not Be Heartburn
Heartburn and heart attacks can feel remarkably similar. Even experienced doctors sometimes can’t distinguish them without testing. Typical heartburn produces a burning sensation in the chest, usually after eating or while lying down, often with a sour taste in your mouth. It responds to antacids.
A heart attack is more likely to feel like pressure, tightness, or squeezing in your chest that spreads to your neck, jaw, or arms. It often comes with shortness of breath, cold sweats, lightheadedness, or sudden fatigue. Women are more likely than men to experience jaw pain, back pain, nausea, or vomiting as primary symptoms rather than the classic crushing chest pain.
If your chest discomfort doesn’t respond to antacids, comes with any of those additional symptoms, or feels different from heartburn you’ve had before, treat it as a medical emergency. That’s not a situation where it’s worth waiting to see if it passes.

