Most heartburn episodes can be relieved within minutes using an over-the-counter antacid, and prevented altogether with a few targeted changes to how and when you eat. The burning sensation happens when stomach acid flows backward into your esophagus, irritating its lining. Whether you’re dealing with occasional flare-ups or a recurring pattern, the fix usually involves some combination of quick relief, dietary adjustments, and simple habits that keep acid where it belongs.
Fast Relief Options That Work Now
If you’re in the middle of a heartburn episode, the quickest fix is a standard over-the-counter antacid (like Tums or Rolaids). These neutralize stomach acid on contact and typically bring relief within minutes. They’re fine for occasional use, but they wear off relatively fast and aren’t designed for daily, long-term management.
A home remedy that works on the same principle: dissolve half a teaspoon of baking soda in a glass of water and drink it. Baking soda is a base that neutralizes acid quickly. But it comes with caveats. It’s high in sodium, so it’s not appropriate if you have high blood pressure, heart disease, kidney disease, or are on a sodium-restricted diet. It can also cause the body to retain water, which worsens swelling and certain chronic conditions. Treat it as an occasional, short-term option, not a habit.
Chewing a piece of sugar-free gum after meals is a surprisingly effective strategy. Gum increases your saliva production, and saliva naturally contains bicarbonate, the same alkaline compound that neutralizes acid. Each swallow delivers a small dose of this buffer to your esophagus, helping clear any acid that’s splashed up. It won’t stop a severe episode, but for mild post-meal burning, 20 to 30 minutes of gum chewing can make a noticeable difference.
Over-the-Counter Medications: Which Type and When
Beyond basic antacids, there are two main categories of heartburn medication, and they work very differently. Understanding the distinction helps you pick the right one.
H2 blockers (like famotidine, sold as Pepcid) reduce the amount of acid your stomach produces. They kick in relatively quickly, which makes them useful on an as-needed basis. If you know a spicy dinner is coming, or you tend to get heartburn at night, taking one beforehand can head it off.
Proton pump inhibitors, or PPIs (like omeprazole, sold as Prilosec), are stronger acid suppressors, but they work on a completely different timeline. They need to be taken daily for four to eight weeks to fully suppress acid production, because not all of your stomach’s acid-producing cells are active at the same time. Taking a PPI occasionally, the way you’d take an antacid, won’t give you reliable relief. If you do use one, take it 30 to 60 minutes before your first meal of the day, when there’s the greatest number of active acid-producing cells to shut down.
For infrequent heartburn, antacids or H2 blockers are usually enough. PPIs are better suited for people who experience symptoms multiple times a week over a period of weeks.
Foods and Drinks That Trigger Heartburn
At the bottom of your esophagus sits a ring of muscle that acts as a one-way valve, keeping stomach acid from rising upward. Certain foods relax this valve, making it easier for acid to escape. The main culprits are chocolate, coffee, alcohol, mint, garlic, and onions, all of which can reduce the tension in that valve, especially in higher doses.
Acidic foods like tomatoes and citrus don’t necessarily weaken the valve, but they can irritate an esophagus that’s already inflamed. Fatty and fried foods slow digestion, which means your stomach stays full and pressurized for longer. Carbonated drinks introduce gas that increases pressure inside the stomach.
You don’t necessarily have to eliminate all of these permanently. Pay attention to which ones reliably trigger your symptoms. For many people, it’s a specific combination, like coffee on an empty stomach, or chocolate after a large meal, rather than every item on the list.
Meal Timing and Portion Size
When you eat matters almost as much as what you eat. Stop eating at least three hours before you lie down. There’s a straightforward physical reason for this: when you’re upright, gravity helps keep stomach contents down. When you recline with a full stomach, acid has a much easier path into your esophagus. This three-hour window gives your stomach enough time to empty substantially.
Large meals are also a common trigger. A stomach packed with food increases internal pressure, which pushes acid upward. Eating smaller, more frequent meals throughout the day keeps that pressure lower. If you tend to eat one or two big meals, try splitting them into three or four smaller ones.
How You Sleep Makes a Difference
Nighttime heartburn is particularly common because lying flat removes gravity from the equation. Two adjustments help significantly.
First, elevate your upper body. This doesn’t mean stacking pillows, which tends to bend you at the waist and can actually increase abdominal pressure. Instead, use a wedge pillow or raise the head of your bed by placing blocks under the legs. The goal is a gentle incline from your waist to your head.
Second, sleep on your left side. A study found that while sleeping position didn’t change how often acid reflux occurred, acid cleared from the esophagus much faster when participants slept on their left side compared to their back or right side. The anatomy of the stomach and esophagus connection favors this position: when you’re on your left side, the junction where the esophagus meets the stomach sits above the level of stomach acid, making it harder for acid to flow upward.
Why Weight Loss Helps
Excess weight, particularly around the abdomen, is one of the strongest predictors of chronic heartburn. Fat tissue around the midsection physically compresses the stomach, raising the pressure inside it. Research using high-resolution imaging has confirmed a direct correlation between both BMI and waist circumference and the pressure gradient that pushes acid upward into the esophagus.
This means that even modest weight loss can reduce that pressure and improve symptoms. You don’t need to reach an ideal BMI to see benefits. Losing enough to shrink your waist measurement by a few inches can make a meaningful difference, especially if your heartburn is worst after meals or at night.
Ginger as a Natural Aid
Ginger has a unique combination of effects on the digestive system. It improves the stomach’s ability to move food through and empty itself (which reduces the time acid sits around with nowhere to go), while simultaneously relaxing spasms in the gut. These two effects, promoting motility and reducing spasm at the same time, are unusual for a single remedy. It works by affecting serotonin receptors in gut tissue.
Ginger tea, fresh ginger slices steeped in hot water, or small amounts of raw ginger with meals are common ways to use it. It’s considered safe for most people and is moderately effective for mild symptoms. It won’t replace medication for frequent or severe heartburn, but it’s a reasonable addition to other strategies.
Signs That Need Medical Attention
Occasional heartburn is extremely common and usually manageable on your own. But certain symptoms suggest something more serious is happening. The American College of Gastroenterology identifies these as red flags:
- Difficulty swallowing or a feeling that food is getting stuck behind your chest
- Vomiting blood, whether it looks like red clots or dark coffee grounds
- Black, tarry stools, which can indicate bleeding in the digestive tract
- Choking sensations, persistent cough, or hoarseness caused by acid reaching the airway
- Unexplained weight loss with difficulty tolerating food
Any of these warrants prompt evaluation. Heartburn that persists despite weeks of lifestyle changes and over-the-counter medication also deserves a closer look, as it may indicate structural changes in the esophagus that benefit from direct treatment.

