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

Peptic Ulcer Treatment: How Doctors Test for H. pylori and Confirm Healing

10 min read Published July 6, 2026
Doctor explaining stomach health to patient with stomach model in hospital.
Quick answer

Most peptic ulcers are linked to H. pylori infection or regular use of NSAID pain relievers. Doctors can test for H. pylori with breath, stool, biopsy, or sometimes blood tests, depending on the situation.

Key Takeaways

  • Most peptic ulcers are linked to H. pylori infection or regular use of NSAID pain relievers.
  • Doctors can test for H. pylori with breath, stool, biopsy, or sometimes blood tests, depending on the situation.
  • Treatment usually includes acid-lowering medication and, if H. pylori is present, a combination of antibiotics.
  • Some people need a follow-up endoscopy or repeat H. pylori test to make sure the ulcer has healed.
  • Avoiding NSAIDs, smoking, and excess alcohol can support recovery and help prevent recurrence.

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

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

Peptic ulcer treatment focuses on relieving symptoms, healing the sore, treating the cause, and lowering the chance that the ulcer will return. Doctors often test for Helicobacter pylori (H. pylori), review pain-reliever use, and may confirm healing with follow-up testing or endoscopy.

Overview: what peptic ulcer treatment aims to do

A peptic ulcer is an open sore that develops in the lining of the stomach or the first part of the small intestine, called the duodenum. Treatment is not only about easing pain or indigestion. The main goals are to heal the ulcer, stop bleeding if it is present, treat the underlying cause, and reduce the risk that the ulcer will come back.

Two of the most common causes are infection with Helicobacter pylori (H. pylori) and repeated use of nonsteroidal anti-inflammatory drugs, also called NSAIDs. These include medicines such as ibuprofen, naproxen, and aspirin. Because the cause matters, doctors usually recommend specific testing rather than treating symptoms alone.

Many ulcers improve well with modern medicines. Acid-suppressing treatment helps the lining recover, while antibiotics may be needed if H. pylori is found. In some cases, doctors also arrange an endoscopy or repeat tests later to confirm that healing has occurred, especially if symptoms continue or if the ulcer was large, bleeding, or located in the stomach.

Symptoms and signs doctors take seriously

Symptoms and signs doctors take seriously — peptic ulcer treatment

The classic symptom of a peptic ulcer is a burning or gnawing pain in the upper abdomen. It may come and go, sometimes improving after eating or antacids and sometimes becoming worse on an empty stomach. Some people notice bloating, early fullness, nausea, or indigestion rather than clear pain.

However, ulcers do not always cause obvious symptoms. In some people, the first sign may be a complication such as bleeding. Bleeding can lead to black, tarry stools, vomiting blood, coffee-ground-like vomit, weakness, dizziness, or shortness of breath from anemia. These symptoms need urgent medical attention.

Doctors are also alert to warning signs such as unexplained weight loss, trouble swallowing, repeated vomiting, severe sudden abdominal pain, or symptoms that do not improve with standard treatment. These features can point to a more serious problem and may lead to earlier endoscopy. When ulcer symptoms overlap with other digestive conditions, doctors may also consider related problems such as reflux or Barrett’s esophagus if the history suggests it.

Causes and risk factors

Causes and risk factors — peptic ulcer treatment

H. pylori is a common bacterium that can weaken the stomach’s protective lining and allow acid to injure the tissue underneath. Not everyone with H. pylori develops an ulcer, but it is one of the most important causes worldwide. If it is not treated successfully, the ulcer may return even if symptoms improve for a while.

NSAID medicines are another leading cause. They can reduce the natural substances that protect the stomach and duodenum from acid. The risk is higher in people who take these medicines often, use high doses, take more than one pain reliever, or also use blood thinners, steroids, or certain other medicines. Older age and a previous ulcer increase the risk further.

Smoking can delay healing and make recurrence more likely. Heavy alcohol use may irritate the stomach lining, though alcohol alone is not the most common cause of ulcers. Severe illness, stress on the body from major injury, and less common conditions that increase acid production can also contribute. Because upper abdominal discomfort can have other explanations, doctors may sometimes evaluate for gallstones or pancreatitis when symptoms or test results suggest another cause.

How doctors test for H. pylori and diagnose an ulcer

Doctors choose tests based on symptoms, age, medical history, and whether there are alarm features. H. pylori can be detected in several ways. Common noninvasive options are the urea breath test and stool antigen test. Both are useful for diagnosing active infection and are also commonly used later to confirm that treatment worked.

Sometimes an upper endoscopy is recommended. During this procedure, a flexible camera is passed through the mouth to examine the esophagus, stomach, and duodenum. Endoscopy can show the ulcer directly, identify bleeding, and allow small tissue samples, called biopsies, to be taken. Those biopsies may be checked for H. pylori and, in selected cases, for other changes in the stomach lining.

Blood antibody tests are less helpful for confirming current infection because they may stay positive after the bacteria are gone. Doctors also pay attention to medication timing: proton pump inhibitors, antibiotics, and bismuth-containing medicines can affect test accuracy. For that reason, a clinician may advise stopping some medicines for a period before a breath or stool test, if it is safe to do so.

If symptoms are severe, there are warning signs, or bleeding is suspected, urgent assessment may be needed. In patients with vomiting blood or black stools, doctors may prioritize endoscopy and treatment for gastrointestinal bleeding while also investigating the ulcer itself.

Treatment options and how ulcers heal

Peptic ulcer treatment depends on the cause. Most people receive a proton pump inhibitor, often called a PPI, to lower stomach acid and give the ulcer time to heal. If H. pylori is present, the doctor usually prescribes a combination of antibiotics together with acid-lowering treatment. The exact medicines may vary by local resistance patterns, allergies, prior antibiotic exposure, and individual health factors.

If NSAIDs are contributing to the ulcer, doctors often advise stopping them if possible. When a pain reliever is still needed, the care plan may be adjusted to use a safer option or to protect the stomach better. People should not stop prescribed aspirin or other important medicines on their own without discussing the risks and benefits with a doctor.

Some ulcers heal within weeks, but complete recovery can take longer depending on the ulcer’s size, location, and whether complications occurred. Stomach ulcers may be followed more closely than duodenal ulcers because they sometimes need repeat endoscopy to confirm healing and exclude other causes. More information about peptic ulcer care may be helpful for people who want a broader overview of evaluation and management.

Endoscopic treatment may be needed if an ulcer is bleeding. Rarely, surgery is considered when there is perforation, blockage, or bleeding that cannot be controlled by endoscopy and medicines. These situations are uncommon but are important reasons not to ignore severe symptoms.

How doctors confirm healing after treatment

Confirming healing can mean two slightly different things: confirming that H. pylori has been eradicated and confirming that the ulcer itself has healed. These are related but not identical. A person may feel better, yet the bacteria can still be present, which is why follow-up testing is important after H. pylori treatment.

Doctors often use a urea breath test or stool antigen test to check whether H. pylori is gone. This is usually done after treatment is completed and after acid-suppressing and certain other medicines have been held for the recommended time, because those medicines can produce a false-negative result. A healthcare professional gives exact instructions on when to test.

Not everyone needs another endoscopy, but some do. Follow-up endoscopy is more likely if the ulcer was in the stomach, if there were concerning features, if symptoms continue, if bleeding occurred, or if the doctor wants direct visual confirmation that the area has healed. In people with complex digestive symptoms, a gastroenterologist may also consider related functional disorders and specialized evaluation such as neurogastroenterology assessment when standard treatment does not fully explain ongoing discomfort.

It is important for patients to take the full course of treatment exactly as prescribed. Missing doses, stopping early, or using over-the-counter medicines without guidance can make H. pylori harder to eradicate and may delay healing.

Prevention and self-care during recovery

Self-care can support medical treatment but does not replace it. People recovering from an ulcer are usually advised to avoid smoking and limit alcohol, since both can irritate the digestive tract and slow healing. Eating regular, balanced meals may help comfort, although no single “ulcer diet” cures the problem.

It can also help to review all medicines, including over-the-counter pain relievers, with a doctor or pharmacist. NSAIDs are a frequent trigger, and many people do not realize that cold remedies or combination products may contain them. If pain relief is needed, a clinician can suggest a safer approach based on the person’s health history.

Stress does not usually cause peptic ulcers by itself, but it can worsen digestive symptoms and make recovery feel harder. Good sleep, hydration, gentle activity if tolerated, and follow-up appointments all support healing. If symptoms such as heartburn, bloating, or abdominal pain continue despite treatment, doctors may check for overlapping conditions such as reflux disease or other digestive disorders.

Near the end of care, some international patients may seek specialist follow-up in experienced centers. Acibadem International’s multidisciplinary specialists and JCI-accredited hospitals diagnose and treat digestive conditions, including ulcers, when advanced evaluation or coordinated care is needed.

When to see a doctor

Anyone with ongoing upper abdominal pain, frequent indigestion, nausea, or unexplained bloating that lasts more than a short time should speak with a doctor. Even when symptoms seem mild, evaluation can help identify whether H. pylori, NSAIDs, or another digestive condition is responsible.

Urgent medical care is needed for vomiting blood, black or tarry stools, fainting, chest pain, severe weakness, or sudden intense abdominal pain. These can be signs of bleeding or a perforated ulcer and should not be watched at home.

People who have already been treated for an ulcer should return if symptoms persist, come back after treatment, or if follow-up testing was recommended but not yet completed. Confirming that H. pylori has been cleared and that the ulcer has healed is an important part of preventing recurrence and protecting long-term digestive health.

Frequently asked questions

How do doctors test for H. pylori?

Doctors commonly use a urea breath test or stool antigen test to detect active H. pylori infection. If an endoscopy is being done, they may also test a biopsy sample from the stomach lining. The best test depends on symptoms, medicines being taken, and whether follow-up is needed after treatment.

Do all peptic ulcers need an endoscopy?

No. Some people can be evaluated first with symptom review and noninvasive H. pylori testing. Endoscopy is more likely if there are alarm symptoms, suspected bleeding, older age, persistent symptoms, or a need to see the ulcer directly and take biopsies.

How long does it take for a peptic ulcer to heal?

Many ulcers start improving within days to weeks after treatment begins, but complete healing may take several weeks or longer. Healing time depends on the ulcer’s size, cause, location, and whether NSAID use or smoking continues. Following the treatment plan closely helps recovery.

Why is follow-up testing for H. pylori important?

Symptoms alone cannot prove that H. pylori has been eradicated. If the bacteria remain, the ulcer can return and complications may still develop later. A breath or stool test after treatment helps confirm that the infection is truly gone.

Can peptic ulcers come back after treatment?

Yes, they can return, especially if H. pylori was not fully cleared or if NSAID use continues. Smoking and certain other medicines can also increase recurrence risk. Proper follow-up and prevention steps make recurrence less likely.

What foods should be avoided with a peptic ulcer?

There is no single ulcer diet that works for everyone. In general, it helps to avoid foods or drinks that clearly worsen symptoms, such as very spicy meals, excess alcohol, or large late-night meals. A balanced diet and good hydration are usually more helpful than strict food rules.

References

  • National Institute of Diabetes and Digestive and Kidney Diseases
  • American College of Gastroenterology
  • National Health Service
  • Mayo Clinic

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. Şule Eren
Dr. Şule Eren, 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
Related

Related Treatments

Conditions

Related Conditions

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.