In this article
- Key points
- What is heartburn, and what are the symptoms of reflux?
- What causes heartburn?
- What helps heartburn in everyday life?
- What can you do about heartburn at night?
- How can you reduce stomach acid?
- Magnesium for heartburn: what's behind it?
- When should you see a doctor about heartburn?
- Frequently asked questions about heartburn
- Sources
The key points at a glance
- What helps heartburn? Small changes often do: smaller portions, no late evening meal, raising the head end of your bed and, if you're overweight, losing a little weight.
- If that's not enough, there are effective medicines. Your GP or pharmacist can help you choose the right one.
- See a doctor promptly if you have difficulty swallowing, unintentional weight loss, signs of bleeding or chest pain.
- Magnesium is an ingredient in some heartburn remedies. As a food supplement, it has other roles, for example for muscles and nerves.
You've just had a rich, heavy meal, and then it starts: a burning behind the breastbone, sometimes with a sour taste rising into your mouth. In Western countries, up to 25 out of 100 people get these symptoms again and again1. It's mostly harmless, but it's a nuisance. This article explains what helps heartburn, what studies say about the well-known tips and when you need medical advice.
What is heartburn, and what are the symptoms of reflux?
Where the oesophagus (gullet) meets the stomach, there's a valve, a ring of muscle called a sphincter. It opens when you swallow and closes again afterwards. If it slackens, for example when the stomach is very full and stretched after a large meal, stomach acid rises and irritates the lining of the oesophagus1. You feel this as a burning that moves from the upper abdomen or from behind the breastbone up towards the throat1.
If this happens very often or very severely, it's known as gastro-oesophageal reflux disease (GORD). Besides heartburn, typical symptoms include acid regurgitation (sour-tasting burps), difficulty swallowing, a burning feeling in the throat or a bad taste in the mouth1. A dry, tickly cough or hoarseness can also be part of it, when stomach acid irritates the airways1.
What causes heartburn?
Why this valve doesn't close properly often remains unclear. In some people, the cause is a hiatus hernia, where part of the stomach slides up through the diaphragm1. Experts are also looking at whether being overweight, smoking and alcohol play a part1. Many people with heartburn notice that stress, certain foods, bending over or lying down make their symptoms worse1.
Some medicines can also make heartburn worse1. So don't stop a prescribed medicine on your own: mention your symptoms to your GP instead.
What helps heartburn in everyday life?
Not every tip has been studied well enough to say how much it helps2. They're still worth a try, because they cost little. The clearest evidence is for losing weight if you're overweight and for measures against heartburn at night3.
- Lose weight if you're overweight: in two studies, after people lost weight, the proportion of time with acid in the oesophagus fell, for example from 8.0% to 5.5%3.
- Eat smaller portions: very large or high-calorie meals can trigger symptoms2.
- Find your triggers: people with heartburn often don't tolerate certain foods well, for example coffee, chocolate, fatty or spicy food, citrus fruit or fizzy drinks2. Try leaving them out for a while and see what changes.
- Less alcohol, no smoking: both can help2. In a large observational study, people of normal weight had fewer reflux symptoms after they stopped smoking3.
- Stay upright: during and after a meal, stay upright for a while rather than lying down straight away4.
Not every tip helps everyone. Slim people who eat a low-fat diet can get heartburn too2, and it often takes some patience to find out what your personal triggers are2.
What can you do about heartburn at night?
Many people wake up at night with a burning feeling in the oesophagus2. If that sounds familiar, it's worth looking at the time between your evening meal and going to bed. In a study of 147 reflux patients and 294 people for comparison, those who went to bed less than three hours after their evening meal had about 7.5 times the odds of being in the reflux group compared with those who waited four hours or more5. This shows a link, but it doesn't prove cause and effect.
In studies with measurements, acid stayed in the oesophagus for longer while lying down after a late evening meal than after an early one3. Raising the head end of the bed reduced the proportion of lying time with acid contact from 21% to 15%3. Some people also prefer to lie on their left side, because the valve at the entrance to the stomach then sits higher2.
How can you reduce stomach acid?
If everyday measures aren't enough, medicines may be an option. Proton pump inhibitors slow down the production of stomach acid and are considered the first-choice drug treatment in the clinical guideline for doctors2,4. In studies, after two to eight weeks, 70 out of 100 people taking them had hardly any heartburn left, compared with 25 out of 100 taking a dummy treatment (placebo)2.
There are also medicines that bind acid in the stomach (antacids) and others that reduce the release of stomach acid in a different way2. Some of these are available from a pharmacy without a prescription2. Which medicine suits you, and how long you take it, is best discussed with your GP or pharmacist.
Magnesium for heartburn: what's behind it?
Magnesium is an ingredient in some remedies for heartburn and acid regurgitation6. These antacids are designed to bind and neutralise stomach acid2. A magnesium food supplement isn't intended for this, and there's no authorised health claim for magnesium in relation to heartburn7.
The authorised health claims cover other areas: magnesium contributes to normal muscle function and to normal functioning of the nervous system7. In addition, magnesium contributes to a reduction of tiredness and fatigue7. If you'd like to top up your magnesium intake for these reasons, our article comparing the different forms of magnesium explains the options.
If you already take a heartburn remedy that contains magnesium, ask your pharmacist whether an additional supplement is right for you. Don't take more than the recommended daily amount, and if you take any medicines, get medical advice first.
When should you see a doctor about heartburn?
Occasional heartburn after a big meal is mostly harmless1. If you get it very often or badly, or it doesn't improve despite the changes you've made, have it checked by a doctor. See a doctor promptly if you notice any of these warning signs4:
- Difficulty swallowing
- Unintentional weight loss
- Signs of bleeding in the digestive tract, for example blood in your stools
Frequently asked questions about heartburn
Which home remedies help with heartburn?
In a broader sense, the steps in this guide count as home remedies: smaller portions, no late evening meal, raising the head end of the bed and avoiding your personal triggers2. If you try other home remedies, notice whether they really help. If you get symptoms often, talk to your GP.
What can I do if I have heartburn right now?
Stay upright and don't lie down straight away4. Antacids from the pharmacy are used for quick relief when needed4. If the burning keeps coming back, have the cause checked.
How can I reduce stomach acid?
Stomach acid is necessary for digestion7. Heartburn happens when stomach acid rises into the oesophagus because the valve at the entrance to the stomach doesn't close properly1. Medicines slow the production of stomach acid, and you agree on these with your GP or pharmacist2.
Sources
- Institut für Qualität und Wirtschaftlichkeit im Gesundheitswesen (2024). Sodbrennen und Refluxkrankheit. gesundheitsinformation.de. Link
- Institut für Qualität und Wirtschaftlichkeit im Gesundheitswesen (2024). Wie wird Reflux behandelt? gesundheitsinformation.de. Link
- Ness-Jensen E, Hveem K, El-Serag H, Lagergren J (2016). Lifestyle Intervention in Gastroesophageal Reflux Disease. Clinical Gastroenterology and Hepatology 14(2):175-182.e3. DOI
- Katz PO, Dunbar KB, Schnoll-Sussman FH, Greer KB, Yadlapati R, Spechler SJ (2022). ACG Clinical Guideline for the Diagnosis and Management of Gastroesophageal Reflux Disease. The American Journal of Gastroenterology 117(1):27-56. DOI
- Fujiwara Y, Machida A, Watanabe Y, et al. (2005). Association between dinner-to-bed time and gastro-esophageal reflux disease. The American Journal of Gastroenterology 100(12):2633-2636. DOI
- National Institutes of Health, Office of Dietary Supplements (2026). Magnesium: Fact Sheet for Health Professionals. Link
- European Commission (2012). Commission Regulation (EU) No 432/2012 of 16 May 2012 establishing a list of permitted health claims made on foods, other than those referring to the reduction of disease risk and to children’s development and health (consolidated version of 17 May 2021). Link
This article is for general information only and should not replace medical advice. Food supplements are not a substitute for a balanced and varied diet and a healthy lifestyle.


