How is gastritis treated?
Written by the HpyloriTest.com editorial team. Updated on .
Key facts
- It depends on the cause. If it's H. pylori, the treatment is antibiotics and acid-lowering medicine (Healthdirect).
- If it's alcohol or painkillers, the treatment is to stop or cut down (Healthdirect).
- A test shows whether H. pylori is the cause, and you can do one at home.
What if H. pylori is the cause?
You take antibiotics with an acid-lowering medicine. Take the full course as directed (Healthdirect). More in how H. pylori is treated.
What if it's painkillers or alcohol?
Stop or reduce them. If an anti-inflammatory painkiller was prescribed for you, talk to your GP about what to do (Healthdirect).
Which medicines ease gastritis?
Medicines that reduce stomach acid and protect the lining:
- antacids
- H2 blockers, such as famotidine
- proton pump inhibitors (PPIs), such as omeprazole
Small amounts are sold over the counter at pharmacies (Healthdirect). Some of them affect an H. pylori test. See Before you test, below.
What can you do yourself?
Eat smaller meals more often, avoid foods that irritate your stomach, and stop smoking (Healthdirect). More in what to eat with gastritis.
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
Do I need antibiotics for gastritis?
Only if H. pylori is the cause. See antibiotics for gastritis.

Test at home today
One faecal antigen test with everything you need. Your result in 10 minutes, delivered anywhere in Australia.
Sources
- Healthdirect Australia. Gastritis. Last reviewed March 2025. www.healthdirect.gov.au/gastritis
- 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
- Healthdirect Australia. Helicobacter pylori. Last reviewed December 2025. www.healthdirect.gov.au/helicobacter-pylori
First published November 2026.