A burning ache high in the abdomen can make people wonder about an ulcer, but the word itself is broader than many search results suggest. An ulcer is an open sore or deeper break in tissue, and ulcers can occur in the stomach, small intestine, esophagus, mouth, skin, or over pressure points. When people ask about an “ulcer” in a digestive-health context, however, they are usually asking about a peptic ulcer — a sore in the lining of the stomach or duodenum.
Peptic ulcers are treatable, but guessing at the cause is risky. The two leading causes are Helicobacter pylori (H. pylori) infection and nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen, naproxen, and aspirin. Stress and spicy food may aggravate symptoms in some people, but they are not considered the usual causes of peptic ulcer disease.
Some ulcers cause classic upper-abdominal pain. Others cause few symptoms until bleeding or another complication develops. That is why persistent symptoms, unexplained anemia, recurrent vomiting, black stools, vomiting blood, fainting, or sudden severe abdominal pain deserve more than home treatment.
Ulcers at a Glance
| Question | Key point |
| What is a peptic ulcer? | A sore in the lining of the stomach or duodenum. |
| Most common causes | H. pylori infection and NSAID use. |
| Typical symptoms | Upper-abdominal burning or discomfort, early fullness, nausea, bloating, belching — though some ulcers are silent. |
| Can spicy food cause it? | Spicy foods may worsen symptoms but are not a usual underlying cause. |
| How is it diagnosed? | History, medication review, H. pylori testing, and sometimes upper GI endoscopy with biopsy. |
| How is it treated? | Treatment depends on the cause and may include acid suppression, H. pylori eradication therapy, and medication changes. |
| Major warning signs | Vomiting blood, black/tarry stool, fainting, rapid pulse, or sudden severe abdominal pain. |
What Is an Ulcer?
An ulcer is a loss of the normal surface tissue that leaves a sore or defect. The term does not identify one disease by itself. The location matters because a mouth ulcer, pressure ulcer, venous leg ulcer, corneal ulcer, and peptic ulcer have different causes, tests, treatments, and risks.
In gastroenterology, the term peptic ulcer refers to an ulcer in the stomach or duodenum. A gastric ulcer is in the stomach. A duodenal ulcer is in the first part of the small intestine. Both are forms of peptic ulcer disease (PUD).
This article focuses mainly on peptic ulcers because that is the most common intent behind searches for “ulcer,” while briefly separating other ulcer types so the terminology stays clear.
Types of Ulcers
Gastric ulcer
A gastric ulcer forms in the lining of the stomach. Symptoms may include upper-abdominal discomfort, nausea, early fullness, or pain related to meals. Gastric ulcers often require careful evaluation because not every ulcer-like lesion in the stomach is benign.
Duodenal ulcer
A duodenal ulcer forms in the duodenum, immediately beyond the stomach. Pain can occur when the stomach is empty or at night, but symptom patterns overlap and are not reliable enough to identify ulcer location without testing.
Esophageal ulcer
An esophageal ulcer is a sore in the esophageal lining. Reflux injury, certain medicines, and infections in people with impaired immunity are among possible causes. Painful swallowing or chest discomfort may be more prominent than stomach pain.
Mouth ulcer
Mouth ulcers, including aphthous ulcers or canker sores, occur in the oral cavity. They are not peptic ulcers and generally have different causes and treatment.
Skin and pressure ulcers
Skin ulcers can develop from poor circulation, diabetes-related tissue injury, prolonged pressure, inflammatory disease, infection, or other causes. Pressure injuries over areas such as the sacrum or heels require their own wound-care approach.
Ulcer Symptoms
Peptic ulcer symptoms vary more than the familiar “burning stomach pain” description suggests. Some people have intermittent discomfort for weeks. Others mainly notice nausea or feeling full quickly. A substantial number have no obvious symptoms until the ulcer bleeds or causes another complication.
Common peptic ulcer symptoms
- Dull, aching, or burning discomfort in the upper abdomen
- Pain that comes and goes
- Pain when the stomach is empty or at night in some people
- Pain after eating in some people
- Feeling full sooner than expected during a meal
- Uncomfortable fullness after eating
- Bloating
- Belching
- Nausea or occasional vomiting
- Indigestion or dyspepsia
These symptoms overlap with gastritis, reflux disease, gallbladder disease, functional dyspepsia, pancreatitis, and other conditions. An ulcer cannot be confirmed from the pain pattern alone.
What does ulcer pain feel like?
People often describe peptic-ulcer pain as burning, gnawing, sore, or dull rather than sharp. The discomfort is usually felt in the upper central abdomen. Timing can offer clues, but it is not diagnostic: eating may briefly improve pain for one person and make it worse for another.
Can an ulcer cause no symptoms?
Yes. NIDDK notes that many people with peptic ulcers have no symptoms. A silent ulcer may first become apparent because of bleeding, anemia, or another complication. This matters particularly in people taking NSAIDs or medicines that can increase bleeding risk.
What Causes Peptic Ulcers?
The stomach and duodenum normally defend themselves against acid with mucus, bicarbonate, blood flow, and rapid repair of the lining. An ulcer develops when damaging factors overwhelm those defenses. In modern clinical practice, two causes dominate: H. pylori infection and NSAID exposure.
H. pylori infection
- pylori is a bacterium that can live in the stomach lining. Many infected people have no symptoms, but chronic infection can inflame the stomach and increase the risk of peptic ulcer disease. It is also linked with gastric cancer and gastric mucosa-associated lymphoid tissue (MALT) lymphoma, which is one reason current guidelines take diagnosis and eradication seriously.
- pylori appears to spread between people, probably through oral-oral or fecal-oral pathways, although the exact route is not always clear. Infection is often acquired in childhood and can persist for years if it is not treated.
NSAIDs such as ibuprofen, naproxen, and aspirin
NSAIDs reduce prostaglandins that help protect the stomach and duodenal lining. Risk rises with longer use, higher doses, use of more than one NSAID, older age, a previous ulcer, simultaneous H. pylori infection, and certain combinations with other medicines.
Aspirin deserves special caution. Some people take low-dose aspirin for cardiovascular reasons, so stopping it abruptly without medical advice can create a different risk. If ulcer symptoms or bleeding are suspected, medication decisions should be made with the prescribing clinician or an urgent-care team, depending on severity.
Less common causes
- Zollinger-Ellison syndrome, in which gastrin-producing tumors cause marked acid secretion
- Severe physiologic stress during critical illness, burns, trauma, sepsis, or major surgery
- Crohn disease or other inflammatory conditions affecting the upper gastrointestinal tract
- Reduced blood flow, obstruction, or injury affecting the stomach or duodenum
- Certain infections other than H. pylori, especially in people with weakened immune systems
- Some medicines that increase ulcer risk, particularly when combined with NSAIDs
When an ulcer keeps returning or does not heal as expected, clinicians may revisit the diagnosis, medication exposure, adherence, ongoing H. pylori infection, smoking, and uncommon causes.
Do Stress or Spicy Foods Cause Ulcers?
This is one of the most persistent ulcer myths. Ordinary emotional stress and spicy food are not considered the main causes of peptic ulcers. H. pylori and NSAIDs are far more important.
That does not mean symptoms are imaginary when stress or certain foods seem to trigger them. Stress can alter digestion and pain perception, while spicy, acidic, fatty, or alcoholic foods and drinks may aggravate discomfort for some people. The distinction is between making symptoms worse and causing the ulcer itself.
There is one very different use of the word “stress” in medicine: severe physiologic stress during critical illness can contribute to stress-related mucosal injury and acute erosive gastropathy. That is not the same as everyday psychological stress.
Who Is More Likely to Develop a Peptic Ulcer?
- People with current H. pylori infection
- People who use NSAIDs regularly or at higher doses
- Older adults
- People with a previous peptic ulcer
- People who smoke
- People taking NSAIDs together with medicines that increase bleeding or GI-injury risk
- People who have both H. pylori infection and NSAID exposure
Risk is individual. A person can have several risk factors without developing an ulcer, while another person can develop one without an obvious history of heavy NSAID use.
Ulcer vs. Gastritis vs. Acid Reflux
Upper-GI symptoms overlap heavily, so these terms are often used interchangeably even though they describe different problems.
| Condition | What it is | Common symptoms | Key distinction |
| Peptic ulcer | A deeper sore in the stomach or duodenal lining | Upper-abdominal pain, early fullness, nausea, bloating; sometimes no symptoms | Can bleed, perforate, penetrate, or obstruct |
| Gastritis/gastropathy | Inflammation or injury of the stomach lining | Dyspepsia, nausea, early fullness, upper-abdominal discomfort | May exist without an ulcer; some forms can progress to erosions or ulcers |
| GERD | Repeated reflux of stomach contents into the esophagus | Heartburn, regurgitation, chest discomfort, cough, swallowing symptoms | Primary problem is reflux into the esophagus, not an ulcer in the stomach/duodenum |
How Doctors Diagnose a Peptic Ulcer
Diagnosis begins with the story: where the pain is, how long it has been present, what changes it, whether there has been bleeding, and which medicines are being used. A clinician may specifically ask about aspirin, ibuprofen, naproxen, anticoagulants, corticosteroids, prior ulcers, prior H. pylori treatment, smoking, and a family history of upper-GI cancer.
If symptoms are persistent or complex, writing down their timing and medication exposure before an appointment can make the visit more efficient. MedIntelHub’s guide to preparing questions before a specialist appointment offers a practical way to organize symptoms and questions before a gastroenterology visit.
H. pylori testing
Testing for active H. pylori infection can be performed with a urea breath test, stool antigen test, or biopsy-based testing during endoscopy. The 2024 American College of Gastroenterology guideline, which remains current in 2026, emphasizes active-infection testing and confirmation that eradication succeeded after treatment.
Blood antibody tests are widely available but can be misleading because antibodies may remain positive after an old infection has cleared. For many clinical situations, a breath or stool test is better for identifying active infection.
PPIs, bismuth, and antibiotics can affect test accuracy. For test-of-cure, ACG recommends waiting at least four weeks after antibiotic therapy and withholding PPIs or potassium-competitive acid blockers for two weeks; bismuth and antibiotics should be held for four weeks. These medication pauses should be coordinated with a healthcare professional rather than improvised by the patient.
Upper GI endoscopy
Upper gastrointestinal endoscopy allows a gastroenterologist to look directly at the esophagus, stomach, and duodenum. Biopsies can be taken when needed. Endoscopy is especially useful when alarm features are present, when diagnosis is uncertain, when bleeding is suspected, or when a gastric ulcer needs tissue evaluation or follow-up.
Other tests
- Complete blood count to look for anemia when bleeding is suspected
- Iron studies when chronic blood loss or iron deficiency is a concern
- Stool testing for occult blood in selected situations
- Imaging when perforation, obstruction, or another abdominal emergency is suspected
- Upper-GI contrast imaging in selected cases, although endoscopy is often more informative for direct visualization
Ulcer Treatment
There is no single ulcer treatment that fits every patient. Effective care has two jobs: help the ulcer heal and address the cause so that it is less likely to return.
Acid suppression
Proton pump inhibitors (PPIs) are commonly used to reduce gastric acid and promote healing. H2-receptor blockers are used in some situations. The choice, dose, and duration depend on the ulcer, the underlying cause, other medicines, and whether complications are present.
Treating H. pylori
A confirmed H. pylori infection should be treated. Current ACG guidance favors regimens chosen with antibiotic resistance and prior antibiotic exposure in mind. For many treatment-naive patients when susceptibility is unknown, optimized bismuth quadruple therapy is a preferred empiric option. Rifabutin-based therapy and vonoprazan-amoxicillin dual therapy are among alternatives in appropriate patients.
Clarithromycin- and levofloxacin-containing regimens should generally not be used empirically unless susceptibility is known or there is another sound clinical reason. The exact regimen is a prescribing decision because allergy history, prior antibiotic exposure, local resistance patterns, drug interactions, pregnancy status, and other factors matter.
Completing the prescribed course matters. Feeling better before treatment ends does not prove the infection is gone.
Confirming that H. pylori is gone
One of the most useful current practice points is the “test, treat, re-test” approach. After eradication therapy, a breath test, stool antigen test, or biopsy-based test is used to confirm cure at the appropriate interval. Persistent infection can leave the patient at risk for recurrent ulcers and other H. pylori-related disease.
When NSAIDs are the problem
If an NSAID contributed to the ulcer, a clinician may recommend stopping it, lowering the dose, changing the drug, shortening the exposure, or adding protective therapy. The right choice depends on why the NSAID was prescribed and what alternatives are reasonable.
Do not independently stop prescribed aspirin used after a heart attack, stroke, stent, or for another cardiovascular indication. A suspected ulcer or GI bleed needs a coordinated decision that weighs bleeding risk against cardiovascular risk.
Treatment for bleeding or other complications
Bleeding ulcers often require hospital assessment. Endoscopy can identify the bleeding site and, in many cases, treat it with clips, thermal therapy, injection, or other endoscopic methods. Severe or recurrent bleeding may require interventional radiology or surgery. Perforation, obstruction, and penetration can also require urgent procedural or surgical care.
How Long Does an Ulcer Take to Heal?
Healing time is not one fixed number. It depends on ulcer size and location, whether H. pylori is eradicated, whether NSAID exposure continues, smoking, adherence to therapy, and whether the ulcer is complicated. Many uncomplicated ulcers improve over weeks with effective treatment, but symptoms can change before the tissue is fully healed.
A clinician may recommend follow-up endoscopy for selected gastric ulcers, persistent symptoms, recurrent bleeding, or ulcers that do not heal as expected. The need for follow-up is individualized rather than automatic for every patient.
Is There an Ulcer Diet?
There is no evidence-based universal “ulcer diet” that cures peptic ulcer disease. NIDDK notes that researchers have not found diet and nutrition to play a major role in causing, preventing, or treating peptic ulcers.
Food choices can still matter for comfort. A person who consistently develops pain after alcohol, very spicy food, large late meals, or another specific trigger may reasonably avoid that trigger while being evaluated. That is symptom management, not a substitute for treating H. pylori or addressing NSAID-related injury.
Smoking can slow ulcer healing and increase recurrence risk. Heavy alcohol use can irritate the stomach lining and contribute to GI bleeding. These are more clinically meaningful than following a long list of arbitrary “ulcer-safe” foods.
Ulcer Warning Signs and Emergencies
Most ulcer symptoms are not medical emergencies, but bleeding, perforation, or severe obstruction can become dangerous quickly. Warning signs should be judged by the pattern and severity, not by whether the pain has happened before.
Signs of a bleeding ulcer
- Vomiting bright-red blood
- Vomit that looks like dark coffee grounds
- Black, tarry stool
- Maroon or bloody stool
- Dizziness, fainting, unusual weakness, or shortness of breath
- Rapid pulse or other signs of significant blood loss
A slow bleed may be less dramatic and can present as fatigue, iron-deficiency anemia, or reduced exercise tolerance. Visible blood is not required for chronic GI blood loss to be clinically important.
Signs of perforation
A perforation occurs when an ulcer creates a hole through the stomach or duodenal wall. Sudden severe abdominal pain that does not ease, a rigid or very tender abdomen, fainting, or symptoms of shock require emergency evaluation. Perforation can lead to peritonitis and is a medical emergency.
Signs of obstruction
Inflammation or scarring near the stomach outlet can interfere with food leaving the stomach. Persistent vomiting, marked early fullness, abdominal distention, dehydration, or progressive weight loss can signal obstruction and need medical assessment.
When to See a Doctor
Recurring upper-abdominal pain deserves evaluation when it persists, keeps returning, interferes with eating or sleep, or occurs in someone with ulcer risk factors. A routine annual physical is not a substitute for a problem-focused visit when symptoms are active. MedIntelHub’s annual physical guide explains the difference between preventive care and evaluation of a specific new problem.
Arrange routine or timely medical evaluation for:
- Persistent or recurrent upper-abdominal pain
- Frequent nausea, early fullness, or indigestion that does not settle
- Symptoms associated with regular NSAID use
- Unexplained iron-deficiency anemia
- Unintentional weight loss
- Persistent or recurrent vomiting
- Symptoms that improve with antacids or acid blockers but repeatedly return
- A history of peptic ulcer disease with new symptoms
Seek urgent or emergency care for:
- Vomiting blood or material that looks like coffee grounds
- Black, tarry stools with weakness, dizziness, or other concerning symptoms
- Fainting or signs of shock
- Sudden severe abdominal pain that does not go away
- A rigid, very tender abdomen
- Heavy ongoing GI bleeding or rapidly worsening symptoms
Can Ulcers Be Prevented?
Not every ulcer can be prevented, but several preventable pathways are well established.
- Use NSAIDs only as directed and avoid taking more than one NSAID unless a clinician specifically advises it.
- Discuss long-term NSAID therapy with a healthcare professional if you have a history of ulcers, bleeding, or other GI risk factors.
- Treat confirmed H. pylori infection and complete the prescribed regimen.
- Complete test-of-cure when recommended after H. pylori therapy.
- Avoid smoking; it can impair healing and increase recurrence.
- Limit heavy alcohol use, especially when the stomach lining is already irritated or bleeding risk is increased.
- Do not self-treat persistent symptoms indefinitely with antacids if the symptoms keep returning.
Can an Ulcer Come Back?
Yes. Recurrence is more likely when the underlying cause remains. Examples include persistent H. pylori infection, continued ulcer-causing NSAID exposure, smoking, or an uncommon acid-secretion disorder. Recurrent ulcers may also prompt clinicians to reconsider whether the original diagnosis was complete.
Can an Ulcer Turn Into Cancer?
The relationship is more nuanced than the common question suggests. A duodenal ulcer is not generally viewed as a precancerous lesion. Gastric ulcers, however, may require biopsy or follow-up because some gastric cancers can ulcerate and resemble a benign ulcer. Separately, chronic H. pylori infection increases the risk of gastric adenocarcinoma and gastric MALT lymphoma over time.
The practical point is not that an ulcer automatically means cancer. It is that a gastric ulcer should be evaluated appropriately, and confirmed H. pylori infection should not be ignored.
Frequently Asked Questions About Ulcers
What does a stomach ulcer feel like?
It may feel like burning, gnawing, aching, or dull discomfort in the upper abdomen. Symptoms can come and go, occur when the stomach is empty, or worsen after eating. Some ulcers cause no pain at all.
Where is ulcer pain located?
Peptic-ulcer discomfort is usually felt in the upper central abdomen, between the breastbone and the navel. Location alone cannot confirm the diagnosis.
What are the two most common causes of peptic ulcers?
- pylori infection and NSAID use are the two major causes.
Can stress cause a stomach ulcer?
Everyday emotional stress is not considered a usual cause of peptic ulcers, although it may worsen digestive symptoms. Severe physiologic stress during critical illness is a different medical situation and can damage the stomach lining.
Can spicy food cause an ulcer?
Spicy food does not usually cause peptic ulcers. It may aggravate symptoms in some people.
Can ibuprofen cause an ulcer?
Yes. Ibuprofen is an NSAID, and NSAID use is a major cause of peptic ulcers and GI bleeding, particularly with higher doses, longer exposure, older age, or other risk factors.
Can aspirin cause an ulcer?
Yes. Aspirin can contribute to ulcer formation and bleeding. People taking prescribed aspirin for cardiovascular reasons should not stop it without medical guidance unless emergency clinicians direct otherwise.
Is H. pylori contagious?
- pylori can spread between people, probably through oral-oral or fecal-oral routes, although the exact route is not always known.
How do doctors test for H. pylori?
Common active-infection tests include the urea breath test and stool antigen test. Biopsy-based testing can be done during endoscopy. Blood antibody testing may be less useful for distinguishing an old infection from an active one.
How do doctors know if H. pylori treatment worked?
Current ACG guidance recommends a test of cure using a breath test, stool antigen test, or biopsy-based test at the appropriate interval after treatment.
Can an ulcer heal without treatment?
Symptoms may fluctuate, but relying on spontaneous improvement can leave the underlying cause untreated. H. pylori infection and ongoing NSAID injury can lead to recurrence or complications.
How long does an ulcer take to heal?
Many uncomplicated ulcers improve over several weeks with effective therapy, but the timeline varies with the cause, location, size, smoking, ongoing NSAID exposure, and complications.
Do antacids cure ulcers?
Antacids can temporarily reduce discomfort, but they do not eradicate H. pylori and do not correct every cause of ulcer disease.
What does a bleeding ulcer look like?
Possible signs include vomiting red blood, coffee-ground material in vomit, black tarry stools, maroon stool, dizziness, fainting, or symptoms of anemia.
Can a stomach ulcer cause anemia?
Yes. Slow blood loss from an ulcer can lead to iron-deficiency anemia even when blood is not visible in the stool.
Can an ulcer cause weight loss?
Pain, nausea, early fullness, vomiting, or fear of eating can contribute to weight loss. Unintentional weight loss is also an alarm feature that deserves medical assessment.
Can ulcers come back after treatment?
Yes, especially if H. pylori persists, ulcer-causing NSAIDs continue, or other risk factors remain.
When is ulcer pain an emergency?
Sudden severe abdominal pain, vomiting blood, black tarry stools with weakness or dizziness, fainting, or signs of shock require urgent or emergency evaluation.
The Practical Bottom Line
The word “ulcer” covers many conditions, but a peptic ulcer is specifically a sore in the stomach or duodenal lining. The old idea that ulcers are mainly caused by worry or spicy food is outdated. H. pylori and NSAIDs account for much of the clinical burden, and treatment works best when the cause is identified rather than when symptoms are simply suppressed.
For H. pylori, current practice is not just to treat and move on. ACG guidance emphasizes confirming eradication after therapy. For NSAID-related disease, medication risk needs to be addressed without casually stopping drugs that may have another important medical purpose.
Most ulcers can be treated effectively. The symptoms that should not be watched at home are signs of bleeding, fainting or shock, and sudden severe abdominal pain — the patterns that can indicate major blood loss or perforation.
Resources
National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) — Peptic Ulcers
Overview of peptic ulcer symptoms, causes, diagnosis, treatment, diet, and complications.
American College of Gastroenterology — H. pylori Guideline Update
Current U.S. guidance on testing, treatment selection, antibiotic resistance, and confirmation of eradication.
ACG H. pylori Guideline Update
American College of Gastroenterology — H. pylori Patient Information
Patient-facing summary of active-infection testing, treatment, and test-of-cure principles.
ACG H. pylori Patient Information
MedlinePlus — Peptic Ulcer
NIH-supported patient information covering causes, complications, and urgent warning signs.
NIDDK — Gastritis and Gastropathy
Useful background on stomach-lining inflammation and how it differs from peptic ulcer disease.
NIDDK — Acid Reflux and GERD in Adults
Background on reflux symptoms and why GERD can overlap with — but is different from — ulcer disease.
Editorial Guidelines & Medical Disclaimer
This article is for educational and informational purposes. It explains ulcer terminology, common symptoms, recognized causes, diagnostic approaches, treatment principles, and warning signs, but it does not diagnose peptic ulcer disease or any other condition. Upper-abdominal pain, nausea, black stools, anemia, weight loss, vomiting, and related symptoms can have causes other than an ulcer and may require professional evaluation.
Medication decisions should be made with the appropriate healthcare professional. Do not abruptly stop prescribed aspirin, anticoagulants, NSAIDs, acid-suppressing therapy, antibiotics, or other medicines solely because an ulcer is suspected. H. pylori treatment regimens and testing instructions may vary according to allergy history, prior antibiotic exposure, drug interactions, local resistance patterns, pregnancy status, and other clinical factors.
Serious or worsening symptoms — especially vomiting blood, black tarry stools with weakness or dizziness, fainting, signs of shock, or sudden severe abdominal pain — may require urgent or emergency care.
Medical guidance, medication recommendations, diagnostic standards, and payer requirements can change. MedIntelHub uses authoritative medical and public-health sources and encourages readers to verify current guidance with qualified professionals. Read MedIntelHub’s Editorial Policy for more information about editorial standards and source selection.