JCI-accredited · 45+ hospitals & clinics · 90+ countries served · 24/7 multilingual support
Digestive Health

Peptic Ulcer Disease: Stomach Pain, H. pylori Testing, and Treatment

9 min read Published June 27, 2026
Medical team consulting with patients in a modern hospital corridor.
Quick answer

Peptic ulcer disease most commonly affects the stomach or duodenum and may cause burning or gnawing upper abdominal pain. Helicobacter pylori infection and regular use of nonsteroidal anti-inflammatory drugs are the two leading causes.

Key Takeaways

  • Peptic ulcer disease most commonly affects the stomach or duodenum and may cause burning or gnawing upper abdominal pain.
  • Helicobacter pylori infection and regular use of nonsteroidal anti-inflammatory drugs are the two leading causes.
  • Diagnosis may involve H. pylori testing, blood tests, stool tests, breath tests, and sometimes upper endoscopy.
  • Treatment usually includes acid-suppressing medication and, if H. pylori is present, a combination of antibiotics and acid control.
  • Urgent medical care is needed for vomiting blood, black stools, fainting, severe persistent pain, or signs of internal bleeding.

Medically reviewed by the Acıbadem International Medical Board — June 20, 2026

Dr. Bahadır Kaynarkaya, MD Dr. Şule Eren, MD

Peptic ulcer disease occurs when a sore develops in the lining of the stomach or the first part of the small intestine. Most ulcers can heal with the right diagnosis, treatment of Helicobacter pylori when present, and careful use of ulcer-irritating medicines.

Overview

Peptic ulcer disease is a condition in which an open sore forms in the protective lining of the digestive tract. These ulcers most often occur in the stomach, called gastric ulcers, or in the duodenum, the first part of the small intestine, called duodenal ulcers. Although the word “ulcer” can sound worrying, peptic ulcers are common digestive conditions and, in many people, heal well when the cause is identified and treated.

The stomach normally produces acid and digestive enzymes to help break down food. At the same time, the stomach and duodenum have a mucus-rich protective barrier that helps prevent injury from acid. Peptic ulcer disease develops when this balance is disrupted, allowing acid and digestive fluid to irritate and damage the lining.

The two most important causes are infection with a bacterium called Helicobacter pylori, often shortened to H. pylori, and regular use of nonsteroidal anti-inflammatory drugs, or NSAIDs, such as ibuprofen, naproxen, and aspirin. Stress and spicy foods do not usually cause ulcers by themselves, but they may worsen symptoms in some people.

Symptoms of Peptic Ulcer Disease

Symptoms of Peptic Ulcer Disease — Peptic Ulcer Disease

The most typical symptom of peptic ulcer disease is upper abdominal pain. People often describe it as burning, gnawing, aching, or hunger-like discomfort between the breastbone and the belly button. The pain may come and go over days or weeks, and it may be related to meals, depending on the ulcer location.

Duodenal ulcer pain may improve temporarily after eating or taking an antacid, then return a few hours later or at night. Gastric ulcer pain may worsen after meals in some patients. However, symptoms vary, and some people, especially older adults or those taking NSAIDs, may have few symptoms until a complication occurs.

Other possible symptoms include nausea, bloating, early fullness, belching, loss of appetite, or unintended weight loss. Heartburn and indigestion-like symptoms can overlap with peptic ulcer disease, but they can also be caused by reflux, gastritis, gallbladder disease, or other digestive conditions. Because symptoms are not specific, proper medical evaluation is important.

  • Burning or gnawing pain in the upper abdomen
  • Pain that changes with meals or occurs at night
  • Nausea, bloating, or early satiety
  • Indigestion that does not improve or keeps returning
  • Unexplained weight loss or reduced appetite

Causes and Risk Factors

Doctor consulting with patient about stomach pain and ulcers.

H. pylori is a common bacterium that can live in the stomach lining. In some people, it causes chronic inflammation and weakens the protective mucus layer, making the stomach or duodenum more vulnerable to acid injury. H. pylori can be present for years without symptoms, which is why testing is often needed when peptic ulcer disease is suspected.

NSAIDs are another major cause. These medicines can reduce inflammation and pain, but they may also interfere with substances that help protect the stomach lining. The risk is higher with regular or high-dose use, older age, a previous ulcer, use of blood thinners or corticosteroids, heavy alcohol use, and certain serious medical conditions. Aspirin taken for heart or stroke prevention can also increase ulcer risk, so it should not be stopped without medical advice.

Smoking may delay ulcer healing and increase the chance of recurrence. Alcohol can irritate the stomach lining and may worsen symptoms, especially when combined with NSAIDs. Rarely, ulcers are related to conditions that cause excess acid production or to other diseases, but most cases are linked to H. pylori, NSAIDs, or both.

How H. pylori Testing and Diagnosis Are Done

Diagnosis begins with a careful medical history and physical examination. The doctor will ask about pain patterns, NSAID or aspirin use, previous ulcers, bleeding symptoms, family history, smoking, alcohol use, and current medications. Because several digestive disorders can mimic peptic ulcer disease, testing helps confirm the cause and guide treatment.

H. pylori testing may be performed with a urea breath test, stool antigen test, blood antibody test, or biopsy during endoscopy. Breath and stool tests are commonly used to detect active infection and can also help confirm that treatment worked. Some acid-suppressing medicines, antibiotics, and bismuth products can affect test accuracy, so patients should follow their doctor’s instructions before testing.

Upper endoscopy may be recommended when symptoms are persistent, severe, recurrent, or associated with warning signs, or when a patient is older and developing new symptoms. During endoscopy, a thin flexible tube with a camera is passed through the mouth to view the esophagus, stomach, and duodenum. The doctor can identify ulcers, take biopsies, check for H. pylori, and rule out other conditions.

Additional tests may include a complete blood count to check for anemia, stool testing for hidden blood, or other laboratory tests when bleeding, inflammation, or another diagnosis is suspected. Imaging is not usually the first test for uncomplicated ulcers, but it may be used if complications are a concern.

Treatment Options

Treatment depends on the cause, ulcer location, symptom severity, and whether complications are present. Most uncomplicated ulcers are treated with medications that reduce stomach acid, giving the lining time to heal. Proton pump inhibitors are commonly used for this purpose, and H2 receptor blockers may be appropriate for some patients. Antacids can relieve symptoms temporarily but do not treat H. pylori or replace a full treatment plan.

If H. pylori is detected, treatment usually includes a combination of antibiotics plus acid-suppressing therapy. This is important because untreated H. pylori can cause ulcers to return. The exact combination and duration depend on local antibiotic resistance patterns, allergy history, previous antibiotic exposure, and the doctor’s judgment. Patients should complete the full course as prescribed, even if symptoms improve early.

If NSAIDs are contributing to the ulcer, the doctor may recommend stopping them, lowering the dose, switching to another pain-relief strategy, or adding protective medication when NSAID use is medically necessary. People taking aspirin for cardiovascular protection should not stop it on their own; the doctor will balance bleeding risk and heart or stroke prevention needs.

Complicated ulcers, such as those causing significant bleeding, obstruction, or perforation, require prompt hospital-based care. Endoscopy can often treat bleeding ulcers using specialized techniques. Surgery is less common than in the past but may be needed in selected severe cases.

Prevention and Self-Care

Self-care focuses on helping the ulcer heal, reducing irritation, and preventing recurrence. Patients should take prescribed medicines exactly as directed and attend follow-up appointments, especially after H. pylori treatment. Confirming eradication of H. pylori may be recommended because symptoms alone cannot reliably prove that the infection is gone.

Medication safety is central to prevention. People who need pain relief frequently should discuss options with a doctor, especially if they have a history of ulcers, take blood thinners, or are older adults. NSAIDs should be used only as directed, and combining multiple NSAIDs or using them with alcohol can increase digestive risk.

Dietary triggers are individual. There is no single “ulcer diet” that applies to everyone, but some patients feel better when they avoid foods or drinks that worsen symptoms, such as alcohol, very spicy foods, acidic foods, coffee, or large late meals. Eating balanced meals, not smoking, limiting alcohol, and managing other health conditions can support healing.

  • Take ulcer medicines for the full recommended course.
  • Ask before using NSAIDs regularly or combining pain medicines.
  • Avoid smoking, which can slow healing.
  • Limit alcohol, especially during active symptoms or treatment.
  • Return for follow-up testing if advised after H. pylori therapy.

When to See a Doctor

A person should consult a qualified doctor if upper abdominal pain is persistent, recurrent, wakes them from sleep, or is associated with nausea, loss of appetite, or weight loss. Medical advice is also important if symptoms begin after starting NSAIDs, aspirin, blood thinners, or steroid medicines. Early evaluation can identify H. pylori, adjust medication risks, and prevent complications.

Urgent care is needed for vomiting blood, material that looks like coffee grounds, black or tar-like stools, sudden severe abdominal pain, fainting, marked weakness, shortness of breath, or signs of shock. These symptoms may suggest bleeding or another serious complication and should be assessed immediately.

International patients with suspected or confirmed peptic ulcer disease may be evaluated by gastroenterology teams at Acibadem International, where multidisciplinary specialists and JCI-accredited hospitals provide diagnosis and treatment planning. As with any digestive condition, the best approach depends on a patient’s medical history, test results, and individual risks.

Frequently asked questions

What does peptic ulcer pain feel like?

Peptic ulcer pain is often described as burning, gnawing, or aching discomfort in the upper abdomen. It may occur between meals, at night, or after eating, depending on the ulcer location. Because similar pain can come from reflux, gallbladder disease, or other conditions, a doctor should evaluate persistent symptoms.

Is H. pylori the same as an ulcer?

No. H. pylori is a bacterium that can infect the stomach lining, while an ulcer is a sore in the stomach or duodenum. H. pylori is one of the main causes of peptic ulcer disease, but not everyone with H. pylori develops an ulcer.

How is H. pylori tested?

H. pylori can be tested with a urea breath test, stool antigen test, blood antibody test, or biopsy taken during upper endoscopy. Breath and stool tests are often used to detect active infection. Some medicines can affect results, so patients should ask their doctor how to prepare.

Can peptic ulcer disease heal without treatment?

Some symptoms may temporarily improve, but untreated ulcers can return or lead to complications. If H. pylori is present, antibiotics are needed to eradicate the infection. If NSAIDs are causing injury, the medication plan may need to be adjusted safely.

Should people with ulcers avoid spicy foods?

Spicy foods do not usually cause peptic ulcers, but they may worsen symptoms in some people. Patients can limit foods and drinks that trigger their discomfort while maintaining a balanced diet. Alcohol and smoking are more clearly linked to irritation, delayed healing, or recurrence.

When is endoscopy needed for a suspected ulcer?

Endoscopy may be recommended for warning signs such as bleeding, anemia, weight loss, difficulty swallowing, repeated vomiting, or severe or persistent symptoms. It may also be used in older adults with new symptoms or when diagnosis is uncertain. During the procedure, the doctor can see the ulcer, take biopsies, and test for H. pylori.

References

  • World Gastroenterology Organisation
  • American College of Gastroenterology
  • National Institute of Diabetes and Digestive and Kidney Diseases
  • Mayo Clinic
  • European Helicobacter and Microbiota Study Group

This article is for general information only and is not a substitute for professional medical advice. Please consult a qualified doctor about your individual situation.

Add Acıbadem on Google

Add us as a Preferred Source to see more of our trusted health content across Google Search, AI Overviews and Discover.

Share this page
Was this content helpful?
Your feedback helps us improve.
Dr. Bahadır Kaynarkaya
Dr. Bahadır Kaynarkaya, MD
Author
View profile →
Specialized Care at Acibadem

Gastroenterology

Diagnosis and treatment of the digestive system and liver, with advanced endoscopy.

46 specialists in this unit
Keep Reading

More from the Health Library

Specialists

Related Specialists

We’re With You at Every Step

How can we help you today?

We value your privacy We use essential cookies to run this site and, with your consent, analytics cookies to understand how it is used and improve it. You can accept, reject, or choose what to allow. See our Cookie Policy.