Heartburn relief comes down to three things: neutralizing the acid that’s already splashing up, reducing how much acid your stomach produces, and keeping that acid where it belongs. Most people can manage occasional heartburn with a combination of over-the-counter medications and simple habit changes, while frequent episodes may need a different approach.
Fast Relief: Antacids
If you need heartburn to stop right now, antacids are the quickest option. Products containing calcium carbonate, magnesium hydroxide, or aluminum hydroxide work by directly neutralizing the acid sitting in your stomach. They typically kick in within minutes. Calcium-based antacids do something extra: the calcium tightens the muscular valve between your esophagus and stomach and increases the wave-like contractions that push acid back down where it belongs.
Antacids are meant for occasional, short-term use. They treat the symptom in the moment but don’t prevent the next episode. If you’re reaching for them more than a couple of times a week, that’s a signal to look at other options.
Longer-Lasting Medications
Two types of over-the-counter drugs reduce how much acid your stomach makes in the first place. They work differently and are suited for different situations.
H2 blockers (like famotidine) partially reduce acid production and start working within an hour or so. They’re a good fit for predictable heartburn, such as the kind that hits after dinner. Over-the-counter versions should not be taken for longer than two consecutive weeks, and no more than two doses in 24 hours, without a doctor’s guidance. If your symptoms persist beyond that window, the heartburn needs a closer look.
Proton pump inhibitors (PPIs) are stronger and block acid production more completely, but they take several days to reach full effect. That makes H2 blockers a better choice for a one-off episode, while PPIs are designed for people dealing with frequent heartburn over a period of weeks. Long-term PPI use has been linked to reduced absorption of magnesium, calcium, iron, and vitamin B12. The FDA issued a safety alert connecting extended PPI use with an increased risk of hip, wrist, and spine fractures, likely because suppressing stomach acid makes calcium harder to absorb. These risks generally apply to months or years of continuous use, not short courses.
Foods That Make Heartburn Worse
Certain foods trigger heartburn through specific, well-understood mechanisms, not just because they’re “unhealthy.” Knowing which mechanism is at play helps you make smarter choices rather than blindly avoiding everything on a long list.
High-fat foods are the most reliable trigger for most people. Fat lowers the pressure of the valve at the top of your stomach, increases the rate at which that valve briefly opens on its own, and slows the speed at which your stomach empties. All three effects create more opportunities for acid to wash upward. Fried foods, pizza, burgers, and doughnuts are common culprits.
Spicy foods work differently. Capsaicin, the compound that makes peppers hot, slows stomach emptying. But spice also directly irritates esophageal tissue that’s already inflamed. If you’ve had heartburn recently, spicy food hitting that raw tissue will feel much worse than it would otherwise.
Coffee, alcohol, and carbonated drinks are frequent triggers as well. Citrus fruits like oranges can also provoke symptoms. Even high salt intake has been associated with heartburn, likely because it slows the stomach’s ability to move food along. If you’re trying to identify your personal triggers, fatty and spicy foods are the place to start.
Positioning Tricks That Actually Work
Gravity is one of the simplest and most effective tools for heartburn, especially at night. Sleeping on your left side places your esophagus above the level of your stomach, making it physically harder for acid to flow upward. Sleeping on your right side does the opposite: it positions the esophagus below the junction where the stomach connects to it, which encourages reflux and makes acid take longer to clear.
Elevating the head of your bed also helps. This doesn’t mean stacking pillows, which can bend your body at the waist and actually increase abdominal pressure. Instead, raise the entire head end of the bed by placing blocks or a wedge under the mattress so your torso is on a gentle slope. Avoiding meals within three hours of lying down is one of the most consistently recommended lifestyle changes, and it works because a full stomach simply has more contents available to reflux.
Ginger for Mild Symptoms
Ginger has a long history as a digestive aid, and clinical reviews support its role in reducing pressure on the valve between the esophagus and stomach while calming intestinal cramping and bloating. For mild, occasional heartburn, ginger tea or fresh ginger in food is a reasonable first step. It won’t match the potency of an antacid for a strong episode, but it can help settle things down when symptoms are low-grade.
Heartburn During Pregnancy
Heartburn is extremely common during pregnancy, and treatment follows a step-by-step approach. Lifestyle changes come first: eating smaller meals, staying upright for at least three hours after eating, and sleeping with the head elevated. If those aren’t enough, calcium-based antacids are the preferred medication. They carry an added benefit of helping prevent pregnancy-related high blood pressure and preeclampsia.
Antacids containing sodium bicarbonate should be avoided during pregnancy because they can cause fluid overload. High doses of magnesium trisilicate over long periods have been linked to breathing problems and low muscle tone in newborns. If calcium-based antacids aren’t controlling symptoms, a doctor can recommend next steps that are safe for both mother and baby.
Heartburn vs. Heart Attack
Heartburn and heart attacks can feel strikingly similar, and even experienced doctors sometimes can’t tell them apart from symptoms alone. That said, there are patterns worth knowing. Heartburn usually produces a burning sensation in the chest that shows up after eating, while lying down, or while bending over. It often comes with a sour taste in the mouth and tends to improve with antacids.
Heart attack pain is more commonly described as pressure, tightness, or squeezing in the chest or arms that may spread to the neck, jaw, or back. It can be accompanied by shortness of breath, cold sweat, lightheadedness, or sudden fatigue. Women are more likely than men to experience the less “textbook” symptoms like jaw pain, back pain, or nausea without obvious chest pain. If there’s any doubt about whether your chest discomfort is heartburn or something cardiac, treat it as cardiac until proven otherwise.
Signs That Heartburn Needs More Attention
Most heartburn is a nuisance, not a danger. But certain symptoms alongside heartburn point to something more serious. Difficulty swallowing, pain when swallowing, vomiting (especially with blood), unintentional weight loss, loss of appetite, or any sign of gastrointestinal bleeding all warrant prompt medical evaluation. These are considered alarm symptoms that need investigation to rule out complications like strictures, ulcers, or other conditions that go beyond simple acid reflux.
As a general rule, heartburn that responds to lifestyle changes or occasional antacids and happens less than twice a week is manageable on your own. Heartburn that persists beyond two weeks of over-the-counter treatment, wakes you up at night regularly, or starts interfering with eating and daily life has crossed into territory that benefits from a medical workup.