Gastritis: the burning stomach lining, and what calms it
Last updated September 3, 2026.
Gastritis is inflammation of the stomach lining, and it usually announces itself as a burning or gnawing pain in the upper middle abdomen. It comes on fast (acute gastritis, often from painkillers, alcohol, or infection) or grumbles for years (chronic gastritis, most often from the bacterium H. pylori). Most cases respond well to acid suppression and removing the cause; the job is finding which cause is yours.
What does it feel like?
The classic picture: a burning, gnawing, or aching pain in the upper abdomen just below the breastbone, often worse on an empty stomach or at night, sometimes briefly relieved by eating. Nausea, bloating, early fullness, loss of appetite, and frequent belching round it out. Many people with chronic H. pylori gastritis feel nothing at all for years. The symptom that changes the stakes is bleeding: black, tarry, foul-smelling stools or vomit that looks like coffee grounds signal a bleeding stomach lining, and that is an emergency pattern, not a wait-and-see one.
What causes it?
Two causes dominate. H. pylori, a bacterium carried by roughly half the world's population, colonizes the stomach lining and drives most chronic gastritis and most ulcers; it is found by a stool antigen test, breath test, or biopsy, and cured with a 1-2 week course of two antibiotics plus a strong acid suppressor. The second is NSAID painkillers (ibuprofen, naproxen, aspirin), which strip the stomach's protective mucus layer; regular use, especially combined with steroids, blood thinners, or SSRIs, raises the bleeding risk. Heavy alcohol, severe physical stress (critical illness, major burns), and autoimmune attack on the stomach lining (which also causes B12 deficiency) complete the main list.
What actually helps?
- Acid suppression: a proton pump inhibitor like omeprazole 20-40mg daily for 4-8 weeks lets the lining heal. Antacids and H2 blockers (famotidine) patch symptoms between doses.
- Test and treat H. pylori: if the bacterium is found, eradication therapy resolves the gastritis at its root and cuts ulcer recurrence dramatically. A confirmation test after treatment checks it worked.
- Rethink the painkillers: stop or minimize NSAIDs; switch routine pain relief to acetaminophen. If NSAIDs are unavoidable, a protective PPI alongside is the standard move.
- Cut the irritants: alcohol, smoking, and the personal food triggers (often spicy, fatty, or acidic items) while the lining heals.
- Smaller, earlier meals: large late meals provoke symptoms; nothing exotic is required beyond that.
When is it an emergency?
Vomiting blood (red or coffee-ground), passing black tarry stools, sudden severe abdominal pain, or feeling faint, cold, and clammy with a racing heart all mean emergency care now: those are bleeding or perforation signs. Persistent vomiting, unintentional weight loss, difficulty swallowing, or new symptoms over age 55 warrant prompt investigation with endoscopy rather than months of self-treatment. Anemia that will not explain itself is another reason to look at the stomach. Pymander's escalation routing is built and tested specifically for this class of decision; see the safety architecture working paper.
What a Pymander AI doctor consult looks like
Illustrative example, not a real member's messages.
Common questions
Is gastritis the same as an ulcer?
They are points on the same spectrum. Gastritis is inflammation of the stomach lining; an ulcer is when the injury erodes through the lining into a crater. The same two causes (H. pylori and NSAIDs) drive both, and untreated gastritis can progress to ulceration. Symptoms overlap heavily, though ulcer pain is often more localized and patterned. The distinction matters most for severity: ulcers bleed and perforate, so black stools or vomiting blood raises the stakes from discomfort to emergency.
How do I get tested for H. pylori?
Three standard routes. The stool antigen test is the usual first choice: accurate, cheap, non-invasive. The urea breath test is similarly accurate. Endoscopy with biopsy is used when your age or symptoms warrant a direct look at the stomach. One practical rule: stop PPIs (omeprazole and relatives) for 2 weeks before the stool or breath test, because acid suppression can produce false negatives. After eradication treatment, a repeat test confirms the bacterium is actually gone.
Can gastritis be cured, or does it keep coming back?
Curable when the cause is curable. Eradicating H. pylori resolves the gastritis permanently in most patients, and stopping NSAIDs fixes painkiller-driven cases. Autoimmune gastritis is the chronic exception, managed rather than cured, with B12 monitoring as its key task. Recurrence after successful treatment usually means a new cause: restarted NSAIDs, heavy alcohol, or (less commonly) reinfection with H. pylori, which happens in only a few percent of adults per year.
What foods should I avoid with gastritis?
There is no universal gastritis diet, but the irritant list is consistent: alcohol (a direct stomach toxin), and whatever foods you have noticed provoked your symptoms, commonly spicy dishes, acidic foods (citrus, tomato, vinegar), fatty meals, caffeine, and carbonated drinks. Eat smaller meals, avoid eating within a few hours of lying down, and do not skip meals entirely, since an empty stomach can hurt more. The evidence for bland-diets-heal-gastritis is thin; removing triggers while acid suppression does the healing is the realistic plan.
Can stress cause gastritis?
Not in the everyday sense; the idea that work stress burns holes in the stomach is outdated. The stress gastritis that is real is physiologic stress from critical illness, major surgery, severe burns, or trauma, which can erode the lining within hours. Ordinary psychological stress worsens symptom perception and drives the behaviors that do cause gastritis (more alcohol, more painkillers, irregular meals), but H. pylori and NSAIDs cause most cases. Treating the actual cause outperforms stress management alone.
Is gastritis a cancer risk?
Chronic H. pylori gastritis is the main risk factor for stomach cancer, which is the strongest argument for testing and eradicating the bacterium rather than just suppressing symptoms. The absolute risk for any individual carrier remains small, and eradication reduces it. Autoimmune gastritis also carries a modestly elevated risk and gets periodic endoscopic surveillance in some systems. Acute gastritis from a weekend of painkillers or alcohol carries no meaningful cancer risk. This is a reason to test, not to panic.
