The short answer#
For once-in-a-while heartburn, the fastest relief is an antacid, which neutralizes acid already in the stomach within minutes. For heartburn that shows up two or more days a week, the self-care steps with the best evidence are losing excess weight, leaving two to three hours between eating and lying down, and raising the head of the bed. An H2 blocker such as famotidine starts working within about an hour and covers nighttime symptoms; a proton pump inhibitor (PPI) is the most effective option for frequent or severe reflux but takes a few days of daily use to reach full effect. If simple measures fail after a few weeks, or you have warning signs, see a clinician.
Key points#
- Antacids act fastest (within minutes) but wear off within about an hour, so they suit occasional heartburn, not daily control.
- The lifestyle changes with the most consistent support are weight loss, a two to three hour gap between the last meal and lying down, and head-of-bed elevation.
- H2 blockers (famotidine) and PPIs (omeprazole, esomeprazole, pantoprazole, lansoprazole) both cut acid; PPIs suppress it more completely and heal an inflamed esophagus in most people.
- Frequent typical heartburn without warning signs usually does not need testing first. Guidelines support an eight-week trial of a once-daily PPI.
- Warning signs (trouble swallowing, unintended weight loss, persistent vomiting, black or bloody stools, anemia) mean you should be evaluated, not self-treat.
- PPIs are effective and generally safe. Most reported long-term harms come from observational data that cannot prove cause, but PPIs still deserve the lowest effective dose and periodic review.
- Sudden chest pressure, especially with sweating, shortness of breath, or arm or jaw pain, is a possible heart attack, not heartburn. Call emergency services.
What causes heartburn?#
Heartburn is the burning feeling behind the breastbone that happens when stomach contents wash back up into the esophagus. A ring of muscle at the bottom of the esophagus, the lower esophageal sphincter, normally keeps acid down. When it relaxes at the wrong moment, or when pressure inside the abdomen pushes contents upward, acid irritates the esophageal lining and you feel the burn. Occasional heartburn is common and usually harmless. Heartburn that happens more than about twice a week, or that interferes with sleep and daily life, is the hallmark of gastroesophageal reflux disease (GERD). Common contributors include extra abdominal weight, large or late meals, specific trigger foods, smoking, alcohol, and lying flat too soon after eating.
Which self-care steps actually reduce heartburn?#
Self-care is the sensible first move, and it is worth being honest that the evidence behind most single measures is modest. Still, a handful of changes have earned their place, and they carry no drug cost or side effects.
Lose excess weight if you carry it. This has the strongest support of any lifestyle change. Extra weight around the middle raises pressure on the stomach and pushes acid upward. In small trials, weight loss lowered the time the esophagus spent in contact with acid and reduced symptoms, and even losing a modest amount can help.
Leave two to three hours between eating and lying down. Late evening meals reliably increase nighttime reflux, because a full stomach and a horizontal body work against you. Finishing dinner earlier, and skipping the late snack, is one of the more consistent wins.
Raise the head of the bed. For people whose symptoms hit at night, tilting the whole upper body helps gravity keep acid down. Use blocks under the bed legs or a foam wedge to raise the head of the bed roughly six to eight inches. Stacking extra pillows does not work as well, because it bends the neck rather than raising the torso.
Cut the foods that reliably trigger you, not all of them. Blanket elimination diets are not well supported. A smarter approach is to notice which foods set off your own symptoms and trim those. Common culprits include fatty or fried foods, chocolate, peppermint, coffee and other caffeine, carbonated drinks, alcohol, and spicy or acidic foods.
Stop smoking and go easy on alcohol. Both relax the sphincter and worsen reflux. Some people also find relief sleeping on the left side and wearing looser clothing around the waist.
If self-care alone does not settle things, pairing these habits with the right medicine, and using medicines the way our companion piece on Medication Safety and Adherence lays out, tends to work better than either approach on its own.
Antacid or PPI for heartburn?#
These medicines are not interchangeable. They differ in how fast they work, how long they last, and what job they do best.
| Option | Starts working | Lasts | Best for |
|---|---|---|---|
| Antacids (calcium carbonate, magnesium or aluminum salts) | Within minutes | About 1 hour | Occasional, predictable heartburn; fast rescue for breakthrough symptoms |
| H2 blockers (famotidine) | About 30 to 60 minutes | Up to about 12 hours | Mild to moderate or mainly nighttime symptoms; can be taken ahead of a known trigger |
| PPIs (omeprazole, esomeprazole, pantoprazole, lansoprazole) | Full effect over 1 to 4 days of daily use | About 24 hours per dose | Frequent (two or more days a week) or severe heartburn, and healing an inflamed esophagus |
Antacids neutralize acid that is already there, which is why they are fast but short-lived. H2 blockers lower how much acid the stomach makes and are handy for evening symptoms. PPIs shut down acid production most completely and are the treatment of choice for frequent or severe GERD; they work best taken 30 to 60 minutes before the first meal of the day, not at bedtime. One practical note: ranitidine (the old Zantac) was pulled from the US market in 2020 over a contaminant concern, so famotidine is now the standard over-the-counter H2 blocker.
For most people with frequent typical heartburn and no warning signs, guidelines back an eight-week course of a once-daily PPI. If symptoms clear, the goal is to step down to the lowest dose that keeps you comfortable, or stop, rather than stay on it by default. Using an antacid for occasional breakthrough while a PPI takes effect is reasonable; relying on daily antacids for months is not, and is a sign you need a better plan.
When do you need testing for reflux?#
Most people with classic heartburn and regurgitation do not need any test before starting treatment. The guideline approach is to treat empirically and reserve testing for cases that do not fit or do not respond. An upper endoscopy is warranted when warning signs are present, when a proper PPI trial fails, or when someone with long-standing symptoms has risk factors for Barrett's esophagus. Reflux monitoring (a pH study) is used for unclear diagnoses or before considering anti-reflux surgery. If you want the fuller picture of what each test shows and when it is worth doing, see our explainer on How the GERD Diagnosis and Reflux Testing Actually Work. This topic also fits within the broader area of Kidney, liver and digestive health.
What about long-term PPI concerns?#
PPIs are among the more studied medicines, and the headline is reassuring: they are effective and generally safe. Observational studies have linked long-term use to kidney disease, dementia, fractures, low magnesium or vitamin B12, and certain gut infections. The catch is that observational data cannot separate the drug from the reasons people take it, and for several of these outcomes, randomized evidence and later analyses have not shown a causal link. The associations that look most plausible relate to nutrient absorption and infection risk, not dementia or fractures. The sensible response is not fear but stewardship: take a PPI when there is a clear reason, use the lowest effective dose, and review the need periodically with your clinician. People at high risk of upper gastrointestinal bleeding, or with conditions such as Barrett's esophagus, should not stop on their own. Our piece on PPI Deprescribing and the Evidence on Long-Term Harms walks through how to taper safely.
When to seek care#
Call emergency services right away for sudden chest pressure or pain, especially with sweating, shortness of breath, nausea, or pain spreading to the arm, back, or jaw. That pattern can be a heart attack, which is easy to mistake for heartburn.
Book a prompt medical evaluation, rather than continuing to self-treat, if you have any of these:
- Trouble swallowing, painful swallowing, or a sense of food sticking
- Unintended weight loss
- Persistent vomiting, or vomiting blood or material that looks like coffee grounds
- Black, tarry, or bloody stools
- Known or suspected anemia (fatigue, pallor, low iron)
- Heartburn that keeps coming back despite several weeks of over-the-counter treatment
- New or worsening heartburn that starts later in life
For symptoms that persist or worry you, talk with a licensed clinician who can weigh your full history.
Sources and further reading
- ACG Clinical Guideline for the Diagnosis and Management of GERD (Katz et al., 2022)
- AGA Clinical Practice Update on De-Prescribing of Proton Pump Inhibitors (2022)
- Proton Pump Inhibitors, An Evidence-Based Review of Indications, Efficacy, Harms, and Deprescribing (Medicina, 2025)
- NIDDK, Treatment for GER and GERD in Adults
- MedlinePlus, GERD (Gastroesophageal Reflux Disease)