1. Home
  2. US
  3. Symptoms

Can H. pylori cause stomach pain at night?

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

Key facts

  • Yes. Ulcer pain may come when the stomach is empty or at night (NIDDK), and H. pylori is the main cause of ulcers (MedlinePlus).
  • Reflux can also wake you at night, so a test is the way to know.
  • You can check for H. pylori at home with a stool antigen test, with a result in 10 minutes.

Why does it hurt at night?

Hours after your last meal, your stomach is empty. Ulcer pain often shows up then. It's a dull or burning pain between the belly button and the breastbone, and it may come and go over time (NIDDK).

Could it be reflux instead?

Reflux is also worse when you lie down. The burn is usually felt behind the breastbone and may rise toward the throat (NIDDK). If symptoms come at night, finishing meals at least 3 hours before bed can help reflux (NIDDK). More in H. pylori or GERD.

How do you find out?

A stool antigen test checks for H. pylori. You can do it at home in the morning, with no appointment and no fasting.

How to do the home test

  1. Catch a stool sample 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 instructions and video walk you through each stage.

Before you test

Ask your doctor before stopping a PPI such as Prilosec or Nexium. If they agree, stop it 2 weeks before you test. Test at least 4 weeks after your last dose of antibiotics or bismuth (Pepto-Bismol) (ACG), and never cut a course of antibiotics short.

What your result means

  • C and T lines: H. pylori detected. Take your result to your doctor 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 doctor instead

See a doctor right 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, tarry stools, call 911.

Frequently asked questions

Does eating something help ulcer pain?

For some people the pain eases for a while after eating. For others, eating makes it worse (NIDDK).

Test at home today

One stool antigen test with everything you need. Your result in 10 minutes, delivered to your door in the US.

$49.00

Sources

  1. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Symptoms and causes of peptic ulcers. Last reviewed September 2022. www.niddk.nih.gov/health-information/digestive-diseases/peptic-ulcers-stomach-ulcers/symptoms-causes
  2. MedlinePlus, US National Library of Medicine. Helicobacter pylori infections. Last updated August 24, 2025. medlineplus.gov/helicobacterpyloriinfections.html
  3. NIDDK. Symptoms and causes of GER and GERD. www.niddk.nih.gov/health-information/digestive-diseases/acid-reflux-ger-gerd-adults/symptoms-causes
  4. NIDDK. Eating, diet and nutrition for GER and GERD. www.niddk.nih.gov/health-information/digestive-diseases/acid-reflux-ger-gerd-adults/eating-diet-nutrition
  5. Chey WD, et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. Am J Gastroenterol. 2024. Guideline highlights, American College of Gastroenterology. mediacdn.gi.org/giorgcdn/wp-content/uploads/2025/01/ACG-Hpylori-Guidelines-Highlights-2024-FINAL.pdf.pdf
  6. NIDDK. Symptoms and causes of indigestion. Last reviewed March 2025. www.niddk.nih.gov/health-information/digestive-diseases/indigestion-dyspepsia/symptoms-causes
  7. MedlinePlus Medical Encyclopedia. Gastrointestinal bleeding. Reviewed January 24, 2025. medlineplus.gov/ency/article/003133.htm

First published November 2026.

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