If you have heartburn right now, the fastest relief comes from an over-the-counter antacid, staying upright, and loosening any tight clothing around your waist. Most episodes pass within a couple of hours, especially if you avoid lying down. But if heartburn keeps coming back, the real fix involves changing when and how you eat, how you sleep, and which foods you stop buying.
Quick Relief for Heartburn Right Now
Antacids that neutralize stomach acid work within minutes and are the most straightforward option for occasional heartburn. Chewing gum can also help by increasing saliva production, which naturally neutralizes acid in your esophagus. If you don’t have anything on hand, mixing half a teaspoon of baking soda into a glass of cold water acts as a basic antacid. Don’t exceed five teaspoons of baking soda in a day, and don’t use it as a regular solution for more than two weeks.
While you wait for relief, stand up or sit upright. Gravity keeps stomach acid where it belongs. If you were eating when the burn started, stop. Sip plain water, but avoid anything carbonated, acidic, or caffeinated.
Foods and Drinks That Trigger Heartburn
Heartburn happens when stomach acid flows backward into the esophagus. At the junction between the two sits a ring of muscle called the lower esophageal sphincter, which is supposed to act as a one-way valve. Several common foods and drinks relax that valve, letting acid escape upward.
The major culprits:
- Coffee and caffeinated drinks relax the sphincter directly, whether the coffee is regular or decaf.
- Chocolate contains a compound from the cocoa plant that has a similar relaxing effect on the sphincter.
- Peppermint, garlic, and onions all loosen the valve and promote acid reflux.
- Fatty, fried, or spicy foods both relax the sphincter and slow stomach emptying, meaning acid sits around longer with more opportunity to escape.
- Citrus fruits and juices irritate an already sensitive esophagus.
You don’t necessarily need to eliminate all of these permanently. Start by cutting the ones you consume most often, then reintroduce them one at a time to identify your personal triggers.
How Meal Timing Affects Nighttime Heartburn
Stop eating at least three hours before you lie down. There’s a straightforward physical reason: your stomach needs time to empty. When you eat and then recline shortly after, a full stomach pressing against a relaxed sphincter is a recipe for acid in your esophagus. This applies to snacks too, not just full meals.
Eating several smaller meals throughout the day instead of three large ones also reduces pressure on the sphincter. Eating slowly helps for the same reason. And drinking fluids between meals rather than during them prevents your stomach from overfilling.
The Best Sleeping Position for Heartburn
If heartburn wakes you up at night, two changes make a significant difference. First, elevate the head of your bed by 6 to 8 inches. This means raising the actual bed frame or using a wedge pillow, not just stacking regular pillows (which can bend you at the waist and make things worse).
Second, sleep on your left side. When you’re on your left, the esophagus and its sphincter sit higher than the stomach, so acid drains out of the esophagus faster. Sleeping on your right side or your back does the opposite, keeping acid in contact with the esophageal lining longer.
When Heartburn Happens During Pregnancy
Heartburn affects the majority of pregnant women, and it’s not just about diet. The hormone progesterone, which rises throughout pregnancy, directly relaxes the esophageal sphincter. As the uterus grows, it also pushes upward on the stomach, compounding the problem. This means you can do everything “right” and still get heartburn.
Safe first steps during pregnancy include eating yogurt, drinking milk (warm milk with a tablespoon of honey is a traditional remedy), and chewing gum. The same positional strategies apply: stay upright after meals, elevate your head at night, eat smaller meals. Over-the-counter calcium-based antacids are generally considered a first option, but check with your provider before using them regularly, since some antacid formulations contain ingredients that aren’t recommended during pregnancy.
Over-the-Counter Medications and Their Limits
For occasional heartburn, antacids that neutralize existing acid work fastest. A second category, called H2 blockers, reduces acid production and lasts longer but takes 30 to 60 minutes to kick in. Proton pump inhibitors (PPIs) are the strongest option and are available without a prescription, but they’re designed for short courses, typically two weeks.
Long-term PPI use has raised concerns. Studies have reported an increased risk of bone fractures with chronic use, though scientists are still working out whether PPIs directly cause the problem or whether other factors in people who need PPIs are responsible. If you find yourself reaching for any of these medications more than twice a week, that pattern itself is a signal worth paying attention to.
Signs That Point to Something More Serious
Most heartburn is uncomfortable but harmless. Certain symptoms, however, should change how urgently you respond.
If your chest pain comes with pressure or tightness that spreads to your neck, jaw, or arms, especially alongside shortness of breath, cold sweats, lightheadedness, or unusual fatigue, treat it as a potential heart attack. Heart attacks can mimic heartburn, and the consequences of guessing wrong are severe. Call emergency services.
Typical heartburn, by contrast, produces a burning sensation (not pressure) that usually starts after eating, responds to antacids, and may come with a sour taste or a small amount of liquid rising into the back of your throat.
Outside of the heart attack question, certain patterns suggest your heartburn has progressed to something that needs medical evaluation. Difficulty swallowing, pain when swallowing, unintentional weight loss, vomiting, or heartburn that persists despite two weeks of medication all warrant a closer look. These can indicate inflammation, narrowing of the esophagus, or other conditions that won’t resolve with lifestyle changes alone.

