Can H. pylori cause stomach ulcers?
Medically reviewed by Dr Leon Fisherman, Gastroenterologist & Interventional Endoscopist, on .
Written by the
HpyloriTest.com editorial team. Updated on .
Key facts
- Yes. H. pylori infection is one of the main causes of stomach ulcers.
- Our stool antigen test checks for H. pylori at home, in 10 minutes.
- If you have or have had an ulcer, a test shows whether you have H. pylori.
What causes stomach ulcers?
The main causes are an infection with H. pylori bacteria and regular use of anti-inflammatory painkillers (NSAIDs), such as ibuprofen (NHS).
What can an ulcer feel like?
The main symptom is tummy pain, usually in the upper tummy. It may feel like burning and is often worse at night. Other symptoms include indigestion, heartburn, bloating and feeling sick (NHS).
How is an ulcer checked for H. pylori?
A GP may test for H. pylori with a breath test, a poo test or a blood test (NHS). The poo test is the one you can do yourself at home. If you take anti-inflammatory painkillers regularly, see why H. pylori matters with NSAIDs.
How to do the home test
- Catch a poo sample and dip the end of the sampling stick into it.
- Put the stick back in the tube, then stir and turn it for about 10 seconds.
- Squeeze 2 drops into the round sample hole on the test.
- Lay the test flat and read it at 10 minutes.
Our step-by-step guide and video show each stage.
Before you test
Ask your GP before stopping a PPI such as omeprazole or lansoprazole. If they agree, stop it 2 weeks before you test. Test at least 4 weeks after your last dose of antibiotics (UK guidance for GPs), and never cut a course of antibiotics short.
What your result means
- C and T lines: H. pylori detected. Take your result to your GP to talk about treatment.
- C line only: not detected.
- No C line: the test didn't work. Use a new test.
When to see a GP instead
See a GP straight away, instead of testing at home, if you have:
- trouble swallowing
- weight loss you can't explain
- vomiting that keeps coming back
If you're vomiting blood or passing black poo, call 999.
Frequently asked questions
Can a home test tell me if I have an ulcer?
No. It checks for H. pylori. Your GP can check for an ulcer.
Do I need a GP appointment for the home test?
No. You can order the kit online and test at home.

Test at home today
One stool antigen test with everything you need. Your result in 10 minutes, delivered to the UK.
Sources
- NHS. Stomach ulcer. Page last reviewed 12 August 2025. www.nhs.uk/conditions/stomach-ulcer/
- Public Health England (now UK Health Security Agency). Test and treat for Helicobacter pylori (HP) in dyspepsia: quick reference guide for primary care. August 2019. assets.publishing.service.gov.uk/media/5d6ceea740f0b607c946aa65/HP_Quick_Reference_Guide_v18.0_August_2019_change_highlighted.pdf
- NHS. Indigestion. www.nhs.uk/conditions/indigestion/
First published November 2026.