Skip to content
H. Pylori Symptoms, Testing, Treatment & Prevention

H. Pylori Symptoms, Testing, Treatment & Prevention

Health guidePublished 15 min readMedical review pending

Introduction

H. pylori is a common germ that infects the stomach lining. It causes long-term stomach swelling, even when no symptoms appear.

Most people with this germ have no clear symptoms. Yet it can cause ulcers and raise stomach cancer risk.

This guide covers symptoms, tests, care, prevention, and warning signs. It also explains why testing after treatment matters.

Ask with sources

Explore H. Pylori in the ModernDoc app

Open the iOS beta invitation

Opens TestFlight for iPhone or iPad. Questions are not transferred from this article. Android is not available.

ModernDoc provides evidence-based health information with cited sources — not medical advice. If this may be an emergency, call 911.

Overview: What H. Pylori Is and How It Affects the Stomach

Helicobacter pylori, or H. pylori, is a bacterium that lives in the stomach lining. More than half of people worldwide may carry it.

The germ can live in the harsh acid within the stomach8. It enters the stomach’s mucus layer and attaches to the lining4.

How H. pylori causes chronic gastritis

H. pylori causes gastritis, which means swelling and irritation of the stomach lining. This swelling occurs whether symptoms appear or not.

The germ may change how much acid the stomach makes. It can also damage the protective lining of the stomach and upper intestine.

This damage may lead to a peptic ulcer. A peptic ulcer is an open sore in the digestive lining.

About 10% to 15% of infected people develop an ulcer. However, many ulcers cause few symptoms or none2,4.

H. pylori is also a strong risk factor for some stomach cancers. Still, only a small number of infected people develop stomach cancer.

How long the infection may last

Many H. pylori infections begin during childhood. The germ can remain for life when treatment does not remove it4.

Acid-reducing drugs may ease ulcer pain without removing the germ. Therefore, feeling better does not show whether treatment worked.

Breath or stool testing can check whether the germ remains. This follow-up step is called confirmation of eradication.

Causes and Possible Routes of Spread

Experts have not fully settled every route of H. pylori spread2. Person-to-person contact appears to play an important role.

The germ may pass through saliva, vomit, or stool. Contact with vomit or stool from an infected person may spread H. pylori8.

Food or water may also carry the germ2,7. Exposure often happens during childhood, especially in developing regions.

Who has a higher risk of infection

Living conditions can affect the chance of exposure. Factors linked with higher risk include:

Living in crowded conditions may increase exposure risk.

Lacking a safe and reliable water supply raises infection risk.

Living in a developing country is linked with greater risk.

Sharing food or utensils may allow contact with infected saliva.

Childhood exposure is more common where sanitation is poor7,8.

H. pylori infection may affect malnutrition in some risk groups2. Its frequency also rises with age in some groups2.

Family history may matter as well. Risk rises when a parent or sibling had stomach cancer or peptic ulcers.

Symptoms and Warning Signs

Most people with H. pylori have no symptoms. When symptoms occur, they often come from gastritis or an ulcer.

Possible H. pylori symptoms can include the following changes:

If symptoms occur, the upper abdomen may ache or burn.

If an ulcer develops, pain may worsen on an empty stomach4,7.

If the stomach lining becomes swollen, bloating may occur4,7.

If symptoms develop, frequent burping may occur.

If the stomach becomes irritated, nausea may develop4,7.

If illness affects eating, appetite may decrease4,7.

If early fullness occurs, small meals may feel filling8.

If serious stomach disease develops, unexplained weight loss may occur.

These symptoms can occur with many health problems. An H. pylori test helps show whether the germ is involved.

Symptoms linked to gastritis or peptic ulcers

Ulcer pain may feel burning or gnawing. It can occur between meals or during early morning hours.

If pain follows this pattern, food or antacids may bring relief. However, pain varies between people, and some ulcers cause no pain4.

An ulcer can bleed slowly or suddenly. Long-term bleeding may cause anemia, which means too few healthy red blood cells.

If anemia develops, weakness and tiredness may occur. If stool turns black or tarry, bleeding may be present8.

Blood loss may also cause dizziness or fainting. These signs need quick medical attention.

When to See a Doctor

Seek emergency care now if any of these signs occur:

If sudden severe abdominal pain starts, seek emergency care now4.

If vomit contains blood, seek emergency care now4.

If vomit looks like coffee grounds, seek emergency care now4.

If stool becomes black or tarry, seek emergency care now4.

If vomiting becomes severe, seek emergency care now4.

Other symptoms also need timely medical help. Do not ignore new or lasting changes.

If swallowing becomes hard, get medical help right away. If marked dizziness or fainting occurs, get medical help right away.

If unusual tiredness develops, bleeding or anemia may be involved. Arrange an assessment, especially if dark stool or dizziness also occurs.

If vomiting continues, contact a clinician for an assessment. Ongoing stomach pain also deserves medical review.

If weight loss has no clear cause, arrange a medical visit. A clinician can decide which tests are suitable.

H. Pylori Testing and Diagnosis

An H. pylori test can find the germ before treatment. Certain tests can also check for it afterward.

Clinicians may test people with current peptic ulcers. They may also test those with a past ulcer diagnosis.

Testing may help assess lasting pain or discomfort in the upper abdomen4. Your medical history helps guide the choice of test.

Who may need a test-and-treat approach

Some adults with indigestion may start with a noninvasive test. Noninvasive means the test does not use a scope or surgery.

Indigestion is also called dyspepsia. It may include upper stomach pain, fullness, or bloating.

The test-and-treat approach starts with an H. pylori test. A positive result leads to treatment without an initial endoscopy.

This approach may suit younger adults without alarm signs. One major consensus uses an age cutoff of 50 years.

That consensus supports noninvasive testing below age 50 when alarm signs are absent. It recommends upper endoscopy for older adults with indigestion.

Age rules and care plans may differ. Ask which guidance applies in your area.

Breath, stool, and blood tests compared

Several tests are available for H. pylori. Each test serves a different role.

The main testing choices include these common options:

A urea breath test can detect an active infection.

A validated stool antigen test looks for H. pylori proteins.

A blood test measures antibodies made against H. pylori.

An endoscopy allows testing of tissue from the stomach lining.

During a breath test, you swallow a product containing urea. H. pylori breaks down that urea and releases marked carbon.

The carbon then appears in your breath. A testing device measures it to look for the germ.

A stool antigen test checks a stool sample for H. pylori proteins. A properly checked version works before and after treatment.

Blood antibody tests can support screening in selected cases. They do not serve the same follow-up role as breath or stool tests.

How to prepare for follow-up testing

Some drugs can affect breath and stool test results. Follow your clinician’s instructions before stopping any medicine.

Common preparation points include the following timing guidance:

Wait at least four weeks after antibiotics before follow-up testing.

Avoid antibiotics and bismuth during the four-to-six-week follow-up period.

A clinician may stop a PPI for up to two weeks.

Change prescribed medicines only with guidance from your clinician.

A PPI is a proton pump inhibitor. This type of medicine lowers stomach acid.

Your clinician may adjust the plan for your health needs. Ask for written instructions if the medicine schedule seems complex.

When endoscopy and biopsy may be needed

Upper endoscopy uses a flexible camera to view the upper digestive tract. It can show ulcers, gastritis, and other digestive problems.

During the procedure, a clinician may collect a biopsy. A biopsy is a small sample of stomach tissue.

Laboratory tests can check the sample for H. pylori. They may also assess which antibiotics can act against the germ.

Endoscopy is more invasive than breath or stool testing. Clinicians often reserve it for added risks or other digestive concerns.

Alarm signs can change the first testing plan. Endoscopy may also help when symptoms continue after treatment.

It can guide antibiotic choice after an earlier treatment has failed. Your clinician will weigh the risks and likely benefits.

Treatment and Confirming Eradication

People with a confirmed active infection should generally receive treatment. Treatment can reduce ulcers, repeat ulcers, and stomach cancer risk.

H. pylori treatment uses several medicines together4. The number of H. pylori strains resistant to treatment antibiotics is increasing2.

Resistance means the antibiotic can no longer kill the germ well. This problem can make treatment fail1,2.

Antibiotics and acid suppression

Treatment often combines multiple antibiotics with strong acid suppression8. Acid suppression supports healing and helps the antibiotics work.

A PPI is commonly used to lower stomach acid. Bismuth may also coat and protect an ulcer.

Treatment often includes at least two antibiotics at once. This approach reduces reliance on one antibiotic.

Some treatment plans last 10 to 14 days4. The exact drugs and length depend on the chosen plan.

These plans can involve many pills and daily doses. Side effects and high pill counts can make the plan hard to finish.

Take every dose as prescribed. Completing the full plan improves the chance of removing the germ.

If side effects develop, contact the prescribing clinician. Do not skip doses without first asking for guidance.

Bismuth quadruple therapy

Bismuth quadruple therapy uses four parts. It combines acid suppression, bismuth, and more than one antibiotic4.

One consensus favors this plan where clarithromycin resistance is unknown or high. High resistance in that guidance means more than 15%.

Your exact treatment should follow current local guidance. It should also account for any past antibiotic use.

Do not create your own plan with leftover antibiotics. Clinician-selected combinations help address resistance and treatment history.

Clarithromycin resistance and treatment failure

Resistance to H. pylori antibiotics has increased1,2. This rise makes careful drug selection more important.

Current consensus supports clarithromycin susceptibility testing when such testing is available. Susceptibility testing shows whether an antibiotic is likely to work.

When clarithromycin resistance is unknown, bismuth quadruple therapy may be preferred. Clinicians should not rely blindly on clarithromycin in that setting.

Missed doses can also lead to treatment failure. Clear instructions and early discussion of barriers may improve completion.

If treatment does not work, a different drug combination may be needed4,6. An endoscopy or other test may help select the next plan.

Tell your clinician about every past H. pylori treatment. Bring a medicine list if you remember the names.

When to test after treatment

Feeling better does not prove that H. pylori is absent. Acid-reducing medicine can ease symptoms without removing the infection.

A breath test can check for H. pylori after treatment. A validated stool antigen test can do the same.

Follow-up testing should occur at least four weeks after antibiotics end. Earlier testing may be less accurate because medicines can affect results.

Antibiotics and bismuth should be absent during the four-to-six-week follow-up period. PPIs may require a hold of at least two weeks.

Only stop these medicines with your clinician’s direction. The instructions may differ based on your health needs.

If the follow-up result remains positive, another treatment plan may be needed. That plan may use a different mix of antibiotics.

Prevention, Recovery, and Long-Term Risks

No single step prevents every H. pylori exposure. However, safer hygiene and food habits may reduce contact with the germ7,8.

Practical H. pylori prevention steps include these daily habits:

Wash your hands well after using the toilet8.

Use clean and safely treated water when possible.

Choose food prepared and stored under clean conditions2,7.

Avoid sharing food, cups, or eating utensils.

Avoid direct contact with another person’s vomit or stool.

Food, lifestyle, and symptom relief

Food cannot replace antibiotic treatment for active H. pylori. Food products have been studied as a possible route of H. pylori transmission, but the evidence is insufficient2.

The role of food products in spreading this germ remains unclear2. Use them only as additions to clinician-selected care.

A balanced diet may support general stomach health2. More fruits and vegetables are linked with better outcomes during infection2.

Eating fewer salty processed foods may also be helpful2. Limiting salty and pickled foods may lower stomach cancer risk.

Discuss aspirin or NSAID use with your clinician. NSAIDs are common pain drugs, including ibuprofen.

Aspirin and NSAIDs raise ulcer risks in people with H. pylori. Some people may need testing before long-term NSAID treatment.

Reducing future ulcer and cancer risks

Removing H. pylori lowers the chance that related ulcers will return. H. pylori infection is also a risk factor for stomach cancer1,2.

Some people have lasting changes in the stomach lining. Gastric atrophy means loss of the stomach’s normal glands.

This change strongly affects stomach cancer risk. Ask whether your stomach findings require ongoing follow-up.

Also discuss lasting symptoms or past treatment failure. Healthy people without symptoms may not need routine screening.

Screening may be considered when stomach cancer risk is high. Ask whether family history changes the testing plan.

Conclusion

H. pylori often causes no symptoms, yet it still inflames the stomach. Testing can find active infection and guide treatment.

Breath and validated stool tests work before and after treatment. Blood antibody testing does not serve the same follow-up role.

Complete every dose of the clinician-selected plan. Then obtain follow-up testing at least four weeks after antibiotics end.

Recognizing warning signs may support timely care. Confirming eradication can help reduce repeat ulcers and stomach cancer risk.

Sources

Evidence used in this article

10 references

This educational article does not replace care from a licensed clinician. Automated publication checks and human medical review are separate states; the review label above reflects the recorded state for this exact content.

Keep the evidence

Explore questions about H. Pylori.

  • Research answers with sources you can inspect
  • Explore the research behind a health question
  • Bring informed questions to your clinician
Open the iOS beta invitationTestFlight for iPhone and iPad · Android not available