India · United StatesDoctor-led care for India and the United StatesLimited placesMyDoctor Partner: zero upfront, limited placesFree appDownload the MyDoctor App on any deviceConciergeMedical Tourism Concierge of MyDoctor: written quotes before you travelDownload the MyDoctor App →
Stomach and liver

Peptic ulcers and H. pylori: symptoms, causes and treatment

A peptic ulcer is a sore in the lining of the stomach or the first part of the small intestine. This article covers causes, symptoms, tests, treatment and the warning signs of bleeding.

5 min readUpdated 3 official sources

Dr. Ambed MishraScientist and Chief Medical OfficerDr. Ambed Mishra

Educational information only, not medical advice. Always ask a qualified doctor about your own health. In an emergency call 112 (India) or 911 (US). Read the full disclaimer.

Simple view: the same facts in everyday words, for readers with no medical background.

Abstract

Background. A peptic ulcer is a sore in the lining of the stomach or of the duodenum, the first part of the small intestine. The two most common causes are infection with Helicobacter pylori bacteria and regular use of anti-inflammatory painkillers.

Key points. This review describes the typical burning upper tummy pain, the other symptoms such as indigestion and nausea, and the tests used to look for H. pylori or to view the stomach lining. It explains that treatment depends on the cause and may include medicines that lower stomach acid and antibiotics for infection. It lists complications such as bleeding and the signs that need emergency care.

Conclusion. Most people recover with treatment, but untreated ulcers get worse. Speak to a doctor before taking anti-inflammatory painkillers. For vomiting blood, black stools or severe pain, call your local emergency number (112 in India, 911 in the United States).

Keywords: peptic ulcer; stomach ulcer; H. pylori; ulcer symptoms; gastroscopy; stomach pain

On this page
  1. 1. Introduction
  2. 2. Causes and risk factors
  3. 3. Signs and symptoms
  4. 4. Diagnosis and tests
  5. 5. Treatment and management
  6. 6. Prevention and self-care
  7. 7. Complications
  8. 8. When to see a doctor
  9. 9. Conclusion
  10. Common questions
  11. References
  12. Article information
  13. Cite this article
  14. About the author

A peptic ulcer is a real sore that needs proper diagnosis and care. This article explains what peptic ulcers are, why they form, how doctors find them and what treatment involves, using the NHS, the US National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) and MedlinePlus.

1. Introduction

A peptic ulcer is a sore in the lining of the stomach or the duodenum, which is the upper part of the small intestine [2, 3]. A sore in the stomach is also called a stomach or gastric ulcer. The NHS says ulcers can be serious, but most people recover with treatment [1].

2. Causes and risk factors

The most common causes are [1, 2, 3]:

  • Infection with Helicobacter pylori, usually called H. pylori, a type of bacteria that lives in the stomach lining
  • Regular use of non-steroidal anti-inflammatory drugs (NSAIDs), a group of painkillers that includes aspirin and ibuprofen

The NHS adds that smoking raises the risk and that risk increases with age [1]. MedlinePlus says stress and spicy foods do not cause ulcers, but they can make them worse [3].

3. Signs and symptoms

The most common symptom is burning pain in the upper tummy. It often starts between meals or during the night and may briefly ease after eating or taking an antacid. The pain can last from minutes to hours and may come and go over days or weeks [1, 3].

Other symptoms include indigestion, heartburn, bloating, nausea or vomiting [1]. NIDDK lists feeling full too soon during a meal, feeling too full after a meal, and belching [2].

4. Diagnosis and tests

A doctor will ask about your symptoms and medicines and may examine your tummy [1, 2]. Tests for H. pylori include a breath test, a stool sample and a blood test [1, 3].

Your doctor may also refer you for a gastroscopy, also called upper endoscopy. A thin, flexible tube with a camera is passed through the mouth into the stomach so that the doctor can look at it [1]. An upper endoscopy and an X-ray series of the upper digestive tract is another option [1, 2, 3].

5. Treatment and management

Treatment depends on the cause [1, 2]. NIDDK explains that medicines are used to heal the ulcer and the underlying cause is treated. If H. pylori is found, it is treated with medicines, and if painkillers are the cause, the doctor may change your medicines [2].

The NHS describes the following approach [1]:

  • Antibiotics to clear H. pylori infection
  • Medicines that reduce stomach acid
  • Treatment usually lasts from 1 week to 2 months, and follow-up tests may be needed
  • If symptoms return, see a doctor, because a different medicine or a longer course may be needed
  • A doctor may also suggest changing medicines that make symptoms worse, and getting help for stress, anxiety or low mood

MedlinePlus explains that the stomach acids that help digest food can damage the wall of the stomach or duodenum [3]. It says antacids and milk cannot heal peptic ulcers, that not smoking and avoiding alcohol can help, and that surgery may be needed if an ulcer does not heal. Untreated ulcers get worse [3].

6. Prevention and self-care

The NHS suggests these steps [1]:

  • Eat smaller meals and finish your evening meal 3 to 4 hours before bed
  • Keep a healthy weight and manage stress
  • Do not take anti-inflammatory painkillers such as ibuprofen without speaking to a doctor first
  • Avoid foods or drinks that seem to trigger your symptoms, such as fatty or spicy foods, coffee and chocolate
  • Stop smoking and drink less alcohol
  • The NHS Better Health service offers free support for weight loss, activity, quitting smoking and drinking less

NIDDK notes that researchers have not found that diet plays an important role, and doctors do not recommend a special diet [2]. So the food advice above is about easing your own symptoms.

7. Complications

If an ulcer is untreated it can cause serious problems [1, 2]:

  • Bleeding from the stomach or intestine, which can lead to iron-deficiency anaemia, a shortage of red blood cells
  • A hole through the stomach wall, called perforation, which can cause peritonitis, a serious infection inside the tummy
  • Blockage of the stomach or the duodenum

The NHS also notes that untreated H. pylori infection raises the risk of stomach cancer over time [1].

8. When to see a doctor

The NHS advises seeing a doctor if indigestion does not improve with treatment or tummy pain keeps coming back [1]. Seek urgent medical advice for worsening or constant tummy pain, loss of appetite, feeling full after eating very little, weight loss without trying, a lump in the tummy, painful or difficult swallowing, persistent vomiting, or constant tiredness [1].

Go to emergency care straight away if you [1]:

  • Vomit bright red blood, or vomit that looks like coffee grounds
  • Pass blood in your poo, or black, sticky, very smelly poo
  • Have severe tummy pain
  • Have sudden chest pain

The NHS advises not to drive yourself, and to bring a list of your medicines. In an emergency, call your local emergency number (112 in India, 911 in the United States).

9. Conclusion

Peptic ulcers are sores in the lining of the stomach or duodenum, most often caused by H. pylori infection or regular use of anti-inflammatory painkillers. They are usually found by simple tests or a camera examination and treated according to cause with acid-lowering medicines and, for infection, antibiotics. Report symptoms early and get urgent help for signs of bleeding.

Common questions

What causes most stomach ulcers?

H. pylori infection and regular use of NSAID painkillers such as aspirin and ibuprofen are the most common causes (1, 2, 3).

Does stress or spicy food cause ulcers?

MedlinePlus says stress and spicy foods do not cause ulcers but can make them worse (3).

How is H. pylori detected?

Through a breath test, a stool sample or a blood test, and a gastroscopy may also be arranged (1, 3).

Can milk or antacids heal an ulcer?

No. MedlinePlus states that antacids and milk cannot heal peptic ulcers (3).

What are emergency signs of an ulcer?

Vomiting bright red blood or coffee-ground material, black sticky stools, severe tummy pain or sudden chest pain need emergency care (1).

Important: please read

  • Educational information only. This article is general health education. It is not medical advice, diagnosis or treatment. Reading it does not create a doctor–patient relationship with MyDoctor or with anyone else.
  • Ask a qualified doctor. Always talk to a qualified, registered doctor about your own health. In India, that means a doctor registered with the National Medical Commission (NMC) or a State Medical Council. In the United States, a licensed physician. Elsewhere, a doctor licensed where you live.
  • Never ignore or delay professional advice because of something you read here. Do not start, stop or change any medicine or treatment without your doctor.
  • Emergencies: call 112 in India, 911 in the United States, or your local emergency number. Do not wait for an online answer.
  • No product is endorsed. MyDoctor does not recommend any brand, product or supplement in this article.
  • About the sources. This article summarises, in our own words, information from the public health bodies named under Sources. Health knowledge changes, and this summary may not reflect the latest research or your personal situation.
  • Liability. To the extent permitted by law, MyDoctor (MODERNUS HEALTH TECHNOLOGIES PRIVATE LIMITED) accepts no liability for any decision made on the basis of this content.

Full disclaimer · Privacy and terms

References

  1. NHS. Stomach ulcer - NHS [Internet]. 2025 [cited 2026 Oct 19]. Available from: https://www.nhs.uk/conditions/stomach-ulcer/
  2. NIDDK, NIH. Peptic Ulcers (Stomach Ulcers) [Internet]. 2022 [cited 2026 Oct 19]. Available from: https://www.niddk.nih.gov/health-information/digestive-diseases/peptic-ulcers-stomach-ulcers
  3. NIH MedlinePlus. Peptic Ulcer - MedlinePlus [Internet]. 2024 [cited 2026 Oct 19]. Available from: https://medlineplus.gov/pepticulcer.html

Article information

Article ID
MDG-ART-GUT-0005
Version
1
Author and corresponding author
Dr. Ambed Mishra, PharmD, PhD, Scientist and Chief Medical Officer, MyDoctor. Contact the author's office
Written
2026 Oct 3
Approved and published
2026 Oct 20
Last reviewed
2026 Oct 19
Next review due
2027 Oct 19
Conflict of interest
The author leads MyDoctor, which offers health services. No company paid for this article.
Funding
None.

Cite this article

NLM (PubMed style)

Mishra A. Peptic ulcers and H. pylori: symptoms, causes and treatment [Internet]. MyDoctor Health Library. 2026 [updated 2026 Oct 20; cited 2026 Oct 20]. Available from: https://mydoctor.social/app/blog/peptic-ulcer-h-pylori-symptoms-causes-treatment

AMA

Mishra A. Peptic ulcers and H. pylori: symptoms, causes and treatment. MyDoctor Health Library. Published October 20, 2026. Updated October 20, 2026. Accessed October 20, 2026. https://mydoctor.social/app/blog/peptic-ulcer-h-pylori-symptoms-causes-treatment

APA

Mishra, A. (2026, October 20). Peptic ulcers and H. pylori: symptoms, causes and treatment. MyDoctor Health Library. https://mydoctor.social/app/blog/peptic-ulcer-h-pylori-symptoms-causes-treatment

Dr. Ambed Mishra
Scientist and Chief Medical Officer

Dr. Ambed Mishra, PharmD, PhD

  • Clinical Research
  • Psychiatry
  • Community Medicine
  • Clinical Pharmacy
  • Electronic Health Records
  • Patient Outcomes Research
MyDoctormydoctor.social

MyDoctor by MODERN US HEALTH, Austin, Texas. Ahmedabad, Gujarat. Bangalore, India.

Dr. Ambed Mishra is a clinical (patient care) scientist, author and former professor. He is Group CEO and Chief Medical Officer of MODERN US HEALTH (MODERN US GROUP), Austin, Texas, the group behind MyDoctor, and a senior consultant who teaches and trains MD/DO physicians, PharmD and PhD professionals, nurses and other healthcare professionals in patient care in the United States and India.

More about Dr. Ambed Mishra
  • More than ten years of full-time leadership in United States healthcare, building patient care services that improve medication adherence and bring doctors, pharmacists and nurses together around each patient.
  • Leads the MD and engineering teams behind MyDoctor: clinic and hospital management software, electronic health records and telehealth for hospitals and physician groups in the United States and India.
  • Former Assistant Professor and Clinical Preceptor at Rajiv Gandhi University of Health Sciences, Bangalore, and senior researcher with hospitals, universities and patient care groups in India and the United States.
  • More than 30 published research and review articles and case reports, and more than 15 international conference presentations in India, Australia, Canada, the United States, Spain and other countries.
  • Chief Medical Officer and Global Program Head of a nonprofit mission that helps cover hospital and doctor visit bills for patients in need in India, Nepal, the United States and other countries.

The author's office answers questions about articles, research, speaking and collaboration. It cannot give personal medical advice.

Share:WhatsAppLinkedInX

More from Stomach and liver

See all →
Stomach and liver

Coeliac disease and gluten: symptoms, testing and a gluten-free diet

Coeliac (celiac) disease is a lifelong immune condition triggered by gluten. This article explains symptoms, who is at risk, how it is diagnosed and how a gluten-free diet is used.

5 min read · 20 Oct 2026
Stomach and liver

Constipation in adults: causes, self-care and when to see a doctor

Constipation means passing stool less often than usual or with difficulty. This article explains causes, everyday self-care, the role of laxatives and the warning signs that need …

5 min read · 20 Oct 2026
Stomach and liver

Hepatitis B: how it spreads, how it is tested and how to prevent it

Hepatitis B is a viral liver infection that can be short-term or lifelong. This article explains how it spreads, how it is tested for, how it is managed and how vaccination preven…

6 min read · 20 Oct 2026
Stomach and liver

Fatty liver disease (MASLD): causes, tests and lifestyle care

Fatty liver disease happens when too much fat builds up in the liver. This article explains MASLD, its risk factors, how it is found, and the lifestyle steps that support liver he…

5 min read · 20 Oct 2026
Stomach and liver

Irritable bowel syndrome (IBS): symptoms, tests and self-care

Irritable bowel syndrome (IBS) is a common gut condition with recurring belly pain and changes in bowel habits. This article explains symptoms, triggers, how it is diagnosed and e…

6 min read · 20 Oct 2026
Stomach and liver

Acid Reflux Treatment: Lifestyle Changes and Medicine Options

GERD management usually starts with lifestyle changes and may include antacids, H2 blockers or proton pump inhibitors. This guide explains the options as described by NIDDK.

3 min read · 19 Oct 2026
Register freeGet the app
One question

Who are you?

Tap one to continue. We show the right plans, prices and wording for you. Change it any time from the top of the page.

For me and my family
Healthcare professionals
Organisations
Saved on this device only. One tap is enough.

We use essential cookies to run MyDoctor and keep your free checks. With your agreement we also count how our website is used (pages, time, where visits come from, city) to improve it. We never sell your data. Privacy policy