Heartburn stops fastest with an over-the-counter antacid, which neutralizes stomach acid within minutes. But if you’re dealing with heartburn regularly, quick fixes only get you so far. The burn you feel is acid from your stomach splashing into your esophagus, and the reasons it keeps happening range from what you ate to how you sleep to medications you might not suspect. Understanding the full picture gives you more tools than just reaching for a chalky tablet.
What Actually Causes the Burn
Your esophagus and stomach meet at a muscular ring called the lower esophageal sphincter, or LES. It opens when you swallow and closes to keep stomach contents where they belong. The dominant cause of acid reflux, in both healthy people and those with chronic reflux disease, is something called transient LES relaxation: the sphincter opens briefly when you haven’t swallowed anything, letting acid creep upward.1PubMed. The lower esophageal sphincter These relaxations happen to everyone. They become a problem when they happen too often, when the sphincter is weak at baseline, or when conditions like a hiatal hernia make the junction between esophagus and stomach less effective at holding things back.2PubMed. Overview of the mechanisms of gastroesophageal reflux
Anything that increases pressure inside your stomach or slows digestion raises the odds of reflux. Delayed gastric emptying, for example, keeps food sitting in the stomach longer, which increases the volume of material available to splash back up.3PubMed Central. Treatment Challenges in the Management of Gastroparesis-Related GERD Fatty meals lower LES pressure through a hormonal pathway: dietary fat triggers the release of a gut hormone called CCK, which relaxes the sphincter.4PubMed. Effect of medium- and long-chain triglycerides on lower esophageal sphincter pressure: role of CCK That’s why a greasy late-night meal is almost a recipe for heartburn.
The Fastest Over-the-Counter Options
If you need relief right now, antacids are the go-to. Products containing calcium carbonate, magnesium hydroxide, or aluminum hydroxide work by chemically neutralizing the acid already in your stomach. The relief is almost immediate because it’s a direct chemical reaction rather than a biological process that needs time to kick in. How well a given antacid works comes down to its acid-neutralizing capacity: formulations with higher capacity provide better symptom relief and a faster onset of action.5F1000Research. An expert opinion on antacids: A review of its pharmacological properties and therapeutic efficacy The effect is real but short-lived, typically lasting about 30 to 40 minutes before your stomach’s ongoing acid production overwhelms it.6Scientific African. Evaluation of acid neutralizing and buffering capacities of selected antacids in Ghana
Alginate-based products deserve a separate mention because they work differently. When alginate (a seaweed-derived compound) hits stomach acid, it forms a gel that floats on the surface of your stomach contents like a raft. Bicarbonate in the formula gets converted to carbon dioxide, which puffs up the gel into a foam that creates a near-neutral barrier between your stomach acid and your esophagus.7PubMed. Alginate-raft formulations in the treatment of heartburn and acid reflux In a study of patients with reflux disease, an alginate-antacid combination reduced acid reflux episodes to about 3.5 in the study window compared to 15 with a standard antacid alone, and the time before the first reflux episode jumped from about 14 minutes to over an hour.8PubMed. An alginate-antacid formulation localizes to the acid pocket to reduce acid reflux in patients with gastroesophageal reflux disease If your heartburn tends to flare up after meals, an alginate product is particularly well-suited because it targets the pool of unbuffered acid that forms on top of food in your stomach.
When You Need Something Stronger Than Antacids
H2 blockers like ranitidine and famotidine reduce how much acid your stomach produces in the first place. They’re slower than antacids: ranitidine at a standard dose takes about 55 minutes to significantly raise stomach pH, and famotidine at a lower dose can take around 90 minutes.9PubMed. Determination of the time of onset of action of ranitidine and famotidine on intra-gastric acidity The trade-off is that they last considerably longer than an antacid tablet. A single first dose can be effective for controlling acid and preventing food-related heartburn. The catch is that H2 blockers develop tolerance quickly. Multiple studies confirm that tolerance shows up as early as the second dose or second day of use.10PubMed Central. Histamine2-receptor antagonists: Rapid development of tachyphylaxis with repeat dosing In one trial, the acid-suppressing effect of famotidine dropped substantially by day 28, and similar declines were seen with ranitidine whether it was dosed once or multiple times daily.11PubMed. Tolerance to oral H2-receptor antagonists So H2 blockers work well as occasional, as-needed relief but become less reliable when used daily for weeks.
Proton pump inhibitors (PPIs) like omeprazole and lansoprazole are the strongest class of acid suppressors. They bind permanently to the acid pumps in your stomach lining, so their effect outlasts their time in your bloodstream by many hours.12PubMed Central. Pharmacology of proton pump inhibitors Unlike H2 blockers, PPIs don’t lose effectiveness with repeated dosing. In head-to-head comparisons, PPIs consistently outperform H2 blockers for heartburn relief. A Cochrane review found that PPIs were significantly more effective at achieving heartburn remission than H2 blockers across multiple trials.13Cochrane Database of Systematic Reviews. Short‐term treatments for gastro‐oesophageal reflux disease (GORD) In one trial comparing on-demand use, more than half of patients on an H2 blocker eventually failed treatment, versus about one in eight on a PPI.14PubMed. On-demand requirements of patients with endoscopy-negative gastro-oesophageal reflux disease: H2-blocker vs. proton pump inhibitor
PPIs are powerful, but they’re not instant. They need a few days to reach their full acid-suppressing effect, and variations in how your liver processes them can make the degree of acid suppression differ from person to person.15PubMed. Clinical pharmacology of proton pump inhibitors: what the practising physician needs to know They’re best taken 30 minutes before a meal so the drug is active when the acid pumps are most engaged.
Long-Term PPI Safety Concerns
PPIs are among the most commonly used medications in the world, and for people with frequent or severe reflux they can be transformative. But questions have been raised about long-term use. Observational studies have linked extended PPI use to a long list of potential issues, including bone fractures, kidney problems, gut infections, low magnesium, and even dementia.16PubMed Central. Adverse Effects Associated with Long-Term Use of Proton Pump Inhibitors The headlines can be alarming, but context matters. Most of these associations come from retrospective observational studies with low hazard ratios, which means the evidence isn’t strong enough to prove the drugs are actually causing these problems.17PubMed Central. Advantages and Disadvantages of Long-term Proton Pump Inhibitor Use Definitive causal relationships remain unestablished for most of these concerns.18Journal of Neurogastroenterology and Motility. Potential Risks Associated With Long-term Use of Proton Pump Inhibitors and the Maintenance Treatment Modality for Patients With Mild Gastroesophageal Reflux Disease
The practical takeaway: if you need a PPI to manage significant reflux disease, the benefits likely outweigh the theoretical risks. But if your heartburn is mild or infrequent, relying on lifestyle changes or using a PPI at the lowest effective dose for the shortest necessary time is sensible. Talk to your doctor before staying on one indefinitely, and don’t let the scary-sounding lists scare you off a medication that’s keeping you well if you genuinely need it.
Meal Timing and Eating Habits
One of the most impactful changes you can make doesn’t involve medication at all. In a study comparing the interval between dinner and bedtime, people who lay down less than three hours after eating were roughly seven and a half times more likely to experience reflux than those who waited four hours or more.19PubMed. Association between dinner-to-bed time and gastro-esophageal reflux disease That’s a massive effect size, larger than what many medications achieve.
How you eat matters almost as much as what you eat. A systematic review of dietary and lifestyle factors found that eating quickly, eating beyond fullness, snacking at midnight, and skipping breakfast were all independently associated with reflux, some with odds ratios above four.20PubMed Central. Dietary and Lifestyle Factors Related to Gastroesophageal Reflux Disease: A Systematic Review High-fat diets showed one of the strongest associations in that same review. The mechanism for fat is straightforward: it relaxes the LES through hormonal signaling, as described earlier. Reducing portion sizes, eating more slowly, and cutting back on heavy, greasy meals are all changes that address the physical triggers of reflux directly.
How You Sleep Changes Everything
Nighttime heartburn is often the most miserable kind, waking you up and ruining your sleep quality. Two adjustments can help substantially. The first is elevating the head of your bed by about six inches, either with a wedge pillow or blocks under the bedposts. Gravity alone keeps acid from pooling in your esophagus when you’re reclined.
The second is sleeping on your left side. Because of the stomach’s anatomy, lying on your left positions the esophagus above the stomach’s acid pool, while lying on your right does the opposite. A meta-analysis of studies on sleep position found that left-side sleeping significantly reduced both the time acid spent in the esophagus and the total acid clearance time, compared to right-side or back sleeping.21PubMed Central. Left lateral decubitus sleeping position is associated with improved gastroesophageal reflux disease symptoms: A systematic review and meta-analysis In a randomized controlled trial using an electronic device that encouraged patients to avoid sleeping on their right side, people in the treatment group had significantly more reflux-free nights compared to the sham group.22PubMed. Sleep Positional Therapy for Nocturnal Gastroesophageal Reflux: A Double-Blind, Randomized, Sham-Controlled Trial If you’re waking up with a sour taste or chest discomfort, switching sides is free and surprisingly effective.
Weight Loss and Reflux
Excess body weight, especially around the midsection, increases abdominal pressure and pushes stomach contents upward. Losing weight is one of the most evidence-backed strategies for reducing chronic heartburn. In a prospective trial of people who lost an average of about 13 kilograms over six months, the prevalence of reflux disease dropped from 37% to 15%, and about two-thirds of participants had complete resolution of their symptoms.23PubMed Central. Weight Loss Can Lead to Resolution of Gastroesophageal Reflux Disease Symptoms: A Prospective Intervention Trial
A large population-based study found a dose-dependent relationship: the more weight people lost, the better their reflux got. Among those with the most BMI reduction, the odds of losing reflux symptoms roughly doubled even without medication, and nearly quadrupled when weight loss was combined with at least weekly use of antireflux drugs.24American Journal of Gastroenterology. Weight Loss and Reduction in Gastroesophageal Reflux. A Prospective Population-Based Cohort Study: The HUNT Study A randomized clinical trial using a structured low-calorie diet similarly found that the diet group’s reflux symptoms improved significantly while the control group’s actually worsened.25PubMed. Dietary weight loss intervention provides improvement of gastroesophageal reflux disease symptoms-A randomized clinical trial You don’t need to reach an ideal weight for this to matter. Even modest loss helps.
Stress and the Perception of Heartburn
Here’s something that surprises a lot of people: stress can make heartburn feel worse without actually increasing the amount of acid reflux happening. In an experimental study where participants were exposed to a stressor, their cortisol and anxiety levels went up, but the number and duration of reflux episodes didn’t change. What did change was how intensely they perceived their symptoms. Stressed participants reported worse heartburn despite having the same objective amount of reflux as when they were calm.26PubMed. The effect of psychological stress on symptom severity and perception in patients with gastro-oesophageal reflux
The mechanism involves the brain’s processing of pain signals from the esophagus. Stress increases esophageal sensitivity by affecting both peripheral nerves and central brain areas that interpret pain signals. It can also increase the permeability of the esophageal lining, allowing even small amounts of acid to trigger nociceptors (pain-sensing nerve endings) more aggressively.27PubMed Central. The association between symptoms of gastroesophageal reflux disease and perceived stress: A countrywide study of Sri Lanka This disconnect between measured reflux and perceived symptoms helps explain why some people continue to feel heartburn even when pH monitoring shows their acid levels are well-controlled by medication. If you’ve ever noticed that your heartburn flares during stressful periods, it’s worth addressing the stress itself and not just adding more acid-suppressing drugs.
Medications That Can Trigger Reflux
Certain prescription and over-the-counter medications can promote heartburn through several routes: lowering LES pressure, slowing esophageal motility, or directly irritating the esophageal lining.28PubMed. Which drugs are risk factors for the development of gastroesophageal reflux disease? Common culprits include calcium channel blockers (used for high blood pressure), certain asthma medications, some sedatives, and nonsteroidal anti-inflammatory drugs like ibuprofen and aspirin. Bisphosphonates for osteoporosis are particularly known for causing esophageal irritation if the tablet doesn’t make it all the way to the stomach.
If your heartburn started or worsened around the time you began a new medication, mention this to your doctor. Sometimes switching to a different drug in the same class, changing the timing of your dose, or taking the medication with more water can resolve the problem entirely without needing to add an acid reducer.
Breathing Exercises and the Diaphragm
The diaphragm, the large muscle that drives your breathing, wraps around the esophagus where it passes through into the abdomen. This crural portion of the diaphragm acts as an external reinforcement of the LES, squeezing it shut during inhalation. A systematic review found that diaphragmatic breathing training has the potential to improve reflux symptoms in selected patients by strengthening this muscular contribution to the anti-reflux barrier.29PubMed Central. Breathing Exercises in Gastroesophageal Reflux Disease: A Systematic Review The evidence is still limited and the effect is probably modest compared to medication, but for people who prefer non-drug approaches, focused deep-breathing exercises targeting the diaphragm are low-risk and easy to do at home. A common protocol involves slow, deep belly breaths held for a few seconds, repeated for about 20 to 30 minutes daily.
Your Saliva Is Working Harder Than You Think
Saliva plays an underappreciated role in protecting your esophagus from acid. It’s slightly alkaline, so every time you swallow, you’re washing a small amount of buffer down the esophagus. Saliva also contains compounds including epidermal growth factor that help repair damaged esophageal tissue, along with glycoproteins that create a protective mucus layer.30PubMed Central. Role of Saliva in Esophageal Defense: Implications in Patients With Nonerosive Reflux Disease This is why chewing gum after a meal can sometimes ease heartburn: it stimulates saliva production, which speeds up the clearance of acid from the esophagus. Conditions that reduce saliva flow, including some medications, smoking, and certain autoimmune conditions, can make reflux symptoms worse for this reason.
Heartburn During Pregnancy
If you’re pregnant and dealing with heartburn, you have company. Reflux increases as pregnancy progresses, driven by rising levels of estrogen and progesterone that progressively relax the LES. By about 36 weeks, sphincter pressure tends to reach its lowest point, which is why heartburn often peaks in the third trimester.31PubMed Central. Evidence-based treatment recommendations for gastroesophageal reflux disease during pregnancy: A review The growing uterus also physically pushes the stomach upward, adding mechanical pressure to the hormonal problem.
The first-line approach during pregnancy is the same lifestyle advice: eat smaller meals, stay upright after eating, and avoid known triggers. For pharmacological relief, antacids (particularly calcium carbonate) are generally considered safe and are the usual first step. Alginate products are another option. If those aren’t enough, H2 blockers and PPIs can be discussed with your obstetrician. The safety data on these medications in pregnancy is generally reassuring, though the preference is always to use the minimum necessary.
When Heartburn Is a Warning Sign
Most heartburn is a nuisance, not a danger. But some symptoms alongside heartburn signal that something more serious may be going on and that you should see a doctor promptly. These red flags include:
- Unintended weight loss: losing weight without trying, especially combined with a loss of appetite.
- Difficulty swallowing: food feeling stuck or painful on the way down, which can suggest a narrowing or growth in the esophagus.
- Vomiting blood or dark stool: signs of bleeding in the gastrointestinal tract that warrant urgent evaluation.32PubMed Central. Evaluation of red flags minimizes missing serious diseases in primary care
- Persistent symptoms despite treatment: heartburn that doesn’t respond to PPIs at adequate doses for several weeks may not be acid reflux at all, or may indicate a complication like Barrett’s esophagus.
- New onset after age 50: new reflux symptoms appearing for the first time later in life increase suspicion for conditions that mimic heartburn.
Chest pain that’s truly from the heart can feel almost identical to heartburn, especially in women. If your chest pain comes with shortness of breath, sweating, pain radiating to your arm or jaw, or a sense of pressure, treat it as a cardiac emergency until proven otherwise.
Putting a Plan Together
The relief strategy that works best usually combines several approaches rather than relying on one. For occasional heartburn after a heavy meal, an antacid or alginate product handles it quickly. For heartburn that shows up several times a week, addressing meal timing, portion sizes, sleep position, and weight often reduces episodes enough to minimize or eliminate medication. When lifestyle changes alone aren’t cutting it, a PPI taken at the lowest effective dose is the most reliable pharmacological option. An H2 blocker works well for the occasional predictable trigger, such as taking one before a food you know bothers you, but isn’t the best choice for daily long-term use because of tolerance. And if stress is amplifying your symptoms, addressing it directly through relaxation techniques or even diaphragmatic breathing may do more than upping your medication dose.