Quick answer: H. pylori is a common bacterium that can infect the stomach lining and cause many digestive symptoms. Although the majority of those infected have little or no complaints, some patients may present with burning, bloating, nausea and frequent burping. A healthcare provider can confirm H. pylori infection with a breath or stool test, and sometimes through an endoscopy or blood test, and treat it with antibiotics.
Abdominal pain is very common and affects almost everyone at some point. Although many digestive conditions present with pain, the cause of pain may not always be obvious. Diet, lifestyle and stress can also affect digestive symptoms. An infection with Helicobacter pylori, commonly known as H. pylori, is one of the more specific causes of upper digestive pain because of associated acid reflux, gastritis and ulceration.
H. pylori is a type of bacteria that lives in the lining of the stomach. It’s surprisingly common — researchers estimate that more than half of the world’s population has been infected with it. For many people, it causes no symptoms at all. But for others, it can cause inflammation of the stomach lining and can lead to uncomfortable, sometimes persistent and severe digestive issues. These can include benign conditions like stomach and small bowel ulcers, as well as more serious conditions such as stomach cancer and lymphomas.
Understanding what H. pylori pain feels like, and how it differs from other causes of stomach discomfort, can help you decide when it’s time to get checked out.
What Does H. Pylori Stomach Pain Feel Like?
This type of stomach pain often shows up as a dull, gnawing or burning sensation in the upper abdomen. Some people describe it as an ache that comes and goes, while others feel it more sharply after eating or on an empty stomach.
A few patterns to watch for:
- Pain that worsens between meals or overnight, when the stomach is empty
- Discomfort that temporarily improves after eating or taking an antacid
- A burning feeling just below the breastbone
- Pain that comes in waves over days or weeks rather than constantly
This pain happens because it can weaken the protective mucus lining of the stomach, allowing stomach acid to irritate the tissue underneath. Over time, this irritation can contribute to gastritis (inflammation of the stomach lining) or peptic ulcers.
What Other Symptoms Can H. Pylori Cause?
Stomach pain is often the most noticeable symptom, but chronic untreated H. pylori infection can cause a broader and more severe range of digestive complaints, including:
- Bloating or excessive fullness after small meals
- Frequent burping
- Nausea, and occasionally vomiting
- Loss of appetite
- Unintentional weight loss
- Dark or tarry stools, which can signal bleeding and require prompt medical attention
Even when it doesn’t cause noticeable symptoms, the infection can cause ongoing inflammation in the stomach and contribute to conditions such as gastritis and peptic ulcers. Over time, chronic inflammation caused by H. pylori can lead to changes in the stomach lining that increase the risk of stomach cancer and lymphoma.
H. Pylori and Stomach Cancer
The link between H. pylori and stomach cancer has been well studied, and recent research has highlighted the significant impact of H. pylori worldwide. The study, published in The Lancet Oncology in October 2026, estimated that H. pylori was associated with about 760,000 new cancer cases worldwide in 2024, underscoring its role in the global burden of stomach cancer.
Who Is at Risk?
Anyone can develop an H. pylori infection, but certain factors can increase the likelihood of becoming infected. H. pylori is more common in some parts of the world and tends to spread within households, often during childhood.
You may have a higher risk of H. pylori if you:
- Live in or spent significant time in an area where H. pylori infection is common
- Live in crowded conditions or a household with someone who infected
- Have limited access to clean water or adequate sanitation
- Have a family history of H. pylori infection or stomach cancer
- Have had a peptic ulcer or previously been diagnosed with H. pylori
Could Your Symptoms Be Something Else?
Stomach pain is a common presenting symptom of many different digestive conditions, and H. pylori is just one possible explanation. Other common causes include:
- Acid reflux (GERD): Causes burning pain, often worse when lying down
- Food intolerances: Can trigger bloating, cramping and diarrhea after certain foods
- Irritable bowel syndrome (IBS): Often linked to stress and changes in bowel habits
- Gallbladder issues: Typically cause pain in the upper right abdomen, sometimes after fatty meals
- Pancreatic issues: Can cause pain in the upper middle abdomen as well as loss of appetite and weight loss
- Stress and anxiety: Can manifest physically as stomach discomfort, even without a digestive cause
Because the presentation of many other digestive conditions can overlap significantly with H. pylori symptoms, it’s difficult to know the cause based on symptoms alone. Only proper testing can confirm whether H. pylori is present.
How Do You Know If You Have H. Pylori?
If your provider suspects H. pylori, they may recommend one or more of these tests:
- Urea breath test: You drink a special solution, then breathe into a bag. If H. pylori is present, it produces enzymes that create detectable gases.
- Stool antigen test: A stool sample is checked for proteins from the bacteria.
- Endoscopy with biopsy: A thin, flexible tube with a camera is guided into the stomach under sedation to look at the lining directly and collect a tissue sample for testing. This is often used when symptoms are more severe or when providers want a closer look.
- Blood test: This checks for antibodies to H. pylori. Because it can’t distinguish between a current and a past infection, it’s less commonly used to confirm infection.
Breath and stool tests are commonly used to detect an active infection without an invasive procedure. Your provider may recommend an endoscopy if you have certain symptoms or need a closer look at the stomach lining to rule out possible ulcers.
How Is It Treated?
H. pylori is typically treated with a combination of antibiotics and a medication that reduces stomach acid, such as a proton pump inhibitor. Treatment usually lasts about two weeks, although the specific medications and combination depend on factors such as antibiotic resistance and whether you’ve been treated for H. pylori before.
Taking the full course exactly as prescribed matters. Stopping early, even if symptoms improve, can allow the bacteria to survive and become resistant to treatment.
How Do You Know If Treatment Worked?
Your provider will likely recommend a follow-up breath or stool test at least four weeks after completing treatment to make sure the infection is gone. Certain medications, including proton pump inhibitors, may need to be stopped for a period of time before testing to help ensure accurate results. If H. pylori is still detected, a different combination of antibiotics may be needed.
H. Pylori FAQs
Can H. pylori come back after treatment?
Yes, though it’s uncommon if treatment is successful. Reinfection is more likely in areas with limited access to clean water and sanitation, or if the original treatment didn’t fully eliminate the bacteria.
Is H. pylori contagious?
Yes. The infection is believed to spread through direct contact with saliva, vomit or fecal matter, as well as contaminated food or water. It often spreads within households, especially during childhood.
What should you eat if you have H. pylori?
There’s no single required diet for H. pylori, but some people find that avoiding spicy, acidic or fried foods helps reduce stomach discomfort. Eating smaller, more frequent meals may also help during treatment.
When Should You See a Healthcare Provider?
See a provider if you have persistent stomach pain lasting more than a week or two, especially if it’s paired with bloating, nausea or appetite changes. Seek care right away if you notice dark or bloody stools, vomit that looks like coffee grounds, unexplained weight loss or severe abdominal pain. These can be signs of complications that need prompt attention.
Stony Brook Medicine Community Medical Group brings together a broad range of medical specialties and practices across Long Island, making it easier to find the care you need, close to home. From primary care and family medicine to cardiology, gastroenterology, orthopedics, women’s health and more, our practices work within the Stony Brook Medicine network to help provide connected, coordinated care.
Explore our specialties and practice locations to find a provider and services that meet your healthcare needs.




