Relief from bad heartburn starts with neutralizing or blocking the acid that’s burning your esophagus. An over-the-counter antacid can ease the pain within minutes, but if heartburn keeps coming back, you’ll need a layered approach that combines the right medication timing, sleep adjustments, and trigger avoidance to get lasting control.
Fast-Acting Options for Right Now
If you’re in the middle of a bad episode, antacids (like calcium carbonate or magnesium hydroxide tablets) work fastest by directly neutralizing stomach acid on contact. They won’t prevent the next episode, but they’ll take the edge off within a few minutes. The downside is that relief fades relatively quickly.
Alginate-based products offer a different kind of immediate relief. When alginates mix with stomach acid, they form a gel-like raft that floats on top of your stomach contents and physically blocks acid from splashing up into your esophagus. One study found alginates more effective than standard antacids for reflux, and they’re available over the counter in liquid or chewable form.
For stronger, longer-lasting suppression, H2 blockers like famotidine work within about an hour and can be taken as needed. A typical dose is 20 mg once or twice a day. These are a good middle ground: faster than the strongest acid suppressors but longer-lasting than antacids.
When Heartburn Keeps Coming Back
If you’re dealing with heartburn more than twice a week, a proton pump inhibitor (PPI) like omeprazole is the most powerful option available without a prescription. But PPIs work differently than you might expect. They need to be taken daily for four to eight weeks to fully suppress acid production, because not all acid-producing cells in your stomach are active at the same time. Taking them “as needed” won’t reliably control symptoms.
This is a key distinction. H2 blockers are fine for occasional flare-ups. PPIs are designed for a sustained course when heartburn has become a regular problem. If you’ve been popping antacids daily for weeks, switching to a PPI course is more effective than continuing to chase symptoms one dose at a time.
Long-term PPI use (months to years) has been loosely linked to reduced calcium and vitamin B12 absorption, a modest increase in fracture risk, and possible kidney effects in older adults. The absolute risk is small, and more recent analyses have questioned whether these associations hold up under scrutiny. Still, PPIs work best as a defined course rather than a permanent habit. If symptoms return after you stop, that’s a conversation worth having with your doctor about next steps.
What to Do at Night
Nighttime heartburn is often the worst because lying flat lets acid pool at the base of your esophagus for hours. Two physical changes can make a real difference.
First, elevate the head of your bed. This means raising the actual bed frame or using a wedge pillow, not stacking regular pillows (which just bends your neck without changing the angle of your torso). Start with about 10 centimeters (roughly 4 inches) of elevation. If that doesn’t help after a few weeks, increase to 20 centimeters (about 8 inches), which is the height used in clinical research.
Second, sleep on your left side. Your stomach curves to the left, so when you lie on that side, the opening between your stomach and esophagus sits above the pool of acid rather than below it. This simple positional change reduces the amount of acid that reaches your esophagus during the night. Right-side sleeping does the opposite, making reflux worse.
Foods That Make Heartburn Worse
Certain foods relax the muscular valve at the top of your stomach, the one that’s supposed to keep acid from traveling upward. They also slow digestion, so food sits in your stomach longer and produces more acid. The most common offenders include fried and fatty foods, fast food, pizza, bacon, sausage, cheese, and heavily salted or processed snacks like potato chips.
Other triggers work through different mechanisms but produce the same result: tomato-based sauces, citrus fruits, chocolate, peppermint, carbonated drinks, and spicy foods (especially chili powder, black pepper, and cayenne). You don’t necessarily need to eliminate all of these permanently. Pay attention to which ones consistently precede your worst episodes, and cut those first.
Timing matters as much as food choice. Eating within two to three hours of lying down is one of the most reliable ways to trigger nighttime reflux. Smaller, more frequent meals also put less pressure on that stomach valve than large ones.
Habits That Reduce Pressure on Your Stomach
Anything that increases pressure inside your abdomen pushes stomach contents upward. Tight belts, waistbands, and shapewear can worsen heartburn mechanically. So can bending over frequently after eating, which is worth noting if your job involves physical labor or you tend to exercise right after meals.
Excess weight around the midsection is one of the strongest predictors of chronic heartburn. Even modest weight loss (10 to 15 pounds for someone who is overweight) can noticeably reduce reflux frequency, because it directly lowers the pressure pushing acid toward your esophagus.
Smoking relaxes the lower esophageal valve and increases acid production simultaneously. Alcohol does something similar, particularly wine and spirits. Both are worth reducing or eliminating if heartburn is a recurring problem.
When Heartburn Isn’t Just Heartburn
Most heartburn is uncomfortable but not dangerous. However, the American Gastroenterological Association identifies several alarm symptoms that need prompt medical attention: difficulty swallowing food or liquids, choking while eating, unintentional weight loss, vomiting blood or material that looks like coffee grounds, and red or black stools. Chest pain that comes on with physical activity like climbing stairs also warrants evaluation, because it can be hard to distinguish from cardiac pain.
It’s also worth knowing that some people with persistent heartburn symptoms don’t actually have excess acid. A condition called functional heartburn produces the same burning sensation, but testing shows normal acid levels and no damage to the esophagus. This matters because PPIs and antacids won’t help much if acid isn’t the problem. If you’ve tried a full course of acid-suppressing medication without improvement, the issue may be how your esophagus processes normal sensations rather than how much acid your stomach makes. Identifying this distinction usually requires specialized testing with a gastroenterologist.