1. Home
  2. Australia
  3. Treatment

What should you eat with a stomach ulcer?

Written by the HpyloriTest.com editorial team. Updated on .

Key facts

  • Avoid foods that make your symptoms worse, such as spicy foods, coffee or fizzy drinks (Healthdirect).
  • Antibiotics are what kill H. pylori (Healthdirect).
  • You can check for H. pylori at home with a faecal antigen test, with a result in 10 minutes.

Which foods and drinks can make it worse?

Healthdirect names spicy foods, coffee and fizzy drinks (Healthdirect). Everyone is different, so notice what sets your pain off and leave that out.

What else helps?

  • stopping smoking
  • drinking less alcohol
  • losing weight, if you're above a healthy weight

Source: Healthdirect.

Will changing your diet heal the ulcer?

Diet eases symptoms. The ulcer is treated with medicine that reduces stomach acid, plus antibiotics if H. pylori is the cause (Healthdirect). That's why it's worth knowing whether you have H. pylori.

How to check for H. pylori at home

  1. Catch a poo sample in a clean, dry container and dip the end of the sampling stick into it.
  2. Put the stick back in the tube, then stir and turn it for about 10 seconds.
  3. Squeeze 2 drops into the round sample hole on the test.
  4. 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 coffee cause ulcers?

Coffee can make ulcer symptoms worse. The usual causes are H. pylori and anti-inflammatory painkillers (Healthdirect).

Test at home today

One faecal antigen test with everything you need. Your result in 10 minutes, delivered anywhere in Australia.

$49.00

Sources

  1. Healthdirect Australia. Stomach ulcers. Last reviewed September 2025. www.healthdirect.gov.au/stomach-ulcers
  2. Healthdirect Australia. Helicobacter pylori. Last reviewed December 2025. www.healthdirect.gov.au/helicobacter-pylori
  3. 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.

How to test for H. pylori at home (39 sec)