In this article
Most cases are due to gastro-oesophageal reflux disease. Care usually pairs changes in everyday habits with medicines that make the stomach produce less acid, such as proton pump inhibitors. Sometimes the burning stems from something else: an ulcer linked to Helicobacter pylori, a medicine, or a gullet that is unusually sensitive. Each of these needs a different approach.
This article provides a general overview of the treatment options for persistent heartburn, what is known about the effectiveness of each one, precautions for long-term use of medicines, and the situations in which endoscopic or surgical procedures are considered. It is not a substitute for medical assessment: the treatment, doses and duration are decided with the doctor, who knows your medical history.
Lifestyle measures
The 2022 American College of Gastroenterology (ACG) clinical guideline, led by Katz, recommends several measures with proven benefits: losing weight if you are overweight or obese, avoiding meals for two to three hours before bedtime and, for those with night-time symptoms, raising the head of the bed. Stopping smoking and avoiding foods that trigger symptoms for you are also recommended.
There is no need to follow a highly restrictive diet. Evidence for avoiding coffee, chocolate, citrus fruit or spicy foods across the board is weak, and the effect of these foods varies greatly between people. Keeping a symptom diary for a few weeks may help identify your personal triggers. To raise the head of the bed, use blocks under the bed legs or a wedge under the mattress; stacking pillows tends to bend the torso and may not help.
| Measure | Evidence | Who it is for |
|---|---|---|
| Weight loss | Proven benefit | People who are overweight or obese |
| Avoid meals for 2 to 3 hours before bedtime | Proven benefit | Everyone, particularly those with night-time symptoms |
| Raise the head of the bed | Benefit for night-time symptoms | People with heartburn or regurgitation when lying down |
| Stop smoking | Recommended | Smokers |
| Avoid trigger foods | Weak evidence, varies by individual | People who identify a clear link |
Antacids and alginates
Antacids neutralise acid already present in the stomach and relieve heartburn within minutes, but their effect is short-lived. Alginates form a type of layer over the stomach contents that reduces acid flowing upwards and may be useful after meals or at bedtime. They are suitable for mild, occasional symptoms.
These medicines do not treat inflammation of the oesophagus. If you need them every day, the condition should be assessed by a doctor. Some antacids contain sodium, aluminium, magnesium or calcium, which may be relevant for people with kidney disease, heart failure or high blood pressure. They can also interfere with the absorption of other medicines if taken at the same time. A pharmacist can help you choose a suitable product and space out the doses.
H2-receptor antagonists
H2-receptor blockers, such as famotidine, reduce acid production. They work more slowly than antacids and are less powerful than proton pump inhibitors. They may help with mild to moderate symptoms or, on a doctor's advice, be added at night for some people whose symptoms occur then.
With continuous use, the effect tends to decrease after a few weeks because tolerance develops. They are therefore usually used for short periods or intermittently. The choice between these medicines and proton pump inhibitors depends on the severity and type of symptoms.
| Group | How it works | Speed | When it is used |
|---|---|---|---|
| Antacids | Neutralise existing acid | Minutes | Occasional symptoms |
| Alginates | Barrier over stomach contents | Minutes | After meals, at bedtime |
| H2 antagonists | Reduce acid production | Around one hour | Mild symptoms, additional night-time treatment |
| Proton pump inhibitors | Strongly suppresses acid production | Takes days to reach maximum effect | Frequent reflux, oesophagitis |
Proton pump inhibitors
Proton pump inhibitors, such as Omeprazole, Esomeprazole, Pantoprazole, Lansoprazole or Rabeprazole, are the most effective medical treatment for reflux disease. For people with typical symptoms and no warning signs, the ACG guideline recommends an eight-week trial, taken 30 to 60 minutes before a meal, usually breakfast. Taking the medicine at the wrong time is one of the most common reasons it does not work.
Some of these medicines are available without a prescription in low doses and for short periods, but higher-dose, prolonged or continuous treatment should be supervised by a doctor and, in most cases, requires a prescription. If there is no response after eight weeks despite taking it correctly, the doctor will reassess and may request tests instead of simply increasing the dose.
How long to take them and how to stop
Once symptoms are controlled, the ACG recommends using the lowest effective dose. For people without severe oesophagitis or Barrett's oesophagus, the doctor may try reducing the dose, switching to intermittent or as-needed use, or stopping it altogether. Some people experience a temporary worsening of symptoms after stopping, and gradually reducing the dose may help, although evidence for this rebound effect is limited.
For people with severe oesophagitis (grade C or D) or Barrett's oesophagus, long-term maintenance treatment is usually recommended. Studies, most of them observational, have associated long-term use with several effects, including vitamin B12 and magnesium deficiencies, intestinal infections and fractures. The ACG guideline considers the quality of evidence for many of these associations to be low and states that, when there is a clear indication, the benefit outweighs the risk. The decision to continue or stop treatment must be made with the doctor, never on your own.
| Situation | Usual long-term approach |
|---|---|
| Symptoms controlled, no severe oesophagitis | Try reducing, using as needed or stopping, with the doctor |
| Severe oesophagitis (grade C or D) | Long-term maintenance treatment, as a rule |
| Barrett's oesophagus | Maintenance treatment and endoscopic surveillance |
| Symptoms always return after stopping | Reassessment and, sometimes, tests |
| Long-term use with other risk factors | The doctor may request vitamin B12, magnesium and a full blood count |
When treatment does not work
If symptoms persist despite taking the medicine correctly, the doctor will reassess the diagnosis. The cause may be treatment-resistant reflux, but it could also be functional heartburn, oesophageal hypersensitivity, eosinophilic oesophagitis, a motility disorder or another condition. At this stage, endoscopy and pH monitoring are often needed to choose the next step.
According to the ACG, switching from one proton pump inhibitor to another may be tried once, but there is no evidence to support repeated switches. The same guideline advises against prokinetic medicines, such as metoclopramide, for treating reflux without delayed stomach emptying because of their adverse effects. In functional heartburn, prescription medicines that modify oesophageal sensitivity may be used.
Surgery and endoscopic procedures
For people whose reflux has been confirmed by tests and who do not respond well to medicines, cannot tolerate them or prefer not to take them for years, surgical and endoscopic options are available. The most common operation is fundoplication, in which the upper part of the stomach is wrapped around the bottom of the oesophagus to strengthen the barrier against reflux, often combined with repair of a hiatus hernia. There are also devices that reinforce the sphincter and endoscopic techniques, although these have more restricted indications.
Before any of these procedures, the ACG recommends confirming reflux with objective tests and carrying out manometry to rule out motility disorders. For people with severe obesity, bariatric surgery with gastric bypass may be the most appropriate option. These decisions are made at a specialist appointment, weighing up the benefits and possible side effects, such as difficulty swallowing or abdominal bloating.
Helicobacter pylori, pregnancy and other situations
When heartburn is actually dyspepsia with Helicobacter pylori infection, treating the infection with a combination of antibiotics and a proton pump inhibitor may resolve symptoms and prevent ulcers. The Maastricht VI/Florence consensus, led by Malfertheiner, recommends choosing the regimen according to local antibiotic resistance and confirming eradication after treatment with a breath or stool test. The same consensus states that eradication does not generally cause or worsen reflux. These antibiotics are only available on prescription.
Heartburn is very common during pregnancy. Treatment usually begins with lifestyle measures, antacids and alginates, and any other medicine should be agreed with a doctor or pharmacist. For older people and those taking several medicines, checking whether any of them are making heartburn worse is part of treatment.
| Situation | General approach | Who decides |
|---|---|---|
| Dyspepsia with H. pylori | Eradication treatment and confirmation | Doctor, with a prescription |
| Heartburn during pregnancy | Lifestyle measures, antacids, alginates | Doctor or pharmacist |
| Heartburn caused by a medicine | Review your medication | Doctor |
| Reflux and severe obesity | Weight loss; consider bariatric surgery | Doctor and specialist team |
Red flags during treatment
Even with treatment, some symptoms require prompt medical attention: difficulty or pain when swallowing, unexplained weight loss, persistent vomiting, anaemia in blood tests or symptoms beginning later in life. Vomit containing blood or resembling coffee grounds, black stools, and chest pain with shortness of breath, sweating or pain spreading to the arm or jaw require a call to 112.
An improvement in symptoms with medication does not rule out other conditions, so it is important not to continue treatment on your own without reassessment.
At Clínica Alegre in Setúbal and Seixal, you can have laboratory tests and ask our team any questions about the results.
Frequently asked questions
When should I take my stomach-protecting medicine?
As a rule, proton pump inhibitors are taken 30 to 60 minutes before a meal, usually breakfast, unless your doctor advises otherwise.
Can I take stomach-protecting medicines for years?
This is recommended in some situations. In others, the doctor will try reducing or stopping them. The decision is individual.
Will my heartburn return if I stop the medicine?
It may return, particularly during the first few days. Gradually reducing the dose and medical support can help.
Are antacids enough?
Yes, for occasional symptoms. If you need them every day, speak to your doctor.
Does treating Helicobacter pylori cure reflux?
No. The bacterium does not cause reflux, but it is important to treat it when present.
When is surgery considered?
When reflux has been confirmed by tests and medicines do not work, cannot be tolerated or the person prefers not to take them long term.
Can I take heartburn medicine during pregnancy?
Some medicines can be taken, but the choice should be made with a doctor or pharmacist.
Did you enjoy this article?
Scientific references2
- Katz PO, Dunbar KB, Schnoll-Sussman FH, et al. ACG Clinical Guideline for the diagnosis and management of gastro-oesophageal reflux disease. Am J Gastroenterol. 2022;117(1):27–56.
- Malfertheiner P, Megraud F, Rokkas T, et al. Management of Helicobacter pylori infection: the Maastricht VI/Florence consensus report. Gut. 2022;71(9):1724–1762.





