H Pylori Infection What You Need to Know About This Stomach Bug
H. pylori infection irritates your stomach lining and can cause ulcers. See symptoms, testing, and treatment steps, plus lab options and PocketMD.

H. pylori infection is when a bacteria settles into your stomach and irritates the lining, which can lead to ongoing indigestion and sometimes an ulcer. The good news is that it is usually treatable, but you do need the right test and the right antibiotic plan. A lot of people carry this “stomach bug” without obvious symptoms, while others feel a nagging burning pain, early fullness, or nausea that keeps coming back. This guide walks you through what H. pylori does in your body, what symptoms actually mean something, how clinicians test for it, and what treatment looks like when it works. If you want help deciding whether your symptoms fit H. pylori or something else, PocketMD can talk it through with you. If you are already planning to see a clinician, having a clear list of symptoms, meds, and recent antibiotic use ready can make your visit much more productive.
Symptoms and signs that can fit H. pylori
Burning upper belly pain
You might feel a gnawing or burning discomfort between your ribs and your belly button, especially when your stomach is empty or at night. That sensation often comes from irritation in the stomach or the first part of the small intestine, which can be worsened by acid. If pain is severe, persistent, or waking you up regularly, it is worth getting evaluated rather than just cycling through antacids.
Bloating and frequent burping
H. pylori can inflame your stomach lining so your stomach feels “tight” after meals, even when you did not eat much. You may burp more because your stomach is more sensitive to normal stretching and digestion. This symptom is common and not specific, but it matters when it is new for you and keeps returning for weeks.
Nausea or poor appetite
When your stomach lining is irritated, your brain gets more “something is off” signals, which can show up as nausea or a sudden lack of interest in food. Some people notice they start skipping breakfast because eating makes them feel unsettled. If you are losing weight without trying, that is a reason to get checked rather than assuming it is stress.
Black stools or vomiting blood
If an ulcer bleeds, digested blood can turn your stool black and tarry, or you might vomit blood or material that looks like coffee grounds. This is not a “wait and see” situation because bleeding can become dangerous quickly. Go to urgent care or the emergency department right away if you notice these signs, especially with dizziness, fainting, or weakness.
Unexplained fatigue from low iron
Some people with H. pylori develop low iron over time, which can make you feel tired, short of breath with stairs, or unusually foggy. The bacteria and the inflammation it causes can interfere with iron absorption, and slow bleeding from an ulcer can add to the problem. If you have persistent fatigue plus stomach symptoms, ask about checking a complete blood count and iron studies.
If you and your clinician are sorting out persistent indigestion or anemia, Vitals Vault labs can support the workup starting from $99 panel with 100+ tests, one visit.
Results in days
Clear next steps
HSA / FSA
Causes and risk factors: how you get it and who is more likely
Catching it through close contact
H. pylori spreads through contact with saliva or stool, which is why it often clusters in households. In real life, that can mean shared utensils, poor handwashing after the bathroom, or exposure during caregiving. You do not need to feel “dirty” to get it, but hygiene habits do make a difference.
Living where sanitation is limited
In places where clean water and safe food handling are harder to guarantee, H. pylori is more common and people often pick it up in childhood. That matters because the infection can quietly persist for years before symptoms show up. If you grew up in a higher-prevalence region, clinicians may have a lower threshold to test when you have ulcer-like symptoms.
A history of ulcers or gastritis
If you have had an ulcer before, H. pylori is one of the first causes clinicians want to rule in or rule out. The bacteria can weaken your stomach’s protective layer, which makes acid more damaging and ulcers more likely to form again. Treating the infection can reduce the chance of repeat ulcers, which is why testing is not just academic.
Regular NSAID use with stomach pain
Anti-inflammatory pain medicines like ibuprofen and naproxen can irritate the stomach lining on their own, and they can also make ulcers more likely. If you also have H. pylori, the combination raises the risk of an ulcer and bleeding more than either factor alone. If you rely on NSAIDs often and your stomach has started protesting, bring that up early so your plan can be safer.
Family history of stomach cancer
Long-term H. pylori infection can increase the risk of certain stomach cancers in some people, especially when infection is untreated for years. Most people with H. pylori will not develop cancer, but family history changes the risk conversation. If a close relative had stomach cancer, it is reasonable to ask whether testing and treatment are appropriate even if symptoms are mild.
How H. pylori is diagnosed (and how to avoid false results)
Breath test that detects urease
A common option is a breath test that looks for a chemical signature produced by the bacteria’s enzyme (urease). It is convenient and accurate when done under the right conditions. The catch is that acid blockers like proton pump inhibitors and recent antibiotics can make the test look negative even when the infection is still there, so timing matters.
Stool antigen test
A stool test can detect pieces of the bacteria, which makes it useful both for diagnosing infection and for confirming it is gone after treatment. It is noninvasive, but it still has the same “don’t sabotage the test” issue with recent antibiotics or strong acid suppression. If you are squeamish about endoscopy, this is often the next best route.
Endoscopy with biopsy when needed
If you have red-flag symptoms, recurrent ulcers, or you are older with new symptoms, your clinician may recommend a camera test of your stomach (endoscopy) with small tissue samples. This can directly show inflammation, ulcers, and sometimes precancerous changes, which a breath or stool test cannot. Seek urgent care for vomiting blood, black stools, fainting, or severe belly pain, because those can signal bleeding or a complication that needs immediate attention.
Blood antibody tests and their limits
A blood test can show antibodies to H. pylori, but antibodies can stay positive long after the infection is gone. That means a positive result does not always prove you still have an active infection, and it is not a good way to confirm cure. If blood testing is all that is available, ask how your clinician will interpret it in the context of your symptoms and any prior treatment.
Treatment options: what actually clears H. pylori
Combination antibiotics plus acid suppression
H. pylori is usually treated with two or more antibiotics along with a strong acid reducer called a proton pump inhibitor (PPI). Lowering acid helps your stomach lining heal and also makes the antibiotics work better against the bacteria. The exact combination depends on local resistance patterns and what antibiotics you have taken before.
Bismuth quadruple therapy
One common approach uses a PPI, bismuth, and two antibiotics for about two weeks. It can be very effective, especially when resistance to certain antibiotics is a concern. It is also a regimen where side effects like dark stools or a metallic taste can happen, so knowing what is expected can keep you from stopping early.
Finishing the course even if you feel better
Symptoms often improve before the bacteria is fully cleared, which can tempt you to quit early. Stopping early raises the chance the infection persists and becomes harder to treat next time. If side effects are making it tough, call your clinician because there are often ways to adjust timing, add nausea support, or switch regimens safely.
Confirming eradication after treatment
After you finish therapy, you usually need a follow-up breath or stool test to prove the infection is gone. This matters because persistent H. pylori can keep causing inflammation even when pain fades for a while. Your clinician will tell you how long to wait after antibiotics and when to pause acid blockers so the test is trustworthy.
Treating ulcers and protecting your stomach
If you have an ulcer, you may need a longer stretch of acid suppression to let the tissue heal, even after the bacteria is treated. You may also need to reduce or replace NSAIDs if they are part of the problem. The goal is not just symptom relief, but preventing bleeding and lowering the chance of recurrence.
Living with symptoms while you’re getting answers
Eat in a way your stomach tolerates
When your stomach is inflamed, large meals can feel like a brick, so smaller meals can be easier to handle. You may notice certain foods reliably flare burning or nausea, and it is okay to simplify your diet temporarily while you heal. The point is comfort and steady nutrition, not a perfect “ulcer diet.”
Be careful with alcohol and smoking
Alcohol can irritate the stomach lining and make reflux and nausea worse, which can blur whether treatment is working. Smoking slows healing and increases ulcer risk, so it can keep you stuck in the same cycle. If quitting feels big, even reducing while you are symptomatic can make your stomach calmer.
Track what changes with treatment
A simple daily note about pain timing, nausea, appetite, and stool color helps you see whether you are trending better or just having random good days. It also gives your clinician useful information if you need a different regimen or more testing. If you notice black stools, vomiting blood, or worsening weakness, treat that as a change that needs urgent evaluation.
Support your gut during antibiotics
Antibiotics can cause diarrhea, cramping, or a “wiped out” feeling because they affect your gut bacteria and your appetite. Staying hydrated and eating bland, easy foods can help you get through the course without missing doses. If you develop severe watery diarrhea, fever, or dehydration, contact your clinician promptly because that can signal a complication that needs treatment.
Prevention and reducing the chance of reinfection
Handwashing that actually breaks spread
Because H. pylori can spread through stool exposure, washing your hands after the bathroom and before food prep is one of the most practical protections. This is especially important in homes with young kids who need help toileting. It is boring advice, but it works because it targets the real route of transmission.
Safer food and water habits when traveling
If you are traveling where water safety is uncertain, using bottled or treated water and being cautious with raw foods can reduce exposure. That does not guarantee prevention, but it lowers the odds of picking up stomach infections in general. If you develop persistent indigestion after travel, mention the trip because it changes the testing plan.
Avoid sharing items during active symptoms
If someone in your household has vomiting or diarrhea, avoid sharing utensils, cups, or toothbrush storage space until they are well. H. pylori is not the only bug that spreads this way, so these habits protect everyone. Cleaning high-touch surfaces is helpful, but the biggest win is reducing direct mouth-to-mouth and hand-to-mouth spread.
Retesting when it matters
The best way to prevent long-term complications is making sure treatment actually cleared the infection. A follow-up breath or stool test is how you close the loop, especially if you had an ulcer or anemia. If symptoms return months later, retesting can help distinguish reinfection from reflux, medication irritation, or another cause.
Frequently Asked Questions
Can H. pylori go away on its own?
It can persist for years without treatment, even if your symptoms come and go. Because it can keep inflaming your stomach lining and raise the risk of ulcers, most clinicians recommend treating confirmed infection. If you are unsure whether you truly have it, getting an accurate breath or stool test is the best next step.
What is the best test for H. pylori?
For most people, a breath test or a stool antigen test gives the clearest answer about active infection. The “best” choice depends on what is available and whether you can pause acid blockers and avoid antibiotics beforehand. If you have alarm symptoms or higher risk, an endoscopy may be the safer route because it can look for ulcers and other causes.
How long does H. pylori treatment take to work?
Many regimens last about 10 to 14 days, and you may feel improvement within the first week. Healing of an ulcer can take longer, so symptoms do not always disappear immediately. The key milestone is a follow-up test several weeks later to confirm the bacteria is gone.
Why do I need a retest after antibiotics?
H. pylori can survive treatment if the bacteria is resistant or if doses are missed, and symptoms alone cannot reliably prove cure. A breath or stool test confirms eradication so you are not left with ongoing inflammation that quietly causes ulcers or anemia. Retesting is especially important if you had an ulcer, bleeding, or low iron.
Is H. pylori contagious to my family?
It can spread within households, especially with close contact and poor hand hygiene. You do not need to isolate, but being careful about handwashing and not sharing utensils during stomach illness is sensible. If multiple family members have ongoing ulcer-like symptoms, it is reasonable to ask a clinician whether testing makes sense for others too.
