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.
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.
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
In simple words
A peptic ulcer is a sore on the inside of the stomach or the first part of the small gut.
What causes it
- A germ called H. pylori
- Regular use of some painkillers, such as aspirin and ibuprofen
Stress and spicy food do not cause ulcers, but they can make them worse.
What it feels like
- A burning pain in the upper tummy, often between meals or at night
- Indigestion, bloating or feeling sick
How doctors check
They may do a breath, stool or blood test for the germ. Sometimes they look inside with a thin camera tube.
Treatment
Your doctor chooses it based on the cause. It can include medicine that lowers stomach acid and antibiotics for the germ. Follow your doctor's instructions. Antacids and milk alone do not heal an ulcer.
Looking after yourself
- Eat smaller meals and not late at night
- Stop smoking and drink less alcohol
- Ask your doctor before taking painkillers
When to get help fast
Get emergency help if you vomit blood, see blood in your poo, have black sticky poo, or have severe tummy pain.
In an emergency, call 112 in India or 911 in the United States.
This is a short summary for general readers. Switch to for the details and references.
On this page
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.
References
- NHS. Stomach ulcer - NHS [Internet]. 2025 [cited 2026 Oct 19]. Available from: https://www.nhs.uk/conditions/stomach-ulcer/
- 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
- 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
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
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
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, PharmD, PhD
- Clinical Research
- Psychiatry
- Community Medicine
- Clinical Pharmacy
- Electronic Health Records
- Patient Outcomes Research
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.