What causes stomach ulcers?
Written by the HpyloriTest.com editorial team. Updated on .
Key facts
- Usually H. pylori bacteria, or anti-inflammatory painkillers (NSAIDs) (Healthdirect).
- If H. pylori is the cause, antibiotics can treat it and help prevent another ulcer (Healthdirect).
- You can check for H. pylori at home with a faecal antigen test, with a result in 10 minutes.
How does H. pylori cause an ulcer?
H. pylori is a type of bacteria that lives in the lining of your stomach. It inflames the lining, which can lead to too much stomach acid. Over time that may cause an ulcer in the stomach or in the upper part of the small intestine (Healthdirect).
Which painkillers cause ulcers?
NSAIDs such as aspirin and ibuprofen (Healthdirect). More in can ibuprofen cause stomach ulcers?
Who is more likely to have H. pylori?
People who:
- are over 65
- are migrants
- live in aged care
- have a low income
- have family members with H. pylori
- have a family history of ulcers
Source: Healthdirect.
Why find out which cause it is?
Because the treatment is different. Antibiotics are only for H. pylori (Healthdirect). A test shows whether you have it.
How to check for H. pylori at home
- Catch a poo sample in a clean, dry container 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 Nexium or Somac. If they agree, stop it 2 weeks before you test. Test at least 4 weeks after your last dose of antibiotics or bismuth (AJGP 2025), and never cut a course of antibiotics short.
Reading your result
- 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 your 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 000.
Frequently asked questions
Does stress cause stomach ulcers?
It isn't one of the causes Healthdirect lists. See can stress cause stomach ulcers?

Test at home today
One faecal antigen test with everything you need. Your result in 10 minutes, delivered anywhere in Australia.
Sources
- Healthdirect Australia. Stomach ulcers. Last reviewed September 2025. www.healthdirect.gov.au/stomach-ulcers
- Healthdirect Australia. Helicobacter pylori. Last reviewed December 2025. www.healthdirect.gov.au/helicobacter-pylori
- Hopkins Z, Diab J, Obeyesekera K, Tse T, Wu B. Helicobacter pylori: rise of the resistance. Australian Journal of General Practice. 2025;54(10). www1.racgp.org.au/ajgp/2025/october/helicobacter-pylori-rise-of-the-resistance
First published November 2026.