Yes, mental stress can cause or worsen acidity symptoms like heartburn, a burning feeling in the upper abdomen, and regurgitation. The link is mostly through how the gut senses and handles acid, not through stress making a lot more acid.
How stress contributes
- Heightened sensitivity. Stress and anxiety make the esophagus and stomach more sensitive. Normal amounts of acid, bile, or stretching can then feel like burning or pain. Yamada's Textbook of Gastroenterology calls this visceral hypersensitivity. It also describes a psychological hypothesis for functional dyspepsia, in which symptoms relate to depression, anxiety, or somatization (Yamada's Textbook of Gastroenterology, 7th ed., functional dyspepsia pathogenesis).
- Functional dyspepsia and functional heartburn. Harrison's notes that heartburn can come from esophageal hypersensitivity or hypervigilance, not only from true acid reflux (Harrison's Principles of Internal Medicine 22E, Differential Diagnosis, GERD). The Textbook of Family Medicine lists emotional stress and psychological factors among the contributors to functional dyspepsia (Textbook of Family Medicine 9e, Dyspepsia).
- Real GERD can flare. A prospective study found that severe, sustained life stress over the previous 6 months predicted more heartburn over the following 4 months. A Sri Lankan national survey also described mental stress as a recognized risk factor for GERD symptoms. This is observational evidence, so it shows an association and does not prove cause.
- Indirect effects. Stress often goes with poor sleep, skipped or irregular meals, more alcohol, smoking, caffeine, and NSAID or painkiller use. These can all promote reflux or dyspepsia. Harrison's lists ethanol, tobacco, and caffeine as causes of lower esophageal sphincter relaxation and reflux, and analgesics as a cause of dyspepsia.
Severe physical stress is different. Critical illness, major burns, or major surgery can cause stress-related mucosal injury, meaning gastric erosions and ulcers (Katzung's Basic and Clinical Pharmacology, 16th ed., Drugs Used in Acid-Peptic Diseases). This is a physiological stress response in very sick patients and is not the same as everyday emotional stress.
What helps
- Manage the stress itself. Options include regular sleep, exercise, diaphragmatic breathing, mindfulness, and cognitive behavioral therapy or hypnotherapy. Harrison's says psychological treatments can help refractory heartburn due to hypersensitivity or functional dyspepsia.
- Eat regular, smaller meals. Avoid late-night meals, and cut back on alcohol, smoking, caffeine, and trigger foods.
- Antacids, H2 blockers, or PPIs can help with true acid-related symptoms. If symptoms keep returning, see a doctor.
See a doctor promptly if you have any of these
- Difficulty or pain swallowing
- Unintended weight loss
- Persistent vomiting
- Black stools or vomiting blood
- Anemia
- Symptoms starting after age 50-55
- Symptoms that don't improve with treatment
Chest pain should also be checked, because heart causes need to be excluded.
I did not find recent meta-analyses that overturn this. The three most recent ones my search returned were about reflux and sleep problems, and about anxiety and depression in gastroparesis versus functional dyspepsia, so they only partly overlap with your question.