The Biology of an Ulcer: Causes and Look-Alikes
At a Glance
Peptic ulcer disease most often results from H. pylori infection, NSAID or aspirin use, or both. Identifying the cause matters because blood thinners and some other medicines can increase bleeding risk, and heart attack symptoms can resemble ulcer pain.
Understanding why an ulcer develops is the first step toward healing. Your stomach and duodenum (the start of the small intestine) are naturally harsh environments, filled with powerful acids designed to break down food [1]. To protect itself, your body maintains a sophisticated defense system, including a thick layer of mucus and compounds to neutralize acid [2]. Peptic Ulcer Disease (PUD) happens when this defense system is compromised, allowing acid to eat away at the tissue underneath [3].
The Two Main Culprits
Most peptic ulcers are caused by one of two factors—or a combination of both.
1. Helicobacter pylori (H. pylori)
H. pylori is a type of bacteria that has evolved to survive in the stomach’s extreme acidity [4]. It uses a special enzyme to create a less-acidic “cloud” around itself, allowing it to burrow into the protective mucus layer [4]. Once there, it attaches to the stomach lining and triggers chronic inflammation [5]. This inflammation weakens the mucosal barrier, making the area vulnerable to acid damage [6]. Some specific strains of the bacteria are associated with greater inflammation, creating an open sore [7][8].
2. NSAIDs and Aspirin
Non-Steroidal Anti-Inflammatory Drugs (NSAIDs), such as ibuprofen, naproxen, and aspirin, are the second most common cause of ulcers [1]. While these medications reduce pain and inflammation in your body, they also stop the production of prostaglandins—substances that are vital for maintaining the stomach’s protective mucus and blood flow [2][3]. Without enough prostaglandins, the stomach lining cannot defend against acid as effectively [9].
Important Note: Taking NSAIDs with food might reduce general stomach upset, but it does NOT remove the risk of developing an ulcer. Do not use NSAIDs or aspirin regularly without a clinician’s advice.
Risk Multipliers: When Factors Combine
While one cause is enough to create an ulcer, your risk increases significantly when multiple factors are present at once.
- The Combined Risk: If you have an H. pylori infection and regularly take NSAIDs or aspirin, your risk of ulcer bleeding is much higher than with either factor alone [10].
- Other Medications: Taking steroids alongside NSAIDs can increase the risk of ulcer formation. Furthermore, if you take blood thinners (anticoagulants) or certain antidepressants (like SSRIs), your risk of major bleeding from an ulcer is heavily amplified, even though these drugs don’t necessarily cause the ulcer itself [11][10].
- Comorbidities: Having other severe health issues, like advanced age, can make managing PUD and its potential complications more difficult [12][13].
Look-Alike Conditions
Because the upper abdomen contains many vital organs, several other conditions can mimic the “burning” or “gnawing” pain of an ulcer. It is important for your doctor to rule these out:
- GERD (Acid Reflux): Chronic heartburn and regurgitation can feel like ulcer pain, but the damage is usually in the esophagus (food pipe) [14].
- Gastritis: This involves inflammation of the stomach lining. Some forms of gastritis are “erosive” and can cause shallow breaks in the tissue, but a peptic ulcer is a deeper defect [15]. (Neither should be confused with a perforation, which is a severe emergency where a hole goes entirely through the organ wall).
- Gallbladder Issues: Gallstones or gallbladder inflammation typically cause pain in the upper right side of the belly, often after a fatty meal [16].
- Functional Dyspepsia: Some people experience chronic stomach pain and fullness without any visible sores or infection [17].
- Myocardial Infarction (Heart Attack): CRITICAL WARNING: A heart attack can sometimes present as severe upper stomach pain rather than chest pain, especially in older adults or women. If your pain is pressure-like, or accompanied by shortness of breath, sweating, severe nausea, faintness, or radiates to your arm, jaw, shoulder, or back, seek emergency medical care immediately [15].
By identifying the exact cause and ruling out these “look-alikes,” your care team can create a treatment plan that doesn’t just mask the pain, but actually fixes the underlying problem [18].
Common questions in this guide
What usually causes peptic ulcer disease?
Does taking ibuprofen or aspirin with food prevent an ulcer?
How does H. pylori infection affect ulcer risk?
What conditions can feel like a peptic ulcer?
Can my other medicines make an ulcer more dangerous?
When should upper abdominal pain be treated as an emergency?
Questions to Ask Your Doctor
Curated prompts to bring to your next appointment.
- 1.Given that I have a peptic ulcer, how specifically has the H. pylori infection or my use of medications damaged my stomach lining?
- 2.Could my symptoms be related to other conditions like GERD or gallbladder issues instead of, or in addition to, an ulcer?
- 3.How do my other health conditions affect my risk for ulcer complications like bleeding?
- 4.Since H. pylori and NSAIDs can both cause ulcers, was I tested for the bacteria even if I take a lot of ibuprofen or aspirin?
- 5.If I require blood thinners or steroids for other conditions, how do we best protect my stomach?
Questions For You
Tap a prompt to share your answer — we'll use it plus this page's context to start a tailored conversation.
References
References (18)
- 1
Diagnosis and Treatment of Peptic Ulcer Disease.
Kavitt RT, Lipowska AM, Anyane-Yeboa A, Gralnek IM
The American journal of medicine 2019; (132(4)):447-456 doi:10.1016/j.amjmed.2018.12.009.
PMID: 30611829 - 2
Effects of Nonsteroidal Anti-Inflammatory Drugs at the Molecular Level.
Gunaydin C, Bilge SS
The Eurasian journal of medicine 2018; (50(2)):116-121 doi:10.5152/eurasianjmed.2018.0010.
PMID: 30002579 - 3
Increased susceptibility of aging gastric mucosa to injury and delayed healing: Clinical implications.
Tarnawski AS, Ahluwalia A
World journal of gastroenterology 2018; (24(42)):4721-4727 doi:10.3748/wjg.v24.i42.4721.
PMID: 30479459 - 4
Update on the pathogenesis and clinical management of Helicobacter pylori gastric infection and associated diseases.
Costa JMC, Aguiar CEO, Oliveira MMGL, et al.
World journal of gastrointestinal pathophysiology 2025; (16(4)):111432 doi:10.4291/wjgp.v16.i4.111432.
PMID: 41479869 - 5
Helicobacter pylori infection.
Malfertheiner P, Camargo MC, El-Omar E, et al.
Nature reviews. Disease primers 2023; (9(1)):19 doi:10.1038/s41572-023-00431-8.
PMID: 37081005 - 6
The biological functions of IL-17 in different clinical expressions of Helicobacter pylori-infection.
Bagheri N, Azadegan-Dehkordi F, Shirzad H, et al.
Microbial pathogenesis 2015; (81()):33-8.
PMID: 25773771 - 7
The Helicobacter pylori cag pathogenicity island as a determinant of gastric cancer risk.
Tran SC, Bryant KN, Cover TL
Gut microbes 2024; (16(1)):2314201 doi:10.1080/19490976.2024.2314201.
PMID: 38391242 - 8
There Are No Insurmountable Barriers: Passage of the Helicobacter pylori VacA Toxin from Bacterial Cytoplasm to Eukaryotic Cell Organelle.
Jarzab M, Skorko-Glonek J
Membranes 2023; (14(1)) doi:10.3390/membranes14010011.
PMID: 38248700 - 9
Indomethacin impairs mitochondrial dynamics by activating the PKCζ-p38-DRP1 pathway and inducing apoptosis in gastric cancer and normal mucosal cells.
Mazumder S, De R, Debsharma S, et al.
The Journal of biological chemistry 2019; (294(20)):8238-8258 doi:10.1074/jbc.RA118.004415.
PMID: 30940726 - 10
Contribution of Helicobacter pylori infection to the risk of peptic ulcer bleeding in patients on nonsteroidal anti-inflammatory drugs, antiplatelet agents, anticoagulants, corticosteroids and selective serotonin reuptake inhibitors.
Venerito M, Schneider C, Costanzo R, et al.
Alimentary pharmacology & therapeutics 2018; (47(11)):1464-1471 doi:10.1111/apt.14652.
PMID: 29655196 - 11
Risk Factors for Upper Gastrointestinal Bleeding in Patients Taking Selective COX-2 Inhibitors: A Nationwide Population-Based Cohort Study.
Lin XH, Young SH, Luo JC, et al.
Pain medicine (Malden, Mass.) 2018; (19(2)):225-231 doi:10.1093/pm/pnx097.
PMID: 28460044 - 12
Peptic ulcer disease in hospitalized patients: a comprehensive risk factor analysis using a validated checklist.
Tahery N, Baghrobehbahani A, Mohammadzadeh R, et al.
BMC gastroenterology 2026; (26(1)).
PMID: 42070016 - 13
Changing trends and characteristics of peptic ulcer disease: A multicenter study from 2010 to 2019 in Korea.
Choi YJ, Kim TJ, Bang CS, et al.
World journal of gastroenterology 2023; (29(44)):5882-5893 doi:10.3748/wjg.v29.i44.5882.
PMID: 38111504 - 14
What is the Prevalence of Clinically Significant Endoscopic Findings in Subjects With Dyspepsia? Updated Systematic Review and Meta-analysis.
Nasseri-Moghaddam S, Mousavian AH, Kasaeian A, et al.
Clinical gastroenterology and hepatology : the official clinical practice journal of the American Gastroenterological Association 2023; (21(7)):1739-1749.e2 doi:10.1016/j.cgh.2022.05.041.
PMID: 35738355 - 15
ACR Appropriateness Criteria® Epigastric Pain.
, Vij A, Zaheer A, et al.
Journal of the American College of Radiology : JACR 2021; (18(11S)):S330-S339 doi:10.1016/j.jacr.2021.08.006.
PMID: 34794592 - 16
ACR Appropriateness Criteria® Right Upper Quadrant Pain: 2022 Update.
, Russo GK, Zaheer A, et al.
Journal of the American College of Radiology : JACR 2023; (20(5S)):S211-S223 doi:10.1016/j.jacr.2023.02.011.
PMID: 37236744 - 17
Endoscopic Findings in Patients Presenting Dyspepsia: A Population-Based Study in Mashhad, North East of Iran.
AkbariRad M, Firoozi A, Moodi Ghalibaf A, et al.
Middle East journal of digestive diseases 2025; (17(1)):5-11 doi:10.34172/mejdd.2025.402.
PMID: 40322574 - 18
Peptic Ulcer Disease: A Review.
Vakil N
JAMA 2024; (332(21)):1832-1842 doi:10.1001/jama.2024.19094.
PMID: 39466269
This page is for informational purposes only and does not constitute medical advice. A clinician should evaluate suspected peptic ulcer disease and any severe or pressure-like upper abdominal pain, especially when it occurs with shortness of breath, sweating, or faintness.
Get notified when new evidence is published on peptic ulcer disease.
We monitor PubMed for new peer-reviewed studies on this topic and email a short summary when something meaningful changes.