Peptic Ulcers and H. pylori: What Really Causes Them, and How to Manage Them
A short guide to peptic ulcers and H. pylori, covering what an ulcer is, why the main cause is not stress or spicy food, the symptoms and warning signs to watch for, how it is diagnosed, and how it is managed alongside your doctor.

What You May Be Living With
You feel a burning or gnawing pain high in your upper abdomen fairly often. Sometimes it comes when your stomach is empty, sometimes after you eat, and it can come with bloating, fullness, or nausea. Maybe you have chalked it up to spicy food or stress and reached for over the counter antacids again and again. But these symptoms can be a sign of a peptic ulcer, and its real cause is different from what many people assume.
The good news is that once the real cause is known, most peptic ulcers can be healed, and understanding how they work helps that care land where it should.
What an Ulcer Is, and What People Get Wrong
A peptic ulcer is an open sore in the lining of the stomach or the duodenum, the first part of the small intestine just past the stomach. It forms when the balance between stomach acid and the lining’s protection breaks down, letting acid wear through into a sore.
The old belief that ulcers come from stress or spicy food is largely a myth. Stress and spicy food can aggravate symptoms in some people, but they are not the main cause of ulcers.
The Real Cause
There are two main causes of peptic ulcers. The first is infection with a bacterium called Helicobacter pylori, or H. pylori, a common stomach infection found around the world that causes chronic inflammation of the lining and can lead to an ulcer. The second is regular use of NSAID painkillers, such as ibuprofen or aspirin, which interfere with the stomach lining’s protective mechanisms.
Symptoms and Warning Signs
The most common symptom is a burning or gnawing pain in the middle of the upper abdomen, below the breastbone, often related to meals, along with bloating, fullness, or nausea. Some ulcers stay silent until bleeding occurs.
Warning signs that mean you should seek urgent care right away include black, tarry stools or stools with blood, vomiting blood or coffee ground material, sudden severe abdominal pain, or feeling faint. These can point to bleeding or perforation and need urgent care. Do not wait to see how it plays out.
How It Is Diagnosed
Diagnosis and finding the cause need a doctor. A common step is testing for H. pylori, done through a breath test, a stool test, or a tissue sample taken during endoscopy, and in some cases a doctor may consider an upper endoscopy to look at the ulcer directly. Which test fits whom depends on symptoms, age, and risk factors, which a doctor assesses.
How It Is Managed
Management focuses on addressing the underlying cause and helping the ulcer heal, under a doctor’s care. If H. pylori is found, guidance from 2017 recommends eradicating it with a combination of several antibiotics together with acid suppression, following a regimen the doctor sets. Clearing the infection requires taking the full combination exactly as prescribed, not buying antibiotics on your own, taking leftovers, or using home remedies, because incomplete or incorrect use can fail to clear it and can drive antibiotic resistance.
If the cause is NSAID painkillers, a doctor may advise stopping or adjusting them along with acid reducing medicine. All medication decisions should be made together with a doctor, and do not stop a prescribed medicine on your own without asking.
Start Tomorrow, One Step First
If you have persistent upper abdominal pain, see a doctor for an assessment, and ask whether testing for H. pylori makes sense in your case. Another step you can take right away is to review how often you use NSAID painkillers and tell your doctor. And most importantly, do not ignore the warning signs of bleeding, because seeing a doctor early helps prevent serious complications.
This content is general information for health care, not advice that replaces seeing a doctor. Diagnosing and managing a peptic ulcer should always be done together with a doctor.
This summary is for understanding, not medical advice, and should be reviewed by a professional before being applied in real life. The full version includes complete reasoning and research.



Summary complete
This was the key-points summary
Want to understand why, and the research behind it? Read the full version.
Read the full reasoning and researchRead next
More in this category

Dietary Fiber, the Gut, and Metabolic Health: A Short Guide to LDL, Post-Meal Glucose, Microbes, and Fullness
A short guide to dietary fiber, the gut, and metabolic health, covering how soluble and viscous fiber is linked to lower LDL cholesterol, gentler post-meal glucose, short-chain fatty acids from gut microbes, and greater fullness, with the population-level effect sizes, the limits, who should be careful, and how to start adding fiber gradually with water, while treating every number as guidance to adjust with a doctor or dietitian.
Read article
Caffeine and Health: What It Is, How Much Is Reasonable, and Who Should Be Careful
A short guide to caffeine and health, covering how caffeine works, where it hides, the amount often cited as reasonable for most healthy adults, why too much or too late disrupts sleep and causes jitteriness, who should have less or none, and how to start looking after yourself, while treating every number as guidance a doctor tailors to you.
Read article
Celiac Disease: What It Is, How It Is Diagnosed, Why You Must Be Tested Before Quitting Gluten, and How to Manage It
A short guide to celiac disease, covering what it is, what gluten does to the small intestine, how wide the symptoms can be, how it is diagnosed, why testing must happen while you are still eating gluten, and how to start looking after yourself.
Read articleVerifiable
References for this article
- 1 Chey WD et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection (Am J Gastroenterol 2017, PMID 28071659) pubmed.ncbi.nlm.nih.gov
- 2 StatPearls (NCBI Bookshelf NBK534792): Peptic Ulcer Disease ncbi.nlm.nih.gov
- 3 NIDDK (NIH): Peptic Ulcers (Stomach Ulcers) niddk.nih.gov
Reviewed by Health Coach: A888