On this page
Heartburn and a nagging ache or burning in the upper stomach can feel confusingly similar, even though they come from different mechanisms. Sam can't tell you which one you have, but in its symptom diary you log each day with symptoms, and your monthly report shows them for your doctor.
Two different mechanisms
Heartburn happens when stomach acid flows back up into the esophagus (reflux). The classic sign is a burning sensation behind the breastbone, often triggered by large or fatty meals, lying down soon after eating, or certain drinks.
Gastritis is inflammation of the stomach lining itself. Common causes include infection with Helicobacter pylori, regular use of NSAID painkillers, alcohol, or less commonly an autoimmune reaction. The pain tends to sit higher, in the upper abdomen, and is less clearly tied to posture or meal timing than classic heartburn.
Why telling them apart is hard
The two conditions can coexist, and their symptoms overlap: bloating, nausea, a burning or pressing feeling in the upper abdomen. Per the American College of Gastroenterology and Germany's DGVS guideline, a reliable distinction usually requires an endoscopy or a targeted H. pylori test, not symptoms alone.
That also means over-the-counter antacids, which can ease both conditions temporarily, don't tell you anything about which one is actually driving your symptoms.
What your doctor looks for
A gastroenterologist typically asks about duration, triggers (meals, medications, alcohol), accompanying symptoms, and whether any warning signs are present, like unintended weight loss, vomiting, black stool, or difficulty swallowing. Those warning signs point toward a prompt endoscopy. Sleep and heartburn: what your Apple Health data can show with reflux covers which signals are worth tracking in the meantime.
In Sam
Log reflux episodes in Sam and take a report to your appointment
You can show your doctor how often heartburn came and what surrounded it, because the reflux program keeps each episode in one diary.
- Instead of memory: you note the symptom type and severity, and optionally what you ate, the circumstances and whether it woke you at night.
- Instead of a notes app: the doctor report PDF counts reflux days, episodes and nights reflux woke you, plus your own food and timing tags as counts, without causes.
- Instead of sleep and alcohol in your head: they stand beside the diary as your own values.
Which of the two conditions you have only an exam can show, and the program starts once you confirm a doctor's diagnosis.
Sam is a wellness companion, not a medical device. No diagnosis, no replacement for medical advice.

More on reflux (GERD)
Sources
Updated: October 2026- American College of Gastroenterology (ACG): Clinical Guideline for the Management of Gastroesophageal Reflux Disease
- Deutsche Gesellschaft fuer Gastroenterologie, Verdauungs- und Stoffwechselkrankheiten (DGVS): Guideline on Helicobacter pylori and Gastroduodenal Ulcer Disease